Skip to content

fix: permissions #40

@lklynet

Description

@lklynet

I'm trying to launch this as a completely new instance, and I get:

aurral-1 | /app/backend/node_modules/better-sqlite3/lib/database.js:69
aurral-1 | ch d Detac[util.cppdb]: { value: new addon.Database(filename, filenameGiven, anonymous, readonly, fileMustExist, timeout, verbose || null, buffer || null) },
aurral-1 | ^
aurral-1 | SqliteError: unable to open database file
aurral-1 | at new Database (/app/backend/node_modules/better-sqlite3/lib/database.js:69:26)
aurral-1 | at file:///app/backend/config/db-sqlite.js:16:12
aurral-1 | at ModuleJob.run (node:internal/modules/esm/module_job:325:25)
aurral-1 | at async ModuleLoader.import (node:internal/modules/esm/loader:606:24)
aurral-1 | at async asyncRunEntryPointWithESMLoader (node:internal/modules/run_main:117:5) {
aurral-1 | code: 'SQLITE_CANTOPEN'
aurral-1 | }
aurral-1 |
aurral-1 | Node.js v20.20.0
aurral-1 exited with code 1 (restarting)

This is due to the data folder getting created as root first, but then the application drops inside as UID1001 - causing the folder not to be writable.

So best to ask people to create the folder in advance with the right permissions :-)
Also looks like running on a different port works out of the box now, great.

edit: unfortunately, for me, it seems the recommendations are broken:
aurral-1 | Found 113 artists in library.
aurral-1 | Sampling tags/genres from 25 artists (113 library, 0 Last.fm)...
aurral-1 | Found tags for 0 out of 25 artists

Originally posted by @Wireheadbe in #36

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions