Giter Site home page Giter Site logo

No such file or directory about wag HOT 16 CLOSED

nhas avatar nhas commented on May 28, 2024
No such file or directory

from wag.

Comments (16)

NHAS avatar NHAS commented on May 28, 2024 1

Ahhh, actually I see. On reload its wiping the path it tries to read. So then on the subsequent reload it has no path.

Sweet. latest commits should fix that.

from wag.

NHAS avatar NHAS commented on May 28, 2024 1

Should look like this on multiple config reloads now:

2022/09/09 07:43:38 Wag started successfully, Ctrl + C to stop
2022/09/09 07:43:41 Config reloaded
2022/09/09 07:45:32 Config reloaded
2022/09/09 07:45:33 Config reloaded
2022/09/09 07:45:33 Config reloaded

Have you rerun go build?

I did also do a binary release here: https://github.com/NHAS/wag/releases/tag/v1.0.4

from wag.

NHAS avatar NHAS commented on May 28, 2024

This will probably be from the config change that I made to fix the -config bug.

I was originally managing the state with IPtables and it was horrific, eBPF and XDP really work quite well in this instance, Im hoping to move the forwarding into the eBPF program if at all possible to further reduce the IPtables rules that I have to add.

As for centralised management, I think that'll be my next goal, at the moment its finding and fixing pain points like these.

Thanks for your compliments!

from wag.

NHAS avatar NHAS commented on May 28, 2024

I can replicate this, but only when the configuration file is moved after wag has been started.
From a UX perspective I suppose having the reload command take the -config argument may be misleading, as the reload command does not take arguments and purely reloads from previous file location.

from wag.

paulb-smartit avatar paulb-smartit commented on May 28, 2024

I'm not moving anything, just an edit (with vi) and reload. Don't know if it causes a change in the file descriptor or something the process is referencing.

from wag.

NHAS avatar NHAS commented on May 28, 2024

Hmmmm, I cant replicate that. The program only references the filepath, so nothing fancy is going on with the descriptors.

Im assuming you're running wag with everything in one folder?

from wag.

paulb-smartit avatar paulb-smartit commented on May 28, 2024

Hmmmm, I cant replicate that. The program only references the filepath, so nothing fancy is going on with the descriptors.

Im assuming you're running wag with everything in one folder?

Yes, all in /opt/wag

Currently, two terminal windows side by side, so I can see wag running and the effect of reload.

As for centralised management, I think that'll be my next goal, at the moment its finding and fixing pain points like these.

If you get this core stable, it'll be a great base to build on. It just seems very slick in the way it handles the acl's. It's very well suited to my needs.

from wag.

paulb-smartit avatar paulb-smartit commented on May 28, 2024

Boom, result!

2022/09/08 19:40:53 able to reload config
2022/09/08 19:40:53 Config reloaded

from wag.

NHAS avatar NHAS commented on May 28, 2024

The line able to reload config should no longer be printed in the fixed version. Can you just make sure that reloading twice works?

from wag.

NHAS avatar NHAS commented on May 28, 2024

(Otherwise I may have pushed an old version of wag into release)

from wag.

paulb-smartit avatar paulb-smartit commented on May 28, 2024

Ohh

2022/09/08 19:43:15 Wag started successfully, Ctrl + C to stop
2022/09/08 19:43:45 able to reload config
2022/09/08 19:43:45 Config reloaded
2022/09/08 19:44:00 Unable to reload config:  Unable to load configuration file from : open : no such file or directory

from wag.

NHAS avatar NHAS commented on May 28, 2024

Yep, thats still the old version!

from wag.

paulb-smartit avatar paulb-smartit commented on May 28, 2024
$ git pull
From https://github.com/NHAS/wag
 * [new tag]         v1.0.4     -> v1.0.4
Already up to date.

from wag.

paulb-smartit avatar paulb-smartit commented on May 28, 2024

I said I was a go novice

2022/09/08 19:46:51 Wag started successfully, Ctrl + C to stop
2022/09/08 19:46:55 Config reloaded
2022/09/08 19:46:56 Config reloaded
2022/09/08 19:46:57 Config reloaded
2022/09/08 19:46:57 Config reloaded

from wag.

NHAS avatar NHAS commented on May 28, 2024

Sweet! Glad thats all working for ya

from wag.

paulb-smartit avatar paulb-smartit commented on May 28, 2024

Many thanks

from wag.

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.