Replies: 3 comments 5 replies
-
Update: Okay I think I figured it out (may be obvious to some) but I think the initial script wasn't creating the tables in the mergedmining database due to the commented out /c line. I entered the lines manually and got past the relation error. However I'm still stuck on the panic Litecoin error: STATS END goroutine 20 [running]: Hoping I can figure this one out :D |
Beta Was this translation helpful? Give feedback.
-
Update: Okay so healthy node error is now gone as blockchains are synced. However new error to figure out: STATS END goroutine 7 [running]: |
Beta Was this translation helpful? Give feedback.
-
Update: Okay so past the zmq one by adding the following to conf files (editing ports for Litecoin) zmqpubrawblock=tcp://127.0.0.1:1220 Feel that that should have been obvious so my bad. ANDD.. it works server is up and running, I used screen to keep it running in background. Next problem.. I tried to connect a miner I rented from MMR and I'm getting this message on console: 2024/06/12 21:59:55 Successfully saved stats I think I'm going to struggle with this one though. |
Beta Was this translation helpful? Give feedback.
-
Hi, so I'm trying to fix this problem for a while now. I've got the Dogecoin and Litecoin nodes running successfully, rpc all works as tested via command line etc. I try to start the pool and get the error below.
root@related-urchin:~/merged-mining-pool# go run main.go
2024/06/11 21:03:51 Started Pool on port: 3643
2024/06/11 21:03:51 Stat Manager running every 2m0s with a hashrate window of 10m0s
2024/06/11 21:03:51 Started API on port: 8001
2024/06/11 21:03:51 Payouts manager running every 10m0s
STATS START
2024/06/11 21:03:51 Total CPU cores avaliable: 16
2024/06/11 21:03:51 Total Goroutines: 6
2024/06/11 21:03:51 Total System Memory: 7445520
2024/06/11 21:03:51 Total Memory Allocated: 335664
STATS END
2024/06/11 21:03:51 Share buffer flushes every 5s
2024/06/11 21:03:56 pq: relation "shares" does not exist
panic: litecoin
no healthy litecoin nodes!
goroutine 20 [running]:
designs.capital/dogepool/pool.panicOnError(...)
/root/merged-mining-pool/pool/server.go:114
designs.capital/dogepool/pool.(*PoolServer).Start(0xc000156d80)
/root/merged-mining-pool/pool/server.go:55 +0x1cb
created by main.startPoolServer in goroutine 1
/root/merged-mining-pool/main.go:45 +0x5f
exit status 2
root@related-urchin:~/merged-mining-pool# sudo -u postgres psql
psql (16.3 (Ubuntu 16.3-1.pgdg22.04+1))
Type "help" for help.
I figured maybe it's an issue with db, so I tried everything I could find online re Postgres relationship errors like adjusting the schema pathing, adjusting permissions, checking connection but nothing is working. On command line I try to access the db 'mergedmining' but it still shows no relations but weirdly when I run /dt when I'm not connected the db directly I get a correct list of relations (see below for example).
I then started a new fresh instance to reinstall and note down my steps (see below)
Postgres
sudo apt update && sudo apt upgrade
sudo sh -c 'echo "deb https://apt.PostgreSQL.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list'
wget --quiet -O - https://www.PostgreSQL.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
sudo apt update
sudo apt install postgresql-16 -y
sudo systemctl status postgresql
cd
git clone https://github.com/dreams-money/merged-mining-pool.git
cd merged-mining-pool/persistence/schema
// I then copied the .sql scripts to /var/lib/postgresql so that I had read permission.
sudo -i -u postgres
psql
\i 1-initiate.sql
\i 2-schema.sql
exit
psql
\i 3-multi-pool-partition.sql
\q
psql
\dt
// Returns
List of relations
Schema | Name | Type | Owner
--------+-----------------+-------------------+--------------
public | balance_changes | table | mergedmining
public | balances | table | mergedmining
public | blocks | table | mergedmining
public | miner_settings | table | mergedmining
public | minerstats | table | mergedmining
public | payments | table | mergedmining
public | poolstats | table | mergedmining
public | shares | partitioned table | mergedmining
public | shares_mypool1 | table | mergedmining
(9 rows)
\
\c mergedmining
\ You are now connected to database "mergedmining" as user "postgres".
\dt
\ Did not find any relations.
\c "host=127.0.0.1 port=5432 dbname=mergedmining user=mergedmining password=asdfasdf"
\ SSL connection (protocol: TLSv1.3, cipher: TLS_AES_256_GCM_SHA384, compression: off)
\ You are now connected to database "mergedmining" as user "mergedmining" on host "127.0.0.1" at port "5432".
\dt
\ Did not find any relations.
So still getting the same and I expect if I were to install the nodes and run go on this instance I would get the same issue.
Any ideas please? I am stuck. If you provide an ETH address happy to provide a small bounty for a successful fix, Sorry for poor formatting above, not used to Github.
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions