Cannot acces Nextcloud externally. Internally no problem

Support intro

Sorry to hear you’re facing problems :slightly_frowning_face:

help.nextcloud.com is for home/non-enterprise users. If you’re running a business, paid support can be accessed via portal.nextcloud.com where we can ensure your business keeps running smoothly.

In order to help you as quickly as possible, before clicking Create Topic please provide as much of the below as you can. Feel free to use a pastebin service for logs, otherwise either indent short log examples with four spaces:

example

Or for longer, use three backticks above and below the code snippet:

longer
example
here

Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can :heart:

Nextcloud version (eg, 20.0.5): 26.0.1.1
Operating system and version (eg, Ubuntu 20.04): Debian 11
Apache or nginx version (eg, Apache 2.4.25): Apache 2.4.56
PHP version (eg, 7.4): 8.1

The issue you are facing:
Cannot open Nextcloud externally. I can see the traffic coming in with TCPDUMP. So my 80/443 forwarding should be ok right? I use PfSense 2.6.0CE. I am not seeing anything in the firewall log.

Is this the first time you’ve seen this error? (Y/N): Y

Steps to replicate it:

The output of your Nextcloud log in Admin > Logging:

{"reqId":"7zS1hXy6oEYe30ulF7Q6","level":3,"time":"2023-05-01T07:55:02+02:00","remoteAddr":"","user":"--","app":"PHP","method":"","url":"--","message":"Undefined array key 548114 at /var/www/nextcloud/apps/files_versions/lib/Storage.php#615","userAgent":"--","version":"26.0.1.1","data":{"app":"PHP"}}
{"reqId":"7zS1hXy6oEYe30ulF7Q6","level":3,"time":"2023-05-01T07:55:02+02:00","remoteAddr":"","user":"--","app":"cron","method":"","url":"--","message":"OCP\\AppFramework\\Db\\QBMapper::delete(): Argument #1 ($entity) must be of type OCP\\AppFramework\\Db\\Entity, null given, called in /var/www/nextcloud/apps/files_versions/lib/Storage.php on line 615","userAgent":"--","version":"26.0.1.1","exception":{"Exception":"TypeError","Message":"OCP\\AppFramework\\Db\\QBMapper::delete(): Argument #1 ($entity) must be of type OCP\\AppFramework\\Db\\Entity, null given, called in /var/www/nextcloud/apps/files_versions/lib/Storage.php on line 615","Code":0,"Trace":[{"file":"/var/www/nextcloud/apps/files_versions/lib/Storage.php","line":615,"function":"delete","class":"OCP\\AppFramework\\Db\\QBMapper","type":"->"},{"file":"/var/www/nextcloud/apps/files_versions/lib/BackgroundJob/ExpireVersions.php","line":69,"function":"expireOlderThanMaxForUser","class":"OCA\\Files_Versions\\Storage","type":"::"},{"file":"/var/www/nextcloud/lib/private/User/Manager.php","line":639,"function":"OCA\\Files_Versions\\BackgroundJob\\{closure}","class":"OCA\\Files_Versions\\BackgroundJob\\ExpireVersions","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/nextcloud/apps/files_versions/lib/BackgroundJob/ExpireVersions.php","line":70,"function":"callForSeenUsers","class":"OC\\User\\Manager","type":"->"},{"file":"/var/www/nextcloud/lib/public/BackgroundJob/Job.php","line":78,"function":"run","class":"OCA\\Files_Versions\\BackgroundJob\\ExpireVersions","type":"->"},{"file":"/var/www/nextcloud/lib/public/BackgroundJob/TimedJob.php","line":103,"function":"start","class":"OCP\\BackgroundJob\\Job","type":"->"},{"file":"/var/www/nextcloud/lib/public/BackgroundJob/TimedJob.php","line":93,"function":"start","class":"OCP\\BackgroundJob\\TimedJob","type":"->"},{"file":"/var/www/nextcloud/cron.php","line":152,"function":"execute","class":"OCP\\BackgroundJob\\TimedJob","type":"->"}],"File":"/var/www/nextcloud/lib/public/AppFramework/Db/QBMapper.php","Line":96,"CustomMessage":"--"}}
{"reqId":"RhIxJpd2bdfii4iimwLN","level":3,"time":"2023-05-01T19:55:02+02:00","remoteAddr":"","user":"--","app":"PHP","method":"","url":"--","message":"Undefined array key 548114 at /var/www/nextcloud/apps/files_versions/lib/Storage.php#615","userAgent":"--","version":"26.0.1.1","data":{"app":"PHP"}}
{"reqId":"RhIxJpd2bdfii4iimwLN","level":3,"time":"2023-05-01T19:55:02+02:00","remoteAddr":"","user":"--","app":"cron","method":"","url":"--","message":"OCP\\AppFramework\\Db\\QBMapper::delete(): Argument #1 ($entity) must be of type OCP\\AppFramework\\Db\\Entity, null given, called in /var/www/nextcloud/apps/files_versions/lib/Storage.php on line 615","userAgent":"--","version":"26.0.1.1","exception":{"Exception":"TypeError","Message":"OCP\\AppFramework\\Db\\QBMapper::delete(): Argument #1 ($entity) must be of type OCP\\AppFramework\\Db\\Entity, null given, called in /var/www/nextcloud/apps/files_versions/lib/Storage.php on line 615","Code":0,"Trace":[{"file":"/var/www/nextcloud/apps/files_versions/lib/Storage.php","line":615,"function":"delete","class":"OCP\\AppFramework\\Db\\QBMapper","type":"->"},{"file":"/var/www/nextcloud/apps/files_versions/lib/BackgroundJob/ExpireVersions.php","line":69,"function":"expireOlderThanMaxForUser","class":"OCA\\Files_Versions\\Storage","type":"::"},{"file":"/var/www/nextcloud/lib/private/User/Manager.php","line":639,"function":"OCA\\Files_Versions\\BackgroundJob\\{closure}","class":"OCA\\Files_Versions\\BackgroundJob\\ExpireVersions","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/nextcloud/apps/files_versions/lib/BackgroundJob/ExpireVersions.php","line":70,"function":"callForSeenUsers","class":"OC\\User\\Manager","type":"->"},{"file":"/var/www/nextcloud/lib/public/BackgroundJob/Job.php","line":78,"function":"run","class":"OCA\\Files_Versions\\BackgroundJob\\ExpireVersions","type":"->"},{"file":"/var/www/nextcloud/lib/public/BackgroundJob/TimedJob.php","line":103,"function":"start","class":"OCP\\BackgroundJob\\Job","type":"->"},{"file":"/var/www/nextcloud/lib/public/BackgroundJob/TimedJob.php","line":93,"function":"start","class":"OCP\\BackgroundJob\\TimedJob","type":"->"},{"file":"/var/www/nextcloud/cron.php","line":152,"function":"execute","class":"OCP\\BackgroundJob\\TimedJob","type":"->"}],"File":"/var/www/nextcloud/lib/public/AppFramework/Db/QBMapper.php","Line":96,"CustomMessage":"--"}}
{"reqId":"VnYGd4CscVDNAdUSwvfF","level":3,"time":"2023-05-02T07:55:01+02:00","remoteAddr":"","user":"--","app":"PHP","method":"","url":"--","message":"Undefined array key 548114 at /var/www/nextcloud/apps/files_versions/lib/Storage.php#615","userAgent":"--","version":"26.0.1.1","data":{"app":"PHP"}}
{"reqId":"VnYGd4CscVDNAdUSwvfF","level":3,"time":"2023-05-02T07:55:01+02:00","remoteAddr":"","user":"--","app":"cron","method":"","url":"--","message":"OCP\\AppFramework\\Db\\QBMapper::delete(): Argument #1 ($entity) must be of type OCP\\AppFramework\\Db\\Entity, null given, called in /var/www/nextcloud/apps/files_versions/lib/Storage.php on line 615","userAgent":"--","version":"26.0.1.1","exception":{"Exception":"TypeError","Message":"OCP\\AppFramework\\Db\\QBMapper::delete(): Argument #1 ($entity) must be of type OCP\\AppFramework\\Db\\Entity, null given, called in /var/www/nextcloud/apps/files_versions/lib/Storage.php on line 615","Code":0,"Trace":[{"file":"/var/www/nextcloud/apps/files_versions/lib/Storage.php","line":615,"function":"delete","class":"OCP\\AppFramework\\Db\\QBMapper","type":"->"},{"file":"/var/www/nextcloud/apps/files_versions/lib/BackgroundJob/ExpireVersions.php","line":69,"function":"expireOlderThanMaxForUser","class":"OCA\\Files_Versions\\Storage","type":"::"},{"file":"/var/www/nextcloud/lib/private/User/Manager.php","line":639,"function":"OCA\\Files_Versions\\BackgroundJob\\{closure}","class":"OCA\\Files_Versions\\BackgroundJob\\ExpireVersions","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/nextcloud/apps/files_versions/lib/BackgroundJob/ExpireVersions.php","line":70,"function":"callForSeenUsers","class":"OC\\User\\Manager","type":"->"},{"file":"/var/www/nextcloud/lib/public/BackgroundJob/Job.php","line":78,"function":"run","class":"OCA\\Files_Versions\\BackgroundJob\\ExpireVersions","type":"->"},{"file":"/var/www/nextcloud/lib/public/BackgroundJob/TimedJob.php","line":103,"function":"start","class":"OCP\\BackgroundJob\\Job","type":"->"},{"file":"/var/www/nextcloud/lib/public/BackgroundJob/TimedJob.php","line":93,"function":"start","class":"OCP\\BackgroundJob\\TimedJob","type":"->"},{"file":"/var/www/nextcloud/cron.php","line":152,"function":"execute","class":"OCP\\BackgroundJob\\TimedJob","type":"->"}],"File":"/var/www/nextcloud/lib/public/AppFramework/Db/QBMapper.php","Line":96,"CustomMessage":"--"}}
{"reqId":"cGCk8PmLpqsIsevqPBXD","level":3,"time":"2023-05-02T19:55:02+02:00","remoteAddr":"","user":"--","app":"PHP","method":"","url":"--","message":"Undefined array key 548114 at /var/www/nextcloud/apps/files_versions/lib/Storage.php#615","userAgent":"--","version":"26.0.1.1","data":{"app":"PHP"}}
{"reqId":"cGCk8PmLpqsIsevqPBXD","level":3,"time":"2023-05-02T19:55:02+02:00","remoteAddr":"","user":"--","app":"cron","method":"","url":"--","message":"OCP\\AppFramework\\Db\\QBMapper::delete(): Argument #1 ($entity) must be of type OCP\\AppFramework\\Db\\Entity, null given, called in /var/www/nextcloud/apps/files_versions/lib/Storage.php on line 615","userAgent":"--","version":"26.0.1.1","exception":{"Exception":"TypeError","Message":"OCP\\AppFramework\\Db\\QBMapper::delete(): Argument #1 ($entity) must be of type OCP\\AppFramework\\Db\\Entity, null given, called in /var/www/nextcloud/apps/files_versions/lib/Storage.php on line 615","Code":0,"Trace":[{"file":"/var/www/nextcloud/apps/files_versions/lib/Storage.php","line":615,"function":"delete","class":"OCP\\AppFramework\\Db\\QBMapper","type":"->"},{"file":"/var/www/nextcloud/apps/files_versions/lib/BackgroundJob/ExpireVersions.php","line":69,"function":"expireOlderThanMaxForUser","class":"OCA\\Files_Versions\\Storage","type":"::"},{"file":"/var/www/nextcloud/lib/private/User/Manager.php","line":639,"function":"OCA\\Files_Versions\\BackgroundJob\\{closure}","class":"OCA\\Files_Versions\\BackgroundJob\\ExpireVersions","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/nextcloud/apps/files_versions/lib/BackgroundJob/ExpireVersions.php","line":70,"function":"callForSeenUsers","class":"OC\\User\\Manager","type":"->"},{"file":"/var/www/nextcloud/lib/public/BackgroundJob/Job.php","line":78,"function":"run","class":"OCA\\Files_Versions\\BackgroundJob\\ExpireVersions","type":"->"},{"file":"/var/www/nextcloud/lib/public/BackgroundJob/TimedJob.php","line":103,"function":"start","class":"OCP\\BackgroundJob\\Job","type":"->"},{"file":"/var/www/nextcloud/lib/public/BackgroundJob/TimedJob.php","line":93,"function":"start","class":"OCP\\BackgroundJob\\TimedJob","type":"->"},{"file":"/var/www/nextcloud/cron.php","line":152,"function":"execute","class":"OCP\\BackgroundJob\\TimedJob","type":"->"}],"File":"/var/www/nextcloud/lib/public/AppFramework/Db/QBMapper.php","Line":96,"CustomMessage":"--"}}
{"reqId":"Hc3FmY5kH5jFhMeyVpvl","level":3,"time":"2023-05-03T07:55:01+02:00","remoteAddr":"","user":"--","app":"PHP","method":"","url":"--","message":"Undefined array key 548114 at /var/www/nextcloud/apps/files_versions/lib/Storage.php#615","userAgent":"--","version":"26.0.1.1","data":{"app":"PHP"}}
{"reqId":"Hc3FmY5kH5jFhMeyVpvl","level":3,"time":"2023-05-03T07:55:01+02:00","remoteAddr":"","user":"--","app":"cron","method":"","url":"--","message":"OCP\\AppFramework\\Db\\QBMapper::delete(): Argument #1 ($entity) must be of type OCP\\AppFramework\\Db\\Entity, null given, called in /var/www/nextcloud/apps/files_versions/lib/Storage.php on line 615","userAgent":"--","version":"26.0.1.1","exception":{"Exception":"TypeError","Message":"OCP\\AppFramework\\Db\\QBMapper::delete(): Argument #1 ($entity) must be of type OCP\\AppFramework\\Db\\Entity, null given, called in /var/www/nextcloud/apps/files_versions/lib/Storage.php on line 615","Code":0,"Trace":[{"file":"/var/www/nextcloud/apps/files_versions/lib/Storage.php","line":615,"function":"delete","class":"OCP\\AppFramework\\Db\\QBMapper","type":"->"},{"file":"/var/www/nextcloud/apps/files_versions/lib/BackgroundJob/ExpireVersions.php","line":69,"function":"expireOlderThanMaxForUser","class":"OCA\\Files_Versions\\Storage","type":"::"},{"file":"/var/www/nextcloud/lib/private/User/Manager.php","line":639,"function":"OCA\\Files_Versions\\BackgroundJob\\{closure}","class":"OCA\\Files_Versions\\BackgroundJob\\ExpireVersions","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/nextcloud/apps/files_versions/lib/BackgroundJob/ExpireVersions.php","line":70,"function":"callForSeenUsers","class":"OC\\User\\Manager","type":"->"},{"file":"/var/www/nextcloud/lib/public/BackgroundJob/Job.php","line":78,"function":"run","class":"OCA\\Files_Versions\\BackgroundJob\\ExpireVersions","type":"->"},{"file":"/var/www/nextcloud/lib/public/BackgroundJob/TimedJob.php","line":103,"function":"start","class":"OCP\\BackgroundJob\\Job","type":"->"},{"file":"/var/www/nextcloud/lib/public/BackgroundJob/TimedJob.php","line":93,"function":"start","class":"OCP\\BackgroundJob\\TimedJob","type":"->"},{"file":"/var/www/nextcloud/cron.php","line":152,"function":"execute","class":"OCP\\BackgroundJob\\TimedJob","type":"->"}],"File":"/var/www/nextcloud/lib/public/AppFramework/Db/QBMapper.php","Line":96,"CustomMessage":"--"}}
{"reqId":"CpzFZZrHSLt5SqKH7oQR","level":3,"time":"2023-05-03T15:37:33+02:00","remoteAddr":"192.168.100.80","user":"n.janssen@supsolit.nl","app":"webdav","method":"MOVE","url":"/remote.php/dav/files/n.janssen@supsolit.nl/00_Installatie%20Bestand/","message":"\"00_Installatie Bestand\" is locked","userAgent":"Mozilla/5.0 (Android) Nextcloud-android/3.24.2","version":"26.0.1.1","exception":{"Exception":"OCP\\Lock\\LockedException","Message":"\"00_Installatie Bestand\" is locked","Code":0,"Trace":[{"file":"/var/www/nextcloud/lib/private/Files/View.php","line":804,"function":"changeLock","class":"OC\\Files\\View","type":"->"},{"file":"/var/www/nextcloud/apps/dav/lib/Connector/Sabre/Node.php","line":156,"function":"rename","class":"OC\\Files\\View","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Tree.php","line":153,"function":"setName","class":"OCA\\DAV\\Connector\\Sabre\\Node","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php","line":612,"function":"move","class":"Sabre\\DAV\\Tree","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php","line":89,"function":"httpMove","class":"Sabre\\DAV\\CorePlugin","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":472,"function":"emit","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":253,"function":"invokeMethod","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":321,"function":"start","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/apps/dav/lib/Server.php","line":366,"function":"exec","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/apps/dav/appinfo/v2/remote.php","line":35,"function":"exec","class":"OCA\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/remote.php","line":172,"args":["/var/www/nextcloud/apps/dav/appinfo/v2/remote.php"],"function":"require_once"}],"File":"/var/www/nextcloud/lib/private/Files/View.php","Line":2018,"Previous":{"Exception":"OCP\\Lock\\LockedException","Message":"\"files/e7723b48b5c92446e1185be250f6d7db\" is locked","Code":0,"Trace":[{"file":"/var/www/nextcloud/lib/private/Files/Storage/Common.php","line":826,"function":"changeLock","class":"OC\\Lock\\DBLockingProvider","type":"->"},{"file":"/var/www/nextcloud/lib/private/Files/Storage/Wrapper/Wrapper.php","line":629,"function":"changeLock","class":"OC\\Files\\Storage\\Common","type":"->"},{"file":"/var/www/nextcloud/lib/private/Files/Storage/Wrapper/Wrapper.php","line":629,"function":"changeLock","class":"OC\\Files\\Storage\\Wrapper\\Wrapper","type":"->"},{"file":"/var/www/nextcloud/lib/private/Files/View.php","line":2012,"function":"changeLock","class":"OC\\Files\\Storage\\Wrapper\\Wrapper","type":"->"},{"file":"/var/www/nextcloud/lib/private/Files/View.php","line":804,"function":"changeLock","class":"OC\\Files\\View","type":"->"},{"file":"/var/www/nextcloud/apps/dav/lib/Connector/Sabre/Node.php","line":156,"function":"rename","class":"OC\\Files\\View","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Tree.php","line":153,"function":"setName","class":"OCA\\DAV\\Connector\\Sabre\\Node","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php","line":612,"function":"move","class":"Sabre\\DAV\\Tree","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php","line":89,"function":"httpMove","class":"Sabre\\DAV\\CorePlugin","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":472,"function":"emit","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":253,"function":"invokeMethod","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":321,"function":"start","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/apps/dav/lib/Server.php","line":366,"function":"exec","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/apps/dav/appinfo/v2/remote.php","line":35,"function":"exec","class":"OCA\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/remote.php","line":172,"args":["/var/www/nextcloud/apps/dav/appinfo/v2/remote.php"],"function":"require_once"}],"File":"/var/www/nextcloud/lib/private/Lock/DBLockingProvider.php","Line":220},"message":"\"00_Installatie Bestand\" is locked","exception":{},"CustomMessage":"\"00_Installatie Bestand\" is locked"}}
{"reqId":"UEhddwfS2gUi1hAqxY7B","level":3,"time":"2023-05-03T15:38:00+02:00","remoteAddr":"192.168.100.80","user":"n.janssen@supsolit.nl","app":"webdav","method":"MOVE","url":"/remote.php/dav/files/n.janssen@supsolit.nl/00_Installatie%20Bestand/","message":"\"00_Installatie Bestand\" is locked","userAgent":"Mozilla/5.0 (Android) Nextcloud-android/3.24.2","version":"26.0.1.1","exception":{"Exception":"OCP\\Lock\\LockedException","Message":"\"00_Installatie Bestand\" is locked","Code":0,"Trace":[{"file":"/var/www/nextcloud/lib/private/Files/View.php","line":804,"function":"changeLock","class":"OC\\Files\\View","type":"->"},{"file":"/var/www/nextcloud/apps/dav/lib/Connector/Sabre/Node.php","line":156,"function":"rename","class":"OC\\Files\\View","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Tree.php","line":153,"function":"setName","class":"OCA\\DAV\\Connector\\Sabre\\Node","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php","line":612,"function":"move","class":"Sabre\\DAV\\Tree","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php","line":89,"function":"httpMove","class":"Sabre\\DAV\\CorePlugin","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":472,"function":"emit","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":253,"function":"invokeMethod","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":321,"function":"start","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/apps/dav/lib/Server.php","line":366,"function":"exec","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/apps/dav/appinfo/v2/remote.php","line":35,"function":"exec","class":"OCA\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/remote.php","line":172,"args":["/var/www/nextcloud/apps/dav/appinfo/v2/remote.php"],"function":"require_once"}],"File":"/var/www/nextcloud/lib/private/Files/View.php","Line":2018,"Previous":{"Exception":"OCP\\Lock\\LockedException","Message":"\"files/e7723b48b5c92446e1185be250f6d7db\" is locked","Code":0,"Trace":[{"file":"/var/www/nextcloud/lib/private/Files/Storage/Common.php","line":826,"function":"changeLock","class":"OC\\Lock\\DBLockingProvider","type":"->"},{"file":"/var/www/nextcloud/lib/private/Files/Storage/Wrapper/Wrapper.php","line":629,"function":"changeLock","class":"OC\\Files\\Storage\\Common","type":"->"},{"file":"/var/www/nextcloud/lib/private/Files/Storage/Wrapper/Wrapper.php","line":629,"function":"changeLock","class":"OC\\Files\\Storage\\Wrapper\\Wrapper","type":"->"},{"file":"/var/www/nextcloud/lib/private/Files/View.php","line":2012,"function":"changeLock","class":"OC\\Files\\Storage\\Wrapper\\Wrapper","type":"->"},{"file":"/var/www/nextcloud/lib/private/Files/View.php","line":804,"function":"changeLock","class":"OC\\Files\\View","type":"->"},{"file":"/var/www/nextcloud/apps/dav/lib/Connector/Sabre/Node.php","line":156,"function":"rename","class":"OC\\Files\\View","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Tree.php","line":153,"function":"setName","class":"OCA\\DAV\\Connector\\Sabre\\Node","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php","line":612,"function":"move","class":"Sabre\\DAV\\Tree","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php","line":89,"function":"httpMove","class":"Sabre\\DAV\\CorePlugin","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":472,"function":"emit","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":253,"function":"invokeMethod","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":321,"function":"start","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/apps/dav/lib/Server.php","line":366,"function":"exec","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/apps/dav/appinfo/v2/remote.php","line":35,"function":"exec","class":"OCA\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/remote.php","line":172,"args":["/var/www/nextcloud/apps/dav/appinfo/v2/remote.php"],"function":"require_once"}],"File":"/var/www/nextcloud/lib/private/Lock/DBLockingProvider.php","Line":220},"message":"\"00_Installatie Bestand\" is locked","exception":{},"CustomMessage":"\"00_Installatie Bestand\" is locked"}}
{"reqId":"9FyIGo0xUDyccnWM0W5i","level":3,"time":"2023-05-03T19:55:01+02:00","remoteAddr":"","user":"--","app":"PHP","method":"","url":"--","message":"Undefined array key 548114 at /var/www/nextcloud/apps/files_versions/lib/Storage.php#615","userAgent":"--","version":"26.0.1.1","data":{"app":"PHP"}}
{"reqId":"9FyIGo0xUDyccnWM0W5i","level":3,"time":"2023-05-03T19:55:01+02:00","remoteAddr":"","user":"--","app":"cron","method":"","url":"--","message":"OCP\\AppFramework\\Db\\QBMapper::delete(): Argument #1 ($entity) must be of type OCP\\AppFramework\\Db\\Entity, null given, called in /var/www/nextcloud/apps/files_versions/lib/Storage.php on line 615","userAgent":"--","version":"26.0.1.1","exception":{"Exception":"TypeError","Message":"OCP\\AppFramework\\Db\\QBMapper::delete(): Argument #1 ($entity) must be of type OCP\\AppFramework\\Db\\Entity, null given, called in /var/www/nextcloud/apps/files_versions/lib/Storage.php on line 615","Code":0,"Trace":[{"file":"/var/www/nextcloud/apps/files_versions/lib/Storage.php","line":615,"function":"delete","class":"OCP\\AppFramework\\Db\\QBMapper","type":"->"},{"file":"/var/www/nextcloud/apps/files_versions/lib/BackgroundJob/ExpireVersions.php","line":69,"function":"expireOlderThanMaxForUser","class":"OCA\\Files_Versions\\Storage","type":"::"},{"file":"/var/www/nextcloud/lib/private/User/Manager.php","line":639,"function":"OCA\\Files_Versions\\BackgroundJob\\{closure}","class":"OCA\\Files_Versions\\BackgroundJob\\ExpireVersions","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/nextcloud/apps/files_versions/lib/BackgroundJob/ExpireVersions.php","line":70,"function":"callForSeenUsers","class":"OC\\User\\Manager","type":"->"},{"file":"/var/www/nextcloud/lib/public/BackgroundJob/Job.php","line":78,"function":"run","class":"OCA\\Files_Versions\\BackgroundJob\\ExpireVersions","type":"->"},{"file":"/var/www/nextcloud/lib/public/BackgroundJob/TimedJob.php","line":103,"function":"start","class":"OCP\\BackgroundJob\\Job","type":"->"},{"file":"/var/www/nextcloud/lib/public/BackgroundJob/TimedJob.php","line":93,"function":"start","class":"OCP\\BackgroundJob\\TimedJob","type":"->"},{"file":"/var/www/nextcloud/cron.php","line":152,"function":"execute","class":"OCP\\BackgroundJob\\TimedJob","type":"->"}],"File":"/var/www/nextcloud/lib/public/AppFramework/Db/QBMapper.php","Line":96,"CustomMessage":"--"}}
{"reqId":"fXlVWuxNaRPzFONbYp88","level":3,"time":"2023-05-04T07:55:01+02:00","remoteAddr":"","user":"--","app":"PHP","method":"","url":"--","message":"Undefined array key 548114 at /var/www/nextcloud/apps/files_versions/lib/Storage.php#615","userAgent":"--","version":"26.0.1.1","data":{"app":"PHP"}}
{"reqId":"fXlVWuxNaRPzFONbYp88","level":3,"time":"2023-05-04T07:55:01+02:00","remoteAddr":"","user":"--","app":"cron","method":"","url":"--","message":"OCP\\AppFramework\\Db\\QBMapper::delete(): Argument #1 ($entity) must be of type OCP\\AppFramework\\Db\\Entity, null given, called in /var/www/nextcloud/apps/files_versions/lib/Storage.php on line 615","userAgent":"--","version":"26.0.1.1","exception":{"Exception":"TypeError","Message":"OCP\\AppFramework\\Db\\QBMapper::delete(): Argument #1 ($entity) must be of type OCP\\AppFramework\\Db\\Entity, null given, called in /var/www/nextcloud/apps/files_versions/lib/Storage.php on line 615","Code":0,"Trace":[{"file":"/var/www/nextcloud/apps/files_versions/lib/Storage.php","line":615,"function":"delete","class":"OCP\\AppFramework\\Db\\QBMapper","type":"->"},{"file":"/var/www/nextcloud/apps/files_versions/lib/BackgroundJob/ExpireVersions.php","line":69,"function":"expireOlderThanMaxForUser","class":"OCA\\Files_Versions\\Storage","type":"::"},{"file":"/var/www/nextcloud/lib/private/User/Manager.php","line":639,"function":"OCA\\Files_Versions\\BackgroundJob\\{closure}","class":"OCA\\Files_Versions\\BackgroundJob\\ExpireVersions","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/nextcloud/apps/files_versions/lib/BackgroundJob/ExpireVersions.php","line":70,"function":"callForSeenUsers","class":"OC\\User\\Manager","type":"->"},{"file":"/var/www/nextcloud/lib/public/BackgroundJob/Job.php","line":78,"function":"run","class":"OCA\\Files_Versions\\BackgroundJob\\ExpireVersions","type":"->"},{"file":"/var/www/nextcloud/lib/public/BackgroundJob/TimedJob.php","line":103,"function":"start","class":"OCP\\BackgroundJob\\Job","type":"->"},{"file":"/var/www/nextcloud/lib/public/BackgroundJob/TimedJob.php","line":93,"function":"start","class":"OCP\\BackgroundJob\\TimedJob","type":"->"},{"file":"/var/www/nextcloud/cron.php","line":152,"function":"execute","class":"OCP\\BackgroundJob\\TimedJob","type":"->"}],"File":"/var/www/nextcloud/lib/public/AppFramework/Db/QBMapper.php","Line":96,"CustomMessage":"--"}}
{"reqId":"2E2epNjhawY91tMbIwQa","level":3,"time":"2023-05-04T19:55:01+02:00","remoteAddr":"","user":"--","app":"PHP","method":"","url":"--","message":"Undefined array key 548114 at /var/www/nextcloud/apps/files_versions/lib/Storage.php#615","userAgent":"--","version":"26.0.1.1","data":{"app":"PHP"}}
{"reqId":"2E2epNjhawY91tMbIwQa","level":3,"time":"2023-05-04T19:55:01+02:00","remoteAddr":"","user":"--","app":"cron","method":"","url":"--","message":"OCP\\AppFramework\\Db\\QBMapper::delete(): Argument #1 ($entity) must be of type OCP\\AppFramework\\Db\\Entity, null given, called in /var/www/nextcloud/apps/files_versions/lib/Storage.php on line 615","userAgent":"--","version":"26.0.1.1","exception":{"Exception":"TypeError","Message":"OCP\\AppFramework\\Db\\QBMapper::delete(): Argument #1 ($entity) must be of type OCP\\AppFramework\\Db\\Entity, null given, called in /var/www/nextcloud/apps/files_versions/lib/Storage.php on line 615","Code":0,"Trace":[{"file":"/var/www/nextcloud/apps/files_versions/lib/Storage.php","line":615,"function":"delete","class":"OCP\\AppFramework\\Db\\QBMapper","type":"->"},{"file":"/var/www/nextcloud/apps/files_versions/lib/BackgroundJob/ExpireVersions.php","line":69,"function":"expireOlderThanMaxForUser","class":"OCA\\Files_Versions\\Storage","type":"::"},{"file":"/var/www/nextcloud/lib/private/User/Manager.php","line":639,"function":"OCA\\Files_Versions\\BackgroundJob\\{closure}","class":"OCA\\Files_Versions\\BackgroundJob\\ExpireVersions","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/nextcloud/apps/files_versions/lib/BackgroundJob/ExpireVersions.php","line":70,"function":"callForSeenUsers","class":"OC\\User\\Manager","type":"->"},{"file":"/var/www/nextcloud/lib/public/BackgroundJob/Job.php","line":78,"function":"run","class":"OCA\\Files_Versions\\BackgroundJob\\ExpireVersions","type":"->"},{"file":"/var/www/nextcloud/lib/public/BackgroundJob/TimedJob.php","line":103,"function":"start","class":"OCP\\BackgroundJob\\Job","type":"->"},{"file":"/var/www/nextcloud/lib/public/BackgroundJob/TimedJob.php","line":93,"function":"start","class":"OCP\\BackgroundJob\\TimedJob","type":"->"},{"file":"/var/www/nextcloud/cron.php","line":152,"function":"execute","class":"OCP\\BackgroundJob\\TimedJob","type":"->"}],"File":"/var/www/nextcloud/lib/public/AppFramework/Db/QBMapper.php","Line":96,"CustomMessage":"--"}}
{"reqId":"NUqsvRriveuCO0BWWHpE","level":3,"time":"2023-05-05T07:55:01+02:00","remoteAddr":"","user":"--","app":"PHP","method":"","url":"--","message":"Undefined array key 548114 at /var/www/nextcloud/apps/files_versions/lib/Storage.php#615","userAgent":"--","version":"26.0.1.1","data":{"app":"PHP"}}
{"reqId":"NUqsvRriveuCO0BWWHpE","level":3,"time":"2023-05-05T07:55:01+02:00","remoteAddr":"","user":"--","app":"cron","method":"","url":"--","message":"OCP\\AppFramework\\Db\\QBMapper::delete(): Argument #1 ($entity) must be of type OCP\\AppFramework\\Db\\Entity, null given, called in /var/www/nextcloud/apps/files_versions/lib/Storage.php on line 615","userAgent":"--","version":"26.0.1.1","exception":{"Exception":"TypeError","Message":"OCP\\AppFramework\\Db\\QBMapper::delete(): Argument #1 ($entity) must be of type OCP\\AppFramework\\Db\\Entity, null given, called in /var/www/nextcloud/apps/files_versions/lib/Storage.php on line 615","Code":0,"Trace":[{"file":"/var/www/nextcloud/apps/files_versions/lib/Storage.php","line":615,"function":"delete","class":"OCP\\AppFramework\\Db\\QBMapper","type":"->"},{"file":"/var/www/nextcloud/apps/files_versions/lib/BackgroundJob/ExpireVersions.php","line":69,"function":"expireOlderThanMaxForUser","class":"OCA\\Files_Versions\\Storage","type":"::"},{"file":"/var/www/nextcloud/lib/private/User/Manager.php","line":639,"function":"OCA\\Files_Versions\\BackgroundJob\\{closure}","class":"OCA\\Files_Versions\\BackgroundJob\\ExpireVersions","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/nextcloud/apps/files_versions/lib/BackgroundJob/ExpireVersions.php","line":70,"function":"callForSeenUsers","class":"OC\\User\\Manager","type":"->"},{"file":"/var/www/nextcloud/lib/public/BackgroundJob/Job.php","line":78,"function":"run","class":"OCA\\Files_Versions\\BackgroundJob\\ExpireVersions","type":"->"},{"file":"/var/www/nextcloud/lib/public/BackgroundJob/TimedJob.php","line":103,"function":"start","class":"OCP\\BackgroundJob\\Job","type":"->"},{"file":"/var/www/nextcloud/lib/public/BackgroundJob/TimedJob.php","line":93,"function":"start","class":"OCP\\BackgroundJob\\TimedJob","type":"->"},{"file":"/var/www/nextcloud/cron.php","line":152,"function":"execute","class":"OCP\\BackgroundJob\\TimedJob","type":"->"}],"File":"/var/www/nextcloud/lib/public/AppFramework/Db/QBMapper.php","Line":96,"CustomMessage":"--"}}

The output of your config.php file in /path/to/nextcloud (make sure you remove any identifiable information!):

$CONFIG = array (
  'instanceid' => 'ocfh873y5buk',
  'passwordsalt' => 'QA/+tLhTKKeix9f6+g/e0bysIX7aQpdjr#59',
  'secret' => 'lYeWnKVgJAD9wm0s3Xvv+5eIpWwJ38dmns4BYK6eHwLOWxjzv',
  'trusted_domains' =>
  array (
    0 => 'cloud.domain.nl',
  ),
  'datadirectory' => '/mnt/nextclouddata',
  'dbtype' => 'mysql',
  'version' => '26.0.1.1',
  'overwrite.cli.url' => 'https://cloud.domain.nl',
  'dbname' => 'nextcloud',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'nextcloud',
  'dbpassword' => 'PASSWORD',
  'installed' => true,
  'loglevel' => '3',
  'log_type' => 'file',
  'logfile' => '/mnt/nextclouddata//nextcloud.log',
  'logtimezone' => 'Europe/Amsterdam',
  'mail_from_address' => 'Thuis',
  'mail_domain' => 'Nextcloud.nl',
  'mail_smtphost' => 'Smtp.server.nl',
  'mail_smtpport' => '25',
  'htaccess.RewriteBase' => '/',
  'default_phone_region' => 'NL',
  'default_locale' => 'nl_NL',
  'defaultapp' => 'files,dashboard',
  'trashbin_retention_obligation' => 'auto, 14',
  'versions_retention_obligation' => 'auto, 14',
  'enable_previews' => true,
  'preview_max_x' => 4096,

  'preview_max_filesize_image' => 50,
  'activity_expire_days' => 180,
  'memcache.local' => '\\OC\\Memcache\\Redis',
  'memcache.distributed' => '\\OC\\Memcache\\Redis',
  'redis' =>
  array (
    'host' => '/var/run/redis/redis-server.sock',
    'port' => 0,
  ),
  'maintenance' => false,
  'updater.release.channel' => 'stable',
  'trusted_proxies' =>
  array (
    0 => '127.0.0.1',
    1 => '172.16.20.250',
    2 => '172.16.20.252',
    3 => '::1',
    4 => '195.1.1.1',
  ),
  'mail_smtpmode' => 'smtp',
  'mail_sendmailmode' => 'smtp',
  'theme' => '',
  'twofactor_enforced' => 'false',
  'twofactor_enforced_groups' =>
  array (
  ),
  'twofactor_enforced_excluded_groups' =>
  array (
  ),
  'mail_smtpauth' => 1,
  'mail_smtpname' => 'USER',
  'mail_smtppassword' => 'PASSWORD',
  'mail_smtpsecure' => 'ssl',

The output of your Apache/nginx/system log in /var/log/____:

Linux cloud 5.10.0-22-amd64 #1 SMP Debian 5.10.178-3 (2023-04-22) x86_64

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

root@cloud:/var/www/nextcloud# ls

root@cloud:/var/www/nextcloud/config# cd\
> ^C

root@cloud:/var/log# ls
            

  GNU nano 5.4                                                                       error.log
[Fri May 05 00:00:01.481520 2023] [mpm_prefork:notice] [pid 630] AH00163: Apache/2.4.56 (Debian) OpenSSL/1.1.1n configured -- resuming normal operations
[Fri May 05 00:00:01.481547 2023] [core:notice] [pid 630] AH00094: Command line: '/usr/sbin/apache2'
[Fri May 05 00:17:17.245844 2023] [proxy:error] [pid 3605] (111)Connection refused: AH00957: ws: attempt to connect to 127.0.0.1:7867 (localhost:7867) failed
[Fri May 05 00:17:17.245895 2023] [proxy_http:error] [pid 3605] [client 192.168.100.230:49080] AH01114: HTTP: failed to make connection to backend: localhost
[Fri May 05 01:12:39.964008 2023] [proxy:error] [pid 3757] (111)Connection refused: AH00957: ws: attempt to connect to 127.0.0.1:7867 (localhost:7867) failed
[Fri May 05 01:12:39.964058 2023] [proxy_http:error] [pid 3757] [client 10.99.99.100:44696] AH01114: HTTP: failed to make connection to backend: localhost
[Fri May 05 01:12:41.251475 2023] [proxy:error] [pid 3760] (111)Connection refused: AH00957: ws: attempt to connect to 127.0.0.1:7867 (localhost:7867) failed
[Fri May 05 01:12:41.251520 2023] [proxy_http:error] [pid 3760] [client 10.99.99.100:44708] AH01114: HTTP: failed to make connection to backend: localhost
[Fri May 05 01:12:42.239314 2023] [proxy:error] [pid 3759] (111)Connection refused: AH00957: ws: attempt to connect to 127.0.0.1:7867 (localhost:7867) failed
[Fri May 05 01:12:42.239342 2023] [proxy_http:error] [pid 3759] [client 10.99.99.100:44714] AH01114: HTTP: failed to make connection to backend: localhost
[Fri May 05 01:12:44.575886 2023] [proxy:error] [pid 3604] (111)Connection refused: AH00957: ws: attempt to connect to 127.0.0.1:7867 (localhost:7867) failed
[Fri May 05 01:12:44.575917 2023] [proxy_http:error] [pid 3604] [client 10.99.99.100:53910] AH01114: HTTP: failed to make connection to backend: localhost
[Fri May 05 10:45:49.869257 2023] [authz_core:error] [pid 3603] [client 195.96.137.6:36338] AH01630: client denied by server configuration: /var/www/nextcloud/server-status
                                                                          

PASTE HERE


Output errors in nextcloud.log in /var/www/ or as admin user in top right menu, filtering for errors. Use a pastebin service if necessary.

PASTE HERE

GUI, Logging:

Yes, assuming the traffic you saw was from a public IP address.

Do you have logging enabled for that rule in PFSense?

Are you getting any kind of error or just a timeout?

The problem could be with the Apache config also.

Yes traffic from public IP.
Logging is enable for the rules in PfSense. But the weird thing is, it isnt showing anything. When i ping the address i do see that traffic in the log.
Just a timeout.

Would and where should i check?