riak 1.4.0 upgrade failed

classic Classic list List threaded Threaded
11 messages Options
Reply | Threaded
Open this post in threaded view
|

riak 1.4.0 upgrade failed

kzhang
We were on 1.3.0, I was able to upgrade it to 1.3.2 (sudo rpm -Uvh riak-1.3.2-2.el6.x86_64.rpm). After that, I was trying to upgrade it to 1.4.0 (sudo rpm -Uvh riak-1.4.0-1.el6.x86_64.rpm). I got:
error: %pre(riak-1.4.0-1.el6.x86_64) scriptlet failed, exit status 8
error:   install: %pre scriptlet failed (2), skipping riak-1.4.0-1.el6

Here is the detailed info:

# sudo rpm -Uvhv riak-1.4.0-1.el6.x86_64.rpm
D: ============== riak-1.4.0-1.el6.x86_64.rpm
D: loading keyring from pubkeys in /var/lib/rpm/pubkeys/*.key
D: couldn't find any keys in /var/lib/rpm/pubkeys/*.key
D: loading keyring from rpmdb
D: opening  db environment /var/lib/rpm cdb:mpool:joinenv
D: opening  db index       /var/lib/rpm/Packages rdonly mode=0x0
D: locked   db index       /var/lib/rpm/Packages
D: opening  db index       /var/lib/rpm/Name rdonly mode=0x0
D:  read h#     457 Header sanity check: OK
D: added key gpg-pubkey-c105b9de-4e0fd3a3 to keyring
D: Using legacy gpg-pubkey(s) from rpmdb
D: Expected size:     25326908 = lead(96)+sigs(180)+pad(4)+data(25326628)
D:   Actual size:     25326908
D: riak-1.4.0-1.el6.x86_64.rpm: Header SHA1 digest: OK (f2fc385c419ea7010a2691e6c7e7e8ad51a045a6)
D: ========== relocations
D:  read h#     496 Header SHA1 digest: OK (7b0796f33bb3381f63e1d28c779198e8313729d0)
D:      added binary package [0]
D: found 0 source and 1 binary packages
D: ========== +++ riak-1.4.0-1.el6 x86_64/linux 0x2
D: opening  db index       /var/lib/rpm/Basenames rdonly mode=0x0
D:  read h#      13 Header V3 RSA/SHA1 Signature, key ID c105b9de: OK
D:  Requires: /bin/bash                                     YES (db files)
D:  Requires: /bin/sh                                       YES (db files)
D:  Requires: /bin/sh                                       YES (cached)
D:  Requires: /bin/sh                                       YES (cached)
D:  read h#     155 Header V3 RSA/SHA1 Signature, key ID c105b9de: OK
D:  Requires: /usr/bin/env                                  YES (db files)
D:  Requires: config(riak) = 1.4.0-1.el6                    YES (added provide)
D: opening  db index       /var/lib/rpm/Providename rdonly mode=0x0
D:  read h#      11 Header V3 RSA/SHA1 Signature, key ID c105b9de: OK
D:  Requires: libc.so.6()(64bit)                            YES (db provides)
D:  Requires: libc.so.6(GLIBC_2.2.5)(64bit)                 YES (db provides)
D:  Requires: libc.so.6(GLIBC_2.3)(64bit)                   YES (db provides)
D:  Requires: libc.so.6(GLIBC_2.3.2)(64bit)                 YES (db provides)
D:  Requires: libc.so.6(GLIBC_2.3.4)(64bit)                 YES (db provides)
D:  read h#     157 Header V3 RSA/SHA1 Signature, key ID c105b9de: OK
D:  Requires: libcrypto.so.10()(64bit)                      YES (db provides)
D:  Requires: libdl.so.2()(64bit)                           YES (db provides)
D:  Requires: libdl.so.2(GLIBC_2.2.5)(64bit)                YES (db provides)
D:  read h#       1 Header V3 RSA/SHA1 Signature, key ID c105b9de: OK
D:  Requires: libgcc_s.so.1()(64bit)                        YES (db provides)
D:  Requires: libgcc_s.so.1(GCC_3.0)(64bit)                 YES (db provides)
D:  Requires: libm.so.6()(64bit)                            YES (db provides)
D:  Requires: libm.so.6(GLIBC_2.2.5)(64bit)                 YES (db provides)
D:  read h#      12 Header V3 RSA/SHA256 Signature, key ID c105b9de: OK
D:  Requires: libncurses.so.5()(64bit)                      YES (db provides)
D:  Requires: libpthread.so.0()(64bit)                      YES (db provides)
D:  Requires: libpthread.so.0(GLIBC_2.2.5)(64bit)           YES (db provides)
D:  Requires: libpthread.so.0(GLIBC_2.3.2)(64bit)           YES (db provides)
D:  Requires: librt.so.1()(64bit)                           YES (db provides)
D:  Requires: librt.so.1(GLIBC_2.2.5)(64bit)                YES (db provides)
D:  Requires: libssl.so.10()(64bit)                         YES (db provides)
D:  read h#      27 Header V3 RSA/SHA1 Signature, key ID c105b9de: OK
D:  Requires: libstdc++.so.6()(64bit)                       YES (db provides)
D:  Requires: libstdc++.so.6(CXXABI_1.3)(64bit)             YES (db provides)
D:  Requires: libstdc++.so.6(GLIBCXX_3.4)(64bit)            YES (db provides)
D:  Requires: libstdc++.so.6(GLIBCXX_3.4.11)(64bit)         YES (db provides)
D:  Requires: libstdc++.so.6(GLIBCXX_3.4.9)(64bit)          YES (db provides)
D:  Requires: libtinfo.so.5()(64bit)                        YES (db provides)
D:  Requires: libutil.so.1()(64bit)                         YES (db provides)
D:  Requires: libutil.so.1(GLIBC_2.2.5)(64bit)              YES (db provides)
D:  Requires: rpmlib(CompressedFileNames) <= 3.0.4-1        YES (rpmlib provides)
D:  Requires: rpmlib(FileDigests) <= 4.6.0-1                YES (rpmlib provides)
D:  Requires: rpmlib(PayloadFilesHavePrefix) <= 4.0-1       YES (rpmlib provides)
D:  Requires: rtld(GNU_HASH)                                YES (db provides)
D:  Requires: rpmlib(PayloadIsXz) <= 5.2-1                  YES (rpmlib provides)
D: opening  db index       /var/lib/rpm/Conflictname rdonly mode=0x0
D: ========== --- riak-1.3.2-2.el6 x86_64/linux 0x2
D: opening  db index       /var/lib/rpm/Requirename rdonly mode=0x0
D: ========== recording tsort relations
D: ========== tsorting packages (order, #predecessors, #succesors, tree, depth)
D:     0    0    0    0    1   +riak-1.4.0-1.el6.x86_64
D:     1    0    0    1    1   -riak-1.3.2-2.el6.x86_64
D: installing binary packages
D: closed   db index       /var/lib/rpm/Conflictname
D: closed   db index       /var/lib/rpm/Providename
D: closed   db index       /var/lib/rpm/Requirename
D: closed   db index       /var/lib/rpm/Basenames
D: closed   db index       /var/lib/rpm/Name
D: closed   db index       /var/lib/rpm/Packages
D: closed   db environment /var/lib/rpm
D: opening  db environment /var/lib/rpm cdb:mpool:joinenv
D: opening  db index       /var/lib/rpm/Packages create mode=0x42
D: sanity checking 2 elements
D: opening  db index       /var/lib/rpm/Name create mode=0x42
D:  read h#     496 Header SHA1 digest: OK (7b0796f33bb3381f63e1d28c779198e8313729d0)
D: running pre-transaction scripts
D: computing 4357 file fingerprints
Preparing...                D: computing file dispositions
D: opening  db index       /var/lib/rpm/Basenames create mode=0x42
D: 0x0000fd00     4096       477468       159048 /
D: 0x0000fd02     4096       176263        62468 /var
########################################### [100%]
D: ========== +++ riak-1.4.0-1.el6 x86_64-linux 0x2
D: Expected size:     25326908 = lead(96)+sigs(180)+pad(4)+data(25326628)
D:   Actual size:     25326908
D: riak-1.4.0-1.el6.x86_64: Header SHA1 digest: OK (f2fc385c419ea7010a2691e6c7e7e8ad51a045a6)
D:   install: riak-1.4.0-1.el6 has 2227 files, test = 0
D: opening  db index       /var/lib/rpm/Triggername create mode=0x42
D:   install: %pre(riak-1.4.0-1.el6.x86_64) scriptlet start
D:   install: %pre(riak-1.4.0-1.el6.x86_64)     execv(/bin/sh) pid 1070
+ getent group riak
+ getent passwd riak
+ usermod -d /var/lib/riak riak
usermod: user riak is currently logged in
D:   install: waitpid(1070) rc 1070 status 800 secs 0.083
error: %pre(riak-1.4.0-1.el6.x86_64) scriptlet failed, exit status 8
error:   install: %pre scriptlet failed (2), skipping riak-1.4.0-1.el6
D: ========== +++ riak-1.3.2-2.el6 x86_64-linux 0x2
D: element riak-1.3.2-2.el6.x86_64 marked as failed, skipping
D: running post-transaction scripts
D: closed   db index       /var/lib/rpm/Triggername
D: closed   db index       /var/lib/rpm/Basenames
D: closed   db index       /var/lib/rpm/Name
D: closed   db index       /var/lib/rpm/Packages
D: closed   db environment /var/lib/rpm

Any ideas?

Thanks!

Kathleen




Reply | Threaded
Open this post in threaded view
|

Re: riak 1.4.0 upgrade failed

Hector Castro-2
Hey Kathleen,

Did you make sure to stop Riak before upgrading as described here? [0]
Looks like the Riak service may still be running.

--
Hector

[0] http://docs.basho.com/riak/latest/cookbooks/Rolling-Upgrades/#RHEL-CentOS

On Fri, Jul 19, 2013 at 10:10 AM, kzhang <[hidden email]> wrote:

> We were on 1.3.0, I was able to upgrade it to 1.3.2 (sudo rpm -Uvh
> riak-1.3.2-2.el6.x86_64.rpm). After that, I was trying to upgrade it to
> 1.4.0 (sudo rpm -Uvh riak-1.4.0-1.el6.x86_64.rpm). I got:
> error: %pre(riak-1.4.0-1.el6.x86_64) scriptlet failed, exit status 8
> error:   install: %pre scriptlet failed (2), skipping riak-1.4.0-1.el6
>
> Here is the detailed info:
>
> # sudo rpm -Uvhv riak-1.4.0-1.el6.x86_64.rpm
> D: ============== riak-1.4.0-1.el6.x86_64.rpm
> D: loading keyring from pubkeys in /var/lib/rpm/pubkeys/*.key
> D: couldn't find any keys in /var/lib/rpm/pubkeys/*.key
> D: loading keyring from rpmdb
> D: opening  db environment /var/lib/rpm cdb:mpool:joinenv
> D: opening  db index       /var/lib/rpm/Packages rdonly mode=0x0
> D: locked   db index       /var/lib/rpm/Packages
> D: opening  db index       /var/lib/rpm/Name rdonly mode=0x0
> D:  read h#     457 Header sanity check: OK
> D: added key gpg-pubkey-c105b9de-4e0fd3a3 to keyring
> D: Using legacy gpg-pubkey(s) from rpmdb
> D: Expected size:     25326908 = lead(96)+sigs(180)+pad(4)+data(25326628)
> D:   Actual size:     25326908
> D: riak-1.4.0-1.el6.x86_64.rpm: Header SHA1 digest: OK
> (f2fc385c419ea7010a2691e6c7e7e8ad51a045a6)
> D: ========== relocations
> D:  read h#     496 Header SHA1 digest: OK
> (7b0796f33bb3381f63e1d28c779198e8313729d0)
> D:      added binary package [0]
> D: found 0 source and 1 binary packages
> D: ========== +++ riak-1.4.0-1.el6 x86_64/linux 0x2
> D: opening  db index       /var/lib/rpm/Basenames rdonly mode=0x0
> D:  read h#      13 Header V3 RSA/SHA1 Signature, key ID c105b9de: OK
> D:  Requires: /bin/bash                                     YES (db files)
> D:  Requires: /bin/sh                                       YES (db files)
> D:  Requires: /bin/sh                                       YES (cached)
> D:  Requires: /bin/sh                                       YES (cached)
> D:  read h#     155 Header V3 RSA/SHA1 Signature, key ID c105b9de: OK
> D:  Requires: /usr/bin/env                                  YES (db files)
> D:  Requires: config(riak) = 1.4.0-1.el6                    YES (added
> provide)
> D: opening  db index       /var/lib/rpm/Providename rdonly mode=0x0
> D:  read h#      11 Header V3 RSA/SHA1 Signature, key ID c105b9de: OK
> D:  Requires: libc.so.6()(64bit)                            YES (db
> provides)
> D:  Requires: libc.so.6(GLIBC_2.2.5)(64bit)                 YES (db
> provides)
> D:  Requires: libc.so.6(GLIBC_2.3)(64bit)                   YES (db
> provides)
> D:  Requires: libc.so.6(GLIBC_2.3.2)(64bit)                 YES (db
> provides)
> D:  Requires: libc.so.6(GLIBC_2.3.4)(64bit)                 YES (db
> provides)
> D:  read h#     157 Header V3 RSA/SHA1 Signature, key ID c105b9de: OK
> D:  Requires: libcrypto.so.10()(64bit)                      YES (db
> provides)
> D:  Requires: libdl.so.2()(64bit)                           YES (db
> provides)
> D:  Requires: libdl.so.2(GLIBC_2.2.5)(64bit)                YES (db
> provides)
> D:  read h#       1 Header V3 RSA/SHA1 Signature, key ID c105b9de: OK
> D:  Requires: libgcc_s.so.1()(64bit)                        YES (db
> provides)
> D:  Requires: libgcc_s.so.1(GCC_3.0)(64bit)                 YES (db
> provides)
> D:  Requires: libm.so.6()(64bit)                            YES (db
> provides)
> D:  Requires: libm.so.6(GLIBC_2.2.5)(64bit)                 YES (db
> provides)
> D:  read h#      12 Header V3 RSA/SHA256 Signature, key ID c105b9de: OK
> D:  Requires: libncurses.so.5()(64bit)                      YES (db
> provides)
> D:  Requires: libpthread.so.0()(64bit)                      YES (db
> provides)
> D:  Requires: libpthread.so.0(GLIBC_2.2.5)(64bit)           YES (db
> provides)
> D:  Requires: libpthread.so.0(GLIBC_2.3.2)(64bit)           YES (db
> provides)
> D:  Requires: librt.so.1()(64bit)                           YES (db
> provides)
> D:  Requires: librt.so.1(GLIBC_2.2.5)(64bit)                YES (db
> provides)
> D:  Requires: libssl.so.10()(64bit)                         YES (db
> provides)
> D:  read h#      27 Header V3 RSA/SHA1 Signature, key ID c105b9de: OK
> D:  Requires: libstdc++.so.6()(64bit)                       YES (db
> provides)
> D:  Requires: libstdc++.so.6(CXXABI_1.3)(64bit)             YES (db
> provides)
> D:  Requires: libstdc++.so.6(GLIBCXX_3.4)(64bit)            YES (db
> provides)
> D:  Requires: libstdc++.so.6(GLIBCXX_3.4.11)(64bit)         YES (db
> provides)
> D:  Requires: libstdc++.so.6(GLIBCXX_3.4.9)(64bit)          YES (db
> provides)
> D:  Requires: libtinfo.so.5()(64bit)                        YES (db
> provides)
> D:  Requires: libutil.so.1()(64bit)                         YES (db
> provides)
> D:  Requires: libutil.so.1(GLIBC_2.2.5)(64bit)              YES (db
> provides)
> D:  Requires: rpmlib(CompressedFileNames) <= 3.0.4-1        YES (rpmlib
> provides)
> D:  Requires: rpmlib(FileDigests) <= 4.6.0-1                YES (rpmlib
> provides)
> D:  Requires: rpmlib(PayloadFilesHavePrefix) <= 4.0-1       YES (rpmlib
> provides)
> D:  Requires: rtld(GNU_HASH)                                YES (db
> provides)
> D:  Requires: rpmlib(PayloadIsXz) <= 5.2-1                  YES (rpmlib
> provides)
> D: opening  db index       /var/lib/rpm/Conflictname rdonly mode=0x0
> D: ========== --- riak-1.3.2-2.el6 x86_64/linux 0x2
> D: opening  db index       /var/lib/rpm/Requirename rdonly mode=0x0
> D: ========== recording tsort relations
> D: ========== tsorting packages (order, #predecessors, #succesors, tree,
> depth)
> D:     0    0    0    0    1   +riak-1.4.0-1.el6.x86_64
> D:     1    0    0    1    1   -riak-1.3.2-2.el6.x86_64
> D: installing binary packages
> D: closed   db index       /var/lib/rpm/Conflictname
> D: closed   db index       /var/lib/rpm/Providename
> D: closed   db index       /var/lib/rpm/Requirename
> D: closed   db index       /var/lib/rpm/Basenames
> D: closed   db index       /var/lib/rpm/Name
> D: closed   db index       /var/lib/rpm/Packages
> D: closed   db environment /var/lib/rpm
> D: opening  db environment /var/lib/rpm cdb:mpool:joinenv
> D: opening  db index       /var/lib/rpm/Packages create mode=0x42
> D: sanity checking 2 elements
> D: opening  db index       /var/lib/rpm/Name create mode=0x42
> D:  read h#     496 Header SHA1 digest: OK
> (7b0796f33bb3381f63e1d28c779198e8313729d0)
> D: running pre-transaction scripts
> D: computing 4357 file fingerprints
> Preparing...                D: computing file dispositions
> D: opening  db index       /var/lib/rpm/Basenames create mode=0x42
> D: 0x0000fd00     4096       477468       159048 /
> D: 0x0000fd02     4096       176263        62468 /var
> ########################################### [100%]
> D: ========== +++ riak-1.4.0-1.el6 x86_64-linux 0x2
> D: Expected size:     25326908 = lead(96)+sigs(180)+pad(4)+data(25326628)
> D:   Actual size:     25326908
> D: riak-1.4.0-1.el6.x86_64: Header SHA1 digest: OK
> (f2fc385c419ea7010a2691e6c7e7e8ad51a045a6)
> D:   install: riak-1.4.0-1.el6 has 2227 files, test = 0
> D: opening  db index       /var/lib/rpm/Triggername create mode=0x42
> D:   install: %pre(riak-1.4.0-1.el6.x86_64) scriptlet start
> D:   install: %pre(riak-1.4.0-1.el6.x86_64)     execv(/bin/sh) pid 1070
> + getent group riak
> + getent passwd riak
> + usermod -d /var/lib/riak riak
> usermod: user riak is currently logged in
> D:   install: waitpid(1070) rc 1070 status 800 secs 0.083
> error: %pre(riak-1.4.0-1.el6.x86_64) scriptlet failed, exit status 8
> error:   install: %pre scriptlet failed (2), skipping riak-1.4.0-1.el6
> D: ========== +++ riak-1.3.2-2.el6 x86_64-linux 0x2
> D: element riak-1.3.2-2.el6.x86_64 marked as failed, skipping
> D: running post-transaction scripts
> D: closed   db index       /var/lib/rpm/Triggername
> D: closed   db index       /var/lib/rpm/Basenames
> D: closed   db index       /var/lib/rpm/Name
> D: closed   db index       /var/lib/rpm/Packages
> D: closed   db environment /var/lib/rpm
>
> Any ideas?
>
> Thanks!
>
> Kathleen
>
>
>
>
>
>
>
>
> --
> View this message in context: http://riak-users.197444.n3.nabble.com/riak-1-4-0-upgrade-failed-tp4028429.html
> Sent from the Riak Users mailing list archive at Nabble.com.
>
> _______________________________________________
> riak-users mailing list
> [hidden email]
> http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com

_______________________________________________
riak-users mailing list
[hidden email]
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
Reply | Threaded
Open this post in threaded view
|

Re: riak 1.4.0 upgrade failed

kzhang
Hi,

Thanks for the reply. Sorry, I tried a few times, I did stop it at some point, still the same result. Just tried again and here is the result:

# riak stop
Attempting to restart script through sudo -H -u riak ok

# riak-admin status
Attempting to restart script through sudo -H -u riak Node is not running!

# sudo rpm -Uvhv riak-1.4.0-1.el6.x86_64.rpm
D: ============== riak-1.4.0-1.el6.x86_64.rpm
D: loading keyring from pubkeys in /var/lib/rpm/pubkeys/*.key
D: couldn't find any keys in /var/lib/rpm/pubkeys/*.key
D: loading keyring from rpmdb
D: opening  db environment /var/lib/rpm cdb:mpool:joinenv
D: opening  db index       /var/lib/rpm/Packages rdonly mode=0x0
D: locked   db index       /var/lib/rpm/Packages
D: opening  db index       /var/lib/rpm/Name rdonly mode=0x0
D:  read h#     457 Header sanity check: OK
D: added key gpg-pubkey-c105b9de-4e0fd3a3 to keyring
D: Using legacy gpg-pubkey(s) from rpmdb
D: Expected size:     25326908 = lead(96)+sigs(180)+pad(4)+data(25326628)
D:   Actual size:     25326908
D: riak-1.4.0-1.el6.x86_64.rpm: Header SHA1 digest: OK (f2fc385c419ea7010a2691e6c7e7e8ad51a045a6)
D: ========== relocations
D:  read h#     496 Header SHA1 digest: OK (7b0796f33bb3381f63e1d28c779198e8313729d0)
D:      added binary package [0]
D: found 0 source and 1 binary packages
D: ========== +++ riak-1.4.0-1.el6 x86_64/linux 0x2
D: opening  db index       /var/lib/rpm/Basenames rdonly mode=0x0
D:  read h#      13 Header V3 RSA/SHA1 Signature, key ID c105b9de: OK
D:  Requires: /bin/bash                                     YES (db files)
D:  Requires: /bin/sh                                       YES (db files)
D:  Requires: /bin/sh                                       YES (cached)
D:  Requires: /bin/sh                                       YES (cached)
D:  read h#     155 Header V3 RSA/SHA1 Signature, key ID c105b9de: OK
D:  Requires: /usr/bin/env                                  YES (db files)
D:  Requires: config(riak) = 1.4.0-1.el6                    YES (added provide)
D: opening  db index       /var/lib/rpm/Providename rdonly mode=0x0
D:  read h#      11 Header V3 RSA/SHA1 Signature, key ID c105b9de: OK
D:  Requires: libc.so.6()(64bit)                            YES (db provides)
D:  Requires: libc.so.6(GLIBC_2.2.5)(64bit)                 YES (db provides)
D:  Requires: libc.so.6(GLIBC_2.3)(64bit)                   YES (db provides)
D:  Requires: libc.so.6(GLIBC_2.3.2)(64bit)                 YES (db provides)
D:  Requires: libc.so.6(GLIBC_2.3.4)(64bit)                 YES (db provides)
D:  read h#     157 Header V3 RSA/SHA1 Signature, key ID c105b9de: OK
D:  Requires: libcrypto.so.10()(64bit)                      YES (db provides)
D:  Requires: libdl.so.2()(64bit)                           YES (db provides)
D:  Requires: libdl.so.2(GLIBC_2.2.5)(64bit)                YES (db provides)
D:  read h#       1 Header V3 RSA/SHA1 Signature, key ID c105b9de: OK
D:  Requires: libgcc_s.so.1()(64bit)                        YES (db provides)
D:  Requires: libgcc_s.so.1(GCC_3.0)(64bit)                 YES (db provides)
D:  Requires: libm.so.6()(64bit)                            YES (db provides)
D:  Requires: libm.so.6(GLIBC_2.2.5)(64bit)                 YES (db provides)
D:  read h#      12 Header V3 RSA/SHA256 Signature, key ID c105b9de: OK
D:  Requires: libncurses.so.5()(64bit)                      YES (db provides)
D:  Requires: libpthread.so.0()(64bit)                      YES (db provides)
D:  Requires: libpthread.so.0(GLIBC_2.2.5)(64bit)           YES (db provides)
D:  Requires: libpthread.so.0(GLIBC_2.3.2)(64bit)           YES (db provides)
D:  Requires: librt.so.1()(64bit)                           YES (db provides)
D:  Requires: librt.so.1(GLIBC_2.2.5)(64bit)                YES (db provides)
D:  Requires: libssl.so.10()(64bit)                         YES (db provides)
D:  read h#      27 Header V3 RSA/SHA1 Signature, key ID c105b9de: OK
D:  Requires: libstdc++.so.6()(64bit)                       YES (db provides)
D:  Requires: libstdc++.so.6(CXXABI_1.3)(64bit)             YES (db provides)
D:  Requires: libstdc++.so.6(GLIBCXX_3.4)(64bit)            YES (db provides)
D:  Requires: libstdc++.so.6(GLIBCXX_3.4.11)(64bit)         YES (db provides)
D:  Requires: libstdc++.so.6(GLIBCXX_3.4.9)(64bit)          YES (db provides)
D:  Requires: libtinfo.so.5()(64bit)                        YES (db provides)
D:  Requires: libutil.so.1()(64bit)                         YES (db provides)
D:  Requires: libutil.so.1(GLIBC_2.2.5)(64bit)              YES (db provides)
D:  Requires: rpmlib(CompressedFileNames) <= 3.0.4-1        YES (rpmlib provides)
D:  Requires: rpmlib(FileDigests) <= 4.6.0-1                YES (rpmlib provides)
D:  Requires: rpmlib(PayloadFilesHavePrefix) <= 4.0-1       YES (rpmlib provides)
D:  Requires: rtld(GNU_HASH)                                YES (db provides)
D:  Requires: rpmlib(PayloadIsXz) <= 5.2-1                  YES (rpmlib provides)
D: opening  db index       /var/lib/rpm/Conflictname rdonly mode=0x0
D: ========== --- riak-1.3.2-2.el6 x86_64/linux 0x2
D: opening  db index       /var/lib/rpm/Requirename rdonly mode=0x0
D: ========== recording tsort relations
D: ========== tsorting packages (order, #predecessors, #succesors, tree, depth)
D:     0    0    0    0    1   +riak-1.4.0-1.el6.x86_64
D:     1    0    0    1    1   -riak-1.3.2-2.el6.x86_64
D: installing binary packages
D: closed   db index       /var/lib/rpm/Conflictname
D: closed   db index       /var/lib/rpm/Providename
D: closed   db index       /var/lib/rpm/Requirename
D: closed   db index       /var/lib/rpm/Basenames
D: closed   db index       /var/lib/rpm/Name
D: closed   db index       /var/lib/rpm/Packages
D: closed   db environment /var/lib/rpm
D: opening  db environment /var/lib/rpm cdb:mpool:joinenv
D: opening  db index       /var/lib/rpm/Packages create mode=0x42
D: sanity checking 2 elements
D: opening  db index       /var/lib/rpm/Name create mode=0x42
D:  read h#     496 Header SHA1 digest: OK (7b0796f33bb3381f63e1d28c779198e8313729d0)
D: running pre-transaction scripts
D: computing 4357 file fingerprints
Preparing...                D: computing file dispositions
D: opening  db index       /var/lib/rpm/Basenames create mode=0x42
D: 0x0000fd00     4096       477283       158983 /
D: 0x0000fd02     4096       176259        62467 /var
########################################### [100%]
D: ========== +++ riak-1.4.0-1.el6 x86_64-linux 0x2
D: Expected size:     25326908 = lead(96)+sigs(180)+pad(4)+data(25326628)
D:   Actual size:     25326908
D: riak-1.4.0-1.el6.x86_64: Header SHA1 digest: OK (f2fc385c419ea7010a2691e6c7e7e8ad51a045a6)
D:   install: riak-1.4.0-1.el6 has 2227 files, test = 0
D: opening  db index       /var/lib/rpm/Triggername create mode=0x42
D:   install: %pre(riak-1.4.0-1.el6.x86_64) scriptlet start
D:   install: %pre(riak-1.4.0-1.el6.x86_64)     execv(/bin/sh) pid 20966
+ getent group riak
+ getent passwd riak
+ usermod -d /var/lib/riak riak
usermod: user riak is currently logged in
D:   install: waitpid(20966) rc 20966 status 800 secs 0.304
error: %pre(riak-1.4.0-1.el6.x86_64) scriptlet failed, exit status 8
error:   install: %pre scriptlet failed (2), skipping riak-1.4.0-1.el6
D: ========== +++ riak-1.3.2-2.el6 x86_64-linux 0x2
D: element riak-1.3.2-2.el6.x86_64 marked as failed, skipping
D: running post-transaction scripts
D: closed   db index       /var/lib/rpm/Triggername
D: closed   db index       /var/lib/rpm/Basenames
D: closed   db index       /var/lib/rpm/Name
D: closed   db index       /var/lib/rpm/Packages
D: closed   db environment /var/lib/rpm
Reply | Threaded
Open this post in threaded view
|

Re: riak 1.4.0 upgrade failed

Jared Morrow
So 'epmd' (erlang port mapper daemon) is probably still running under the riak user.  You can try killing epmd and making sure no other process is running under the riak user.

I'll put in an issue to not fail so hard if the usermod command fails.  Sorry for the troubles.

-Jared


On Fri, Jul 19, 2013 at 8:58 AM, kzhang <[hidden email]> wrote:
Hi,

Thanks for the reply. Sorry, I tried a few times, I did stop it at some
point, still the same result. Just tried again and here is the result:

# riak stop
Attempting to restart script through sudo -H -u riak ok

# riak-admin status
Attempting to restart script through sudo -H -u riak Node is not running!

# sudo rpm -Uvhv riak-1.4.0-1.el6.x86_64.rpm
D: ============== riak-1.4.0-1.el6.x86_64.rpm
D: loading keyring from pubkeys in /var/lib/rpm/pubkeys/*.key
D: couldn't find any keys in /var/lib/rpm/pubkeys/*.key
D: loading keyring from rpmdb
D: opening  db environment /var/lib/rpm cdb:mpool:joinenv
D: opening  db index       /var/lib/rpm/Packages rdonly mode=0x0
D: locked   db index       /var/lib/rpm/Packages
D: opening  db index       /var/lib/rpm/Name rdonly mode=0x0
D:  read h#     457 Header sanity check: OK
D: added key gpg-pubkey-c105b9de-4e0fd3a3 to keyring
D: Using legacy gpg-pubkey(s) from rpmdb
D: Expected size:     25326908 = lead(96)+sigs(180)+pad(4)+data(25326628)
D:   Actual size:     25326908
D: riak-1.4.0-1.el6.x86_64.rpm: Header SHA1 digest: OK
(f2fc385c419ea7010a2691e6c7e7e8ad51a045a6)
D: ========== relocations
D:  read h#     496 Header SHA1 digest: OK
(7b0796f33bb3381f63e1d28c779198e8313729d0)
D:      added binary package [0]
D: found 0 source and 1 binary packages
D: ========== +++ riak-1.4.0-1.el6 x86_64/linux 0x2
D: opening  db index       /var/lib/rpm/Basenames rdonly mode=0x0
D:  read h#      13 Header V3 RSA/SHA1 Signature, key ID c105b9de: OK
D:  Requires: /bin/bash                                     YES (db files)
D:  Requires: /bin/sh                                       YES (db files)
D:  Requires: /bin/sh                                       YES (cached)
D:  Requires: /bin/sh                                       YES (cached)
D:  read h#     155 Header V3 RSA/SHA1 Signature, key ID c105b9de: OK
D:  Requires: /usr/bin/env                                  YES (db files)
D:  Requires: config(riak) = 1.4.0-1.el6                    YES (added
provide)
D: opening  db index       /var/lib/rpm/Providename rdonly mode=0x0
D:  read h#      11 Header V3 RSA/SHA1 Signature, key ID c105b9de: OK
D:  Requires: libc.so.6()(64bit)                            YES (db
provides)
D:  Requires: libc.so.6(GLIBC_2.2.5)(64bit)                 YES (db
provides)
D:  Requires: libc.so.6(GLIBC_2.3)(64bit)                   YES (db
provides)
D:  Requires: libc.so.6(GLIBC_2.3.2)(64bit)                 YES (db
provides)
D:  Requires: libc.so.6(GLIBC_2.3.4)(64bit)                 YES (db
provides)
D:  read h#     157 Header V3 RSA/SHA1 Signature, key ID c105b9de: OK
D:  Requires: libcrypto.so.10()(64bit)                      YES (db
provides)
D:  Requires: libdl.so.2()(64bit)                           YES (db
provides)
D:  Requires: libdl.so.2(GLIBC_2.2.5)(64bit)                YES (db
provides)
D:  read h#       1 Header V3 RSA/SHA1 Signature, key ID c105b9de: OK
D:  Requires: libgcc_s.so.1()(64bit)                        YES (db
provides)
D:  Requires: libgcc_s.so.1(GCC_3.0)(64bit)                 YES (db
provides)
D:  Requires: libm.so.6()(64bit)                            YES (db
provides)
D:  Requires: libm.so.6(GLIBC_2.2.5)(64bit)                 YES (db
provides)
D:  read h#      12 Header V3 RSA/SHA256 Signature, key ID c105b9de: OK
D:  Requires: libncurses.so.5()(64bit)                      YES (db
provides)
D:  Requires: libpthread.so.0()(64bit)                      YES (db
provides)
D:  Requires: libpthread.so.0(GLIBC_2.2.5)(64bit)           YES (db
provides)
D:  Requires: libpthread.so.0(GLIBC_2.3.2)(64bit)           YES (db
provides)
D:  Requires: librt.so.1()(64bit)                           YES (db
provides)
D:  Requires: librt.so.1(GLIBC_2.2.5)(64bit)                YES (db
provides)
D:  Requires: libssl.so.10()(64bit)                         YES (db
provides)
D:  read h#      27 Header V3 RSA/SHA1 Signature, key ID c105b9de: OK
D:  Requires: libstdc++.so.6()(64bit)                       YES (db
provides)
D:  Requires: libstdc++.so.6(CXXABI_1.3)(64bit)             YES (db
provides)
D:  Requires: libstdc++.so.6(GLIBCXX_3.4)(64bit)            YES (db
provides)
D:  Requires: libstdc++.so.6(GLIBCXX_3.4.11)(64bit)         YES (db
provides)
D:  Requires: libstdc++.so.6(GLIBCXX_3.4.9)(64bit)          YES (db
provides)
D:  Requires: libtinfo.so.5()(64bit)                        YES (db
provides)
D:  Requires: libutil.so.1()(64bit)                         YES (db
provides)
D:  Requires: libutil.so.1(GLIBC_2.2.5)(64bit)              YES (db
provides)
D:  Requires: rpmlib(CompressedFileNames) <= 3.0.4-1        YES (rpmlib
provides)
D:  Requires: rpmlib(FileDigests) <= 4.6.0-1                YES (rpmlib
provides)
D:  Requires: rpmlib(PayloadFilesHavePrefix) <= 4.0-1       YES (rpmlib
provides)
D:  Requires: rtld(GNU_HASH)                                YES (db
provides)
D:  Requires: rpmlib(PayloadIsXz) <= 5.2-1                  YES (rpmlib
provides)
D: opening  db index       /var/lib/rpm/Conflictname rdonly mode=0x0
D: ========== --- riak-1.3.2-2.el6 x86_64/linux 0x2
D: opening  db index       /var/lib/rpm/Requirename rdonly mode=0x0
D: ========== recording tsort relations
D: ========== tsorting packages (order, #predecessors, #succesors, tree,
depth)
D:     0    0    0    0    1   +riak-1.4.0-1.el6.x86_64
D:     1    0    0    1    1   -riak-1.3.2-2.el6.x86_64
D: installing binary packages
D: closed   db index       /var/lib/rpm/Conflictname
D: closed   db index       /var/lib/rpm/Providename
D: closed   db index       /var/lib/rpm/Requirename
D: closed   db index       /var/lib/rpm/Basenames
D: closed   db index       /var/lib/rpm/Name
D: closed   db index       /var/lib/rpm/Packages
D: closed   db environment /var/lib/rpm
D: opening  db environment /var/lib/rpm cdb:mpool:joinenv
D: opening  db index       /var/lib/rpm/Packages create mode=0x42
D: sanity checking 2 elements
D: opening  db index       /var/lib/rpm/Name create mode=0x42
D:  read h#     496 Header SHA1 digest: OK
(7b0796f33bb3381f63e1d28c779198e8313729d0)
D: running pre-transaction scripts
D: computing 4357 file fingerprints
Preparing...                D: computing file dispositions
D: opening  db index       /var/lib/rpm/Basenames create mode=0x42
D: 0x0000fd00     4096       477283       158983 /
D: 0x0000fd02     4096       176259        62467 /var
########################################### [100%]
D: ========== +++ riak-1.4.0-1.el6 x86_64-linux 0x2
D: Expected size:     25326908 = lead(96)+sigs(180)+pad(4)+data(25326628)
D:   Actual size:     25326908
D: riak-1.4.0-1.el6.x86_64: Header SHA1 digest: OK
(f2fc385c419ea7010a2691e6c7e7e8ad51a045a6)
D:   install: riak-1.4.0-1.el6 has 2227 files, test = 0
D: opening  db index       /var/lib/rpm/Triggername create mode=0x42
D:   install: %pre(riak-1.4.0-1.el6.x86_64) scriptlet start
D:   install: %pre(riak-1.4.0-1.el6.x86_64)     execv(/bin/sh) pid 20966
+ getent group riak
+ getent passwd riak
+ usermod -d /var/lib/riak riak
usermod: user riak is currently logged in
D:   install: waitpid(20966) rc 20966 status 800 secs 0.304
error: %pre(riak-1.4.0-1.el6.x86_64) scriptlet failed, exit status 8
error:   install: %pre scriptlet failed (2), skipping riak-1.4.0-1.el6
D: ========== +++ riak-1.3.2-2.el6 x86_64-linux 0x2
D: element riak-1.3.2-2.el6.x86_64 marked as failed, skipping
D: running post-transaction scripts
D: closed   db index       /var/lib/rpm/Triggername
D: closed   db index       /var/lib/rpm/Basenames
D: closed   db index       /var/lib/rpm/Name
D: closed   db index       /var/lib/rpm/Packages
D: closed   db environment /var/lib/rpm




--
View this message in context: http://riak-users.197444.n3.nabble.com/riak-1-4-0-upgrade-failed-tp4028429p4028434.html
Sent from the Riak Users mailing list archive at Nabble.com.

_______________________________________________
riak-users mailing list
[hidden email]
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com


_______________________________________________
riak-users mailing list
[hidden email]
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
Reply | Threaded
Open this post in threaded view
|

Re: riak 1.4.0 upgrade failed

kzhang
Thanks!

install went through.
# sudo rpm -Uvh riak-1.4.0-1.el6.x86_64.rpm
Preparing...                ###################################                       ######## [100%]
   1:riak                   warning: /etc/riak/app.config creat                       ed as /etc/riak/app.config.rpmnew
warning: /etc/riak/vm.args created as /etc/riak/vm.args.rpmnew
########################################### [100%]

but failed on start.
# riak start
riak failed to start within 15 seconds,
see the output of 'riak console' for more information.
If you want to wait longer, set the environment variable
WAIT_FOR_ERLANG to the number of seconds to wait.



# riak console
config is OK
Exec: /usr/lib64/riak/erts-5.9.1/bin/erlexec -boot /usr/lib64/riak/releases/1.4.0/riak              -config /etc/riak/app.config             -pa /usr/lib64/riak/lib/basho-patches             -args_file /etc/riak/vm.args -- console
Root: /usr/lib64/riak
{error_logger,{{2013,7,19},{12,22,35}},"Protocol: ~p: register error: ~p~n",["inet_tcp",{{badmatch,{error,duplicate_name}},[{inet_tcp_dist,listen,1,[{file,"inet_tcp_dist.erl"},{line,70}]},{net_kernel,start_protos,4,[{file,"net_kernel.erl"},{line,1314}]},{net_kernel,start_protos,3,[{file,"net_kernel.erl"},{line,1307}]},{net_kernel,init_node,2,[{file,"net_kernel.erl"},{line,1197}]},{net_kernel,init,1,[{file,"net_kernel.erl"},{line,357}]},{gen_server,init_it,6,[{file,"gen_server.erl"},{line,304}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,227}]}]}]}
{error_logger,{{2013,7,19},{12,22,35}},crash_report,[[{initial_call,{net_kernel,init,['Argument__1']}},{pid,<0.20.0>},{registered_name,[]},{error_info,{exit,{error,badarg},[{gen_server,init_it,6,[{file,"gen_server.erl"},{line,320}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,227}]}]}},{ancestors,[net_sup,kernel_sup,<0.10.0>]},{messages,[]},{links,[#Port<0.204>,<0.17.0>]},{dictionary,[{longnames,true}]},{trap_exit,true},{status,running},{heap_size,987},{stack_size,24},{reductions,503}],[]]}
{error_logger,{{2013,7,19},{12,22,35}},supervisor_report,[{supervisor,{local,net_sup}},{errorContext,start_error},{reason,{'EXIT',nodistribution}},{offender,[{pid,undefined},{name,net_kernel},{mfargs,{net_kernel,start_link,[['riak@10.24.16.39',longnames]]}},{restart_type,permanent},{shutdown,2000},{child_type,worker}]}]}
{error_logger,{{2013,7,19},{12,22,35}},supervisor_report,[{supervisor,{local,kernel_sup}},{errorContext,start_error},{reason,shutdown},{offender,[{pid,undefined},{name,net_sup},{mfargs,{erl_distribution,start_link,[]}},{restart_type,permanent},{shutdown,infinity},{child_type,supervisor}]}]}
{error_logger,{{2013,7,19},{12,22,35}},std_info,[{application,kernel},{exited,{shutdown,{kernel,start,[normal,[]]}}},{type,permanent}]}
{"Kernel pid terminated",application_controller,"{application_start_failure,kernel,{shutdown,{kernel,start,[normal,[]]}}}"}

Crash dump was written to: /var/log/riak/erl_crash.dump
Kernel pid terminated (application_controller) ({application_start_failure,kernel,{shutdown,{kernel,start,[normal,[]]}}})



Reply | Threaded
Open this post in threaded view
|

Re: riak 1.4.0 upgrade failed

Andrew Thompson
On Fri, Jul 19, 2013 at 09:53:02AM -0700, kzhang wrote:

> Thanks!
>
> install went through.
> # sudo rpm -Uvh riak-1.4.0-1.el6.x86_64.rpm
> Preparing...                ###################################                      
> ######## [100%]
>    1:riak                   warning: /etc/riak/app.config creat                      
> ed as /etc/riak/app.config.rpmnew
> warning: /etc/riak/vm.args created as /etc/riak/vm.args.rpmnew
> ########################################### [100%]
>
> but failed on start.
> # riak start
> riak failed to start within 15 seconds,
> see the output of 'riak console' for more information.
> If you want to wait longer, set the environment variable
> WAIT_FOR_ERLANG to the number of seconds to wait.
>
It looks like riak is still running as well, can you kill it and try to
start it again?

Andrew

_______________________________________________
riak-users mailing list
[hidden email]
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
Reply | Threaded
Open this post in threaded view
|

Re: riak 1.4.0 upgrade failed

kzhang
That worked! Thanks!

Kathleen
Reply | Threaded
Open this post in threaded view
|

Re: riak 1.4.0 upgrade failed

kzhang
I upgraded the riak clustered with 5 nodes. Unfortunately, after I upgraded the first node, the other four nodes all went down. I am not sure what caused the downtime. There was a erl_crash.dump on all five, with similar content:

=erl_crash_dump:0.1
Wed Jul 24 11:37:56 2013
Slogan: Kernel pid terminated (application_controller) ({application_terminated,riak_control,shutdown})
System version: Erlang R15B01 (erts-5.9.1) [source] [64-bit] [smp:32:32] [async-threads:64] [kernel-poll:true]
Compiled: Thu Jun 20 14:22:45 2013
Taints: eleveldb,crypto,dyntrace
Atoms: 18102
=memory
total: 35784232
processes: 2211284
processes_used: 1057574
system: 33572948
atom: 545377
atom_used: 530150
binary: 13249720
code: 11220000
ets: 139168
=hash_table:atom_tab
size: 12853
used: 9703


Reply | Threaded
Open this post in threaded view
|

Re: riak 1.4.0 upgrade failed

Mark Phillips-4
Hi Kathleen,

Sorry if I missed this, but is the cluster currently up?

Also, out of curiosity, are you running Riak Control?

Mark

On Thu, Jul 25, 2013 at 6:03 AM, kzhang <[hidden email]> wrote:

> I upgraded the riak clustered with 5 nodes. Unfortunately, after I upgraded
> the first node, the other four nodes all went down. I am not sure what
> caused the downtime. There was a erl_crash.dump on all five, with similar
> content:
>
> =erl_crash_dump:0.1
> Wed Jul 24 11:37:56 2013
> Slogan: Kernel pid terminated (application_controller)
> ({application_terminated,riak_control,shutdown})
> System version: Erlang R15B01 (erts-5.9.1) [source] [64-bit] [smp:32:32]
> [async-threads:64] [kernel-poll:true]
> Compiled: Thu Jun 20 14:22:45 2013
> Taints: eleveldb,crypto,dyntrace
> Atoms: 18102
> =memory
> total: 35784232
> processes: 2211284
> processes_used: 1057574
> system: 33572948
> atom: 545377
> atom_used: 530150
> binary: 13249720
> code: 11220000
> ets: 139168
> =hash_table:atom_tab
> size: 12853
> used: 9703
>
>
>
>
>
>
> --
> View this message in context: http://riak-users.197444.n3.nabble.com/riak-1-4-0-upgrade-failed-tp4028429p4028548.html
> Sent from the Riak Users mailing list archive at Nabble.com.
>
> _______________________________________________
> riak-users mailing list
> [hidden email]
> http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com

_______________________________________________
riak-users mailing list
[hidden email]
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
Reply | Threaded
Open this post in threaded view
|

Re: riak 1.4.0 upgrade failed

kzhang
Hi,

Yeah, the cluster is running. Once noticing the other four nodes being down, we quickly upgraded and brought them back up. Riak control is running and everything looks good. My only concern is why the other nodes went down while the first node was being upgraded.

Thanks!

Kathleen
Reply | Threaded
Open this post in threaded view
|

Re: riak 1.4.0 upgrade failed

Christopher Meiklejohn
Hi Kathleen,

Is there anyway you could email me the entire crash dump files?  Feel free to email me directly and I'll post the analysis of it back to the list.

- Chris


On Fri, Jul 26, 2013 at 7:14 AM, kzhang <[hidden email]> wrote:
Hi,

Yeah, the cluster is running. Once noticing the other four nodes being down,
we quickly upgraded and brought them back up. Riak control is running and
everything looks good. My only concern is why the other nodes went down
while the first node was being upgraded.

Thanks!

Kathleen



--
View this message in context: http://riak-users.197444.n3.nabble.com/riak-1-4-0-upgrade-failed-tp4028429p4028572.html
Sent from the Riak Users mailing list archive at Nabble.com.

_______________________________________________
riak-users mailing list
[hidden email]
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com


_______________________________________________
riak-users mailing list
[hidden email]
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com