Import CLI fail - libraryId must be ... [400]
hi - I could use some help...
am trying to run import CLI method
import is coming off a ssh mount (previously was successful with nfs mount)
EDIT: am using ssh key pair with NAS... wait a second --- do I actually need to generate keypair within the immich container? (am very novice at comprehension of docker)
(i am using ubuntuserv + casaos + portainer to install the stack)
currently main library is local at ~/immich-library/upload (777)
the mounted nas is at /mnt/nas/familyphotos (777)
whether I run in 'local' CLI or within the immich_server container, its the same result:
scans library gives y/n, processes all, and then a million errors of
* response: {
message: [
'libraryId must be a UUID',
'libraryId should not be empty',
'libraryId must be a string'
],
error: 'Bad Request',
statusCode: 400
}
*
I am not seeing any log entries in any of the immich containers.. I don't understand what is wrong with my 'libraryId".. pasted my .env as well...
any help here would be hot

12 Replies
I think this is a bug/the cli us not updated yet to work with the newly released libeary feature
This has actually been fixed, but not released yet
Actually this should be fixed in 1.79.1 already. What version is your server running?
I’m using 1.79.1
On the last version I used this method on an nfs drive instead of ssh mounted
Is it essential to have library as ./ in the path?
You can change it as you wish, the ./ just to put the default location to the same place as the docker-compose file
@Alex i have a fix in a PR ready to merge
apologize for delay - is this considered a bug?
response: {
status: 400,
statusText: 'Bad Request',
headers: [Object],
config: [Object],
request: [ClientRequest],
data: [Object]
},
isAxiosError: true,
toJSON: [Function: toJSON]
},
response: {
message: [
'libraryId must be a UUID',
'libraryId should not be empty',
'libraryId must be a string'
],
error: 'Bad Request',
statusCode: 400
I dont understand what is wrong about the format of the libraryId
OK - i swear this was not marked depreciated earlier but followed new guide and working fine https://immich.app/docs/features/libraries
Libraries | Immich
Overview
thank you
It was just updated yesterday😅
There's a bug in the latest release that broke imports, but the fix will be part of the next release: https://github.com/immich-app/immich/pull/4224
GitHub
fix: cli import by etnoy · Pull Request #4224 · immich-app/immich
With the library feature, read only asset imports broke. This PR fixes:
allow optional library id in asset import
show trash can icon in web ui for read only (but not external) assets
A very mino...
but yeah, just use libraries instead 🙂
I didnt realize you could just point at the dir and say :ro
and it was done lol