Issue creating text files from the web interface, editing is ok and everything else works.
Steps to reproduce
- login owncloud
- go to the “+” sign to create a .txt file
Expected behavior
create a file when going to the “+” text file menu
Actual behavior
error: cannot create file
Sometimes a file is shown afterwards in the files list in owncloud, but there is an error when trying to open it.
Error in the logs:
owncloud_ssl_error.log:4:[Wed May 19 11:19:28.812021 2021] [php7:notice] [pid 8904] [client 192.168.xx.xx:xxxx]
{"reqId":"xxxxxxxxxxxxxxx","level":1,"time":"May 19, 2021 11:19:28","remoteAddr":"192.168.xxx.xxx","user":"xxxxx","app":"core","method":"PUT","url":"/remote.php/dav/files/xxxxx/test96.txt","message":"cleaning stray exclusive locks for files/xxxxxxxxxxxxxxxxxxxxx"}
And from browser logs:
"client.js?v=xxxxxxxxxxxxxxxxxxxxxx PUT https://xxxxxx/remote.php/dav/files/xxxxxxx/test96.txt 500 (Internal Server Error)"
And
<d:errorxmlns:d="DAV:"xmlns:s="http://sabredav.org/ns">
<s:exception>
Doctrine\DBAL\Exception\DriverException
</s:exception>
<s:message>
An exception occurred while executing 'SELECT "fileid", "storage", "path", "parent", "name", "mimetype", "mimepart", "size", "mtime",
"storage_mtime", "encrypted", "etag", "permissions", "checksum"
FROM "oc_filecache" WHERE "storage" = ? AND "path_hash" = ?' with params [5, "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"]:SQLSTATE[25P02]: In failed sql transaction: 7 ERROR: current transaction is aborted, commands ignored until end of transaction block
</s:message>
</d:error>"
Server configuration
Operating system:
Debian 10
Web server:
Apache 2.4.25
Database:
postgres 9.6
PHP version:
7.3
ownCloud version: (see ownCloud admin page)
10.7
Updated from an older ownCloud or fresh install:
yes from 10.5 deb to 10.7 tgz
Are you using encryption: yes/no
yes
Are you using an external user-backend, if yes which one: LDAP/ActiveDirectory/Webdav/…
openid
Client configuration
Browser:
Safari, Chrome, Firefox, Opera
Operating system:
Linux, OSX
So far I tried to clear the redis cache and checked the files access rights on the server