Islandora-Devops / isle-dc

ISLE 8 - Dockerized Islandora 8 Deployment orchestrated with docker-compose
MIT License
23 stars 60 forks source link

Permission issue - Operation not permitted #218

Closed kylehuynh205 closed 2 years ago

kylehuynh205 commented 2 years ago

Hello, I'm building isle-dc (branch install-profile) in the Mac with sudo make local-install-profile. Nat is building the same branch in Ubuntu, but this issue doesn't occur.

I'm wondering anyone with Mac running into the same issue ? Thank you.

$ sudo make local-install-profile
Generating Secrets
Generated or copied ACTIVEMQ_PASSWORD!
Generated or copied ACTIVEMQ_WEB_ADMIN_PASSWORD!
Generated or copied ALPACA_ACTIVEMQ_PASSWORD!
Generated or copied ALPACA_KARAF_ADMIN_PASSWORD!
Generated or copied CODE_SERVER_PASSWORD!
Generated or copied DB_ROOT_PASSWORD!
Generated or copied DRUPAL_DEFAULT_ACCOUNT_PASSWORD!
Generated or copied DRUPAL_DEFAULT_CONFIGDIR!
Generated or copied DRUPAL_DEFAULT_DB_PASSWORD!
Generated or copied DRUPAL_DEFAULT_SALT!
Generated or copied FCREPO_DB_PASSWORD!
Generated or copied GEMINI_DB_PASSWORD!
Generated or copied JWT_ADMIN_TOKEN!
Generated or copied JWT_PRIVATE_KEY!
Generated or copied JWT_PUBLIC_KEY!
Generated or copied MATOMO_DB_PASSWORD!
Generated or copied MATOMO_USER_PASS!
Generated or copied TOMCAT_ADMIN_PASSWORD!
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  5596  100  5596    0     0  27105      0 --:--:-- --:--:-- --:--:-- 27165
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  1708  100  1708    0     0   8273      0 --:--:-- --:--:-- --:--:--  8291
docker-compose pull
Pulling activemq   ... done
Pulling alpaca     ... done
Pulling blazegraph ... done
Pulling cantaloupe ... done
Pulling fcrepo     ... done
Pulling fits       ... done
Pulling crayfits   ... done
Pulling homarus    ... done
Pulling houdini    ... done
Pulling hypercube  ... done
Pulling mariadb    ... done
Pulling matomo     ... done
Pulling milliner   ... done
Pulling recast     ... done
Pulling solr       ... done
Pulling traefik    ... done
Pulling drupal     ... done
[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] 00-container-environment-00-init.sh: executing... 
[cont-init.d] 00-container-environment-00-init.sh: exited 0.
[cont-init.d] 00-container-environment-01-override-nginx.sh: executing... 
[cont-init.d] 00-container-environment-01-override-nginx.sh: exited 0.
[cont-init.d] 00-container-environment-01-override-php.sh: executing... 
[cont-init.d] 00-container-environment-01-override-php.sh: exited 0.
[cont-init.d] 00-container-environment-02-database-defaults.sh: executing... 
[cont-init.d] 00-container-environment-02-database-defaults.sh: exited 0.
[cont-init.d] 01-confd-render-templates.sh: executing... 
[cont-init.d] 01-confd-render-templates.sh: exited 0.
[cont-init.d] 02-fpm-install.sh: executing... 
[cont-init.d] 02-fpm-install.sh: exited 0.
[cont-init.d] 02-ngnix-install.sh: executing... 
[cont-init.d] 02-ngnix-install.sh: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
Cloning into '/tmp/codebase'...
[02-Feb-2022 15:06:26] NOTICE: fpm is running, pid 723
[02-Feb-2022 15:06:26] NOTICE: ready to handle connections
mv: can't create '/home/root/LICENSE': Operation not permitted
mv: can't create '/home/root/README.md': Operation not permitted
mv: can't create directory '/home/root/assets': Operation not permitted
mv: can't create '/home/root/composer.json': Operation not permitted
mv: can't create '/home/root/composer.lock': Operation not permitted
mv: can't create directory '/home/root/content': Operation not permitted
mv: can't create directory '/home/root/scripts': Operation not permitted
[cmd] with-contenv exited 1
[02-Feb-2022 15:06:36] NOTICE: Terminating ...
[02-Feb-2022 15:06:36] NOTICE: exiting, bye-bye!
[cont-finish.d] executing container finish scripts...
[cont-finish.d] done.
[s6-finish] waiting for services.
[services.d] service fpm finish: executing...
[services.d] service fpm exiting with exit code: 0
[services.d] service nginx finish: executing...
[services.d] service nginx exiting with exit code: 0
[s6-finish] sending all processes the TERM signal.
[s6-finish] sending all processes the KILL signal and exiting.
make: *** [local-install-profile] Error 1
kylehuynh205 commented 2 years ago

With J.J Bennett's help, solved this issue by: