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

Local 'db' has already been initialized. #198

Open
keithmarsh opened this issue Jul 11, 2022 · 10 comments
Open

Local 'db' has already been initialized. #198

keithmarsh opened this issue Jul 11, 2022 · 10 comments

Comments

@keithmarsh
Copy link

1.8.1.5 installed with .deb
remove ~/.farmr
chia now at 1.4.0
starting farmr gives

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)
<asynchronous suspension>
@Melbar666
Copy link

getting the same error since chia update to 1.4.0

@cdgraff
Copy link

cdgraff commented Jul 27, 2022

+1 same here

@ZwaZo22
Copy link

ZwaZo22 commented Aug 3, 2022

+1 here as well (chia 1.4 on ubuntu)

@kvizena
Copy link

kvizena commented Aug 6, 2022

Same issue with Chia 1.5.0 running v1.8.1.5.

@kvizena
Copy link

kvizena commented Aug 6, 2022

The sqllite changes in v1.8.1.4 seem to be the problem.

Run v1.8.1.3 and it works in Debian on my NAS, as well as a couple of my Fedora machines as well.

@ZwaZo22
Copy link

ZwaZo22 commented Aug 6, 2022

The sqllite changes in v1.8.1.4 seem to be the problem.

Run v1.8.1.3 and it works in Debian on my NAS, as well as a couple of my Fedora machines as well.

Thanks @kvizena ! I confirm that It's working by downgrading to the v.1.8.1.3 on Ubuntu / Chia v.1.4.

@OutsmartinTech
Copy link

Same problem as others, can also confirm that downgrading to v1.8.1.3 worked for me as well.

@JaroslavHorky
Copy link

Hello, Can someone tell me how to install it?

I install it like this:

curl -0 https://guthub.com/gilnobrega/farmr/releases/download/v1.8.1.3/farmr-ubuntu-x86_64.deb
sudo apt install farmr-ubuntu-x86_64.deb

and I get this message :-(

Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package farmr-ubuntu-x86_64.deb

Thanks for help

@cdgraff
Copy link

cdgraff commented Aug 25, 2022

@JaroslavHorky you need install with dpkg

sudo dpkg -i farmr-ubuntu-x86_64.deb

@JaroslavHorky
Copy link

@JaroslavHorky you need install with dpkg

sudo dpkg -i farmr-ubuntu-x86_64.deb

Great @cdgraff . Thank you.

it works now.
I can only see half of my farm on farmr.net. I have two servers=two harvesters connected to each other. So do I have to install the same thing on the second linux server as well? Then I will see two farmers separately? Can it be connected somehow?

Thank you

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

7 participants