Bitcoin Forum

Bitcoin => Bitcoin Technical Support => Topic started by: Skruber on January 23, 2018, 02:42:57 PM



Title: Autostart Bitcoin-Qt Ubuntu
Post by: Skruber on January 23, 2018, 02:42:57 PM

I use ubuntu 16.04 LTS, after restarting the computer, the bitcoin purse starts automatically and always asks for the storage of blocks, how to solve this problem? What would the purse load and continue synchronization automatically.


Title: Re: Autostart Bitcoin-Qt Ubuntu
Post by: LoyceV on January 23, 2018, 02:45:42 PM
I'm not sure what you're asking.

Do you want to disable the auto-start? If so:
In Bitcoin Core, click Settings > Options > Main tab (default) > toggle Start Bitcoin Core on system login.

Or does it give you an error message about "storage of blocks"? If so, what is the exact error?


Title: Re: Autostart Bitcoin-Qt Ubuntu
Post by: Skruber on January 23, 2018, 03:10:18 PM
I'm not sure what you're asking.

Do you want to disable the auto-start? If so:
In Bitcoin Core, click Settings > Options > Main tab (default) > toggle Start Bitcoin Core on system login.

Or does it give you an error message about "storage of blocks"? If so, what is the exact error?
No, I do not want to disable autorun. When I start the bitcoin purse manually or through autorun, the window always appears, made a screenshot: http://joxi.ru/4AkqNq4IM978ym

I thought it should appear one-time, but it appears every time you start .. how do I fix it?


Title: Re: Autostart Bitcoin-Qt Ubuntu
Post by: LoyceV on January 23, 2018, 03:11:06 PM
I thought it should appear one-time, but it appears every time you start .. how do I fix it?
Did you set this download location in the past? If so, can you check what DataDir is mentioned in ~/.config/Bitcoin/Bitcoin-Qt.conf ?
One way to answer this question: enter this in a console:
Code:
grep DataDir ~/.config/Bitcoin/Bitcoin-Qt.conf

Did it ever finish synchronisation completely? I can't read the Russian text, but since it's in red: does it mean you don't have enough diskspace on that location (or on the default location)?

What happens if you just click "OK"?


Title: Re: Autostart Bitcoin-Qt Ubuntu
Post by: Skruber on January 23, 2018, 03:17:17 PM
I thought it should appear one-time, but it appears every time you start .. how do I fix it?
Did you set this download location in the past? If so, can you check what DataDir is mentioned in ~/.config/Bitcoin/Bitcoin-Qt.conf ?
One way to answer this question: enter this in a console:
Code:
grep DataDir ~/.config/Bitcoin/Bitcoin-Qt.conf
Result on the screenshot http://joxi.ru/zANWqWgcldoPBr


Title: Re: Autostart Bitcoin-Qt Ubuntu
Post by: LoyceV on January 23, 2018, 05:31:44 PM
Result on the screenshot http://joxi.ru/zANWqWgcldoPBr
So it does save to that location.

Did it ever finish synchronisation completely? Or does it mean you don't have enough diskspace on that location (or on the default location)? Enter this in a console:
Code:
du -h /media/roman/04A24F39A24F2E8C/Bitcoin | tail -n 1
df -h | grep media


Title: Re: Autostart Bitcoin-Qt Ubuntu
Post by: Skruber on January 25, 2018, 07:17:54 AM
Result on the screenshot http://joxi.ru/zANWqWgcldoPBr
So it does save to that location.

Did it ever finish synchronisation completely? Or does it mean you don't have enough diskspace on that location (or on the default location)? Enter this in a console:
Code:
du -h /media/roman/04A24F39A24F2E8C/Bitcoin | tail -n 1
df -h | grep media
Here is a screenshot http://joxi.ru/ZrJM7MlU1OKw4A


Title: Re: Autostart Bitcoin-Qt Ubuntu
Post by: LoyceV on January 25, 2018, 10:29:22 AM
Here is a screenshot http://joxi.ru/ZrJM7MlU1OKw4A
Your computer doesn't have enough disk space available to store the whole blockchain. It may still fit at the moment, but it will be full very soon.
I see three possible solutions:
1. Get a bigger hard drive.
2. Use Bitcoin Core in pruned mode (add -prune=550 to the command line so it fits in less than 10 GB; after this you can't use it to load old wallet.dat files or import keys).
3. Instead of Bitcoin Core, use a wallet that doesn't require you to download the full blockchain (for instance Electrum (https://electrum.org/)).


Title: Re: Autostart Bitcoin-Qt Ubuntu
Post by: alko89 on January 25, 2018, 12:03:55 PM
You don't need to start bitcoin wallet to start synching. What you need to start is `bitcoind`. The easiest way to do this is using Ubuntu systemd. I don't know how my exactly systemd file looks like, I can send it to you when I come home. Check if Ubuntu allready has a default systemd service for bitcoind.

After you'll have your service set up. You can enable it with `sudo systemctl enable bitcoind.service` -> enable is to enable service to start on boot. You can also use `start` to start the service once, `stop` to shut it down and `restart` to restart it.

Here is the systemd.service file from github.
https://github.com/bitcoin/bitcoin/blob/master/contrib/init/bitcoind.service

You will have to modify it to start up as the user you login with.
...
[Service]
...
User=CHANGEME
...

Hope it helps :)