Hello,
I am trying to migrate a ghost site to a new server but I have the following error :
[2021-07-20 08:08:12] ERROR Error trying to access settings files in /opt/bitnami/ghost/versions/4.9.3/content/settings/.
Error trying to access settings files in /opt/bitnami/ghost/versions/4.9.3/content/settings/.
"/opt/bitnami/ghost/versions/4.9.3/core/frontend/services/settings/default-routes.yaml"
Error ID:
a0e91030-e931-11eb-a3a5-9598522d765b
Error Code:
EACCES
----------------------------------------
InternalServerError: Error trying to access settings files in /opt/bitnami/ghost/versions/4.9.3/content/settings/.
at /opt/bitnami/ghost/versions/4.9.3/core/frontend/services/settings/ensure-settings.js:40:23
at tryCatcher (/opt/bitnami/ghost/versions/4.9.3/node_modules/bluebird/js/release/util.js:16:23)
at Promise._settlePromiseFromHandler (/opt/bitnami/ghost/versions/4.9.3/node_modules/bluebird/js/release/promise.js:547:31)
at Promise._settlePromise (/opt/bitnami/ghost/versions/4.9.3/node_modules/bluebird/js/release/promise.js:604:18)
at Promise._settlePromise0 (/opt/bitnami/ghost/versions/4.9.3/node_modules/bluebird/js/release/promise.js:649:10)
at Promise._settlePromises (/opt/bitnami/ghost/versions/4.9.3/node_modules/bluebird/js/release/promise.js:725:18)
at _drainQueueStep (/opt/bitnami/ghost/versions/4.9.3/node_modules/bluebird/js/release/async.js:93:12)
at _drainQueue (/opt/bitnami/ghost/versions/4.9.3/node_modules/bluebird/js/release/async.js:86:9)
at Async._drainQueues (/opt/bitnami/ghost/versions/4.9.3/node_modules/bluebird/js/release/async.js:102:5)
at Immediate.Async.drainQueues [as _onImmediate] (/opt/bitnami/ghost/versions/4.9.3/node_modules/bluebird/js/release/async.js:15:14)
at processImmediate (internal/timers.js:464:21)
Error: EACCES: permission denied, copyfile '/opt/bitnami/ghost/versions/4.9.3/core/frontend/services/settings/default-routes.yaml' -> '/opt/bitnami/ghost/versions/4.9.3/content/settings/routes.yaml'
On the old server, I took the files and a backup of the database to inject them on the new server.
I have correctly set the rights according to my kubernetes settings for “RunAS” and “Fsgroup”
Ghost Version : 4.9.3
NodeJS version : 14
Docker image: Docker
If I have forgotten anything, please let me know