Skip to content
This repository has been archived by the owner on Dec 31, 2022. It is now read-only.

kinda weird worked fine, until.... #204

Open
DrBlackross opened this issue Oct 28, 2022 · 0 comments
Open

kinda weird worked fine, until.... #204

DrBlackross opened this issue Oct 28, 2022 · 0 comments

Comments

@DrBlackross
Copy link

kinda weird worked fine, until i (re)installed chia-blockchain using apt'd
my drives are their seperate, as well as the .chia directory. but i use a RPI4 for chia farmer.... the .chia directory is linked in linux to my logins home directory and works fine normally. but before the card image crashed i used the python version of chia on my raspberry pi, farmr worked great.

sooo after this reinstall of chia (using apt install chia-blockchain), everything works for chia, but farmr doesn't see the chia binary with the latest version of farmr (v1.8.1.5).... so, i ran into this error

pi@Chia-Reba:~ $ farmr
Starting farmr for chia in Farmer mode...
Unhandled exception:
LateInitializationError: Local 'db' has already been initialized.
#0 LateError._throwLocalAlreadyInitialized (dart:_internal-patch/internal_patch.dart:204)
#1 openSQLiteDB (package:farmr_client/utils/sqlite.dart:16)
#2 Cache._createTables (package:farmr_client/cache/cacheIO.dart:40)
#3 new Cache (package:farmr_client/cache/cacheIO.dart:34)
#4 Blockchain.init (package:farmr_client/blockchain.dart:237)
#5 main (file:///home/runner/work/farmr/farmr/farmr.dart:180)

yes, deleted the .farmr directory etc from this post #198 and rolled back to v1.8.1.3 of farmr
using apt

pi@Chia-Reba:~ $ sudo apt install ./farmr-ubuntu-aarch64.deb
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Note, selecting 'farmr' instead of './farmr-ubuntu-aarch64.deb'
The following NEW packages will be installed:
farmr
0 upgraded, 1 newly installed, 0 to remove and 15 not upgraded.

but now all i get is....

pi@Chia-Reba:~ $ farmr
Starting farmr for chia in Farmer mode...
Specify your chia-blockchain directory below: (e.g.: /home/user/chia-blockchain)
/home/pi/.chia/mainnet
Uh oh, that directory could not be found! Please try again.
Specify your chia-blockchain directory below: (e.g.: /home/user/chia-blockchain)
/media/chia/mainnet/db
Could not locate chia binary in your directory.
(/media/chia/mainnet/db/venv/bin/chia not found)
Please try again.
Make sure this folder has the same structure as Chia's GitHub repo.
Specify your chia-blockchain directory below: (e.g.: /home/user/chia-blockchain)
/opt/chia/resources/app.asar.unpacked/daemon/chia
Uh oh, that directory could not be found! Please try again.
Specify your chia-blockchain directory below: (e.g.: /home/user/chia-blockchain)
/media/chia
Could not locate chia binary in your directory.
(/media/chia/venv/bin/chia not found)
Please try again.
Make sure this folder has the same structure as Chia's GitHub repo.
Specify your chia-blockchain directory below: (e.g.: /home/user/chia-blockchain)
/media/chia/
Could not locate chia binary in your directory.
(/media/chia//venv/bin/chia not found)
Please try again.
Make sure this folder has the same structure as Chia's GitHub repo.
Specify your chia-blockchain directory below: (e.g.: /home/user/chia-blockchain)
/usr/bin/chia
Uh oh, that directory could not be found! Please try again.
Specify your chia-blockchain directory below: (e.g.: /home/user/chia-blockchain)

LOL

when i know its somewhere in here

pi@Chia-Reba:~ $ sudo find / -name chia
/opt/chia
/opt/chia/resources/app.asar.unpacked/daemon/chia
/opt/chia/chia
find: ‘/proc/69030/task/69030/net’: Invalid argument
find: ‘/proc/69030/net’: Invalid argument
/var/lib/docker/overlay2/861845030eb7a9c2fd8b9866290ff86d144d5a18dceb5d8e264215f56a70cc0c/diff/chia-blockchain/chia
/var/lib/docker/overlay2/861845030eb7a9c2fd8b9866290ff86d144d5a18dceb5d8e264215f56a70cc0c/diff/chia-blockchain/venv/bin/chia
/var/lib/docker/overlay2/f1324be5bd9a795e784f0313adb2350ce9633d513ed9de5a85e153f3c2991ff2/diff/chia-blockchain/chia
/media/chia
/usr/bin/chia
/home/pi/.local/share/virtualenvs/chia-monitor-aEplZTDe/lib/python3.9/site-packages/chia
/home/pi/.local/share/virtualenvs/chia-monitor-aEplZTDe/bin/chia

sooo, my question is there a way to use the latest farmr to point to the correct chia?
(i think that's what im asking)

anyway i need help lol

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant