On Mon, 16 Jun 2025 at 18:57, 'lucien mornet' via weewx-user < [email protected]> wrote:
> Hello, If the permissions on /home weren't correct, > the Belchertown and Seasons skins wouldn't work? > And by that you mean they are. OK. But Seasons/wxobs isn't... > What information would you need? > The results from the test.php file that I outlined previously, that file placed within your wxobs directory then accessed by your web browser. That will show whether you have a working php installation (critical) , and if the wxobs directory is indeed available (readable). It will also indicate if SQLite is installed - with some interpretation required. You've supplied the error messages that weewx throws but have not mentioned whether you get the wxobs page displaying in the browser. I'd expect it to at least display the built in error page that complains about no database being available (a message that is contained within that index.php page). I'm guessing - and it is a guess as I have nothing else to work from yet - that it's failing before the page is generated. > > Le jeudi 12 juin 2025 à 03:24:59 UTC+2, vince a écrit : > >> On a pi using a venv, the usual error is that $HOME is mode 700 and the >> webserver cannot read through the top of $HOME down into the www-data files >> therein. So for this thread I'd suggest Lucien check his permissions on >> $HOME and which groups user 'lucien' and whatever user the webserver runs >> as (www-data usually). >> >> My guess is that if you run the following commands your output will look >> something like: >> >> $ ls -al /home >> total 20 >> drwxr-xr-x 5 root root 4096 May 13 22:57 . >> drwxr-xr-x 18 root root 4096 Mar 15 2024 .. >> drwx------ 10 lucien lucien 4096 Dec 12 11:54 lucien >> >> $ groups lucien >> lucien: lucien users >> >> $ groups www-data >> www-data: www-data >> >> (so by default, the webserver cannot read files under the other account's >> $HOME) >> >> At a minimum, it might be worth a quick check to see more info on the >> configuration. Lucien's problem descriptions are a bit minimal.... >> >> It would still be helpful to know exactly what your results are to Vinces observations. It is sound advice and helps clarify what your installation is. What are your home permissions? What is your output for groups lucien, and groups www-data? Additionally, permissions of /home/lucien/weewx-data and in particular /home/lucien/weewx-data/archive/ and the files within. If the webserver cannot read /home/lucien/weewx-data/archive/weewx.sdb then it will never work. And just to be redundant, and remove all doubt, your permissions for /home/lucien/weewx-data/public_html If you don't want to post all that info to this group, then my email box is still vacant; and I'd still like to see those files I asked for previously. You can also send the output (saved html) of the test.php file as well. FWIW. I can't duplicate this error here - yet. So more clues are needed. You supplied the error log for lighttpd. What is the error message that apache2 throws to its error.log. Send that as well. Cheers Glenn Various WeeWx addons at https://github.com/glennmckechnie -- You received this message because you are subscribed to the Google Groups "weewx-user" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion visit https://groups.google.com/d/msgid/weewx-user/CAAraAzinFB%2BzPXiNBE4VdBKLwR%2BkEGzKDG_CW9_%2Bf0NeZfEuQQ%40mail.gmail.com.
