Pages:
Author

Topic: Avalon users: bitcoind and slush's/generalfaults mining pool setup - page 4. (Read 39227 times)

legendary
Activity: 1764
Merit: 1002
Its meant to say that.

if so, this is what happens when i continue:

Code:
home@server:~/git/bitcoin$ git checkout v0.8.3
HEAD is now at 40809ae... Bump version numbers for 0.8.3 release
home@server:~/git/bitcoin$ cd bitcoind/src/
bash: cd: bitcoind/src/: No such file or directory
home@server:~/git/bitcoin$
full member
Activity: 176
Merit: 100
Its meant to say that.
legendary
Activity: 1764
Merit: 1002
If the libraries match in the build docs are the same for the new version as they were for the old then


Code:
cd
cd git
rm -rf bitcoin

git clone https://github.com/bitcoin/bitcoin.git
cd bitcoin
git checkout v0.8.3
cd bitcoind/src/

make makefile.unix

once its finished recompiling
sudo cp bitcoind /usr/local/bin/

you can change the git checkout command to the new version when it comes out if the libraries match

that's exactly what i've done but have still gotten hung up as above at the git checkout v0.8.3.
full member
Activity: 176
Merit: 100
If the libraries match in the build docs are the same for the new version as they were for the old then


Code:
cd
cd git
rm -rf bitcoin

git clone https://github.com/bitcoin/bitcoin.git
cd bitcoin
git checkout v0.8.3
cd src/

make -f makefile.unix

once its finished recompiling
sudo cp bitcoind /usr/local/bin/

you can change the git checkout command to the new version when it comes out if the libraries match
legendary
Activity: 1764
Merit: 1002
getting stuck here:

Code:
home@server:~/git/bitcoin$ git checkout -b 0.8.3Switched to a new branch '0.8.3'
home@server:~/git/bitcoin$ git checkout v0.8.3
Note: checking out 'v0.8.3'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:

  git checkout -b new_branch_name

HEAD is now at 40809ae... Bump version numbers for 0.8.3 release
home@server:~/git/bitcoin$ git checkout v0.8.3
HEAD is now at 40809ae... Bump version numbers for 0.8.3 release
legendary
Activity: 1764
Merit: 1002
Tiltoc,

When you get a chance could you add a small section at the end of the tute detailing the exact steps when upgrading both the bitcoind and stratum software versions?

This is happening a lot. Thanks.
full member
Activity: 176
Merit: 100
I have put a space between some of the ' ' let me know if this makes it easier to understand. Smiley So far from what I have seen this works to compile 0.8.3 just replace the git checkout v0.8.2 with git checkout 0.8.3

legendary
Activity: 1764
Merit: 1002
i think i just noted an inconsistency in the tute:

Quote
CENTRAL_WALLET = '1jxc4KgRXCkn2JD7QjmgMrDKqM2yQtPAp'   # local bitcoin address where money goes

(DO NOT USE THE WALLET ADDRESS IN THE ABOVE LINE)[/font]

The address MUST have the '' chars around it like above.

should the address be bounded by ' or " ?

No inconsistency... just misleading with a proportional space font... the '' is actually two single 's real close together.

Personally I found this pool easier to setup than eligius... plus slush has a status webpage which is nice.

have you recv'd your asic's yet and started solo mining?

just finished my -reindex of blockchain (arrgghh) and will be pointing the avalons at the pool very soon.  will let you know how it goes.
sr. member
Activity: 490
Merit: 255
i think i just noted an inconsistency in the tute:

Quote
CENTRAL_WALLET = '1jxc4KgRXCkn2JD7QjmgMrDKqM2yQtPAp'   # local bitcoin address where money goes

(DO NOT USE THE WALLET ADDRESS IN THE ABOVE LINE)[/font]

The address MUST have the '' chars around it like above.

should the address be bounded by ' or " ?

No inconsistency... just misleading with a proportional space font... the '' is actually two single 's real close together.

Personally I found this pool easier to setup than eligius... plus slush has a status webpage which is nice.
legendary
Activity: 1764
Merit: 1002
i think i just noted an inconsistency in the tute:

Quote
CENTRAL_WALLET = '1jxc4KgRXCkn2JD7QjmgMrDKqM2yQtPAp'   # local bitcoin address where money goes

(DO NOT USE THE WALLET ADDRESS IN THE ABOVE LINE)[/font]

The address MUST have the '' chars around it like above.

should the address be bounded by ' or " ?
full member
Activity: 176
Merit: 100
When it us not running in daemon mode it should except keyboard input so it should rebuild when you hit enter.
legendary
Activity: 1764
Merit: 1002
Code:
cypher@server:~$ bitcoind -blocknotify="/home/username/git/stratum-mining/scripts/blocknotify.sh --password x --host localhost --port 3333" -daemon
cypher@server:~$ Bitcoin server starting
: Error opening block database.
Do you want to rebuild the block database now?
y
y: command not found

how do i respond to this?

btw, this happened while i was away on vacation.  came back and server shutdown.  wasn't actively mining; just running bitcoind daemon and slush server anyway.  got this error when trying to restart.

should be a simple fix?  anxious to get it working again as my avalons arrived and want to point them at this solo setup to see if they work.  Grin
legendary
Activity: 1764
Merit: 1002
Try starting it without the -daemon

Once it has finished rebuilding start it adding with the -daemon

same error w/o -daemon
full member
Activity: 176
Merit: 100
Try starting it without the -daemon

Once it has finished rebuilding start it adding with the -daemon
legendary
Activity: 1764
Merit: 1002
Code:
cypher@server:~$ bitcoind -blocknotify="/home/username/git/stratum-mining/scripts/blocknotify.sh --password x --host localhost --port 3333" -daemon
cypher@server:~$ Bitcoin server starting
: Error opening block database.
Do you want to rebuild the block database now?
y
y: command not found

how do i respond to this?
full member
Activity: 176
Merit: 100
nope, they go in /etc/init/ directory, create them as root

mine looks like this

-rw-r--r-- 1 root root 228 Apr 12 08:03 bitcoind.conf

the bitcoind info goes in the above one and the pool one below

-rw-r--r-- 1 root root 305 Apr 12 08:12 slushpool.conf

Code:

sudo su root

cd /etc/init/

pico bitcoind.conf


cut and past the above bitcoind init script into pico

cntrl x
then hit y to save


Code:
pico slushpool.conf


cut and past the above pool  init script into pico

cntrl x
then hit y to save


Init is the automatic program startup system for linux.
legendary
Activity: 1764
Merit: 1002
Replace the bits you need to

Code:
# bitcoind upstart script for Ubuntu

description "Bitcoin daemon"

start on runlevel [2345]
stop on runlevel [!2345]
respawn
respawn limit 10 60
setuid yourusernameforbitcoinhere
expect fork
exec /usr/local/bin/bitcoind -datadir=/home/yourusernameforbitcoinhere/.bitcoin


Code:
description "Start and stop slush on bitcoind start"

respawn
respawn limit 10 60
expect fork

start on started bitcoind
stop on stopped bitcoind
setuid poolusernamehere
pre-start script
   sleep 30
end script

chdir /home/poolocation/git/stratum-mining
exec twistd --syslog -ny /home/poollocation/git/stratum-mining/launcher.tac &



so do these 2 bits of code go into the bitcoin.conf and stratum-mining.conf files respectively?
full member
Activity: 176
Merit: 100
If you use the last version of the init scripts i posted they should restart either bitcoind or the pool software if they crash, unless its reoccurring error after a set number of times it wont try to restart them.

There is more you can do to monitor them, one of the linux forums might get more results, or asking nicely in the pools thread. Its not something I have examples for as I havent needed to do it.

googling linux process monitoring comes up with a few hit to have a read about eg http://www.unix.com/shell-programming-scripting/17866-script-monitor-process-running-server-posting-mail-if-any-process-dead.html
legendary
Activity: 1764
Merit: 1002
I didn't notice that setuid option.... that is so much cleaner than trying to run the command through a su -c.

Anyone else seeing instability with bitcoind?
I see it crash every couple of days.

It restarts fast enough that I haven't bothered to look any further.

did we ever agree as to the best way to restart bitcoind and stratum pool in case of a crash?
sr. member
Activity: 490
Merit: 255
The & throws the process into the background.   If you want to keep it in the foreground, leave it out.
Pages:
Jump to: