Contact the skin author, but my ‘guess’ is that the webserver process user
might not have permission to access the db file in your home directory.
On Saturday, June 7, 2025 at 12:31:27 PM UTC-7 lucien mornet wrote:
> Hello, I installed the obs skin, but access to the database fails. Excerpt
> from the conf section of weewx.conf for the wxobs skin:
> [StdReport]
> [[wxobs]]
> enable = true
> lang = en
> skin = wxobs
> HTML_ROOT = /var/www/html/weewx/wxobs
> unit_system = METRIC
> [[[Units]]]
> [[[[Groups]]]]
> group_direction = degree_compass
> group_percent = percent
> group_pressure = hPa
> group_rain = mm
> group_temperature = degree_C
> group_speed = km_per_hour
>
> lhas output var/log/lighttpd/error.log
>
> 2025-06-07 16:42:22: (mod_fastcgi.c.449) FastCGI-stderr:PHP Fatal error:
> Uncaught Exception: Unable to open database: unable to open database file
> in /var/www/html/weewx/wxobs/index.php:431
> 2025-06-07 16:42:22: (mod_fastcgi.c.449) FastCGI-stderr:Stack trace:
> 2025-06-07 16:42:22: (mod_fastcgi.c.449) FastCGI-stderr:#0
> /var/www/html/weewx/wxobs/index.php(431): SQLite3->__construct()
> 2025-06-07 16:42:22: (mod_fastcgi.c.449) FastCGI-stderr:#1 {main}
> 2025-06-07 16:42:22: (mod_fastcgi.c.449) FastCGI-stderr: thrown in
> /var/www/html/weewx/wxobs/index.php on line 431
>
> php8.2 install
>
> In the file: /var/www/html/weewx/wxobs The database path is correct.
> Extract from the file: index.php
>
> } elseif ($php_dbase === 'sqlite') {
> if ($debug=='1') {
> echo "<p class=\"debug\">database is sqlite with path/name:
> /home/lucien/weewx-data/archive/weewx.sdb</p>";
> }
> $db = new SQLite3($php_sqlite_db);
> } else {
> echo "<div class =\"alert\"><p>Failed to access the database by any
> known methods.</p></div>";
> }
>
> I don't know where to look anymore. Thank you for your help. Have a nice
> day.
>
>
>
--
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/f6dda55b-550d-4cf7-bb8b-4c348c83b45dn%40googlegroups.com.