Bitcoin Forum
May 11, 2024, 11:24:46 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Ubuntu PPA packages broken after latest upgrade  (Read 1966 times)
jon_smark (OP)
Member
**
Offline Offline

Activity: 90
Merit: 10


View Profile
May 05, 2013, 12:41:15 PM
 #1

Yesterday (May 4th, 2013), the Bitcoin-qt/Bitcoind packages were updated on the Ubuntu PPA (I'm using Ubuntu 13.04).  After the upgrade, Bitcoin fails to start due to database errors:

Code:
dbenv.open LogDir=/home/smark/.bitcoin/database ErrorFile=/home/smark/.bitcoin/db.log
ERROR: CDB() : error DB_RUNRECOVERY: Fatal error, run database recovery (-30974) opening database environment
Error: Error initializing database environment /home/smark/.bitcoin! To recover, BACKUP THAT DIRECTORY, then remove everything from it except for wallet.dat.

I have no intention of redownloading the whole blockchain again.  Is there any way to fix this, or should the Ubuntu PPA be deprecated?
The block chain is the main innovation of Bitcoin. It is the first distributed timestamping system.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
Matt Corallo
Hero Member
*****
Offline Offline

Activity: 755
Merit: 515


View Profile
May 05, 2013, 02:42:03 PM
 #2

I have no intention of redownloading the whole blockchain again.  Is there any way to fix this, or should the Ubuntu PPA be deprecated?

Which previous version of the packages were you using?
I updated the 13.04 ppa stuff because 13.04 didnt have ppa packages at all, however there should be no issues as long as the new libdb and such were pulled along at the same time.  I'm assuming you were previously on the 12.10 version?

Bitcoin Core, rust-lightning, http://bitcoinfibre.org etc.
PGP ID: 07DF 3E57 A548 CCFB 7530  7091 89BB B866 3E2E65CE
Matt Corallo
Hero Member
*****
Offline Offline

Activity: 755
Merit: 515


View Profile
May 05, 2013, 02:46:02 PM
 #3

Also, this is a pretty terrible place to post for technical support when it comes to the PPA.  Best to ask on IRC if you can, or email the ppa group on launchpad.

Bitcoin Core, rust-lightning, http://bitcoinfibre.org etc.
PGP ID: 07DF 3E57 A548 CCFB 7530  7091 89BB B866 3E2E65CE
jon_smark (OP)
Member
**
Offline Offline

Activity: 90
Merit: 10


View Profile
May 05, 2013, 03:49:48 PM
 #4

Which previous version of the packages were you using?
I updated the 13.04 ppa stuff because 13.04 didnt have ppa packages at all, however there should be no issues as long as the new libdb and such were pulled along at the same time.  I'm assuming you were previously on the 12.10 version?

Are you sure 13.04 didn't have packages before?  I did a fresh install of 13.04 last week, added the Ubuntu PPA, and installed the Bitcoin packages.  Today, I got the notification that some packages needed upgrading.  After "apt-get dist-upgrade", the packages bitcoin-qt, bitcoind, and libdb4.8++ were upgraded.  After the upgrade, bitcoin-qt/bitcoind no longer start due the error I mentioned.
Matt Corallo
Hero Member
*****
Offline Offline

Activity: 755
Merit: 515


View Profile
May 05, 2013, 03:58:58 PM
 #5

Are you sure 13.04 didn't have packages before?  I did a fresh install of 13.04 last week, added the Ubuntu PPA, and installed the Bitcoin packages.  Today, I got the notification that some packages needed upgrading.  After "apt-get dist-upgrade", the packages bitcoin-qt, bitcoind, and libdb4.8++ were upgraded.  After the upgrade, bitcoin-qt/bitcoind no longer start due the error I mentioned.

Ahh, this is your problem...yes, raring had no packages whatsoever in the PPA, so when you installed bitcoin-qt, you actually installed Ubuntu's version, which depends on libdb5.1, making your wallet incompatible with bitcoin.org's binary releases.  Raring currently has the latest 0.8.1, however Ubuntu is not likely to keep that up to date as new releases come out.  If you have a backup of your wallet prior to the upgrade (I'd hope so) and you haven't done anything with it since, you can just restore that backup and use the PPA versions.  Otherwise you will have to either continue using Ubuntu's version (remove the ppa, remove bitcoin packages, reinstall, and hope you dont fall too far out of date) or build your own bitcoin-qt/d and keep doing so using libdb5.1.

Bitcoin Core, rust-lightning, http://bitcoinfibre.org etc.
PGP ID: 07DF 3E57 A548 CCFB 7530  7091 89BB B866 3E2E65CE
jon_smark (OP)
Member
**
Offline Offline

Activity: 90
Merit: 10


View Profile
May 05, 2013, 04:46:40 PM
 #6

Ahh, this is your problem...yes, raring had no packages whatsoever in the PPA, so when you installed bitcoin-qt, you actually installed Ubuntu's version, which depends on libdb5.1, making your wallet incompatible with bitcoin.org's binary releases.  Raring currently has the latest 0.8.1, however Ubuntu is not likely to keep that up to date as new releases come out.  If you have a backup of your wallet prior to the upgrade (I'd hope so) and you haven't done anything with it since, you can just restore that backup and use the PPA versions.  Otherwise you will have to either continue using Ubuntu's version (remove the ppa, remove bitcoin packages, reinstall, and hope you dont fall too far out of date) or build your own bitcoin-qt/d and keep doing so using libdb5.1.

Ah, mystery explained -- thanks!

I've removed the PPA and "downgraded" to Ubuntu's version, and it works fine now.  One problem remains, however: sooner or later I may need to upgrade to the PPA version.  When that happens, I'll need to convert the DBs.

Am I correct in assuming that the blockhain DB is using LevelDB and does not depend on libdb?  And is therefore wallet.dat the only critical file still using libdb?  If so, I can easily migrate simply by exporting+importing the relevant addresses.  Or is there something I'm missing?
Matt Corallo
Hero Member
*****
Offline Offline

Activity: 755
Merit: 515


View Profile
May 06, 2013, 09:26:32 PM
 #7

Am I correct in assuming that the blockhain DB is using LevelDB and does not depend on libdb?  And is therefore wallet.dat the only critical file still using libdb?  If so, I can easily migrate simply by exporting+importing the relevant addresses.  Or is there something I'm missing?
Yes, wallet.dat is all that uses BDB anymore.  If you dont mind losing your address book (though you should be able to export that with bitcointools or something) you can just export your privkeys and reimport them with a BDB4.8-based build.

Bitcoin Core, rust-lightning, http://bitcoinfibre.org etc.
PGP ID: 07DF 3E57 A548 CCFB 7530  7091 89BB B866 3E2E65CE
desper
Newbie
*
Offline Offline

Activity: 51
Merit: 0


View Profile
May 10, 2013, 02:39:12 PM
 #8

I might be having a similar problem.

I installed bitcoin-qt into Ubuntu using the ppa (might be version 0.6)
I just ran sudo apt-get update. I'm not sure if this updated bitcoin-qt or not. bitcoin-qt is still working.

How can I see what version of bitcoin-qt I currently have?
I heard that on May 15th, we will need the newest version of bitcoin-qt. Is this true, or will older versions still be OK?

thanks
Matt Corallo
Hero Member
*****
Offline Offline

Activity: 755
Merit: 515


View Profile
May 10, 2013, 07:33:15 PM
 #9

I just ran sudo apt-get update. I'm not sure if this updated bitcoin-qt or not. bitcoin-qt is still working.
apt-get update just updates the list of packages, you need apt-get upgrade to actually upgrade packages.

How can I see what version of bitcoin-qt I currently have?
There should be an "About Bitcoin" button under help in the Bitcoin-Qt window.

I heard that on May 15th, we will need the newest version of bitcoin-qt. Is this true, or will older versions still be OK?
Yes, you need to upgrade to at least 0.8.1 before May 15th (0.8.2 is also really nice, so upgrade to that when its out).  That said, its generally a very, very good idea to always update both Bitcoin and all your system packages very regularly, both because of new features and options and because the Bitcoin network benefits greatly when users upgrade.

Bitcoin Core, rust-lightning, http://bitcoinfibre.org etc.
PGP ID: 07DF 3E57 A548 CCFB 7530  7091 89BB B866 3E2E65CE
RodeoX
Legendary
*
Offline Offline

Activity: 3066
Merit: 1147


The revolution will be monetized!


View Profile
May 16, 2013, 05:27:30 PM
 #10

It seems like every time the PPA gets improved upon it becomes less functional. I can no longer get it to work at all now.  Huh

I can't wait for version 1.0 when, I assume, it will be in the standard repository.

The gospel according to Satoshi - https://bitcoin.org/bitcoin.pdf
Free bitcoin in ? - Stay tuned for this years Bitcoin hunt!
Matt Corallo
Hero Member
*****
Offline Offline

Activity: 755
Merit: 515


View Profile
May 16, 2013, 06:45:15 PM
 #11

It seems like every time the PPA gets improved upon it becomes less functional. I can no longer get it to work at all now.  Huh
Please either ask a specific question and I will try to give guidance or dont comment at all...

I can't wait for version 1.0 when, I assume, it will be in the standard repository.
Bitcoin's status in the official Ubuntu/Debian repositories will likely never change because Ubuntu/Debian's policies are to not do major version upgrades after a release (you have to upgrade the OS itself to get those)...thus Bitcoin falls out of sync and you get old versions that either have significant bugs or don't work at all.

Bitcoin Core, rust-lightning, http://bitcoinfibre.org etc.
PGP ID: 07DF 3E57 A548 CCFB 7530  7091 89BB B866 3E2E65CE
cypherdoc
Legendary
*
Offline Offline

Activity: 1764
Merit: 1002



View Profile
May 30, 2013, 04:22:34 PM
 #12

I just ran sudo apt-get update. I'm not sure if this updated bitcoin-qt or not. bitcoin-qt is still working.
apt-get update just updates the list of packages, you need apt-get upgrade to actually upgrade packages.

How can I see what version of bitcoin-qt I currently have?
There should be an "About Bitcoin" button under help in the Bitcoin-Qt window.

I heard that on May 15th, we will need the newest version of bitcoin-qt. Is this true, or will older versions still be OK?
Yes, you need to upgrade to at least 0.8.1 before May 15th (0.8.2 is also really nice, so upgrade to that when its out).  That said, its generally a very, very good idea to always update both Bitcoin and all your system packages very regularly, both because of new features and options and because the Bitcoin network benefits greatly when users upgrade.

how do i check the version from the CLI?
xgtele
Sr. Member
****
Offline Offline

Activity: 288
Merit: 250



View Profile
May 31, 2013, 05:20:56 PM
Last edit: May 31, 2013, 08:10:42 PM by xgtele
 #13

Could you please somebody step-by-step guide me how to upgrade bitcoind from 0.8.1 to 0.8.2 on Ubuntu 13.04 64-bit server?
I tried:

sudo add-apt-repository ppa:bitcoin/bitcoin
sudo apt-get update
sudo apt-get install bitcoind

But the system said that I have the latest version (0.8.1, but not 0.8.2)

When an update will be available in the repository??

Thanks
Brunt, FCA
Member
**
Offline Offline

Activity: 68
Merit: 10



View Profile
June 01, 2013, 09:32:36 AM
Last edit: June 01, 2013, 10:29:33 AM by Brunt, FCA
 #14

My computer hasn't upgraded from 0.8.1 to 0.8.2 via the PPA yet.
Is this because I am still using Ubuntu 10.04.4 LTS, which has recently become obsolete?
I see that 0.8.2 for Lucid has been included in the PPA.
Is there something else that I need to do?
xgtele
Sr. Member
****
Offline Offline

Activity: 288
Merit: 250



View Profile
June 01, 2013, 10:09:54 AM
 #15

Compiling bitcoind/litecoind on Ubuntu Server 13.04

http://bitcointalk.co.za/t/compiling-bitcoind-litecoind-on-ubuntu-server-13-04/44
Matt Corallo
Hero Member
*****
Offline Offline

Activity: 755
Merit: 515


View Profile
June 01, 2013, 04:21:08 PM
 #16

My computer hasn't upgraded from 0.8.1 to 0.8.2 via the PPA yet.
Is this because I am still using Ubuntu 10.04.4 LTS, which has recently become obsolete?
I see that 0.8.2 for Lucid has been included in the PPA.
Is there something else that I need to do?
No, you're fine...launchpad is slow at building and I was busy...sorry for the delay but the upgrade should be available within the next few hours.

Bitcoin Core, rust-lightning, http://bitcoinfibre.org etc.
PGP ID: 07DF 3E57 A548 CCFB 7530  7091 89BB B866 3E2E65CE
Brunt, FCA
Member
**
Offline Offline

Activity: 68
Merit: 10



View Profile
June 02, 2013, 05:33:00 AM
Last edit: June 02, 2013, 07:42:07 AM by Brunt, FCA
 #17

Quote
No, you're fine...launchpad is slow at building and I was busy...sorry for the delay but the upgrade should be available within the next few hours.
OK, I've received the 0.8.2 upgrade now. Thanks.
I don't really expect that 10.04 LTS will be supported for too much longer. I need to upgrade to 12.04 LTS eventually.

I'm not too keen on the change to the display, where it tells you how many hours you are behind. I liked the older version, where it told you how many blocks were left that you needed to download.
Matt Corallo
Hero Member
*****
Offline Offline

Activity: 755
Merit: 515


View Profile
June 02, 2013, 10:21:04 AM
 #18

OK, I've received the 0.8.2 upgrade now. Thanks.
I don't really expect that 10.04 LTS will be supported for too much longer. I need to upgrade to 12.04 LTS eventually.
10.04 Desktop hasn't been supported for quite a while already...

I'm not too keen on the change to the display, where it tells you how many hours you are behind. I liked the older version, where it told you how many blocks were left that you needed to download.
Its nicer for inexperienced users, and its a pretty constant conversion from time->block count (well, for long timespans, otherwise there can be some variance).

Bitcoin Core, rust-lightning, http://bitcoinfibre.org etc.
PGP ID: 07DF 3E57 A548 CCFB 7530  7091 89BB B866 3E2E65CE
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!