Repository navigation
Description
Expected Behavior
Installation should run properly.
Current Behavior
Nextcloud appears to install (from adding users to starting services). However after the services start, there is an error that prevents Nextcloud from completing.
This is the error:
nextcloud | Exception: Not installed in /config/www/nextcloud/lib/base.php:277
nextcloud | Stack trace:
nextcloud | #0 /config/www/nextcloud/lib/base.php(649): OC::checkInstalled()
nextcloud | #1 /config/www/nextcloud/lib/base.php(1087): OC::init()
nextcloud | #2 /config/www/nextcloud/cron.php(43): require_once('/config/www/nex...')
nextcloud | #3 {main}
Steps to Reproduce
Here is my docker-compose file:
version: '3'
networks:
web:
external: true
services:
nextcloud:
restart: unless-stopped
image: lscr.io/linuxserver/nextcloud
container_name: nextcloud
environment:
- PUID=1000
- PGID=1000
- TZ=America/Toronto
networks:
- web
labels:
- traefik.http.routers.nextcloud.rule=Host(`cloud.domain.com`)
- traefik.http.routers.nextcloud.tls=true
- traefik.http.routers.nextcloud.tls.certresolver=lets-encrypt
- traefik.http.services.nextcloud.loadbalancer.server.scheme=https
- traefik.http.services.nextcloud.loadbalancer.server.port=443
- traefik.port=443
volumes:
- ./data:/data
- ./config:/config
depends_on:
- nextcloud_db
nextcloud_db:
image: ghcr.io/linuxserver/mariadb
container_name: nextcloud_db
environment:
- PUID=1000
- PGID=1000
- MYSQL_ROOT_PASSWORD=password
- TZ=America/Toronto
- MYSQL_DATABASE=nextcloud #optional
- MYSQL_USER=nextcloud #optional
- MYSQL_PASSWORD=password
volumes:
- /db:/config
restart: unless-stopped
Environment
OS: Debian 11
CPU architecture: x86_64/arm32/arm64
How docker service was installed:
latest Docker from official repo
Command used to create docker container (run/create/compose/screenshot)
docker-compose up
Docker logs
[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] 01-envfile: executing...
[cont-init.d] 01-envfile: exited 0.
[cont-init.d] 10-adduser: executing...
-------------------------------------
_ ()
| | ___ _ __
| | / __| | | / \
| | \__ \ | | | () |
|_| |___/ |_| \__/
Brought to you by linuxserver.io
-------------------------------------
To support LSIO projects visit:
https://www.linuxserver.io/donate/
-------------------------------------
GID/UID
-------------------------------------
User uid: 1000
User gid: 1000
-------------------------------------
[cont-init.d] 10-adduser: exited 0.
[cont-init.d] 20-config: executing...
[cont-init.d] 20-config: exited 0.
[cont-init.d] 30-keygen: executing...
generating self-signed keys in /config/keys, you can replace these with your own keys if required
Generating a RSA private key
..................................................................................+++++
................................................+++++
writing new private key to '/config/keys/cert.key'
-----
[cont-init.d] 30-keygen: exited 0.
[cont-init.d] 40-config: executing...
[cont-init.d] 40-config: exited 0.
[cont-init.d] 50-install: executing...
[cont-init.d] 50-install: exited 0.
[cont-init.d] 60-memcache: executing...
[cont-init.d] 60-memcache: exited 0.
[cont-init.d] 70-aliases: executing...
[cont-init.d] 70-aliases: exited 0.
[cont-init.d] 90-custom-folders: executing...
[cont-init.d] 90-custom-folders: exited 0.
[cont-init.d] 99-custom-files: executing...
[custom-init] no custom files found exiting...
[cont-init.d] 99-custom-files: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
Exception: Not installed in /config/www/nextcloud/lib/base.php:277
Stack trace:
#0 /config/www/nextcloud/lib/base.php(649): OC::checkInstalled()
#1 /config/www/nextcloud/lib/base.php(1087): OC::init()
#2 /config/www/nextcloud/cron.php(43): require_once('/config/www/nex...')
#3 {main}
[cont-finish.d] executing container finish scripts...
[cont-finish.d] done.
[s6-finish] waiting for services.
[s6-finish] sending all processes the TERM signal.
[s6-finish] sending all processes the KILL signal and exiting.
This appears to be reported earlier in issue #203

Activity
github-actions commentedon Jan 31, 2022
Thanks for opening your first issue here! Be sure to follow the bug or feature issue templates!
j0nnymoe commentedon Jan 31, 2022
Is there anything special about where you're storing
/configmount? Any sort of remote mounts, unionfs mounts can cause issues with this.tourshi commentedon Jan 31, 2022
No, nothing special. Just an empty directory. This is all a fresh install.
Thanks
j0nnymoe commentedon Jan 31, 2022
Could you at least provide the full path you're using please?
tourshi commentedon Jan 31, 2022
The full path would be: /var/www/cloud/config/
P.s. I also tried fresh install without specifying the ./config directory incase it's a permissions issue...but that also resulted in the same error.
j0nnymoe commentedon Jan 31, 2022
Try using your home folder, if that works, it'll show it's permissions issues.
/home/username/nextcloud/configtourshi commentedon Feb 1, 2022
Thanks @j0nnymoe , I tried that but still no gravy. The issue seems to be with cron but as mentioned in #203 apparently cron is installed in the system already.
j0nnymoe commentedon Feb 1, 2022
Yep it is installed and can confirm it works as expected. When errors like this come up it, it's normally permissions issues.
github-actions commentedon Mar 4, 2022
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
louis-prudhomme commentedon Jan 4, 2023
I face the same kind of issue ; logs on my side are as follows.
logs
```log nextcloud | cont-init: info: /etc/cont-init.d/50-install exited 0 nextcloud | cont-init: info: running /etc/cont-init.d/60-memcache nextcloud | cont-init: info: /etc/cont-init.d/60-memcache exited 0 nextcloud | cont-init: info: running /etc/cont-init.d/70-aliases nextcloud | cont-init: info: /etc/cont-init.d/70-aliases exited 0 nextcloud | cont-init: info: running /etc/cont-init.d/85-version-checks nextcloud | cont-init: info: /etc/cont-init.d/85-version-checks exited 0 nextcloud | cont-init: info: running /etc/cont-init.d/99-custom-files nextcloud | [custom-init] No custom files found, skipping... nextcloud | cont-init: info: /etc/cont-init.d/99-custom-files exited 0 nextcloud | s6-rc: info: service legacy-cont-init successfully started nextcloud | s6-rc: info: service init-mods: starting nextcloud | s6-rc: info: service init-mods successfully started nextcloud | s6-rc: info: service init-mods-package-install: starting nextcloud | s6-rc: info: service init-mods-package-install successfully started nextcloud | s6-rc: info: service init-mods-end: starting nextcloud | s6-rc: info: service init-mods-end successfully started nextcloud | s6-rc: info: service init-services: starting nextcloud | s6-rc: info: service init-services successfully started nextcloud | s6-rc: info: service legacy-services: starting nextcloud | services-up: info: copying legacy longrun cron (no readiness notification) nextcloud | services-up: info: copying legacy longrun nginx (no readiness notification) nextcloud | services-up: info: copying legacy longrun php-fpm (no readiness notification) nextcloud | s6-rc: info: service legacy-services successfully started nextcloud | s6-rc: info: service 99-ci-service-check: starting nextcloud | [ls.io-init] done. nextcloud | s6-rc: info: service 99-ci-service-check successfully started nextcloud | Exception: Not installed in /config/www/nextcloud/lib/base.php:284 nextcloud | Stack trace: nextcloud | #0 /config/www/nextcloud/lib/base.php(680): OC::checkInstalled() nextcloud | #1 /config/www/nextcloud/lib/base.php(1144): OC::init() nextcloud | #2 /config/www/nextcloud/cron.php(43): require_once('...') nextcloud | #3 {main} ```After which the same last six line happen roughly every 5 minutes.
My
docker-compose.ymlis very similar to @tourshi 's.The full path on my side is
/home/ambre/zero/daisaaba/.As a reference, I use both an
autoconfig.phpand aconfig.phpto configure the Nextcloud instance.I suspect this error prevent my instance from finishing its configuration. Have you found any workaround / fix ?
j0nnymoe commentedon Jan 4, 2023
Please open a new issue and provide the details requested. Closing this issue as it is inactive.