-
Notifications
You must be signed in to change notification settings - Fork 816
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: server replied: Precondition Failed on nextcloudclientcmd on Ubuntu #7935
Comments
Same issue with
server's side errors
I recreated the app token but same error, I have nothing in the bruteforce attempt list |
At first glance this is not looking like a desktop client issue. Can you upload files in the browser? |
Same issue here. I am also getting the Request does not pass strict cookie check error. I wonder if anyone knows the user-agent EDIT @camilasan yes I can upload files through the browser and the Android APP. |
the same as nextcloud: https://github.com/nextcloud/desktop/blob/master/src/common/utility.cpp#L167-L178 let us know if that solved your issue. |
With master and fresh server 31.0.0.18, I couldn't reproduce this error. Could you try it 3.16.0-rc3? |
Hi, this is only a nextcloudcmd issue for me. The GUI and browser clients work fine. |
@Aohzan @mruediger could you also post which exact version of the client you're using? how did you install it? which distro/OS are you running? I cannot reproduce this with
|
I use the last version on Debian repo
|
Could you upgrade? That could explain the issue. |
ok but as there is no new version available on Debian repo, do I need to build it on my own or there is some .deb or binaries somewhere ? |
I tried the apt and snap packages, but get the same results with both of them. I am currently trying to compile it to get the newest version, as I could not find any packages for the 3.16 version Just as a sidenote, on my Ubuntu 22 Laptop it works fine: |
I found this https://packages.debian.org/sid/nextcloud-desktop |
Its dependencies are not available on Debian 12, so it's not so easy |
I am running NixOS. I tried the stable and unstable channel. I also bumped the version to
and on my server (using
|
@camilasan sid is unstable branch of debian, we cannot install it on production systems i have the same problem with nextcloudcmd 3.15.2 in alpine container |
i built 3.16.0-rc3 and the problem still exists anyone know how to fix it? Nextcloud version 3.15.83 |
Could you check the server logs and configuration? |
The user agent is in the error message, putting it into the nextcloud config seems to solve the issue for me |
I am closing the ticket now given that we couldn't reproduce it and that it seems to be a configuration issue. |
same issue here, nextcloud 31.0.0.18 and nextcloudcmd 3.15.3-20250107.145041.a595d5bcb-1.0~jammy1 how do you put the user agent in the config file? |
I added
to config/config.php and now it seems to work again. But your user agent differs. Instead you could try
|
I am also experiencing this issue, and the suggested fix above by adding csrf.optout to my config.php so far does not seem to be working around the issue. My client device is Debian 12, using the CLI client.
|
@ufgkirk - I just tested with the
If you're using the short array syntax (where you'd see
I don't know if the two formats are incompatible - I haven't looked but maybe that's it. Otherwise, it might be a good idea to check your web server logs to see what is being reported as the user agent. For example, I can see in my nginx logs what the UserAgent is:
|
Bug description
My nextcloudcmd client is failing with the error: Sync error: "Server replied with an error while reading directory "" : Error transferring https://localhost/remote.php/dav/files/lucas/Dokumente/Dokumente/Projekte/Server/ - server replied: Precondition Failed"
I just updated to server version 31 and the client is 3.15.3.
Client:
Nextcloud version 3.15.3-20250107.145041.a595d5bcb-1.0~noble1
Using Qt 6.4.2, built against Qt 6.4.2
Using 'OpenSSL 3.0.13 30 Jan 2024'
Running on Ubuntu 24.04.2 LTS, x86_64
Steps to reproduce
Execute
nextcloudcmd --user <user> --password <password> --path <remotepath> <localpath> https://localhost
Expected behavior
Normal file sync via the commandline client
Which files are affected by this bug
All Files
Operating system
Linux
Which version of the operating system you are running.
Ubuntu 24.04.2 LTS
Package
Official Linux AppImage
Nextcloud Server version
31.0.0.18
Nextcloud Desktop Client version
3.15.3-20250107.145041.a595d5bcb-1.0~noble1
Is this bug present after an update or on a fresh install?
Updated to a major version (ex. 3.3.6 to 3.4.0)
Are you using the Nextcloud Server Encryption module?
Encryption is Disabled
Are you using an external user-backend?
Nextcloud Server logs
Additional info
No response
The text was updated successfully, but these errors were encountered: