Hi!
I just updated from Owncloud 10.13.x to NextCloud (OC 10.13 to NC 25.X to NC 26.x to NC 27.x to NC 28.x).
After this, I can’t upload files.
I can’t upload them to either internal folders or external folders.
I can’t upload them via HTTP, and I can’t upload them via Webdav.
Log info is updated when I upload via Webdav, but not when I upload via HTTP. So I will paste here the webdav log:
Debug webdav Sabre\DAV\Exception\NotFound: File with name 2025-01-16T12:25:19+00:00
Local/ansi-solution.txt could not be located at
apps/dav/lib/Connector/Sabre/ObjectTree.php line 172
0. .../Server.php line 971
OCA\DAV\Connector\Sabre\ObjectTree->getNodeForPath(
)
1. .../Server.php line 1662
Sabre\DAV\Server->getPropertiesIteratorForPath(
)
2. .../Server.php line 1647
Sabre\DAV\Server->writeMultiStatus(
)
3. .../CorePlugin.php line 346
Sabre\DAV\Server->generateMultiStatus(
)
4. .../WildcardEmitterTrait.php line 89
Sabre\DAV\CorePlugin->httpPropFind(
)
5. .../DAV/Server.php line 472
Sabre\DAV\Server->emit(
)
6. .../Server.php line 61
Sabre\DAV\Server->invokeMethod(
)
7. .../Server.php line 321
OCA\DAV\Connector\Sabre\Server->start(
)
8. .../v1/webdav.php line 88
Sabre\DAV\Server->exec(
)
9. remote.php line 172
require_once("\/home\/apagada\/public_html\ ... p")
SOLVED
When installing Nextcloud, I overwrote .htaccess, where I had a crucial change to allow PUT in my server (my provider seems to ban PUT in all their VPS):
#### DO NOT CHANGE ANYTHING ABOVE THIS LINE ####
<Limit GET POST PUT DELETE>
Allow from all
</Limit>
The Basics
- Nextcloud Server version (e.g., 28.x.x):
28.0.14
- Operating system and version (e.g., Ubuntu 24.04):
Linux 5.14.0-427.42.1.el9_4.x86_64 x86_64
- Web server and version (e.g, Apache 2.4.25):
Apache, unknown
- Reverse proxy and version _(e.g. nginx 1.27.2)
Unknown
- PHP version (e.g, 8.3):Unknown. Why don’t you give this info in the system admin section? `
- Is this the first time you’ve seen this error? (Yes / No):
yes
- When did this problem seem to first start?
The first time I uploaded a file after upgrading
- Installation method (e.g. AlO, NCP, Bare Metal/Archive, etc.)
Manual upgrade. Web upgrade from OC 10.13 did not work, so I deleted all folders except the two listed at the docs. Then I had to copy from my backup another folder that was not listed in the docs (the external-apps folder)
- Are you using CloudfIare, mod_security, or similar? (Yes / No)
No
Summary of the issue you are facing:
[…]
Steps to replicate it (hint: details matter!):
- Update any file, any size (even small), using either dav:// or web.
- An error appears (folder mot found in web, file not found in dav://)
Log entries
Nextcloud
Please provide the log entries from your Nextcloud log that are generated during the time of problem (via the Copy raw option from Administration settings->Logging screen or from your nextcloud.log
located in your data directory). Feel free to use a pastebin/gist service if necessary.
PASTE HERE
Web Browser
If the problem is related to the Web interface, open your browser inspector Console and Network tabs while refreshing (reloading) and reproducing the problem. Provide any relevant output/errors here that appear.
Problem appears either in browser or webdav
Web server / Reverse Proxy
The output of your Apache/nginx/system log in /var/log/____
:
That file does not exist
Configuration
Nextcloud
The output of occ config:list system
or similar is best, but, if not possible, the contents of your config.php
file from /path/to/nextcloud
is fine (make sure to remove any identifiable information!):
PASTE HERE
Apps
The output of occ app:list
(if possible).
Tips for increasing the likelihood of a response
- Use the
preformatted text
formatting option in the editor for all log entries and configuration output. - If screenshots are useful, feel free to include them.
- If possible, also include key error output in text form so it can be searched for.
- Try to edit log output only minimally (if at all) so that it can be ran through analyzers / formatters by those trying to help you.