gilnobrega / farmr

A web dashboard for monitoring Chia farms. Also supports discord and email notifications.
GNU General Public License v3.0
250 stars 44 forks source link

Local 'db' has already been initialized. #198

Open keithmarsh opened 2 years ago

keithmarsh commented 2 years ago

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 commented 2 years ago

getting the same error since chia update to 1.4.0

cdgraff commented 2 years ago

+1 same here

ZwaZo22 commented 2 years ago

+1 here as well (chia 1.4 on ubuntu)

kvizena commented 2 years ago

Same issue with Chia 1.5.0 running v1.8.1.5.

kvizena commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

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

JaroslavHorky commented 2 years ago

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 commented 2 years ago

@JaroslavHorky you need install with dpkg

sudo dpkg -i farmr-ubuntu-x86_64.deb

JaroslavHorky commented 2 years ago

@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