mrvladus / Errands

Todo application for those who prefer simplicity.
MIT License
274 stars 65 forks source link

Nextcloud "can't connect" toast #250

Closed Renarde-dev closed 2 months ago

Renarde-dev commented 2 months ago

Posting here for reference.

OS :

When trying to connect with the default nextcloud option ( I'm logged in gnome accounts ) errands will fail to connect.

[ERROR] Sync: Can't connect to Nextcloud server at 'https://my.domain/remote.php/caldav//remote.php/dav/'. NotFoundError at '404 Not Found

b'<?xml version="1.0" encoding="utf-8"?>\n<d:error xmlns:d="DAV:" xmlns:s="http://sabredav.org/ns">\n  <s:exception>Sabre\\DAV\\Exception\\NotFound</s:exception>\n  <s:message>File not found: remote.php in \'root\'</s:message>\n</d:error>\n'', reason no reason

A fix I found is to replace

https://my.domain/remote.php/caldav//remote.php/dav/

by

https://my.domain/remote.php/dav/principals/users/MY_USERNAME
mrvladus commented 2 months ago

Can you try this url: https://my.domain/remote.php/dav/

Renarde-dev commented 2 months ago

It works as well, I can make a PR if you want.

mrvladus commented 2 months ago

Okay

Renarde-dev commented 2 months ago

Okay

I've trouble compiling the project with builder >< The build fail with Error: module python3-lxml: Child process exited with code 137

This may linked with rofiles-fuse not available

mrvladus commented 2 months ago

Are you using Builder?

Renarde-dev commented 2 months ago

Are you using Builder?

I'm using the version from flathub, I've ostree and libfuse[23] installed.

~> flatpak list | grep "Builder"
Builder org.gnome.Builder   46.1    stable  user
mrvladus commented 2 months ago

That's strange, it builds fine on my machine, I use Builder from flathub too...

mrvladus commented 2 months ago

Maybe a flatpak bug. What version of flatpak do you have? Mine is 1.15.8

mrvladus commented 2 months ago

You can try to run my build sript from project directory: ./build-aux/run.sh. But i'm not sure that it's working.

Renarde-dev commented 2 months ago

I use Flatpak 1.14.6, I will try to build gnome-music

Renarde-dev commented 2 months ago

Gnome music build works, the project still fail to build. I will try to reboot to see if rofile works.

The build script fail with :

./build-aux/run.sh 
====== INIT REPO ======
====== BUILD 1 ======
error: app/org.flatpak.Builder/x86_64/master not installed
====== BUILD 2 ======
The Meson build system
Version: 1.3.2
Source dir: /home/renarde/Documents/Projects/PullRequest/Errands
Build dir: /home/renarde/Documents/Projects/PullRequest/Errands/_build
Build type: native build
Project name: errands
Project version: 46.0ю1
Host machine cpu family: x86_64
Host machine cpu: x86_64
Found pkg-config: YES (/usr/sbin/pkg-config) 2.2.0
Run-time dependency libadwaita-1 found: YES 1.5.0
Run-time dependency libsecret-1 found: YES 0.21.4
Found CMake: /usr/sbin/cmake (3.29.2)
Run-time dependency libportal found: NO (tried pkgconfig and cmake)

meson.build:9:0: ERROR: Dependency "libportal" not found, tried pkgconfig and cmake

A full log can be found at /home/renarde/Documents/Projects/PullRequest/Errands/_build/meson-logs/meson-log.txt
WARNING: Running the setup command as `meson [options]` instead of `meson setup [options]` is ambiguous and deprecated.
====== RUN 1 ======
ninja: Entering directory `_build'
ninja: error: loading 'build.ninja': No such file or directory
====== RUN 2 ======
Install data not found. Run this command in build directory root.
====== RUN 3 ======
bwrap: Can't find source path /run/user/1000/at-spi/bus: No such file or directory
Renarde-dev commented 2 months ago

Tried on my desktop ( Fedora 39) and it worked without any error. Maybe flatpak version was tool old ?

mrvladus commented 2 months ago

Probably, I use Fedora Silverblue 40.

Renarde-dev commented 2 months ago

Ok i don't thing the issue is coming from your app. I think the culprit is gnome-accounts 42. My fedora machine auto fill the url as : https://my.domain/remote.php/dav/