Zugriff auf den Ordner / fehlgeschlagen (oder jeden anderen)

Hallo,

I run Onwcloud since several years on my FreeBSD server but recently get the error message via the web client for whatever file location I click: “Zugriff auf den Ordner fehlgeschlagen”

There is no error in the http log

Server configuration

Operating system: FreeBSD

Web server: Apache24

Database: sqlite (small setup with few users)

PHP version: php74

ownCloud version: (see ownCloud admin page) 10.10 stable

Where did you install ownCloud from: tar bundle

Login as admin user into your ownCloud and access
No errors have been found.



**The content of config/config.php:**

{
    "system": {
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "datadirectory": "\/usr\/local\/www\/owncloud\/data",
        "dbtype": "sqlite3",
        "version": "10.10.0.3",
        "installed": true,
        "instanceid": "507da345ca667",
        "maintenance": false,
        "forcessl": false,
        "loglevel": 2,
        "theme": "",
        "default_language": "en_GB",
        "trusted_domains": [
            "www.mydomain.de",    <--- changed before comping in here
            "192.168.6.96",
            "192.168.6.96"
        ],
        "0": [
            "192.168.6.96"
        ],
        "mail_smtpmode": "smtp",
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",
        "mail_domain": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpport": "465",
        "mail_smtpsecure": "ssl",
        "mail_smtpauth": 1,
        "mail_smtpauthtype": "LOGIN",
        "mail_smtpname": "***REMOVED SENSITIVE VALUE***",
        "mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
        "allow_user_to_change_mail_address": ""
    }
}

**List of activated apps:**

If you have access to your command line run e.g.:
sudo -u www-data php occ app:list
Enabled:

  • activity:
    • Version: 2.7.0
    • Path: /usr/local/www/owncloud/apps/activity
  • calendar:
    • Version: 1.6.4
    • Path: /usr/local/www/owncloud/apps/calendar
  • comments:
    • Version: 0.3.0
    • Path: /usr/local/www/owncloud/apps/comments
  • configreport:
    • Version: 0.2.1
    • Path: /usr/local/www/owncloud/apps/configreport
  • contacts:
    • Version: 1.5.5
    • Path: /usr/local/www/owncloud/apps/contacts
  • dav:
    • Version: 0.7.0
    • Path: /usr/local/www/owncloud/apps/dav
  • federatedfilesharing:
    • Version: 0.5.0
    • Path: /usr/local/www/owncloud/apps/federatedfilesharing
  • federation:
    • Version: 0.1.0
    • Path: /usr/local/www/owncloud/apps/federation
  • files:
    • Version: 1.5.2
    • Path: /usr/local/www/owncloud/apps/files
  • files_external:
    • Version: 0.9.0
    • Path: /usr/local/www/owncloud/apps/files_external
  • files_mediaviewer:
    • Version: 1.0.5
    • Path: /usr/local/www/owncloud/apps/files_mediaviewer
  • files_pdfviewer:
    • Version: 1.0.1
    • Path: /usr/local/www/owncloud/apps/files_pdfviewer
  • files_sharing:
    • Version: 0.14.0
    • Path: /usr/local/www/owncloud/apps/files_sharing
  • files_texteditor:
    • Version: 2.4.1
    • Path: /usr/local/www/owncloud/apps/files_texteditor
  • files_trashbin:
    • Version: 0.9.1
    • Path: /usr/local/www/owncloud/apps/files_trashbin
  • files_versions:
    • Version: 1.3.0
    • Path: /usr/local/www/owncloud/apps/files_versions
  • firstrunwizard:
    • Version: 1.2.0
    • Path: /usr/local/www/owncloud/apps/firstrunwizard
  • gallery:
    • Version: 16.1.2
    • Path: /usr/local/www/owncloud/apps/gallery
  • market:
    • Version: 0.6.3
    • Path: /usr/local/www/owncloud/apps/market
  • notifications:
    • Version: 0.5.4
    • Path: /usr/local/www/owncloud/apps/notifications
  • provisioning_api:
    • Version: 0.5.0
    • Path: /usr/local/www/owncloud/apps/provisioning_api
  • systemtags:
    • Version: 0.3.0
    • Path: /usr/local/www/owncloud/apps/systemtags
  • templateeditor:
    • Version: 0.4.0
    • Path: /usr/local/www/owncloud/apps/templateeditor
  • updatenotification:
    • Version: 0.2.1
    • Path: /usr/local/www/owncloud/apps/updatenotification

Are you using external storage, if yes which one: local/smb/sftp/…
No

Are you using encryption: yes/no
I have an nginx server running that acts as proxy and forwards to my jail as follows:

location /owncloud {
     proxy_pass http://192.168.6.96:80;
     proxy_redirect off;
     proxy_set_header Host $host;
     proxy_set_header X-Real-IP $remote_addr;
     proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
     }

Are you using an external user-backend, if yes which one: no

With access to your command line run e.g.:
sudo -u www-data php occ ldap:show-config

There are no commands defined in the “ldap” namespace.

Client configuration

Browser:
Safari

Operating system:
Mac

Did you check the owwndership/permission of the data tree?

yes, on FreeBSD user/group is www:www

This is error I get

I changed log level to “0” but there is nothin in data/owncloud.log that looks suspicious.

Interestingly I see my files / folders that I could create in the past. But now I can’t upload/modify anything anymore.

Any other idea?

Found this now in nginx log:

“GET /owncloud/index.php/apps/files/ajax/getstoragestats.php?dir=%2FBBI HTTP/1.1” 404 27 "

Have you SELinux running?

Maybe of interest:

  • Check apache/php error logs.
  • Can you check that you still have the correct PHP version (7.4) including all required modules installed?
  • Try creating a file manually as the user www inside the ownCloud data directory using the command line: in Linux I would use something along the lines of sudo -u www touch ...