The server didn't work again (Failed to load panel.....) operation of deleting and uploading wererejected, not include downloading (Final test after some attempts)

Steps to reproduce

It was fine to Sync my files before I went out. Then I had been in lirary and added a note in a file. I rebooted mypi by ssh.

1.And I synchronized it to my laptop after I got home.
2.It showed Sync failed. I Relinked account. and it showed conflict .
3.Though I deleted that note ,there was a difference of 1 bit. So I download that file and replaced my local’s

Expected behaviour

All fixed

Actual behaviour

The Not Synced still showed that file’s in “Blacklisted” and some operations were rejected but still in Browse

Server configuration

Operating system:Raspberry4B Bookworm

Web server: Nginx

Database: Mysql

PHP version: PHP 7.4

ownCloud version: (see ownCloud admin page) 10.13.0

Updated from an older ownCloud or fresh install: i don’t remem’

Where did you install ownCloud from: wget official

Signing status (ownCloud 9.0 and above):

The content of config/config.php:

"reqId":"24cimlVovNs8J7w7ApXO","level":3,"time":"2023-11-22T15:17:47+00:00","remoteAddr":"192.168.50.214","user":"Raid_ope","app":"PHP","method":"POST","url":"\/apps\/carnet\/note\/saveText","message":"fclose(): supplied resource is not a valid stream resource at \/var\/www\/owncloud\/apps-external\/carnet\/lib\/Controller\/NoteController.php#981"}
{"reqId":"47ba926d-da83-4b23-8256-0c62655b7263","level":3,"time":"2023-11-24T11:43:24+00:00","remoteAddr":"192.168.50.214","user":"Raid_ope","app":"PHP","method":"PUT","url":"\/remote.php\/dav\/files\/Raid_ope\/%20Note\/100-Computer%20knowledge\/Linux\/Linux%E7%9F%A5%E8%AF%86.md","message":"fopen(\/media\/ownclouddrive\/data\/Raid_ope\/files\/Note\/100-Computer knowledge\/Linux\/Linux\u77e5\u8bc6.md.ocTransferId1088178279.part): failed to open stream: Permission denied at \/var\/www\/owncloud\/lib\/private\/Files\/Storage\/Local.php#298"}
{"reqId":"47ba926d-da83-4b23-8256-0c62655b7263","level":3,"time":"2023-11-24T11:43:24+00:00","remoteAddr":"192.168.50.214","user":"Raid_ope","app":"webdav","method":"PUT","url":"\/remote.php\/dav\/files\/Raid_ope\/%20Note\/100-Computer%20knowledge\/Linux\/Linux%E7%9F%A5%E8%AF%86.md","message":"\\OC\\Files\\Filesystem::fopen() failed"}
{"reqId":"47ba926d-da83-4b23-8256-0c62655b7263","level":4,"time":"2023-11-24T11:43:24+00:00","remoteAddr":"192.168.50.214","user":"Raid_ope","app":"webdav","method":"PUT","url":"\/remote.php\/dav\/files\/Raid_ope\/%20Note\/100-Computer%20knowledge\/Linux\/Linux%E7%9F%A5%E8%AF%86.md","message":"Exception: HTTP\/1.1 500 Could not write file contents: {\"Exception\":\"Sabre\\\\DAV\\\\Exception\",\"Message\":\"Could not write file contents\",\"Code\":0,\"Trace\":\"#0 \\\/var\\\/www\\\/owncloud\\\/lib\\\/composer\\\/sabre\\\/dav\\\/lib\\\/DAV\\\/Server.php(1137): OCA\\\\DAV\\\\Connector\\\\Sabre\\\\File->put()\\n#1 \\\/var\\\/www\\\/owncloud\\\/lib\\\/composer\\\/sabre\\\/dav\\\/lib\\\/DAV\\\/CorePlugin.php(492): Sabre\\\\DAV\\\\Server->updateFile()\\n#2 \\\/var\\\/www\\\/owncloud\\\/lib\\\/composer\\\/sabre\\\/event\\\/lib\\\/WildcardEmitterTrait.php(89): Sabre\\\\DAV\\\\CorePlugin->httpPut()\\n#3 \\\/var\\\/www\\\/owncloud\\\/lib\\\/composer\\\/sabre\\\/dav\\\/lib\\\/DAV\\\/Server.php(472): Sabre\\\\DAV\\\\Server->emit()\\n#4 \\\/var\\\/www\\\/owncloud\\\/lib\\\/composer\\\/sabre\\\/dav\\\/lib\\\/DAV\\\/Server.php(253): Sabre\\\\DAV\\\\Server->invokeMethod()\\n#5 \\\/var\\\/www\\\/owncloud\\\/apps\\\/dav\\\/lib\\\/Server.php(348): Sabre\\\\DAV\\\\Server->start()\\n#6 \\\/var\\\/www\\\/owncloud\\\/apps\\\/dav\\\/appinfo\\\/v2\\\/remote.php(31): OCA\\\\DAV\\\\Server->exec()\\n#7 \\\/var\\\/www\\\/owncloud\\\/remote.php(165): require_once('\\\/var\\\/www\\\/ownclo...')\\n#8 {main}\",\"File\":\"\\\/var\\\/www\\\/owncloud\\\/apps\\\/dav\\\/lib\\\/Connector\\\/Sabre\\\/File.php\",\"Line\":203}"}
{"reqId":"adda30bd-6bcb-48c5-9bc5-2771f444b0cc","level":3,"time":"2023-11-24T11:43:55+00:00","remoteAddr":"192.168.50.214","user":"Raid_ope","app":"PHP","method":"PUT","url":"\/remote.php\/dav\/files\/Raid_ope\/%20Note\/100-Computer%20knowledge\/Linux\/Linux%E7%9F%A5%E8%AF%86.md","message":"fopen(\/media\/ownclouddrive\/data\/Raid_ope\/files\/Note\/100-Computer knowledge\/Linux\/Linux\u77e5\u8bc6.md.ocTransferId1233461876.part): failed to open stream: Permission denied at \/var\/www\/owncloud\/lib\/private\/Files\/Storage\/Local.php#298"}
{"reqId":"adda30bd-6bcb-48c5-9bc5-2771f444b0cc","level":3,"time":"2023-11-24T11:43:55+00:00","remoteAddr":"192.168.50.214","user":"Raid_ope","app":"webdav","method":"PUT","url":"\/remote.php\/dav\/files\/Raid_ope\/%20Note\/100-Computer%20knowledge\/Linux\/Linux%E7%9F%A5%E8%AF%86.md","message":"\\OC\\Files\\Filesystem::fopen() failed"}
{"reqId":"adda30bd-6bcb-48c5-9bc5-2771f444b0cc","level":4,"time":"2023-11-24T11:43:55+00:00","remoteAddr":"192.168.50.214","user":"Raid_ope","app":"webdav","method":"PUT","url":"\/remote.php\/dav\/files\/Raid_ope\/%20Note\/100-Computer%20knowledge\/Linux\/Linux%E7%9F%A5%E8%AF%86.md","message":"Exception: HTTP\/1.1 500 Could not write file contents: {\"Exception\":\"Sabre\\\\DAV\\\\Exception\",\"Message\":\"Could not write file contents\",\"Code\":0,\"Trace\":\"#0 \\\/var\\\/www\\\/owncloud\\\/lib\\\/composer\\\/sabre\\\/dav\\\/lib\\\/DAV\\\/Server.php(1137): OCA\\\\DAV\\\\Connector\\\\Sabre\\\\File->put()\\n#1 \\\/var\\\/www\\\/owncloud\\\/lib\\\/composer\\\/sabre\\\/dav\\\/lib\\\/DAV\\\/CorePlugin.php(492): Sabre\\\\DAV\\\\Server->updateFile()\\n#2 \\\/var\\\/www\\\/owncloud\\\/lib\\\/composer\\\/sabre\\\/event\\\/lib\\\/WildcardEmitterTrait.php(89): Sabre\\\\DAV\\\\CorePlugin->httpPut()\\n#3 \\\/var\\\/www\\\/owncloud\\\/lib\\\/composer\\\/sabre\\\/dav\\\/lib\\\/DAV\\\/Server.php(472): Sabre\\\\DAV\\\\Server->emit()\\n#4 \\\/var\\\/www\\\/owncloud\\\/lib\\\/composer\\\/sabre\\\/dav\\\/lib\\\/DAV\\\/Server.php(253): Sabre\\\\DAV\\\\Server->invokeMethod()\\n#5 \\\/var\\\/www\\\/owncloud\\\/apps\\\/dav\\\/lib\\\/Server.php(348): Sabre\\\\DAV\\\\Server->start()\\n#6 \\\/var\\\/www\\\/owncloud\\\/apps\\\/dav\\\/appinfo\\\/v2\\\/remote.php(31): OCA\\\\DAV\\\\Server->exec()\\n#7 \\\/var\\\/www\\\/owncloud\\\/remote.php(165): require_once('\\\/var\\\/www\\\/ownclo...')\\n#8 {main}\",\"File\":\"\\\/var\\\/www\\\/owncloud\\\/apps\\\/dav\\\/lib\\\/Connector\\\/Sabre\\\/File.php\",\"Line\":203}"}
{"reqId":"53feff2c-483a-42e6-9f25-465e2f069e3c","level":3,"time":"2023-11-24T11:53:12+00:00","remoteAddr":"192.168.50.214","user":"Raid_ope","app":"PHP","method":"PUT","url":"\/remote.php\/dav\/files\/Raid_ope\/%20Note\/100-Computer%20knowledge\/Linux\/Linux%E7%9F%A5%E8%AF%86.md","message":"fopen(\/media\/ownclouddrive\/data\/Raid_ope\/files\/Note\/100-Computer knowledge\/Linux\/Linux\u77e5\u8bc6.md.ocTransferId314349151.part): failed to open stream: Permission denied at \/var\/www\/owncloud\/lib\/private\/Files\/Storage\/Local.php#298"}
{"reqId":"53feff2c-483a-42e6-9f25-465e2f069e3c","level":3,"time":"2023-11-24T11:53:12+00:00","remoteAddr":"192.168.50.214","user":"Raid_ope","app":"webdav","method":"PUT","url":"\/remote.php\/dav\/files\/Raid_ope\/%20Note\/100-Computer%20knowledge\/Linux\/Linux%E7%9F%A5%E8%AF%86.md","message":"\\OC\\Files\\Filesystem::fopen() failed"}
{"reqId":"53feff2c-483a-42e6-9f25-465e2f069e3c","level":4,"time":"2023-11-24T11:53:12+

00:00","remoteAddr":"192.168.50.214","user":"Raid_ope","app":"PHP","method":"GET","url":"\/remote.php\/dav\/files\/Raid_ope\/%20Note\/100-Computer%20knowledge\/Linux\/vim.md?c=915030c6c90f9352b54935790367be3d&x=64&y=64&forceIcon=0&preview=1","message":"fopen(\/media\/ownclouddrive\/data\/Raid_ope\/thumbnails\/283\/2048-2048-max.png): failed to open stream: Permission denied at \/var\/www\/owncloud\/lib\/private\/Files\/Storage\/Local.php#298"}
{"reqId":"uc7wnfmHeFhiC3za8ZJp","level":3,"time":"2023-11-24T11:54:38+00:00","remoteAddr":"192.168.50.214","user":"Raid_ope","app":"PHP","method":"GET","url":"\/remote.php\/dav\/files\/Raid_ope\/%20Note\/100-Computer%20knowledge\/Linux\/vim.md?c=915030c6c90f9352b54935790367be3d&x=64&y=64&forceIcon=0&preview=1","message":"fopen(\/media\/ownclouddrive\/data\/Raid_ope\/thumbnails\/283\/64-64.png): failed to open stream: Permission denied at \/var\/www\/owncloud\/lib\/private\/Files\/Storage\/Local.php#298"}
{"reqId":"XQDONuEovxoM5hXMIlQ8","level":3,"time":"2023-11-24T11:57:29+

When I tested to delete

00:00","remoteAddr":"192.168.50.214","user":"Raid_ope","app":"PHP","method":"DELETE","url":"\/remote.php\/dav\/files\/Raid_ope\/Data\/23%E6%B3%A8%E4%BC%9A%E6%A4%B0%E5%AD%90-%E7%A8%8E%E6%B3%95%20%E4%B8%8A%E4%B8%8B-OCR.pdf","message":"unlink(\/media\/ownclouddrive\/data\/Raid_ope\/files\/Data\/23\u6ce8\u4f1a\u6930\u5b50-\u7a0e\u6cd5 \u4e0a\u4e0b-OCR.pdf): Operation not permitted at \/var\/www\/owncloud\/lib\/private\/Files\/Storage\/Local.php#238"}
{"reqId":"PCJ2hyppgklE4nLp3aqF","level":3,"time":"2023-11-24T12:50:22+00:00","remoteAddr":"192.168.50.214","user":"Raid_ope","app":"no app in context","method":"GET","url":"\/index.php\/settings\/admin","message":"Failed to load panel: OCA\\Carnet\\Settings\\AdminSettings with error: Could not resolve OCA\\Carnet\\Settings\\AdminSettings! Class OCA\\Carnet\\Settings\\AdminSettings does not exist"}

When I tried upload

00:00","remoteAddr":"192.168.50.214","user":"Raid_ope","app":"webdav","method":"PUT","url":"\/remote.php\/dav\/files\/Raid_ope\/8181-clown-makeup.gif","message":"Exception: HTTP\/1.1 500 Could not write file contents: {\"Exception\":\"Sabre\\\\DAV\\\\Exception\",\"Message\":\"Could not write file contents\",\"Code\":0,\"Trace\":\"#0 \\\/var\\\/www\\\/owncloud\\\/apps\\\/dav\\\/lib\\\/Connector\\\/Sabre\\\/Directory.php(172): OCA\\\\DAV\\\\Connector\\\\Sabre\\\\File->put()\\n#1 \\\/var\\\/www\\\/owncloud\\\/lib\\\/composer\\\/sabre\\\/dav\\\/lib\\\/DAV\\\/Server.php(1098): OCA\\\\DAV\\\\Connector\\\\Sabre\\\\Directory->createFile()\\n#2 \\\/var\\\/www\\\/owncloud\\\/lib\\\/composer\\\/sabre\\\/dav\\\/lib\\\/DAV\\\/CorePlugin.php(504): Sabre\\\\DAV\\\\Server->createFile()\\n#3 \\\/var\\\/www\\\/owncloud\\\/lib\\\/composer\\\/sabre\\\/event\\\/lib\\\/WildcardEmitterTrait.php(89): Sabre\\\\DAV\\\\CorePlugin->httpPut()\\n#4 \\\/var\\\/www\\\/owncloud\\\/lib\\\/composer\\\/sabre\\\/dav\\\/lib\\\/DAV\\\/Server.php(472): Sabre\\\\DAV\\\\Server->emit()\\n#5 \\\/var\\\/www\\\/owncloud\\\/lib\\\/composer\\\/sabre\\\/dav\\\/lib\\\/DAV\\\/Server.php(253): Sabre\\\\DAV\\\\Server->invokeMethod()\\n#6 \\\/var\\\/www\\\/owncloud\\\/apps\\\/dav\\\/lib\\\/Server.php(348): Sabre\\\\DAV\\\\Server->start()\\n#7 \\\/var\\\/www\\\/owncloud\\\/apps\\\/dav\\\/appinfo\\\/v2\\\/remote.php(31): OCA\\\\DAV\\\\Server->exec()\\n#8 \\\/var\\\/www\\\/owncloud\\\/remote.php(165): require_once('\\\/var\\\/www\\\/ownclo...')\\n#9 {main}\",\"File\":\"\\\/var\\\/www\\\/owncloud\\\/apps\\\/dav\\\/lib\\\/Connector\\\/Sabre\\\/File.php\",\"Line\":203}"}
{"reqId":"BCigZW9C3FY7AWY4NBri","level":3,"time":"2023-11-24T17:41:07+00:00","remoteAddr":"192.168.50.214","user":"Raid_ope","app":"no app in context","method":"GET","url":"\/settings\/admin","message":"Failed to load panel: OCA\\Carnet\\Settings\\AdminSettings with error: Could not resolve OCA\\Carnet\\Settings\\AdminSettings! Class OCA\\Carnet\\Settings\\AdminSettings does not exist"}

List of activated apps:
carnet

Are you using external storage, if yes which one: no
Are you using encryption: no

Client configuration

Browser: Chrome

Operating system: windows11

Logs

Web server error log

Nov 24 21:45:55 raspberrypi systemd[1]: Starting nginx.service - A high performance web server and a reverse proxy server...
Nov 24 21:45:55 raspberrypi nginx[7909]: 2023/11/24 21:45:55 [warn] 7909#7909: "ssl_stapling" ignored, issuer certificate not found for certificate "/etc/nginx/cert.pem"
Nov 24 21:45:55 raspberrypi nginx[7910]: 2023/11/24 21:45:55 [warn] 7910#7910: "ssl_stapling" ignored, issuer certificate not found for certificate "/etc/nginx/cert.pem"
Nov 24 21:45:55 raspberrypi systemd[1]: Started nginx.service - A high performance web server and a reverse proxy server.

ownCloud log (data/owncloud.log)

level":3,"time":"2021-12-03T

One thing is worthy of attention. When I was in the library, I was opening
owncloud in windows, which is not in a network. It showed it’s trying to connect to the host. Whether something went wrong while it was trying to connect? Or maybe it was just a conflict led to and I replaced the file from the cloud.

Hey,

i’m not sure if this third party app is still working on recent ownCloud versions because it seems that the last version for ownCloud has been releases around 4 years ago:

https://marketplace.owncloud.com/apps/carnet

I don’t think the key is carnet . I doubt that DB is. I remove all files (sudo rm -rf /var/www/owncloud) to reinstall, setting some ini fiies. It still has the problems.

My best guess is, that you messed up the access rights of the ownCloud data tree.

Could not write file contents
failed to open stream: Permission denied

Maybe by the access from windows?

1 Like

At the cost of time, patch server functionality. During this process, I found that Debian 12-Bookworm would automatically deleted some PHP7.4 folders, causing 502 Page. Because I deleted the database three times, I found that the PHP7.4 files were replaced by PHP8.2. This is an owncloud joke (PHP7.4 has been EOL for a year). I wanted to explain that I did not use SQL commands to mess with my data in the whole process. Should I optimize the algorithm of the windows client in the future? After all, many people have experienced the “dessert” of the client.

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