Commit Graph

2 Commits

Author SHA1 Message Date
dave e5158cfdc7 make sqlite open errors clearer
Gitea/pysonic/pipeline/head This commit looks good Details
Gitea/pysonic/pipeline/pr-master This commit looks good Details
if filesystem permissions on the directory the sqlite database database file is in are such that the app cannot list or create files, sqlite gives a vague error:

```
sqlite3.OperationalError: unable to open database file
```

whereas python's open() will give a better hint ("permission denied"). So, we try opening the database file with python first.

also, add chmods to the startup scripts to avoid this issue in the future
2022-12-24 14:33:57 -08:00
dave 0c48fc013c dockerfile touchups for kube 2020-10-05 20:12:35 -07:00