Unable to delete preinstalled files as admin

I just installed a brand new OOTB Nextcloud instance on docker W11 with mariaDB. I was able to delete all of the preinstalled files except one called Photo book.odt. It says ““Delete file” action failed” when I try and delete that last file or the templates folder. I also tried deleting the file using the rm -f command in Powershell. Seeing that I’m logged in as ADMIN, why can’t I delete this file?

I also tried: su -s /bin/bash www-data -c ‘php occ files:cleanup’
0 orphaned file cache entries deleted
0 orphaned mount entries deleted

Please share a bit more about your Docker volumes setup.

I assume the “Delete file” action failed message was from the Web UI in Nextcloud? What does the log file say (nextcloud.log)? It may have more clues.

I also tried deleting the file using the rm -f command in Powershell. Seeing that I’m logged in as ADMIN, why can’t I delete this file?

And what happened? Do note it has a space so you’ll have to quote the name or escape the space.

You’re running in Windows there are additional layers of complication. Though I don’t know why you’d have a problem with only a single file.

I typed rm -f “photo book.odt” and it did not work even though the command was accepted, literally nothing happened. I see nothing in the logs and I did put the command in quotes. I am not allowed to upload attachments as a new user. Here is the exported log:

{"reqId":"L4bhvB79PlhjFWIEDn3n","level":2,"time":"2024-07-07T18:26:09+00:00","remoteAddr":"172.19.0.1","user":"--","app":"no app in context","method":"GET","url":"/","message":"Host localhost was not connected to because it violates local access rules","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36 Edg/126.0.0.0","version":"","data":[]}
{"reqId":"L4bhvB79PlhjFWIEDn3n","level":2,"time":"2024-07-07T18:26:09+00:00","remoteAddr":"172.19.0.1","user":"--","app":"no app in context","method":"GET","url":"/","message":"Host localhost was not connected to because it violates local access rules","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36 Edg/126.0.0.0","version":"","data":[]}
{"reqId":"L4bhvB79PlhjFWIEDn3n","level":3,"time":"2024-07-07T18:26:09+00:00","remoteAddr":"172.19.0.1","user":"--","app":"PHP","method":"GET","url":"/","message":"fopen(/var/www/html/config/config.php): Failed to open stream: No such file or directory at /var/www/html/lib/private/Config.php#221","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36 Edg/126.0.0.0","version":"","data":{"app":"PHP"}}
{"reqId":"PH4vznhPopPar8NxVNSQ","level":2,"time":"2024-07-07T18:30:48+00:00","remoteAddr":"172.19.0.1","user":"--","app":"no app in context","method":"POST","url":"/","message":"Host localhost was not connected to because it violates local access rules","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36 Edg/126.0.0.0","version":"","data":[]}
{"reqId":"PH4vznhPopPar8NxVNSQ","level":2,"time":"2024-07-07T18:30:48+00:00","remoteAddr":"172.19.0.1","user":"--","app":"no app in context","method":"POST","url":"/","message":"Host localhost was not connected to because it violates local access rules","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36 Edg/126.0.0.0","version":"","data":[]}
{"reqId":"PpH2HO1ap9DFUJIRS8uF","level":3,"time":"2024-07-08T00:25:47+00:00","remoteAddr":"172.19.0.1","user":"J","app":"index","method":"POST","url":"/apps/richdocuments/token","message":"Call to a member function xpath() on bool in file '/var/www/html/custom_apps/richdocuments/lib/WOPI/Parser.php' line 56","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36 Edg/126.0.0.0","version":"29.0.3.4","exception":{"Exception":"Exception","Message":"Call to a member function xpath() on bool in file '/var/www/html/custom_apps/richdocuments/lib/WOPI/Parser.php' line 56","Code":0,"Trace":[{"file":"/var/www/html/lib/private/AppFramework/App.php","line":184,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[["OCA\\Richdocuments\\Controller\\DocumentController"],"token"]},{"file":"/var/www/html/lib/private/Route/Router.php","line":338,"function":"main","class":"OC\\AppFramework\\App","type":"::","args":["OCA\\Richdocuments\\Controller\\DocumentController","token",["OC\\AppFramework\\DependencyInjection\\DIContainer"],["richdocuments.document.token"]]},{"file":"/var/www/html/lib/base.php","line":1050,"function":"match","class":"OC\\Route\\Router","type":"->","args":["/apps/richdocuments/token"]},{"file":"/var/www/html/index.php","line":49,"function":"handleRequest","class":"OC","type":"::","args":[]}],"File":"/var/www/html/lib/private/AppFramework/Http/Dispatcher.php","Line":170,"Previous":{"Exception":"Error","Message":"Call to a member function xpath() on bool","Code":0,"Trace":[{"file":"/var/www/html/custom_apps/richdocuments/lib/WOPI/Parser.php","line":39,"function":"getUrlSrc","class":"OCA\\Richdocuments\\WOPI\\Parser","type":"->","args":["application/vnd.oasis.opendocument.text"]},{"file":"/var/www/html/custom_apps/richdocuments/lib/TokenManager.php","line":326,"function":"getUrlSrcValue","class":"OCA\\Richdocuments\\WOPI\\Parser","type":"->","args":["application/vnd.oasis.opendocument.text"]},{"file":"/var/www/html/custom_apps/richdocuments/lib/Controller/DocumentController.php","line":389,"function":"getUrlSrc","class":"OCA\\Richdocuments\\TokenManager","type":"->","args":[["OC\\Files\\Node\\File"]]},{"file":"/var/www/html/lib/private/AppFramework/Http/Dispatcher.php","line":232,"function":"token","class":"OCA\\Richdocuments\\Controller\\DocumentController","type":"->","args":[39,null,null,null]},{"file":"/var/www/html/lib/private/AppFramework/Http/Dispatcher.php","line":138,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[["OCA\\Richdocuments\\Controller\\DocumentController"],"token"]},{"file":"/var/www/html/lib/private/AppFramework/App.php","line":184,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[["OCA\\Richdocuments\\Controller\\DocumentController"],"token"]},{"file":"/var/www/html/lib/private/Route/Router.php","line":338,"function":"main","class":"OC\\AppFramework\\App","type":"::","args":["OCA\\Richdocuments\\Controller\\DocumentController","token",["OC\\AppFramework\\DependencyInjection\\DIContainer"],["richdocuments.document.token"]]},{"file":"/var/www/html/lib/base.php","line":1050,"function":"match","class":"OC\\Route\\Router","type":"->","args":["/apps/richdocuments/token"]},{"file":"/var/www/html/index.php","line":49,"function":"handleRequest","class":"OC","type":"::","args":[]}],"File":"/var/www/html/custom_apps/richdocuments/lib/WOPI/Parser.php","Line":56},"message":"Call to a member function xpath() on bool in file '/var/www/html/custom_apps/richdocuments/lib/WOPI/Parser.php' line 56","exception":{},"CustomMessage":"Call to a member function xpath() on bool in file '/var/www/html/custom_apps/richdocuments/lib/WOPI/Parser.php' line 56"}}
{"reqId":"7674LcC38olR4lnQggxq","level":3,"time":"2024-07-08T01:40:07+00:00","remoteAddr":"172.19.0.1","user":"J","app":"index","method":"POST","url":"/apps/richdocuments/token","message":"Call to a member function xpath() on bool in file '/var/www/html/custom_apps/richdocuments/lib/WOPI/Parser.php' line 56","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36 Edg/126.0.0.0","version":"29.0.3.4","exception":{"Exception":"Exception","Message":"Call to a member function xpath() on bool in file '/var/www/html/custom_apps/richdocuments/lib/WOPI/Parser.php' line 56","Code":0,"Trace":[{"file":"/var/www/html/lib/private/AppFramework/App.php","line":184,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[["OCA\\Richdocuments\\Controller\\DocumentController"],"token"]},{"file":"/var/www/html/lib/private/Route/Router.php","line":338,"function":"main","class":"OC\\AppFramework\\App","type":"::","args":["OCA\\Richdocuments\\Controller\\DocumentController","token",["OC\\AppFramework\\DependencyInjection\\DIContainer"],["richdocuments.document.token"]]},{"file":"/var/www/html/lib/base.php","line":1050,"function":"match","class":"OC\\Route\\Router","type":"->","args":["/apps/richdocuments/token"]},{"file":"/var/www/html/index.php","line":49,"function":"handleRequest","class":"OC","type":"::","args":[]}],"File":"/var/www/html/lib/private/AppFramework/Http/Dispatcher.php","Line":170,"Previous":{"Exception":"Error","Message":"Call to a member function xpath() on bool","Code":0,"Trace":[{"file":"/var/www/html/custom_apps/richdocuments/lib/WOPI/Parser.php","line":39,"function":"getUrlSrc","class":"OCA\\Richdocuments\\WOPI\\Parser","type":"->","args":["application/vnd.oasis.opendocument.text"]},{"file":"/var/www/html/custom_apps/richdocuments/lib/TokenManager.php","line":326,"function":"getUrlSrcValue","class":"OCA\\Richdocuments\\WOPI\\Parser","type":"->","args":["application/vnd.oasis.opendocument.text"]},{"file":"/var/www/html/custom_apps/richdocuments/lib/Controller/DocumentController.php","line":389,"function":"getUrlSrc","class":"OCA\\Richdocuments\\TokenManager","type":"->","args":[["OC\\Files\\Node\\File"]]},{"file":"/var/www/html/lib/private/AppFramework/Http/Dispatcher.php","line":232,"function":"token","class":"OCA\\Richdocuments\\Controller\\DocumentController","type":"->","args":[39,null,null,null]},{"file":"/var/www/html/lib/private/AppFramework/Http/Dispatcher.php","line":138,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[["OCA\\Richdocuments\\Controller\\DocumentController"],"token"]},{"file":"/var/www/html/lib/private/AppFramework/App.php","line":184,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[["OCA\\Richdocuments\\Controller\\DocumentController"],"token"]},{"file":"/var/www/html/lib/private/Route/Router.php","line":338,"function":"main","class":"OC\\AppFramework\\App","type":"::","args":["OCA\\Richdocuments\\Controller\\DocumentController","token",["OC\\AppFramework\\DependencyInjection\\DIContainer"],["richdocuments.document.token"]]},{"file":"/var/www/html/lib/base.php","line":1050,"function":"match","class":"OC\\Route\\Router","type":"->","args":["/apps/richdocuments/token"]},{"file":"/var/www/html/index.php","line":49,"function":"handleRequest","class":"OC","type":"::","args":[]}],"File":"/var/www/html/custom_apps/richdocuments/lib/WOPI/Parser.php","Line":56},"message":"Call to a member function xpath() on bool in file '/var/www/html/custom_apps/richdocuments/lib/WOPI/Parser.php' line 56","exception":{},"CustomMessage":"Call to a member function xpath() on bool in file '/var/www/html/custom_apps/richdocuments/lib/WOPI/Parser.php' line 56"}}
{"reqId":"8ikNlodMHzSp7G1EGw6R","level":3,"time":"2024-07-08T01:49:37+00:00","remoteAddr":"172.19.0.1","user":"J","app":"index","method":"POST","url":"/apps/richdocuments/token","message":"Call to a member function xpath() on bool in file '/var/www/html/custom_apps/richdocuments/lib/WOPI/Parser.php' line 56","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36 Edg/126.0.0.0","version":"29.0.3.4","exception":{"Exception":"Exception","Message":"Call to a member function xpath() on bool in file '/var/www/html/custom_apps/richdocuments/lib/WOPI/Parser.php' line 56","Code":0,"Trace":[{"file":"/var/www/html/lib/private/AppFramework/App.php","line":184,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[["OCA\\Richdocuments\\Controller\\DocumentController"],"token"]},{"file":"/var/www/html/lib/private/Route/Router.php","line":338,"function":"main","class":"OC\\AppFramework\\App","type":"::","args":["OCA\\Richdocuments\\Controller\\DocumentController","token",["OC\\AppFramework\\DependencyInjection\\DIContainer"],["richdocuments.document.token"]]},{"file":"/var/www/html/lib/base.php","line":1050,"function":"match","class":"OC\\Route\\Router","type":"->","args":["/apps/richdocuments/token"]},{"file":"/var/www/html/index.php","line":49,"function":"handleRequest","class":"OC","type":"::","args":[]}],"File":"/var/www/html/lib/private/AppFramework/Http/Dispatcher.php","Line":170,"Previous":{"Exception":"Error","Message":"Call to a member function xpath() on bool","Code":0,"Trace":[{"file":"/var/www/html/custom_apps/richdocuments/lib/WOPI/Parser.php","line":39,"function":"getUrlSrc","class":"OCA\\Richdocuments\\WOPI\\Parser","type":"->","args":["application/vnd.oasis.opendocument.text"]},{"file":"/var/www/html/custom_apps/richdocuments/lib/TokenManager.php","line":326,"function":"getUrlSrcValue","class":"OCA\\Richdocuments\\WOPI\\Parser","type":"->","args":["application/vnd.oasis.opendocument.text"]},{"file":"/var/www/html/custom_apps/richdocuments/lib/Controller/DocumentController.php","line":389,"function":"getUrlSrc","class":"OCA\\Richdocuments\\TokenManager","type":"->","args":[["OC\\Files\\Node\\File"]]},{"file":"/var/www/html/lib/private/AppFramework/Http/Dispatcher.php","line":232,"function":"token","class":"OCA\\Richdocuments\\Controller\\DocumentController","type":"->","args":[39,null,null,null]},{"file":"/var/www/html/lib/private/AppFramework/Http/Dispatcher.php","line":138,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[["OCA\\Richdocuments\\Controller\\DocumentController"],"token"]},{"file":"/var/www/html/lib/private/AppFramework/App.php","line":184,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[["OCA\\Richdocuments\\Controller\\DocumentController"],"token"]},{"file":"/var/www/html/lib/private/Route/Router.php","line":338,"function":"main","class":"OC\\AppFramework\\App","type":"::","args":["OCA\\Richdocuments\\Controller\\DocumentController","token",["OC\\AppFramework\\DependencyInjection\\DIContainer"],["richdocuments.document.token"]]},{"file":"/var/www/html/lib/base.php","line":1050,"function":"match","class":"OC\\Route\\Router","type":"->","args":["/apps/richdocuments/token"]},{"file":"/var/www/html/index.php","line":49,"function":"handleRequest","class":"OC","type":"::","args":[]}],"File":"/var/www/html/custom_apps/richdocuments/lib/WOPI/Parser.php","Line":56},"message":"Call to a member function xpath() on bool in file '/var/www/html/custom_apps/richdocuments/lib/WOPI/Parser.php' line 56","exception":{},"CustomMessage":"Call to a member function xpath() on bool in file '/var/www/html/custom_apps/richdocuments/lib/WOPI/Parser.php' line 56"}}
{"reqId":"TZNZdmUvpHEV36LnIlZo","level":3,"time":"2024-07-08T02:25:42+00:00","remoteAddr":"172.19.0.1","user":"J","app":"index","method":"POST","url":"/apps/richdocuments/token","message":"Call to a member function xpath() on bool in file '/var/www/html/custom_apps/richdocuments/lib/WOPI/Parser.php' line 56","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36 Edg/126.0.0.0","version":"29.0.3.4","exception":{"Exception":"Exception","Message":"Call to a member function xpath() on bool in file '/var/www/html/custom_apps/richdocuments/lib/WOPI/Parser.php' line 56","Code":0,"Trace":[{"file":"/var/www/html/lib/private/AppFramework/App.php","line":184,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[["OCA\\Richdocuments\\Controller\\DocumentController"],"token"]},{"file":"/var/www/html/lib/private/Route/Router.php","line":338,"function":"main","class":"OC\\AppFramework\\App","type":"::","args":["OCA\\Richdocuments\\Controller\\DocumentController","token",["OC\\AppFramework\\DependencyInjection\\DIContainer"],["richdocuments.document.token"]]},{"file":"/var/www/html/lib/base.php","line":1050,"function":"match","class":"OC\\Route\\Router","type":"->","args":["/apps/richdocuments/token"]},{"file":"/var/www/html/index.php","line":49,"function":"handleRequest","class":"OC","type":"::","args":[]}],"File":"/var/www/html/lib/private/AppFramework/Http/Dispatcher.php","Line":170,"Previous":{"Exception":"Error","Message":"Call to a member function xpath() on bool","Code":0,"Trace":[{"file":"/var/www/html/custom_apps/richdocuments/lib/WOPI/Parser.php","line":39,"function":"getUrlSrc","class":"OCA\\Richdocuments\\WOPI\\Parser","type":"->","args":["application/vnd.oasis.opendocument.text"]},{"file":"/var/www/html/custom_apps/richdocuments/lib/TokenManager.php","line":326,"function":"getUrlSrcValue","class":"OCA\\Richdocuments\\WOPI\\Parser","type":"->","args":["application/vnd.oasis.opendocument.text"]},{"file":"/var/www/html/custom_apps/richdocuments/lib/Controller/DocumentController.php","line":389,"function":"getUrlSrc","class":"OCA\\Richdocuments\\TokenManager","type":"->","args":[["OC\\Files\\Node\\File"]]},{"file":"/var/www/html/lib/private/AppFramework/Http/Dispatcher.php","line":232,"function":"token","class":"OCA\\Richdocuments\\Controller\\DocumentController","type":"->","args":[39,null,null,null]},{"file":"/var/www/html/lib/private/AppFramework/Http/Dispatcher.php","line":138,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[["OCA\\Richdocuments\\Controller\\DocumentController"],"token"]},{"file":"/var/www/html/lib/private/AppFramework/App.php","line":184,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[["OCA\\Richdocuments\\Controller\\DocumentController"],"token"]},{"file":"/var/www/html/lib/private/Route/Router.php","line":338,"function":"main","class":"OC\\AppFramework\\App","type":"::","args":["OCA\\Richdocuments\\Controller\\DocumentController","token",["OC\\AppFramework\\DependencyInjection\\DIContainer"],["richdocuments.document.token"]]},{"file":"/var/www/html/lib/base.php","line":1050,"function":"match","class":"OC\\Route\\Router","type":"->","args":["/apps/richdocuments/token"]},{"file":"/var/www/html/index.php","line":49,"function":"handleRequest","class":"OC","type":"::","args":[]}],"File":"/var/www/html/custom_apps/richdocuments/lib/WOPI/Parser.php","Line":56},"message":"Call to a member function xpath() on bool in file '/var/www/html/custom_apps/richdocuments/lib/WOPI/Parser.php' line 56","exception":{},"CustomMessage":"Call to a member function xpath() on bool in file '/var/www/html/custom_apps/richdocuments/lib/WOPI/Parser.php' line 56"}}
{"reqId":"YULBSOTdL2FEIuDrclXd","level":3,"time":"2024-07-08T02:26:55+00:00","remoteAddr":"172.19.0.1","user":"J","app":"index","method":"POST","url":"/apps/richdocuments/token","message":"Call to a member function xpath() on bool in file '/var/www/html/custom_apps/richdocuments/lib/WOPI/Parser.php' line 56","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36 Edg/126.0.0.0","version":"29.0.3.4","exception":{"Exception":"Exception","Message":"Call to a member function xpath() on bool in file '/var/www/html/custom_apps/richdocuments/lib/WOPI/Parser.php' line 56","Code":0,"Trace":[{"file":"/var/www/html/lib/private/AppFramework/App.php","line":184,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[["OCA\\Richdocuments\\Controller\\DocumentController"],"token"]},{"file":"/var/www/html/lib/private/Route/Router.php","line":338,"function":"main","class":"OC\\AppFramework\\App","type":"::","args":["OCA\\Richdocuments\\Controller\\DocumentController","token",["OC\\AppFramework\\DependencyInjection\\DIContainer"],["richdocuments.document.token"]]},{"file":"/var/www/html/lib/base.php","line":1050,"function":"match","class":"OC\\Route\\Router","type":"->","args":["/apps/richdocuments/token"]},{"file":"/var/www/html/index.php","line":49,"function":"handleRequest","class":"OC","type":"::","args":[]}],"File":"/var/www/html/lib/private/AppFramework/Http/Dispatcher.php","Line":170,"Previous":{"Exception":"Error","Message":"Call to a member function xpath() on bool","Code":0,"Trace":[{"file":"/var/www/html/custom_apps/richdocuments/lib/WOPI/Parser.php","line":39,"function":"getUrlSrc","class":"OCA\\Richdocuments\\WOPI\\Parser","type":"->","args":["application/vnd.oasis.opendocument.text"]},{"file":"/var/www/html/custom_apps/richdocuments/lib/TokenManager.php","line":326,"function":"getUrlSrcValue","class":"OCA\\Richdocuments\\WOPI\\Parser","type":"->","args":["application/vnd.oasis.opendocument.text"]},{"file":"/var/www/html/custom_apps/richdocuments/lib/Controller/DocumentController.php","line":389,"function":"getUrlSrc","class":"OCA\\Richdocuments\\TokenManager","type":"->","args":[["OC\\Files\\Node\\File"]]},{"file":"/var/www/html/lib/private/AppFramework/Http/Dispatcher.php","line":232,"function":"token","class":"OCA\\Richdocuments\\Controller\\DocumentController","type":"->","args":[39,null,null,null]},{"file":"/var/www/html/lib/private/AppFramework/Http/Dispatcher.php","line":138,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[["OCA\\Richdocuments\\Controller\\DocumentController"],"token"]},{"file":"/var/www/html/lib/private/AppFramework/App.php","line":184,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[["OCA\\Richdocuments\\Controller\\DocumentController"],"token"]},{"file":"/var/www/html/lib/private/Route/Router.php","line":338,"function":"main","class":"OC\\AppFramework\\App","type":"::","args":["OCA\\Richdocuments\\Controller\\DocumentController","token",["OC\\AppFramework\\DependencyInjection\\DIContainer"],["richdocuments.document.token"]]},{"file":"/var/www/html/lib/base.php","line":1050,"function":"match","class":"OC\\Route\\Router","type":"->","args":["/apps/richdocuments/token"]},{"file":"/var/www/html/index.php","line":49,"function":"handleRequest","class":"OC","type":"::","args":[]}],"File":"/var/www/html/custom_apps/richdocuments/lib/WOPI/Parser.php","Line":56},"message":"Call to a member function xpath() on bool in file '/var/www/html/custom_apps/richdocuments/lib/WOPI/Parser.php' line 56","exception":{},"CustomMessage":"Call to a member function xpath() on bool in file '/var/www/html/custom_apps/richdocuments/lib/WOPI/Parser.php' line 56"}}
{"reqId":"WQ9k82LhydL1L9IvmAvB","level":3,"time":"2024-07-08T20:07:55+00:00","remoteAddr":"172.19.0.1","user":"J","app":"index","method":"POST","url":"/apps/richdocuments/token","message":"Call to a member function xpath() on bool in file '/var/www/html/custom_apps/richdocuments/lib/WOPI/Parser.php' line 56","userAgent":"Mozilla/5.0 (Windows NT 10.0; rv:127.0) Gecko/20100101 Firefox/127.0","version":"29.0.3.4","exception":{"Exception":"Exception","Message":"Call to a member function xpath() on bool in file '/var/www/html/custom_apps/richdocuments/lib/WOPI/Parser.php' line 56","Code":0,"Trace":[{"file":"/var/www/html/lib/private/AppFramework/App.php","line":184,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[["OCA\\Richdocuments\\Controller\\DocumentController"],"token"]},{"file":"/var/www/html/lib/private/Route/Router.php","line":338,"function":"main","class":"OC\\AppFramework\\App","type":"::","args":["OCA\\Richdocuments\\Controller\\DocumentController","token",["OC\\AppFramework\\DependencyInjection\\DIContainer"],["richdocuments.document.token"]]},{"file":"/var/www/html/lib/base.php","line":1050,"function":"match","class":"OC\\Route\\Router","type":"->","args":["/apps/richdocuments/token"]},{"file":"/var/www/html/index.php","line":49,"function":"handleRequest","class":"OC","type":"::","args":[]}],"File":"/var/www/html/lib/private/AppFramework/Http/Dispatcher.php","Line":170,"Previous":{"Exception":"Error","Message":"Call to a member function xpath() on bool","Code":0,"Trace":[{"file":"/var/www/html/custom_apps/richdocuments/lib/WOPI/Parser.php","line":39,"function":"getUrlSrc","class":"OCA\\Richdocuments\\WOPI\\Parser","type":"->","args":["application/vnd.oasis.opendocument.text"]},{"file":"/var/www/html/custom_apps/richdocuments/lib/TokenManager.php","line":326,"function":"getUrlSrcValue","class":"OCA\\Richdocuments\\WOPI\\Parser","type":"->","args":["application/vnd.oasis.opendocument.text"]},{"file":"/var/www/html/custom_apps/richdocuments/lib/Controller/DocumentController.php","line":389,"function":"getUrlSrc","class":"OCA\\Richdocuments\\TokenManager","type":"->","args":[["OC\\Files\\Node\\File"]]},{"file":"/var/www/html/lib/private/AppFramework/Http/Dispatcher.php","line":232,"function":"token","class":"OCA\\Richdocuments\\Controller\\DocumentController","type":"->","args":[39,null,null,null]},{"file":"/var/www/html/lib/private/AppFramework/Http/Dispatcher.php","line":138,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[["OCA\\Richdocuments\\Controller\\DocumentController"],"token"]},{"file":"/var/www/html/lib/private/AppFramework/App.php","line":184,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[["OCA\\Richdocuments\\Controller\\DocumentController"],"token"]},{"file":"/var/www/html/lib/private/Route/Router.php","line":338,"function":"main","class":"OC\\AppFramework\\App","type":"::","args":["OCA\\Richdocuments\\Controller\\DocumentController","token",["OC\\AppFramework\\DependencyInjection\\DIContainer"],["richdocuments.document.token"]]},{"file":"/var/www/html/lib/base.php","line":1050,"function":"match","class":"OC\\Route\\Router","type":"->","args":["/apps/richdocuments/token"]},{"file":"/var/www/html/index.php","line":49,"function":"handleRequest","class":"OC","type":"::","args":[]}],"File":"/var/www/html/custom_apps/richdocuments/lib/WOPI/Parser.php","Line":56},"message":"Call to a member function xpath() on bool in file '/var/www/html/custom_apps/richdocuments/lib/WOPI/Parser.php' line 56","exception":{},"CustomMessage":"Call to a member function xpath() on bool in file '/var/www/html/custom_apps/richdocuments/lib/WOPI/Parser.php' line 56"}}
{"reqId":"gm7CAwrZHm7B4Vdc4zIj","level":3,"time":"2024-07-08T20:30:54+00:00","remoteAddr":"172.19.0.1","user":"--","app":"index","method":"GET","url":"/apps/files/api/v1/stats","message":"Failed to connect to the database: An exception occurred in the driver: SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo for nextcloud-db failed: No address associated with hostname","userAgent":"Mozilla/5.0 (Windows NT 10.0; rv:127.0) Gecko/20100101 Firefox/127.0","version":"29.0.3.4","exception":{"Exception":"Doctrine\\DBAL\\Exception","Message":"Failed to connect to the database: An exception occurred in the driver: SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo for nextcloud-db failed: No address associated with hostname","Code":2002,"Trace":[{"file":"/var/www/html/3rdparty/doctrine/dbal/src/Connection.php","line":453,"function":"connect","class":"OC\\DB\\Connection","type":"->","args":[]},{"file":"/var/www/html/3rdparty/doctrine/dbal/src/Connection.php","line":411,"function":"getDatabasePlatformVersion","class":"Doctrine\\DBAL\\Connection","type":"->","args":[]},{"file":"/var/www/html/3rdparty/doctrine/dbal/src/Connection.php","line":318,"function":"detectDatabasePlatform","class":"Doctrine\\DBAL\\Connection","type":"->","args":[]},{"file":"/var/www/html/lib/private/DB/ConnectionAdapter.php","line":200,"function":"getDatabasePlatform","class":"Doctrine\\DBAL\\Connection","type":"->","args":[]},{"file":"/var/www/html/lib/private/DB/QueryBuilder/QueryBuilder.php","line":121,"function":"getDatabasePlatform","class":"OC\\DB\\ConnectionAdapter","type":"->","args":[]},{"file":"/var/www/html/lib/private/AppConfig.php","line":1239,"function":"expr","class":"OC\\DB\\QueryBuilder\\QueryBuilder","type":"->","args":[]},{"file":"/var/www/html/lib/private/AppConfig.php","line":264,"function":"loadConfig","class":"OC\\AppConfig","type":"->","args":[false]},{"file":"/var/www/html/lib/private/AppConfig.php","line":1380,"function":"searchValues","class":"OC\\AppConfig","type":"->","args":["enabled",false,2]},{"file":"/var/www/html/lib/private/App/AppManager.php","line":131,"function":"getValues","class":"OC\\AppConfig","type":"->","args":[false,"enabled"]},{"file":"/var/www/html/lib/private/App/AppManager.php","line":152,"function":"getInstalledAppsValues","class":"OC\\App\\AppManager","type":"->","args":[]},{"file":"/var/www/html/lib/private/legacy/OC_App.php","line":234,"function":"getInstalledApps","class":"OC\\App\\AppManager","type":"->","args":[]},{"file":"/var/www/html/lib/private/AppFramework/Bootstrap/Coordinator.php","line":90,"function":"getEnabledApps","class":"OC_App","type":"::","args":[]},{"file":"/var/www/html/lib/base.php","line":706,"function":"runInitialRegistration","class":"OC\\AppFramework\\Bootstrap\\Coordinator","type":"->","args":[]},{"file":"/var/www/html/lib/base.php","line":1181,"function":"init","class":"OC","type":"::","args":[]},{"file":"/var/www/html/index.php","line":47,"args":["/var/www/html/lib/base.php"],"function":"require_once"}],"File":"/var/www/html/lib/private/DB/Connection.php","Line":163,"message":"Failed to connect to the database: An exception occurred in the driver: SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo for nextcloud-db failed: No address associated with hostname","exception":{},"CustomMessage":"Failed to connect to the database: An exception occurred in the driver: SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo for nextcloud-db failed: No address associated with hostname"}}
{"reqId":"gm7CAwrZHm7B4Vdc4zIj","level":3,"time":"2024-07-08T20:30:56+00:00","remoteAddr":"172.19.0.1","user":"--","app":"core","method":"GET","url":"/apps/files/api/v1/stats","message":"Exception thrown: Doctrine\\DBAL\\Exception","userAgent":"Mozilla/5.0 (Windows NT 10.0; rv:127.0) Gecko/20100101 Firefox/127.0","version":"29.0.3.4","exception":{"Exception":"Doctrine\\DBAL\\Exception","Message":"Failed to connect to the database: An exception occurred in the driver: SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo for nextcloud-db failed: No address associated with hostname","Code":2002,"Trace":[{"file":"/var/www/html/3rdparty/doctrine/dbal/src/Connection.php","line":453,"function":"connect","class":"OC\\DB\\Connection","type":"->","args":[]},{"file":"/var/www/html/3rdparty/doctrine/dbal/src/Connection.php","line":411,"function":"getDatabasePlatformVersion","class":"Doctrine\\DBAL\\Connection","type":"->","args":[]},{"file":"/var/www/html/3rdparty/doctrine/dbal/src/Connection.php","line":318,"function":"detectDatabasePlatform","class":"Doctrine\\DBAL\\Connection","type":"->","args":[]},{"file":"/var/www/html/lib/private/DB/ConnectionAdapter.php","line":200,"function":"getDatabasePlatform","class":"Doctrine\\DBAL\\Connection","type":"->","args":[]},{"file":"/var/www/html/lib/private/DB/QueryBuilder/QueryBuilder.php","line":121,"function":"getDatabasePlatform","class":"OC\\DB\\ConnectionAdapter","type":"->","args":[]},{"file":"/var/www/html/lib/private/AppConfig.php","line":1239,"function":"expr","class":"OC\\DB\\QueryBuilder\\QueryBuilder","type":"->","args":[]},{"file":"/var/www/html/lib/private/AppConfig.php","line":264,"function":"loadConfig","class":"OC\\AppConfig","type":"->","args":[false]},{"file":"/var/www/html/lib/private/AppConfig.php","line":1380,"function":"searchValues","class":"OC\\AppConfig","type":"->","args":["enabled",false,2]},{"file":"/var/www/html/lib/private/App/AppManager.php","line":131,"function":"getValues","class":"OC\\AppConfig","type":"->","args":[false,"enabled"]},{"file":"/var/www/html/lib/private/App/AppManager.php","line":152,"function":"getInstalledAppsValues","class":"OC\\App\\AppManager","type":"->","args":[]},{"file":"/var/www/html/lib/private/legacy/OC_App.php","line":234,"function":"getInstalledApps","class":"OC\\App\\AppManager","type":"->","args":[]},{"file":"/var/www/html/lib/private/AppFramework/Bootstrap/Coordinator.php","line":90,"function":"getEnabledApps","class":"OC_App","type":"::","args":[]},{"file":"/var/www/html/lib/base.php","line":706,"function":"runInitialRegistration","class":"OC\\AppFramework\\Bootstrap\\Coordinator","type":"->","args":[]},{"file":"/var/www/html/lib/base.php","line":1181,"function":"init","class":"OC","type":"::","args":[]},{"file":"/var/www/html/index.php","line":47,"args":["/var/www/html/lib/base.php"],"function":"require_once"}],"File":"/var/www/html/lib/private/DB/Connection.php","Line":163,"CustomMessage":"Exception thrown: Doctrine\\DBAL\\Exception"}}
{"reqId":"gm7CAwrZHm7B4Vdc4zIj","level":3,"time":"2024-07-08T20:30:56+00:00","remoteAddr":"172.19.0.1","user":"--","app":"core","method":"GET","url":"/apps/files/api/v1/stats","message":"Exception thrown: Doctrine\\DBAL\\Exception","userAgent":"Mozilla/5.0 (Windows NT 10.0; rv:127.0) Gecko/20100101 Firefox/127.0","version":"29.0.3.4","exception":{"Exception":"Doctrine\\DBAL\\Exception","Message":"Failed to connect to the database: An exception occurred in the driver: SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo for nextcloud-db failed: No address associated with hostname","Code":2002,"Trace":[{"file":"/var/www/html/3rdparty/doctrine/dbal/src/Connection.php","line":453,"function":"connect","class":"OC\\DB\\Connection","type":"->","args":[]},{"file":"/var/www/html/3rdparty/doctrine/dbal/src/Connection.php","line":411,"function":"getDatabasePlatformVersion","class":"Doctrine\\DBAL\\Connection","type":"->","args":[]},{"file":"/var/www/html/3rdparty/doctrine/dbal/src/Connection.php","line":318,"function":"detectDatabasePlatform","class":"Doctrine\\DBAL\\Connection","type":"->","args":[]},{"file":"/var/www/html/lib/private/DB/ConnectionAdapter.php","line":200,"function":"getDatabasePlatform","class":"Doctrine\\DBAL\\Connection","type":"->","args":[]},{"file":"/var/www/html/lib/private/DB/QueryBuilder/QueryBuilder.php","line":121,"function":"getDatabasePlatform","class":"OC\\DB\\ConnectionAdapter","type":"->","args":[]},{"file":"/var/www/html/lib/private/AppConfig.php","line":1239,"function":"expr","class":"OC\\DB\\QueryBuilder\\QueryBuilder","type":"->","args":[]},{"file":"/var/www/html/lib/private/AppConfig.php","line":264,"function":"loadConfig","class":"OC\\AppConfig","type":"->","args":[false]},{"file":"/var/www/html/lib/private/legacy/OC_App.php","line":736,"function":"searchValues","class":"OC\\AppConfig","type":"->","args":["installed_version"]},{"file":"/var/www/html/lib/private/TemplateLayout.php","line":237,"function":"getAppVersions","class":"OC_App","type":"::","args":[]},{"file":"/var/www/html/lib/private/legacy/OC_Template.php","line":145,"function":"__construct","class":"OC\\TemplateLayout","type":"->","args":["error",""]},{"file":"/var/www/html/lib/private/Template/Base.php","line":132,"function":"fetchPage","class":"OC_Template","type":"->","args":[]},{"file":"/var/www/html/lib/private/legacy/OC_Template.php","line":320,"function":"printPage","class":"OC\\Template\\Base","type":"->","args":[]},{"file":"/var/www/html/index.php","line":114,"function":"printExceptionErrorPage","class":"OC_Template","type":"::","args":[["Doctrine\\DBAL\\Exception"],500]}],"File":"/var/www/html/lib/private/DB/Connection.php","Line":163,"CustomMessage":"Exception thrown: Doctrine\\DBAL\\Exception"}}

Maybe I should not use Nextcloud if I can’t even delete a file. I have spent 20 hours trying to figure out why. Not worth. I hate Nextcloud!

I’m fairly confident whatever you’re experiencing is due to the Docker Desktop (I presume) on Windows setup. I don’t think it’s even a Nextcloud issue.

For example, if you can’t even delete the file at the command line it can’t be a Nextcloud issue.

Can you share more details about your setup?

Are you using WSL or Hyper-V?

What installation method and image are you using? What installation instructions did you follow? etc.

When you create a post in the Support category there is a support template that has information in it that we need to help you, but you seem to have overlooked that.

1 Like

I can delete all files except for that one.

The setup is a W11 desktop running Docker using WSL and mariadb. I did the following:

  1. Enabled WSL 2:

    • Ran wsl --install and wsl --set-default-version 2 in PowerShell.
    • Rebooted the computer.
  2. Installed Docker Desktop:

    • Downloaded and installed Docker Desktop from the official Docker website.
    • Ensured the “Install required Windows components for WSL 2” option was checked.
    • Completed the initial setup and verified Docker installation with docker --version.
  3. Set up Nextcloud and MariaDB Containers:

    • Pulled Nextcloud and MariaDB images using docker pull nextcloud and docker pull mariadb.
    • Created a Docker network with docker network create nextcloud-net.
    • Started the MariaDB container:
      docker run -d --name nextcloud-db --network nextcloud-net -e MYSQL_ROOT_PASSWORD=your-root-password -e MYSQL_DATABASE=nextcloud -e MYSQL_USER=nextcloud -e MYSQL_PASSWORD=your-password mariadb
      
    • Started the Nextcloud container:
      docker run -d --name nextcloud --network nextcloud-net -p 8080:80 -v nextcloud-data:/var/www/html nextcloud
      
    • Accessed Nextcloud via http://localhost:8080 and completed the setup using the database details provided above.

While I appreciate you calling me out for purposely overlooking the support template, my issue still persists.

My best guess is a case sensitivity situation. I don’t recall all the details of Docker on Windows, but I do know there are differences in how case sensitivity is handled with WSL2. And that it also varies depending on whether the mounting is done at the WSL2 level or not.

I assume the above is what you literally typed, correct? You didn’t specify a bind mount (a path) instead of nextcloud-data, correct?

Are you running the docker run from your Windows prompt or from within WSL2?

I appreciate that but it wasn’t the issue. I deleted my entire Nextcloud environment and recreated it. I don’t think I installed a separate Linux distro the first time. I was able to delete all files and folders this time except for “Talk,” until I disabled the app. I think the issue had something to do with installing Nextcloud directly to Docker rather than the separate Linux distro that must be created separately to work properly.