Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

trouble opening run/lighttpd [fixed], trouble loading http://IP:81 [fixed] #1

Open
dewbobdewbob opened this issue Apr 17, 2023 · 11 comments

Comments

@dewbobdewbob
Copy link

When I get to the step sudo chown -R $USER:$USER /var/run/lighttpd, i get the message "chown: cannot access '/var/run/lighttpd': No such file or directory".

What am I doing wrong?

@dewbobdewbob
Copy link
Author

@sn4k3

@sn4k3
Copy link
Owner

sn4k3 commented Apr 18, 2023

lighttpd may change location on newer systems. try to find it location: whereis lighttpd

@dewbobdewbob
Copy link
Author

dewbobdewbob commented Apr 19, 2023

When I do that, I get lighttpd: /usr/sbin/lighttpd /usr/lib/lighttpd /etc/lighttpd /usr/share/lighttpd /usr/share/man/man8/lighttpd.8.gz

What am i supposed to do with that info? None of them say "run". Sorry, I'm a noob at coding.

@dewbobdewbob
Copy link
Author

dewbobdewbob commented Apr 19, 2023

Basically, what I'm trying to troubleshoot is, I cannot get the sensor to read data on Octopi. At some point, I was able to load the frontend onto Octopi, but now nothing shows.
image

@sn4k3
Copy link
Owner

sn4k3 commented Apr 21, 2023

When I do that, I get lighttpd: /usr/sbin/lighttpd /usr/lib/lighttpd /etc/lighttpd /usr/share/lighttpd /usr/share/man/man8/lighttpd.8.gz
What am i supposed to do with that info? None of them say "run". Sorry, I'm a noob at coding.

You need to use those path's instead of the old /var/run, newer systems may use different path for lighttpd, I will check latter and get back to you

@dewbobdewbob
Copy link
Author

dewbobdewbob commented Apr 21, 2023

I redownloaded Octopi and started going through your installation instruction for SDS011 Frontend again, this time it didn't throw a fuss about sudo chown -R $USER:$USER /var/run/lighttpd, so it seems like that issue went away.
But now, I am getting a message that says: Run "service lighttpd force-reload" to enable changes

image

When I type service lighttpd force-reload, I get this:

image

I am wondering if the error messages I am getting for python3 /var/www/html/scripts/aqi3.py debug is the reason why my SDS011 readings won't show up on my Octoprint SDS011 tab.

image

@dewbobdewbob
Copy link
Author

dewbobdewbob commented Apr 21, 2023

Actually, python3 /var/www/html/scripts/aqi3.py debug works now for me, i went and changed my serial port from the default /dev/ttyUSB0 to /dev/ttyUSB1
image

I was also able to get service lighttpd force-reload to work be typing it in again.

But, I still can't get it to show up on my SDS011 tab on Octoprint
image

@gstrauss
Copy link

When I get to the step sudo chown -R $USER:$USER /var/run/lighttpd, i get the message "chown: cannot access '/var/run/lighttpd': No such file or directory".

No such file or directory means exactly that; the path does not exist.
Maybe a startup script needs to mkdir -p /var/run/lighttpd each time at startup, before attempting the chown.
Maybe, on newer systems /run/lighttpd should be used instead of /var/run/lighttpd.

@dewbobdewbob dewbobdewbob changed the title trouble opening run/lighttpd trouble opening run/lighttpd [fixed], trouble loading Apr 24, 2023
@dewbobdewbob dewbobdewbob changed the title trouble opening run/lighttpd [fixed], trouble loading trouble opening run/lighttpd [fixed], trouble loading http://IP:81 Apr 24, 2023
@dewbobdewbob
Copy link
Author

@gstrauss I was able to get /var/run/lighttpd after I downloaded Octopi.

Because of that, I was able to get python3 /var/www/html/scripts/aqi3.py debug working as well.

Now my current problem is that I cannot get the HTTP server to work (the SDS011 tab on Octopi).

@dewbobdewbob
Copy link
Author

Oh wow, i got the HTTP server to work finally as well. I just made sure that all the www-data were changed to pi, not just the ones that were specified in the installation steps.

@dewbobdewbob dewbobdewbob changed the title trouble opening run/lighttpd [fixed], trouble loading http://IP:81 trouble opening run/lighttpd [fixed], trouble loading http://IP:81 [fixed] Apr 24, 2023
@sn4k3
Copy link
Owner

sn4k3 commented Apr 24, 2023

Adding pi to www-data is part of the script: sudo usermod -a -G $USER www-data

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants