Can't import backup: Error loading fsmetadata.json
-
Hey,
I installed two instances of Omeka S, test and production, both Omeka S 4.2.0. The production app get's backuped weekly to an Hetzner S3 (rsync).
I want to import a backup to the test app.
It starts "Importing - Downloading"... it takes some time. But then afters some time there's an error:
Error - Error loading fsmetadata.json:ENOENT: no such file or directory, open ...I can find this file in two locations in my Object Storage:
-
backup/2026-01-24-060000-602/app_name_v1.4.0/fsmetadata.json -
backup/snapshot/app_0245750c-82b5-4b4c-b6ea-15c53d6046b6/fsmetadata.json
What's the problem?
-
-
Hey,
I installed two instances of Omeka S, test and production, both Omeka S 4.2.0. The production app get's backuped weekly to an Hetzner S3 (rsync).
I want to import a backup to the test app.
It starts "Importing - Downloading"... it takes some time. But then afters some time there's an error:
Error - Error loading fsmetadata.json:ENOENT: no such file or directory, open ...I can find this file in two locations in my Object Storage:
-
backup/2026-01-24-060000-602/app_name_v1.4.0/fsmetadata.json -
backup/snapshot/app_0245750c-82b5-4b4c-b6ea-15c53d6046b6/fsmetadata.json
What's the problem?
-
-
Can you check the import logs (part of the app logs button)? It's probably not downloading the backup properly.
Import Logs (last part, before error):
2026-01-29T18:56:28.647Z box:tasks updating task 3492 with: {"percent":75,"message":"Download finished backup/snapshot/app_0245750c-82b5-4b4c-b6ea-15c53d6046b6/data/themes/themename/view/common/search-form.phtml to /home/yellowtent/appsdata/f6e82f5e-ae79-403b-b824-f96d8989b4f4/snapshot/app_0245750c-82b5-4b4c-b6ea-15c53d6046b6/data/themes/themename/view/common/search-form.phtml"} 2026-01-29T18:56:28.648Z box:tasks updating task 3492 with: {"percent":75,"message":"Downloading backup/snapshot/app_0245750c-82b5-4b4c-b6ea-15c53d6046b6/data/themes/themename/view/omeka/site/item/browse.phtml to /home/yellowtent/appsdata/f6e82f5e-ae79-403b-b824-f96d8989b4f4/snapshot/app_0245750c-82b5-4b4c-b6ea-15c53d6046b6/data/themes/themename/view/omeka/site/item/browse.phtml"} 2026-01-29T18:56:28.654Z box:tasks updating task 3492 with: {"percent":75,"message":"Download finished backup/snapshot/app_0245750c-82b5-4b4c-b6ea-15c53d6046b6/data/themes/themename/view/common/pagination.phtml to /home/yellowtent/appsdata/f6e82f5e-ae79-403b-b824-f96d8989b4f4/snapshot/app_0245750c-82b5-4b4c-b6ea-15c53d6046b6/data/themes/themename/view/common/pagination.phtml"} 2026-01-29T18:56:28.656Z box:tasks updating task 3492 with: {"percent":75,"message":"Downloading backup/snapshot/app_0245750c-82b5-4b4c-b6ea-15c53d6046b6/data/themes/themename/view/omeka/site/item/show.phtml to /home/yellowtent/appsdata/f6e82f5e-ae79-403b-b824-f96d8989b4f4/snapshot/app_0245750c-82b5-4b4c-b6ea-15c53d6046b6/data/themes/themename/view/omeka/site/item/show.phtml"} 2026-01-29T18:56:28.665Z box:tasks updating task 3492 with: {"percent":75,"message":"Download finished backup/snapshot/app_0245750c-82b5-4b4c-b6ea-15c53d6046b6/data/themes/themename/view/common/page-template/full-width.phtml to /home/yellowtent/appsdata/f6e82f5e-ae79-403b-b824-f96d8989b4f4/snapshot/app_0245750c-82b5-4b4c-b6ea-15c53d6046b6/data/themes/themename/view/common/page-template/full-width.phtml"} 2026-01-29T18:56:28.667Z box:tasks updating task 3492 with: {"percent":75,"message":"Downloading backup/snapshot/app_0245750c-82b5-4b4c-b6ea-15c53d6046b6/data/themes/themename/view/omeka/site/media/show.phtml to /home/yellowtent/appsdata/f6e82f5e-ae79-403b-b824-f96d8989b4f4/snapshot/app_0245750c-82b5-4b4c-b6ea-15c53d6046b6/data/themes/themename/view/omeka/site/media/show.phtml"} 2026-01-29T18:56:28.677Z box:tasks updating task 3492 with: {"percent":75,"message":"Download finished backup/snapshot/app_0245750c-82b5-4b4c-b6ea-15c53d6046b6/data/themes/themename/view/common/themename-navigation.phtml to /home/yellowtent/appsdata/f6e82f5e-ae79-403b-b824-f96d8989b4f4/snapshot/app_0245750c-82b5-4b4c-b6ea-15c53d6046b6/data/themes/themename/view/common/themename-navigation.phtml"} 2026-01-29T18:56:28.679Z box:tasks updating task 3492 with: {"percent":75,"message":"Downloading backup/snapshot/app_0245750c-82b5-4b4c-b6ea-15c53d6046b6/data/themes/themename/view/omeka/site/page/show.phtml to /home/yellowtent/appsdata/f6e82f5e-ae79-403b-b824-f96d8989b4f4/snapshot/app_0245750c-82b5-4b4c-b6ea-15c53d6046b6/data/themes/themename/view/omeka/site/page/show.phtml"} 2026-01-29T18:56:28.697Z box:tasks updating task 3492 with: {"percent":75,"message":"Download finished backup/snapshot/app_0245750c-82b5-4b4c-b6ea-15c53d6046b6/data/themes/themename/view/common/sub-navigation.phtml to /home/yellowtent/appsdata/f6e82f5e-ae79-403b-b824-f96d8989b4f4/snapshot/app_0245750c-82b5-4b4c-b6ea-15c53d6046b6/data/themes/themename/view/common/sub-navigation.phtml"} 2026-01-29T18:56:28.697Z box:tasks updating task 3492 with: {"percent":75,"message":"Downloading backup/snapshot/app_0245750c-82b5-4b4c-b6ea-15c53d6046b6/data/themes/themename/view/search/facet-checkboxes.phtml to /home/yellowtent/appsdata/f6e82f5e-ae79-403b-b824-f96d8989b4f4/snapshot/app_0245750c-82b5-4b4c-b6ea-15c53d6046b6/data/themes/themename/view/search/facet-checkboxes.phtml"} 2026-01-29T18:56:28.704Z box:tasks updating task 3492 with: {"percent":75,"message":"Download finished backup/snapshot/app_0245750c-82b5-4b4c-b6ea-15c53d6046b6/data/themes/themename/view/common/site-list-entry.phtml to /home/yellowtent/appsdata/f6e82f5e-ae79-403b-b824-f96d8989b4f4/snapshot/app_0245750c-82b5-4b4c-b6ea-15c53d6046b6/data/themes/themename/view/common/site-list-entry.phtml"} 2026-01-29T18:56:28.709Z box:tasks updating task 3492 with: {"percent":75,"message":"Downloading backup/snapshot/app_0245750c-82b5-4b4c-b6ea-15c53d6046b6/fsmetadata.json to /home/yellowtent/appsdata/f6e82f5e-ae79-403b-b824-f96d8989b4f4/snapshot/app_0245750c-82b5-4b4c-b6ea-15c53d6046b6/fsmetadata.json"} 2026-01-29T18:56:28.715Z box:tasks updating task 3492 with: {"percent":75,"message":"Download finished backup/snapshot/app_0245750c-82b5-4b4c-b6ea-15c53d6046b6/data/themes/themename/view/common/linked-resources.phtml to /home/yellowtent/appsdata/f6e82f5e-ae79-403b-b824-f96d8989b4f4/snapshot/app_0245750c-82b5-4b4c-b6ea-15c53d6046b6/data/themes/themename/view/common/linked-resources.phtml"} 2026-01-29T18:56:28.716Z box:tasks updating task 3492 with: {"percent":75,"message":"Downloading backup/snapshot/app_0245750c-82b5-4b4c-b6ea-15c53d6046b6/mysqldump to /home/yellowtent/appsdata/f6e82f5e-ae79-403b-b824-f96d8989b4f4/snapshot/app_0245750c-82b5-4b4c-b6ea-15c53d6046b6/mysqldump"} 2026-01-29T18:56:28.735Z box:tasks updating task 3492 with: {"percent":75,"message":"Download finished backup/snapshot/app_0245750c-82b5-4b4c-b6ea-15c53d6046b6/data/themes/themename/view/omeka/site/item/browse.phtml to /home/yellowtent/appsdata/f6e82f5e-ae79-403b-b824-f96d8989b4f4/snapshot/app_0245750c-82b5-4b4c-b6ea-15c53d6046b6/data/themes/themename/view/omeka/site/item/browse.phtml"} 2026-01-29T18:56:28.756Z box:tasks updating task 3492 with: {"percent":75,"message":"Download finished backup/snapshot/app_0245750c-82b5-4b4c-b6ea-15c53d6046b6/data/themes/themename/view/omeka/site/item-set/browse.phtml to /home/yellowtent/appsdata/f6e82f5e-ae79-403b-b824-f96d8989b4f4/snapshot/app_0245750c-82b5-4b4c-b6ea-15c53d6046b6/data/themes/themename/view/omeka/site/item-set/browse.phtml"} 2026-01-29T18:56:28.758Z box:tasks updating task 3492 with: {"percent":75,"message":"Download finished backup/snapshot/app_0245750c-82b5-4b4c-b6ea-15c53d6046b6/data/themes/themename/view/omeka/site/media/show.phtml to /home/yellowtent/appsdata/f6e82f5e-ae79-403b-b824-f96d8989b4f4/snapshot/app_0245750c-82b5-4b4c-b6ea-15c53d6046b6/data/themes/themename/view/omeka/site/media/show.phtml"} 2026-01-29T18:56:28.765Z box:tasks updating task 3492 with: {"percent":75,"message":"Download finished backup/snapshot/app_0245750c-82b5-4b4c-b6ea-15c53d6046b6/data/themes/themename/view/layout/layout.phtml to /home/yellowtent/appsdata/f6e82f5e-ae79-403b-b824-f96d8989b4f4/snapshot/app_0245750c-82b5-4b4c-b6ea-15c53d6046b6/data/themes/themename/view/layout/layout.phtml"} 2026-01-29T18:56:28.768Z box:tasks updating task 3492 with: {"percent":75,"message":"Download finished backup/snapshot/app_0245750c-82b5-4b4c-b6ea-15c53d6046b6/data/themes/themename/view/omeka/site/item/show.phtml to /home/yellowtent/appsdata/f6e82f5e-ae79-403b-b824-f96d8989b4f4/snapshot/app_0245750c-82b5-4b4c-b6ea-15c53d6046b6/data/themes/themename/view/omeka/site/item/show.phtml"} 2026-01-29T18:56:28.776Z box:tasks updating task 3492 with: {"percent":75,"message":"Download finished backup/snapshot/app_0245750c-82b5-4b4c-b6ea-15c53d6046b6/fsmetadata.json to /home/yellowtent/appsdata/f6e82f5e-ae79-403b-b824-f96d8989b4f4/snapshot/app_0245750c-82b5-4b4c-b6ea-15c53d6046b6/fsmetadata.json"} 2026-01-29T18:56:28.780Z box:tasks updating task 3492 with: {"percent":75,"message":"Download finished backup/snapshot/app_0245750c-82b5-4b4c-b6ea-15c53d6046b6/data/themes/themename/view/search/facet-checkboxes.phtml to /home/yellowtent/appsdata/f6e82f5e-ae79-403b-b824-f96d8989b4f4/snapshot/app_0245750c-82b5-4b4c-b6ea-15c53d6046b6/data/themes/themename/view/search/facet-checkboxes.phtml"} 2026-01-29T18:56:28.828Z box:tasks updating task 3492 with: {"percent":75,"message":"Download finished backup/snapshot/app_0245750c-82b5-4b4c-b6ea-15c53d6046b6/data/themes/themename/view/omeka/site/page/show.phtml to /home/yellowtent/appsdata/f6e82f5e-ae79-403b-b824-f96d8989b4f4/snapshot/app_0245750c-82b5-4b4c-b6ea-15c53d6046b6/data/themes/themename/view/omeka/site/page/show.phtml"} 2026-01-29T18:56:28.833Z box:tasks updating task 3492 with: {"percent":75,"message":"Download finished backup/snapshot/app_0245750c-82b5-4b4c-b6ea-15c53d6046b6/data/themes/themename/view/common/header-vertical.phtml to /home/yellowtent/appsdata/f6e82f5e-ae79-403b-b824-f96d8989b4f4/snapshot/app_0245750c-82b5-4b4c-b6ea-15c53d6046b6/data/themes/themename/view/common/header-vertical.phtml"} 2026-01-29T18:56:40.372Z box:tasks updating task 3492 with: {"percent":75,"message":"Downloading backup/snapshot/app_0245750c-82b5-4b4c-b6ea-15c53d6046b6/mysqldump: 512M@51MBps"} 2026-01-29T18:56:50.380Z box:tasks updating task 3492 with: {"percent":75,"message":"Downloading backup/snapshot/app_0245750c-82b5-4b4c-b6ea-15c53d6046b6/mysqldump: 1024M@51MBps"} 2026-01-29T18:57:00.381Z box:tasks updating task 3492 with: {"percent":75,"message":"Downloading backup/snapshot/app_0245750c-82b5-4b4c-b6ea-15c53d6046b6/mysqldump: 1536M@51MBps"} 2026-01-29T18:57:10.382Z box:tasks updating task 3492 with: {"percent":75,"message":"Downloading backup/snapshot/app_0245750c-82b5-4b4c-b6ea-15c53d6046b6/mysqldump: 2240M@70MBps"} 2026-01-29T18:57:20.381Z box:tasks updating task 3492 with: {"percent":75,"message":"Downloading backup/snapshot/app_0245750c-82b5-4b4c-b6ea-15c53d6046b6/mysqldump: 2880M@64MBps"} 2026-01-29T18:57:30.381Z box:tasks updating task 3492 with: {"percent":75,"message":"Downloading backup/snapshot/app_0245750c-82b5-4b4c-b6ea-15c53d6046b6/mysqldump: 3520M@64MBps"} 2026-01-29T18:57:38.917Z box:tasks updating task 3492 with: {"percent":75,"message":"Download finished backup/snapshot/app_0245750c-82b5-4b4c-b6ea-15c53d6046b6/mysqldump to /home/yellowtent/appsdata/f6e82f5e-ae79-403b-b824-f96d8989b4f4/snapshot/app_0245750c-82b5-4b4c-b6ea-15c53d6046b6/mysqldump"} 2026-01-29T18:57:38.919Z box:backupformat/rsync Recreating empty directories in {"localRoot":"/home/yellowtent/appsdata/f6e82f5e-ae79-403b-b824-f96d8989b4f4","layout":[]} 2026-01-29T18:57:38.923Z box:apptask run: app error for state pending_import: BoxError: Error loading fsmetadata.json:ENOENT: no such file or directory, open '/home/yellowtent/appsdata/f6e82f5e-ae79-403b-b824-f96d8989b4f4/fsmetadata.json' at restoreFsMetadata (/home/yellowtent/box/src/backupformat/rsync.js:188:38) at Object.download (/home/yellowtent/box/src/backupformat/rsync.js:290:11) at process.processTicksAndRejections (node:internal/process/task_queues:105:5) at async download (/home/yellowtent/box/src/backuptask.js:129:5) at async Object.downloadApp (/home/yellowtent/box/src/backuptask.js:169:5) at async installCommand (/home/yellowtent/box/src/apptask.js:341:9) { reason: 'External Error', details: {} } 2026-01-29T18:57:38.929Z box:tasks setCompleted - 3492: {"result":null,"error":{"message":"Error loading fsmetadata.json:ENOENT: no such file or directory, open '/home/yellowtent/appsdata/f6e82f5e-ae79-403b-b824-f96d8989b4f4/fsmetadata.json'","reason":"External Error"},"percent":100} 2026-01-29T18:57:38.929Z box:tasks updating task 3492 with: {"completed":true,"result":null,"error":{"message":"Error loading fsmetadata.json:ENOENT: no such file or directory, open '/home/yellowtent/appsdata/f6e82f5e-ae79-403b-b824-f96d8989b4f4/fsmetadata.json'","reason":"External Error"},"percent":100} 2026-01-29T18:57:38.931Z Exiting with code 0 2026-01-29T18:57:38.931Z box:taskworker Task took 813.548 seconds BoxError: Error loading fsmetadata.json:ENOENT: no such file or directory, open '/home/yellowtent/appsdata/f6e82f5e-ae79-403b-b824-f96d8989b4f4/fsmetadata.json' BoxError: Error loading fsmetadata.json:ENOENT: no such file or directory, open '/home/yellowtent/appsdata/f6e82f5e-ae79-403b-b824-f96d8989b4f4/fsmetadata.json' BoxError: Error loading fsmetadata.json:ENOENT: no such file or directory, open '/home/yellowtent/appsdata/f6e82f5e-ae79-403b-b824-f96d8989b4f4/fsmetadata.json' BoxError: Error loading fsmetadata.json:ENOENT: no such file or directory, open '/home/yellowtent/appsdata/f6e82f5e-ae79-403b-b824-f96d8989b4f4/fsmetadata.json' BoxError: Error loading fsmetadata.json:ENOENT: no such file or directory, open '/home/yellowtent/appsdata/f6e82f5e-ae79-403b-b824-f96d8989b4f4/fsmetadata.json' BoxError: Error loading fsmetadata.json:ENOENT: no such file or directory, open '/home/yellowtent/appsdata/f6e82f5e-ae79-403b-b824-f96d8989b4f4/fsmetadata.json' BoxError: Error loading fsmetadata.json:ENOENT: no such file or directory, open '/home/yellowtent/appsdata/f6e82f5e-ae79-403b-b824-f96d8989b4f4/fsmetadata.json' BoxError: Error loading fsmetadata.json:ENOENT: no such file or directory, open '/home/yellowtent/appsdata/f6e82f5e-ae79-403b-b824-f96d8989b4f4/fsmetadata.json' BoxError: Error loading fsmetadata.json:ENOENT: no such file or directory, open '/home/yellowtent/appsdata/f6e82f5e-ae79-403b-b824-f96d8989b4f4/fsmetadata.json' -
Hello @difficult222
Thanks for reporting.
Can you please check the file size and report that here?@james Of which file?
-
Hello @difficult222
@difficult222 said in Can't import backup: Error loading fsmetadata.json:
I can find this file in two locations in my Object Storage:
backup/2026-01-24-060000-602/app_name_v1.4.0/fsmetadata.json
backup/snapshot/app_0245750c-82b5-4b4c-b6ea-15c53d6046b6/fsmetadata.json
These two files. Can you check the size of these two files and also the content?
Also, since the error is with this file
/home/yellowtent/appsdata/f6e82f5e-ae79-403b-b824-f96d8989b4f4/fsmetadata.json
Can you check if this file really does not exist? -
Sure! Thanks for the instructions!
The two
fsmetadata.jsons files in Object Storage look like this:{ "emptyDirs": [ "./data/modules/BulkEdit/test/BulkEditTest", "./data/files/preload", "./data/files/import", "./data/files/backup/log" ], "execFiles": [ "./data/omeka-s-cli.phar" ], "symlinks": [ { "path": "./data/modules/Ldap", "site": "/app/code/modules_vanilla/Ldap" }, { "path": "./data/themes/default", "site": "/app/code/themes_vanilla/default" } ] }size: 428 byte
How can I check if
/home/yellowtent/appsdata/f6e82f5e-ae79-403b-b824-f96d8989b4f4/fsmetadata.jsonexists?When I start the terminal I only have
home/cloudron/..., but nohome/yellow-tent/... -
I
sshed into the server, and the file really does not exist:cloudron# ls /home/yellowtent/appsdata/f6e82f5e-ae79-403b-b824-f96d8989b4f4/fsmetadata.json ls: cannot access '/home/yellowtent/appsdata/f6e82f5e-ae79-403b-b824-f96d8989b4f4/fsmetadata.json': No such file or directoryThe content of the directory:
cloudron# cd /home/yellowtent/appsdata/f6e82f5e-ae79-403b-b824-f96d8989b4f4/ cloudron# ls -la total 2552 drwxr-xr-x 5 yellowtent yellowtent 4096 Jan 30 23:06 . drwxr-xr-x 4 yellowtent yellowtent 4096 Jan 28 19:35 .. drwxr-xr-x 3 yellowtent yellowtent 4096 Jan 28 20:07 2026-01-24-060000-602 -rw-r--r-- 1 yellowtent yellowtent 6343 Jan 31 23:06 config.json drwxr-xr-x 6 www-data www-data 4096 Jan 30 15:02 data -rw-r--r-- 1 yellowtent yellowtent 2582680 Jan 31 23:06 mysqldump drwxr-xr-x 3 yellowtent yellowtent 4096 Jan 28 20:15 snapshot -
@difficult222 there is something wrong with that output . It has 2026-01-24-060000-602 and snapshot . These directories should not be there (in fact, they are part of backups).
Can you check if those directories exist in the Hezner S3 also? If it did, something has gone wrong with how the backups are getting created . Could it be that you changed the prefix of a site? Or used a prefix that already had some contents from previous backup setup?