I installed Nextcloud (Big bear version) but I get 403 forbidden

image
I ran the script in the instructions.

could someone help me with this issue, this is on a fresh install of CasaOS on Debian 12.

What happens when you go to:

[YOUR-CASAOS-IP]:7580

Can you look at the logs for the container?

You can look at logs with:

Logs from nextcloud:

  • 20/01/202419:14:28

Configuring Redis as session handler

  • 20/01/202419:14:29

Initializing nextcloud 28.0.1.1 …

  • 20/01/202419:14:43

New nextcloud instance

  • 20/01/202419:14:43

Installing with PostgreSQL database

  • 20/01/202419:14:43

=> Searching for scripts (*.sh) to run, located in the folder: /docker-entrypoint-hooks.d/pre-installation

  • 20/01/202419:14:43

Starting nextcloud installation

  • 20/01/202419:14:44

Could not open input file: /var/www/html/occ

  • 20/01/202419:14:44

Retrying install…

  • 20/01/202419:14:54

Could not open input file: /var/www/html/occ

  • 20/01/202419:14:54

Retrying install…

  • 20/01/202419:15:04

Could not open input file: /var/www/html/occ

  • 20/01/202419:15:04

Retrying install…

  • 20/01/202419:15:14

Could not open input file: /var/www/html/occ

  • 20/01/202419:15:14

Retrying install…

  • 20/01/202419:15:24

Could not open input file: /var/www/html/occ

  • 20/01/202419:15:24

Retrying install…

  • 20/01/202419:15:34

Could not open input file: /var/www/html/occ

  • 20/01/202419:15:34

Retrying install…

  • 20/01/202419:15:44

Could not open input file: /var/www/html/occ

  • 20/01/202419:15:44

Retrying install…

  • 20/01/202419:15:54

Could not open input file: /var/www/html/occ

  • 20/01/202419:15:54

Retrying install…

  • 20/01/202419:16:04

Could not open input file: /var/www/html/occ

  • 20/01/202419:16:04

Retrying install…

  • 20/01/202419:16:14

Could not open input file: /var/www/html/occ

  • 20/01/202419:16:14

Retrying install…

  • 20/01/202419:16:24

Could not open input file: /var/www/html/occ

  • 20/01/202419:16:24

Retrying install…

  • 20/01/202419:16:34

Could not open input file: /var/www/html/occ

  • 20/01/202419:16:34

Installing of nextcloud failed!

  • 20/01/202419:16:35

Configuring Redis as session handler

  • 20/01/202419:16:35

=> Searching for scripts (*.sh) to run, located in the folder: /docker-entrypoint-hooks.d/before-starting

  • 20/01/202419:16:35

AH00558: apache2: Could not reliably determine the server’s fully qualified domain name, using 172.22.0.2. Set the ‘ServerName’ directive globally to suppress this message

  • 20/01/202419:16:35

AH00558: apache2: Could not reliably determine the server’s fully qualified domain name, using 172.22.0.2. Set the ‘ServerName’ directive globally to suppress this message

  • 20/01/202419:16:35

[Sat Jan 20 19:16:35.287261 2024] [mpm_prefork:notice] [pid 1] AH00163: Apache/2.4.57 (Debian) PHP/8.2.15 configured – resuming normal operations

  • 20/01/202419:16:35

[Sat Jan 20 19:16:35.287290 2024] [core:notice] [pid 1] AH00094: Command line: ‘apache2 -D FOREGROUND’

  • 20/01/202419:17:59

[Sat Jan 20 19:17:59.929097 2024] [core:error] [pid 49] (13)Permission denied: [client 192.168.178.178:58396] AH00035: access to / denied (filesystem path ‘/var/www/html’) because search permissions are missing on a component of the path

  • 20/01/202419:17:59

192.168.178.178 - - [20/Jan/2024:19:17:59 +0000] “GET / HTTP/1.1” 403 499 “-” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36”

  • 20/01/202419:18:00

[Sat Jan 20 19:18:00.369596 2024] [core:error] [pid 49] (13)Permission denied: [client 192.168.178.178:58396] AH00035: access to /favicon.ico denied (filesystem path ‘/var/www/html’) because search permissions are missing on a component of the path, referer: http://192.168.178.114:7580/

  • 20/01/202419:18:00

192.168.178.178 - - [20/Jan/2024:19:18:00 +0000] “GET /favicon.ico HTTP/1.1” 403 498 “http://192.168.178.114:7580/” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36”

  • 20/01/202419:22:18

[Sat Jan 20 19:22:18.392246 2024] [core:error] [pid 50] (13)Permission denied: [client 192.168.178.178:58494] AH00035: access to / denied (filesystem path ‘/var/www/html’) because search permissions are missing on a component of the path, referer: http://192.168.178.114/

  • 20/01/202419:22:18

192.168.178.178 - - [20/Jan/2024:19:22:18 +0000] “GET / HTTP/1.1” 403 499 “http://192.168.178.114/” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36”

  • 20/01/202419:22:18

[Sat Jan 20 19:22:18.758916 2024] [core:error] [pid 50] (13)Permission denied: [client 192.168.178.178:58494] AH00035: access to /favicon.ico denied (filesystem path ‘/var/www/html’) because search permissions are missing on a component of the path, referer: http://192.168.178.114:7580/

  • 20/01/202419:22:18

192.168.178.178 - - [20/Jan/2024:19:22:18 +0000] “GET /favicon.ico HTTP/1.1” 403 498 “http://192.168.178.114:7580/” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36”

  • 20/01/202419:33:31

[Sat Jan 20 19:33:31.224957 2024] [core:error] [pid 51] (13)Permission denied: [client 192.168.178.178:58714] AH00035: access to / denied (filesystem path ‘/var/www/html’) because search permissions are missing on a component of the path

  • 20/01/202419:33:31

192.168.178.178 - - [20/Jan/2024:19:33:31 +0000] “GET / HTTP/1.1” 403 499 “-” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36”

  • 20/01/202419:33:31

[Sat Jan 20 19:33:31.499022 2024] [core:error] [pid 51] (13)Permission denied: [client 192.168.178.178:58714] AH00035: access to /favicon.ico denied (filesystem path ‘/var/www/html’) because search permissions are missing on a component of the path, referer: http://192.168.178.114:7580/

  • 20/01/202419:33:31

192.168.178.178 - - [20/Jan/2024:19:33:31 +0000] “GET /favicon.ico HTTP/1.1” 403 498 “http://192.168.178.114:7580/” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36”
Logs from big-bear-nextcloud-cron-1

  • 20/01/202419:14:28

crond: crond (busybox 1.35.0) started, log level 8

  • 20/01/202419:15:00

crond: USER www-data pid 7 cmd php -f /var/www/html/cron.php

  • 20/01/202419:15:00

Could not open input file: /var/www/html/cron.php

  • 20/01/202419:20:00

crond: USER www-data pid 8 cmd php -f /var/www/html/cron.php

  • 20/01/202419:20:00

Could not open input file: /var/www/html/cron.php

  • 20/01/202419:25:00

crond: USER www-data pid 9 cmd php -f /var/www/html/cron.php

  • 20/01/202419:25:00

Could not open input file: /var/www/html/cron.php

  • 20/01/202419:30:00

crond: USER www-data pid 10 cmd php -f /var/www/html/cron.php

  • 20/01/202419:30:00

Could not open input file: /var/www/html/cron.php

  • 20/01/202419:35:00

crond: USER www-data pid 11 cmd php -f /var/www/html/cron.php

  • 20/01/202419:35:00

Could not open input file: /var/www/html/cron.php

hope this helps us find the issue

Jeremy

You’re having permission issues. How did you install CasaOS, and on what? Also did you install CasaOS on root?

Installed Casa OS using the install command on the website, My OS is debian 12

edit:


is this meant to say no such file or directory?

I reinstalled CasaOS and now its saying this:


this is after I ran the script.

edit: I restarted the app and now its working, although its giving me a login screen and I haven’t created a user yet

By default it’s

Username: casaos
Password: casaos

Oh, thank you!

Everything seems to be working, just trying to mount external storage! Could you tell me how you open the OCC terminal?