Library Setup Failed after Update - Won't Launch

Hello,

I am running this as a docker within my Unraid 6.9.2 setup. I saw that an update was available within unraid and applied the update. Since the update completed my PhotoStructure docker no longer is launching - see the log below. I appreciate any guidance/direction to help get this back up and running. The update I believe was pulled from photostructure/server:latest

Thanks!

exit {
reason: 'Library setup failed: ¹: ModelDbJanitor.setup(): SqliteError: UNKNOWN_SQLITE_ERROR_1544: attempt to write a readonly database: Failed to set up /ps/tmp/local-db-ttmp-61d3-bqnn-v5vq/models/db.sqlite3¹',

status: 13
}
exit {
reason: 'sync setup failed: ModelDbJanitor.setup(): SqliteError: UNKNOWN_SQLITE_ERROR_1544: attempt to write a readonly database: Failed to set up /ps/tmp/local-db-ttmp-61d3-bqnn-v5vq/models/db.sqlite3¹',

status: 14
}
exit {
reason: 'unhandledRejection: SqliteError: UNKNOWN_SQLITE_ERROR_1544: attempt to write a readonly database: Failed to set up /ps/tmp/local-db-ttmp-61d3-bqnn-v5vq/models/db.sqlite3¹',

status: 13
}
exit {
reason: 'unhandledRejection: SqliteError: UNKNOWN_SQLITE_ERROR_1544: attempt to write a readonly database: Failed to set up /ps/tmp/local-db-ttmp-61d3-bqnn-v5vq/models/db.sqlite3¹',

status: 13
}
exit {
reason: "Can't restart sync, failure rate is too high.¹",
status: 13
}
exit {
reason: 'Library setup failed: ¹: ModelDbJanitor.setup(): SqliteError: UNKNOWN_SQLITE_ERROR_1544: attempt to write a readonly database: Failed to set up /ps/tmp/local-db-ttmp-61d3-bqnn-v5vq/models/db.sqlite3¹',

status: 13
}
exit {
reason: 'sync setup failed: ModelDbJanitor.setup(): SqliteError: UNKNOWN_SQLITE_ERROR_1544: attempt to write a readonly database: Failed to set up /ps/tmp/local-db-ttmp-61d3-bqnn-v5vq/models/db.sqlite3¹',

status: 14
}
exit {
reason: 'unhandledRejection: SqliteError: UNKNOWN_SQLITE_ERROR_1544: attempt to write a readonly database: Failed to set up /ps/tmp/local-db-ttmp-61d3-bqnn-v5vq/models/db.sqlite3¹',

status: 13
}
exit {
reason: 'unhandledRejection: SqliteError: UNKNOWN_SQLITE_ERROR_1544: attempt to write a readonly database: Failed to set up /ps/tmp/local-db-ttmp-61d3-bqnn-v5vq/models/db.sqlite3¹',

status: 13
}
exit {
reason: "Can't restart sync, failure rate is too high.¹",
status: 13
}
exit {
reason: 'Library setup failed: ¹: ModelDbJanitor.setup(): SqliteError: UNKNOWN_SQLITE_ERROR_1544: attempt to write a readonly database: Failed to set up /ps/tmp/local-db-ttmp-61d3-bqnn-v5vq/models/db.sqlite3¹',

status: 13
}
exit {
reason: 'sync setup failed: ModelDbJanitor.setup(): SqliteError: UNKNOWN_SQLITE_ERROR_1544: attempt to write a readonly database: Failed to set up /ps/tmp/local-db-ttmp-61d3-bqnn-v5vq/models/db.sqlite3¹',

status: 14
}
exit {
reason: 'unhandledRejection: SqliteError: UNKNOWN_SQLITE_ERROR_1544: attempt to write a readonly database: Failed to set up /ps/tmp/local-db-ttmp-61d3-bqnn-v5vq/models/db.sqlite3¹',

status: 13
}
exit {
reason: 'unhandledRejection: SqliteError: UNKNOWN_SQLITE_ERROR_1544: attempt to write a readonly database: Failed to set up /ps/tmp/local-db-ttmp-61d3-bqnn-v5vq/models/db.sqlite3¹',

status: 13
}
exit {
reason: "Can't restart sync, failure rate is too high.¹",
status: 13
}
exit {
reason: 'Library setup failed: ¹: ModelDbJanitor.setup(): SqliteError: UNKNOWN_SQLITE_ERROR_1544: attempt to write a readonly database: Failed to set up /ps/tmp/local-db-ttmp-61d3-bqnn-v5vq/models/db.sqlite3¹',

status: 13
}
exit {
reason: 'sync setup failed: ModelDbJanitor.setup(): SqliteError: UNKNOWN_SQLITE_ERROR_1544: attempt to write a readonly database: Failed to set up /ps/tmp/local-db-ttmp-61d3-bqnn-v5vq/models/db.sqlite3¹',

status: 14
}
exit {
reason: 'unhandledRejection: SqliteError: UNKNOWN_SQLITE_ERROR_1544: attempt to write a readonly database: Failed to set up /ps/tmp/local-db-ttmp-61d3-bqnn-v5vq/models/db.sqlite3¹',

status: 13
}
exit {
reason: 'unhandledRejection: SqliteError: UNKNOWN_SQLITE_ERROR_1544: attempt to write a readonly database: Failed to set up /ps/tmp/local-db-ttmp-61d3-bqnn-v5vq/models/db.sqlite3¹',

status: 13
}
exit {
reason: "Can't restart sync, failure rate is too high.¹",
status: 13
}

Welcome to PhotoStructure, @naelam ! Apologies that things didn’t just work right out of the box.

The official docker template suggests using the :stable tag. There was a bug in the last github actions builder that pushed the latest v2.1.0-alpha.7 build to the :latest tag (that I just fixed a couple days ago).

So–if you pulled :latest, you’re running the alpha build right now. That build is what I’m running personally, but you may find issues with it (see this post for details).

In any event, it looks like SQLite can’t write to your /ps/tmp directory. You’ve either got a permissions issue, or your library isn’t on a local disk.

If your /ps/library is on a local hard drive or SSD, add this environment variable to your template: PS_FORCE_LOCAL_DB_REPLICA=false.

More details are here: What’s PS_FORCE_LOCAL_DB_REPLICA?

As far as permissions issues, check out the PUID/PGID docs here.

Finally, this post may have some tips for setting up your UnRAID box (especially the cache): Tkohhh’s recommended Unraid setup