kiauh icon indicating copy to clipboard operation
kiauh copied to clipboard

ConditionPathExists in NginX service requires /etc/octopi_streamer/hls

Open hllhll opened this issue 2 years ago • 3 comments

Linux Distribution

Linux octopi 5.4.79-v7l+ #1373 SMP Mon Nov 23 13:27:40 GMT 2020 armv7l GNU/Linux

What happened

Trying to install Fluidd on a pre-existing OctoPrint installation in an octopi image, Script recommended to remove haproxy and replace it with NginX. I Accepted. Now NginX won't start. Basically killed my existing OctoPrint installation.

pi@octopi:~/kiauh $ sudo service nginx status
● nginx.service - NGINX server for serving HLS and JPEG frames
   Loaded: loaded (/lib/systemd/system/nginx.service; enabled; vendor preset: enabled)
   Active: inactive (dead)
Condition: start condition failed at Sat 2022-06-25 20:19:57 BST; 3s ago
           └─ ConditionPathExists=/etc/octopi_streamer/hls was not met
     Docs: man:nginx(8)

Jun 25 20:01:45 octopi systemd[1]: Condition check resulted in NGINX server for serving HLS and JPEG frames being skipped.

What did you expect to happen

Installation would not cause any problems with existing, running, working instance

How to reproduce

  1. Use an octopi image
  2. Install Klipper
  3. Install (manually) Moonraker
  4. Use this script to install Fluidd
  5. Try to access any of the interfaces. Moonraker interface works. Both Fluidd and OctoPi are not reachable

Additional information

No response

hllhll avatar Jun 25 '22 19:06 hllhll

Fix (for me): Comment out this next line in /lib/systemd/system/nginx.service # ConditionPathExists=/etc/octopi_streamer/hls Then start NginX sudo service nginx start

hllhll avatar Jun 25 '22 19:06 hllhll

KIAUH doesn't officially support OctoPi images. And i don't plan to support them as they basically come with conflicting software out of the box (and configs(??) as we can see now?).

Though, i have never seen this issue and i didn't even know of that NGINX start condition. So in turn i have no idea where to comment out the line you mention.

dw-0 avatar Jun 25 '22 19:06 dw-0

I Wonder myself where this is coming from, Haven't inspected Nginx installation script thoroughly though. Looks like when NginX is installed/configured something along the pipeline requires a specific "thing" that has to do with octoprint. Maybe this is a NginX that was pre-configured (but not active?) with OctoPi... Will look this up also in octopi/print

hllhll avatar Jun 25 '22 19:06 hllhll