accumulator / charge-lnd

charge-lnd is a simple policy based fee manager for LND. With this tool you can set fees to autobalance, recover channel open costs, use on-chain fees as reference, use channel activity to determine fees or just use static fees.
GNU General Public License v2.0
230 stars 44 forks source link

chan.min_local_balance unknown property #62

Closed Quenos closed 2 years ago

Quenos commented 2 years ago

I'm getting the following error message:

Error evaluating criteria for channel in policy '<charge_lnd.policy.Policy object at 0xb537a4d0>', ignoring channel. (Error=Unknown property 'chan.min_local_balance')

Quenos commented 2 years ago

Same goes for chan.max_local_balance

---EDIT--- Maybe related. I updated charge-lnd by re-installing, because I thought maybe it was a new feature recently added. However now I get the following error message: `GLIBC_2.33' not found

A search on the interwebs didn't yield any success in solving it.

I'm running it on a Raspi 4

martinatime commented 2 years ago

I'm getting the same for chan.activity_period

'<charge_lnd.policy.Policy object at 0xb52bb630>', ignoring channel. (Error=Unknown property 'chan.activity_period')

accumulator commented 2 years ago

I could not reproduce these errors, but there was one maybe related missing comma.

Can you test with latest master?

Quenos commented 2 years ago

I could but the new master is not running, bc I have a`GLIBC_2.33' not found error, which I'm unable to fix. Do you know how I can fix this?

accumulator commented 2 years ago

No.. It sounds like a problem with python itself. I assume you're not using docker to run charge-lnd?

Quenos commented 2 years ago

Docker is also not working getting following error msg. (both as user and sudo) Traceback (most recent call last): File "/usr/local/bin/charge-lnd", line 5, in from charge_lnd.charge_lnd import main File "/usr/local/lib/python3.10/site-packages/charge_lnd/charge_lnd.py", line 10, in from .lnd import Lnd File "/usr/local/lib/python3.10/site-packages/charge_lnd/lnd.py", line 5, in import grpc File "/usr/local/lib/python3.10/site-packages/grpc/init.py", line 19, in import logging File "/usr/local/lib/python3.10/logging/init.py", line 57, in _startTime = time.time() PermissionError: [Errno 1] Operation not permitted

martinatime commented 2 years ago

This is what I'm getting now Traceback (most recent call last): File "/home/admin/.local/bin/charge-lnd", line 6, in from charge_lnd.charge_lnd import main File "/home/admin/.local/lib/python3.7/site-packages/charge_lnd/charge_lnd.py", line 10, in from .lnd import Lnd File "/home/admin/.local/lib/python3.7/site-packages/charge_lnd/lnd.py", line 5, in import grpc File "/home/admin/.local/lib/python3.7/site-packages/grpc/init.py", line 22, in from grpc import _compression File "/home/admin/.local/lib/python3.7/site-packages/grpc/_compression.py", line 15, in from grpc._cython import cygrpc ImportError: /lib/arm-linux-gnueabihf/libc.so.6: version `GLIBC_2.33' not found (required by /home/admin/.local/lib/python3.7/site-packages/grpc/_cython/cygrpc.cpython-37m-arm-linux-gnueabihf.so)

martinatime commented 2 years ago

OK, I seem to have found a fix. Update the requirements.txt Set grpcio==1.40.0 Then not only did the GLIBC issue get fixed but so did the original issue. Maybe this is an issue with being on an RPi, or using debian buster, or something similar

Quenos commented 2 years ago

Yes this worked Thanks

accumulator commented 2 years ago

Problem seems to be that at least for 32 bit arm the pre-compiled package for grpio-1.41.0 is built against a too new cpython..

I had no problems on amd64/debian/bullseye.

Good find, I'll update the version

accumulator commented 2 years ago

note: also downgraded python docker base image, as newest base image is python 3.10, which doesn't have all dependencies pre-built

accumulator commented 2 years ago

@Quenos can you test latest docker image? (I have no arm based system to test on currently..)

Quenos commented 2 years ago

@Quenos can you test latest docker image? (I have no arm based system to test on currently..)

Getting this error msg: Fatal Python error: init_interp_main: can't initialize time Python runtime state: core initialized PermissionError: [Errno 1] Operation not permitted

Current thread 0xb6f41010 (most recent call first):

accumulator commented 2 years ago

Weird. Still thinking it's something with your setup though.. Can you test with v0.2.4? This one is known to work.