HEnquist / camillagui-backend

Backend server for camillagui
GNU General Public License v3.0
18 stars 4 forks source link

[offline mode] no active config shown #20

Closed bitkeeper closed 3 years ago

bitkeeper commented 3 years ago

Not active config shown. When using the online version this doesn't occure.

Steps to reproduce:

  1. change link to active config a.yml
  2. start camillagui backend
  3. open web gui
  4. [result: correct config loaded and name on the left panel]
  5. close web gui
  6. next change link active config to b.yml
  7. open webgui
  8. [result: no config loaded and missing name on the left panel] image

If I do a camillagui-backedn restart before step 7. everything is fine. As note during step 6 also a SIGHUP is send to the running camilladsp (which in this case is the backup cdsp).

JWahle commented 3 years ago

I cannot reproduce the issue on my Ubuntu PC and I don't understand, how this could happen. As far as I see, you create the link via ln -s -f TARGET LINK_NAME - exactly like the camillagui-backend does. The backend does not store any internal state regarding the active config, other than the link. Thus, if the link points to a valid file, it should get picked up immediately by the GUI. I will have a look at this on my Raspi with the new moOde test release.

JWahle commented 3 years ago

The problem is, that your SIGHUP signal kills the internal CDSP started by the GUIs backend. I created this issue for CDSP to solve the problem.

bitkeeper commented 3 years ago

Thanks for finding out, good catch!