Installation in webroot fails with 404 on specific files in apps

Hi OC Team,

i have a strange error occurring ONLY when i do my install in the webroot (e.g. web). When i do the install in a subdirectory (e.g. web/owncloud) => no problems…

I get a 404 error on
index.php/apps/firstrunwizard/wizard
and
index.php/apps/files/ajax/getstoragestats.php

As a follow the install is not usable, indicating “access to / failed” and “0B available disk space” when i try to upload a file (in the yellow banner on top).

Why is this working when installing in a subfolder and not working when installing in the webroot. In some installs i want to install in webroot, this is not possible…

Thanks for any input having a solution idea, i cannot find any points of troubleshooting.

Steps to reproduce

  1. Fresh Install in webroot according OC docs, webserver config acc. OC docs
  2. login
  3. firstrunwizard and getstoragestats throw 404 and yellow banner on top 0B available.

Expected behaviour

no 404…

Actual behaviour

404 on specific files, install in webroot not usable

Server configuration

Operating system:
debian 11
Web server:
nginx 1.22.1
Database:
MariaDB 10.5.18
PHP version:
7.4
ownCloud version: (see ownCloud admin page)
10.12.1
Updated from an older ownCloud or fresh install:
fresh install
Where did you install ownCloud from:
oc website
Signing status (ownCloud 9.0 and above):
signed
No errors have been found.
The content of config/config.php:
$CONFIG = array (
‘passwordsalt’ => ‘’,
‘secret’ => ‘’,
‘trusted_domains’ =>
array (
0 => ‘localhost’,
1 => ‘’,
),
‘datadirectory’ => ‘/var/owncloud/dev/data’,
‘overwrite.cli.url’ => ‘’,
‘dbtype’ => ‘mysql’,
‘version’ => ‘10.12.1.3’,
‘dbname’ => ‘’,
‘dbhost’ => ‘localhost’,
‘dbtableprefix’ => ‘oc_’,
‘mysql.utf8mb4’ => true,
‘dbuser’ => ‘’,
‘dbpassword’ => ‘’,
‘allow_user_to_change_mail_address’ => ‘’,
‘logtimezone’ => ‘UTC’,
‘apps_paths’ =>
array (
0 =>
array (
‘path’ => ‘/var/www/clients/client1/web43/web/apps’,
‘url’ => ‘/apps’,
‘writable’ => false,
),
1 =>
array (
‘path’ => ‘/var/www/clients/client1/web43/web/apps-external’,
‘url’ => ‘/apps-external’,
‘writable’ => true,
),
),
‘installed’ => true,
‘instanceid’ => ‘’,
‘loglevel’ => 2,
);

List of activated apps:
Enabled:

  • activity:
    • Version: 2.7.1
    • Path: /var/www/clients/client1/web43/web/apps/activity
  • comments:
    • Version: 0.3.0
    • Path: /var/www/clients/client1/web43/web/apps/comments
  • configreport:
    • Version: 0.2.1
    • Path: /var/www/clients/client1/web43/web/apps/configreport
  • dav:
    • Version: 0.7.0
    • Path: /var/www/clients/client1/web43/web/apps/dav
  • federatedfilesharing:
    • Version: 0.5.0
    • Path: /var/www/clients/client1/web43/web/apps/federatedfilesharing
  • federation:
    • Version: 0.1.0
    • Path: /var/www/clients/client1/web43/web/apps/federation
  • files:
    • Version: 1.5.2
    • Path: /var/www/clients/client1/web43/web/apps/files
  • files_external:
    • Version: 0.9.0
    • Path: /var/www/clients/client1/web43/web/apps/files_external
  • files_mediaviewer:
    • Version: 1.0.5
    • Path: /var/www/clients/client1/web43/web/apps/files_mediaviewer
  • files_pdfviewer:
    • Version: 1.0.1
    • Path: /var/www/clients/client1/web43/web/apps/files_pdfviewer
  • files_sharing:
    • Version: 0.14.0
    • Path: /var/www/clients/client1/web43/web/apps/files_sharing
  • files_texteditor:
    • Version: 2.5.1
    • Path: /var/www/clients/client1/web43/web/apps/files_texteditor
  • files_trashbin:
    • Version: 0.9.1
    • Path: /var/www/clients/client1/web43/web/apps/files_trashbin
  • files_versions:
    • Version: 1.3.0
    • Path: /var/www/clients/client1/web43/web/apps/files_versions
  • firstrunwizard:
    • Version: 1.2.0
    • Path: /var/www/clients/client1/web43/web/apps/firstrunwizard
  • market:
    • Version: 0.7.0
    • Path: /var/www/clients/client1/web43/web/apps/market
  • notifications:
    • Version: 0.5.4
    • Path: /var/www/clients/client1/web43/web/apps/notifications
  • provisioning_api:
    • Version: 0.5.0
    • Path: /var/www/clients/client1/web43/web/apps/provisioning_api
  • systemtags:
    • Version: 0.3.0
    • Path: /var/www/clients/client1/web43/web/apps/systemtags
  • templateeditor:
    • Version: 0.4.0
    • Path: /var/www/clients/client1/web43/web/apps/templateeditor
  • updatenotification:
    • Version: 0.2.1
    • Path: /var/www/clients/client1/web43/web/apps/updatenotification
      Disabled:
  • admin_audit:
    • Path: /var/www/clients/client1/web43/web/apps/admin_audit
  • announcementcenter:
    • Path: /var/www/clients/client1/web43/web/apps/announcementcenter
  • customgroups:
    • Path: /var/www/clients/client1/web43/web/apps/customgroups
  • encryption:
    • Path: /var/www/clients/client1/web43/web/apps/encryption
  • enterprise_key:
    • Path: /var/www/clients/client1/web43/web/apps/enterprise_key
  • external:
    • Path: /var/www/clients/client1/web43/web/apps/external
  • files_antivirus:
    • Path: /var/www/clients/client1/web43/web/apps/files_antivirus
  • files_classifier:
    • Path: /var/www/clients/client1/web43/web/apps/files_classifier
  • files_external_dropbox:
    • Path: /var/www/clients/client1/web43/web/apps/files_external_dropbox
  • files_external_ftp:
    • Path: /var/www/clients/client1/web43/web/apps/files_external_ftp
  • files_ldap_home:
    • Path: /var/www/clients/client1/web43/web/apps/files_ldap_home
  • files_lifecycle:
    • Path: /var/www/clients/client1/web43/web/apps/files_lifecycle
  • firewall:
    • Path: /var/www/clients/client1/web43/web/apps/firewall
  • graphapi:
    • Path: /var/www/clients/client1/web43/web/apps/graphapi
  • guests:
    • Path: /var/www/clients/client1/web43/web/apps/guests
  • metrics:
    • Path: /var/www/clients/client1/web43/web/apps/metrics
  • oauth2:
    • Path: /var/www/clients/client1/web43/web/apps/oauth2
  • openidconnect:
    • Path: /var/www/clients/client1/web43/web/apps/openidconnect
  • password_policy:
    • Path: /var/www/clients/client1/web43/web/apps/password_policy
  • ransomware_protection:
    • Path: /var/www/clients/client1/web43/web/apps/ransomware_protection
  • sharepoint:
    • Path: /var/www/clients/client1/web43/web/apps/sharepoint
  • systemtags_management:
    • Path: /var/www/clients/client1/web43/web/apps/systemtags_management
  • theme-enterprise:
    • Path: /var/www/clients/client1/web43/web/apps/theme-enterprise
  • user_external:
    • Path: /var/www/clients/client1/web43/web/apps/user_external
  • user_ldap:
    • Path: /var/www/clients/client1/web43/web/apps/user_ldap
  • user_shibboleth:
    • Path: /var/www/clients/client1/web43/web/apps/user_shibboleth
  • web:
    • Path: /var/www/clients/client1/web43/web/apps/web
  • windows_network_drive:
    • Path: /var/www/clients/client1/web43/web/apps/windows_network_drive
  • wopi:
    • Path: /var/www/clients/client1/web43/web/apps/wopi
  • workflow:
    • Path: /var/www/clients/client1/web43/web/apps/workflow

Are you using external storage, if yes which one: local/smb/sftp/…
no
Are you using encryption: yes/no
no
Are you using an external user-backend, if yes which one: LDAP/ActiveDirectory/Webdav/…
no

Client configuration

Browser:
firefox
Operating system:
debian 11

Logs

Web server error log

[25/Apr/2023:21:06:25 +0200] “POST /login HTTP/2.0” 303 0 “-” “Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Firefox/102.0”
[25/Apr/2023:21:06:25 +0200] “GET /apps/files/ HTTP/2.0” 200 34911 “-” “Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Firefox/102.0”
[25/Apr/2023:21:06:26 +0200] “GET /core/js/oc.js?v=0ec32ce038eb1e78c536c48105553b70 HTTP/2.0” 200 5509 “-” “Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Firefox/102.0”
[25/Apr/2023:21:06:26 +0200] “GET /index.php/apps/firstrunwizard/wizard.php HTTP/2.0” 404 1807 “-” “Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Firefox/102.0”
[25/Apr/2023:21:06:26 +0200] “GET /cron.php HTTP/2.0” 302 0 “-” “Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Firefox/102.0”
[25/Apr/2023:21:06:26 +0200] “GET /ocs/v2.php/apps/notifications/api/v1/notifications?format=json HTTP/2.0” 200 108 “-” “Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Firefox/102.0”
[25/Apr/2023:21:06:26 +0200] “PROPFIND /remote.php/dav/files/dev-admin/ HTTP/2.0” 207 2988 “-” “Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Firefox/102.0”
[25/Apr/2023:21:06:26 +0200] “GET /index.php/apps/files/ajax/getstoragestats.php?dir=%2F HTTP/2.0” 404 1807 “-” “Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Firefox/102.0”
[25/Apr/2023:21:06:26 +0200] “GET /index.php/cron HTTP/2.0” 200 2 “-” “Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Firefox/102.0”
[25/Apr/2023:21:06:56 +0200] “GET /ocs/v2.php/apps/notifications/api/v1/notifications?format=json HTTP/2.0” 200 108 “-” “Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Firefox/102.0”

ownCloud log (data/owncloud.log)

no errors

Hey,

i’m not sure but as you are using nginx maybe the nginx configuration for ownCloud is insufficient. Maybe you can cross check yours with the following which is working for me without such issues:

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.