Coder Social home page Coder Social logo

Comments (19)

dtaht avatar dtaht commented on May 28, 2024 1

done?

also lqos is shorter... - symlink?

from libreqos.

dtaht avatar dtaht commented on May 28, 2024 1

I think we have settled for lqos as the script name. AS for the locking issue?

from libreqos.

dtaht avatar dtaht commented on May 28, 2024

a short term fix by using crontab, "cd therightdir; LibreQos whatever".

Certainly having more options that make sense would be good.

from libreqos.

interduo avatar interduo commented on May 28, 2024

The same fix should be done for lqTools.py.

from libreqos.

interduo avatar interduo commented on May 28, 2024

This is still a thing.

from libreqos.

interduo avatar interduo commented on May 28, 2024

lq.sh ?

from libreqos.

dtaht avatar dtaht commented on May 28, 2024

Someday it wont be a shell script. lq has a high probability of colliding with something...

from libreqos.

interduo avatar interduo commented on May 28, 2024

Sorry I mean lq.py so You need always to write extension

from libreqos.

interduo avatar interduo commented on May 28, 2024

lqos.py is a good name.

from libreqos.

rchac avatar rchac commented on May 28, 2024

Fixed with 9ad1de6

from libreqos.

interduo avatar interduo commented on May 28, 2024

@rchac You closed different issue than mentioned in commit. I reopened it - my tests

ssh sshuser@libreqos -c '/opt/libreqos/src/LibreQoS.py --updateonly'

lqosd is running
refreshShapers starting at 07/02/2023 15:20:13
Rust validated ShapedDevices.csv
Traceback (most recent call last):
  File "/opt/libreqos/src/LibreQoS.py", line 1331, in <module>
    refreshShapersUpdateOnly()
  File "/opt/libreqos/src/LibreQoS.py", line 928, in refreshShapersUpdateOnly
    if (validateNetworkAndDevices() == True):
  File "/opt/libreqos/src/LibreQoS.py", line 139, in validateNetworkAndDevices
    with open('network.json') as file:
FileNotFoundError: [Errno 2] No such file or directory: 'network.json'

from libreqos.

rchac avatar rchac commented on May 28, 2024

Just to better understand, you're wanting this ability so that you can run from crontab instead of systemd?

from libreqos.

interduo avatar interduo commented on May 28, 2024

I would like to have reloading done immediately after uploading file - so I run this magic command through SSH.

Doing it is good like that because I get back errors to my CRM when occurs.

image

@rchac how can I run --updateonly with systemd?

In other scenario/method:
I can wait less than minute. (and not run a trigger command with --updateonly) - but what about errors (in this scenario i would not see them)?

from libreqos.

rchac avatar rchac commented on May 28, 2024

Is it possible to just SCP the ShapedDevices.csv file to /opt/libreqos then run --updateonly? Both the python and rust side look for a bunch of files to be available to them in the /opt/libreqos/src folder.

from libreqos.

interduo avatar interduo commented on May 28, 2024

@rchac I get few hours and do an update to current master branch state

# git status
HEAD detached from 6e92a07
nothing to commit, working tree clean

running command:
root@libreqos:~# /opt/libreqos/src/LibreQoS.py --updateonly

generates an error:

Running Python Version 3.10.6 (main, Mar 10 2023, 10:55:28) [GCC 11.3.0]
lqosd is running
lqosd is running
refreshShapers starting at 21/03/2023 16:24:47
Rust validated ShapedDevices.csv
Traceback (most recent call last):
  File "/opt/libreqos/src/LibreQoS.py", line 1369, in <module>
    refreshShapersUpdateOnly()
  File "/opt/libreqos/src/LibreQoS.py", line 952, in refreshShapersUpdateOnly
    if (validateNetworkAndDevices() == True):
  File "/opt/libreqos/src/LibreQoS.py", line 140, in validateNetworkAndDevices
    with open('network.json') as file:
FileNotFoundError: [Errno 2] No such file or directory: 'network.json'

from libreqos.

rchac avatar rchac commented on May 28, 2024

@interduo Your network.json file seems to be missing

from libreqos.

interduo avatar interduo commented on May 28, 2024

@rchac

root@libreqos:~# ls -la /opt/libreqos/src/network.json 
-rw-r--r-- 1 root root 3 Jan 20 14:20 /opt/libreqos/src/network.json

from libreqos.

dtaht avatar dtaht commented on May 28, 2024

This looks complete?

from libreqos.

interduo avatar interduo commented on May 28, 2024

No it isn't or what commit fixed that?

from libreqos.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.