Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to scan new files on external library #9598

Closed
1 of 3 tasks
alsvartr opened this issue May 19, 2024 · 2 comments
Closed
1 of 3 tasks

Failed to scan new files on external library #9598

alsvartr opened this issue May 19, 2024 · 2 comments

Comments

@alsvartr
Copy link

The bug

After 1.105.1 when trying to scan new files on external library I get erros from immich-microservices container:

[Nest] 7  - 05/19/2024, 1:21:11 PM   ERROR [JobService] Unable to run job handler (library/library-refresh-asset): QueryFailedError: column AssetEntity.isReadOnly does not exist
[Nest] 7  - 05/19/2024, 1:21:11 PM   ERROR [JobService] QueryFailedError: column AssetEntity.isReadOnly does not exist
    at PostgresQueryRunner.query (/usr/src/app/node_modules/typeorm/driver/postgres/PostgresQueryRunner.js:219:19)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async SelectQueryBuilder.loadRawResults (/usr/src/app/node_modules/typeorm/query-builder/SelectQueryBuilder.js:2192:25)
    at async SelectQueryBuilder.getRawMany (/usr/src/app/node_modules/typeorm/query-builder/SelectQueryBuilder.js:646:29)
    at async SelectQueryBuilder.executeEntitiesAndRawResults (/usr/src/app/node_modules/typeorm/query-builder/SelectQueryBuilder.js:1979:26)
    at async SelectQueryBuilder.getRawAndEntities (/usr/src/app/node_modules/typeorm/query-builder/SelectQueryBuilder.js:684:29)
    at async SelectQueryBuilder.getOne (/usr/src/app/node_modules/typeorm/query-builder/SelectQueryBuilder.js:711:25)
    at async LibraryService.handleAssetRefresh (/usr/src/app/dist/services/library.service.js:343:37)
    at async /usr/src/app/dist/services/job.service.js:149:36
    at async Worker.processJob (/usr/src/app/node_modules/bullmq/dist/cjs/classes/worker.js:394:28)
[Nest] 7  - 05/19/2024, 1:21:11 PM   ERROR [JobService] Object:
{
  "id": "2570d716-c2d4-42c1-ae03-0ac98ce1417c",
  "assetPath": "/mnt/data/2014/IMG_20140810_181241.jpg",
  "ownerId": "4677f99e-4885-4f66-b721-4b4d7067f7ba",
  "force": false
}

The OS that Immich Server is running on

Ubuntu 20.04, container environment

Version of Immich Server

v1.105.1

Version of Immich Mobile App

v1.105.1

Platform with the issue

  • Server
  • Web
  • Mobile

Your docker-compose.yml content

Standart docker-compose.yml from docs

Your .env content

Standart env from docs

Reproduction steps

1. Add external library
2. Copy new files to it on filesystem
3. Run "Scan new library files"

Relevant log output

No response

Additional information

No response

@bo0tzz
Copy link
Member

bo0tzz commented May 19, 2024

The isReadOnly column was removed in 1.104.0. Your microservices container probably failed to update, make sure it is running the latest image.

@alsvartr
Copy link
Author

The isReadOnly column was removed in 1.104.0. Your microservices container probably failed to update, make sure it is running the latest image.

My bad, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants