We have moved to a new Sailfish OS Forum. Please start new discussions there.
26

[3.3.0] Issues with Nextcloud integration

asked 2020-04-03 13:07:23 +0300

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

updated 2020-04-06 10:55:59 +0300

ziellos gravatar image

There are some serious issues with the new Nextcloud integration, introduced with 3.3.0 Rokua (Xperia X, Nextcloud 18.0.3):

  • Some features seem to work only if the nextcloud instance is located in the website's root directory. Be sure to access nextcloud at https://nextcloud.servername instead of https://servername/nextcloud. Creating a subdomain may be a solution.
  • Some third-party apps seem to cause conflicts with the new nextcloud sharing option. If the sharing dialogue stays blank, removing the libowncloudshareplugin.so library (or the app that brought it) may be necessary.
  • It's unclear if nextcloud contact integration is intended to replace carddav synch. I am unable to find any signs of nextcloud synchronization in the contacts app.
  • It is unclear how the gallery integration handles previews of nextcloud photos. Is it possible to force the creation of thumbnails? How to update or delete them? Where are they stored on the device? It seems the gallery app loads the actual full-size photos, not the nextcloud previews. Wouldn't it be much better to use previews which are optimized for size and speed?
  • There is no indication you've entered incorrect credentials. Only sharing fails with an "Oops, uploading didn't work"-error.
  • There is no option to change credentials after account creation. It looked to me as if credentials were checked when creating the account, but this appeared not the case.
  • Only Photos on the Nextcloud instance are accessible. Accessing documents and other files is not possible. (afaik)
  • Sharing a photo to NC, and then immediately view it in Gallery app resulted in a broken preview image in Gallery (only upper half visible, lower half gray), possibly because uploading or server-side processing was still in progress. (My NC instance is running on a very slow machine, AMD E-450)
  • Nextcloud notifications should be visible in Sailfish events view, but they are not. Nextcloud app update notifications aren't visible on my phone after triggering a manual synchronization of my nextcloud account.

In its current state, nextcloud integration seems to be in an early experimental state. Far from being useable to be honest.

Don't get me wrong. Nextcloud integration is the right direction from a data protection and security perspective, it suits the Jolla/Sailfish philosophy very well. But integration is more than photo and notes upload. There are native apps that do two-way nextcloud folder synchronization very well. Wouldn't it be much better to integrate such (existing) functionality into the OS? Am I expecting too much?

edit retag flag offensive close delete

Comments

Sharing or synchronizing notes should work. But I am unable to install the Notes ("Notizen") app from Jolla store. Maybe an updated app version is necessary?

Possibly a partial update? Backing up to Nextcloud and uploading notes (app was installed) do work for me. Also I didn't see duplicate accounts in the share dialogue.

Blizzz ( 2020-04-03 13:17:19 +0300 )edit

@Blizzz: yes, the first update attempt failed with the lost connectivity issue. But I was able to solve that with the instructions provided here. Now the phone seems to be updated correctly, at least I found no issues apart from the nextcloud-related ones.

ziellos ( 2020-04-03 14:05:21 +0300 )edit
2

Couldn't create an account with calendar enabled either. The I checked the logs and saw this silliness:

Sailfish estart[4905]: [W] unknown:0 - ignoring possibly malicious redirect from QUrl("https://server.fqdn/nextcloud") to QUrl("https://server.fqdn/nextcloud/")

(yes, there was a trailing slash in the URL entered in the UI). Workaround: add TWO trailing slashes.

lm ( 2020-04-03 14:35:52 +0300 )edit
1

In my case the Share-Dialogue does not work, The account and Backup and Contacts and Calendar works. But the Nextcloud Pictures folder is also not working.

fridl ( 2020-04-03 14:43:54 +0300 )edit
3

you need to have a folder called "Photos" in your Nextcloud for sharing and Pictures in Gallery to appear.. It is a hard coded path!

jayki ( 2020-04-03 15:02:28 +0300 )edit

4 Answers

Sort by » oldest newest most voted
3

answered 2020-04-04 10:32:02 +0300

JulienBlanc gravatar image

Could create an account with calendar enabled.

However, I noticed that it only works if nextcloud is not in a subfolder :

https://nextcloud.foo.bar/ --> OK

https://foo.bar/nextcloud/ --> FAIL

86.202.206.86 - - [04/Apr/2020:08:37:59 +0200] "PROPFIND /owncloud HTTP/1.1" 405 3841 "-" "Mozilla/5.0"
86.202.206.86 - - [04/Apr/2020:08:37:59 +0200] "PROPFIND /.well-known/caldav HTTP/1.1" 405 589 "-" "Mozilla/5.0"

It seems the "well-known" caldav url search is looken for at a wrong place if nextcloud resides in a subdirectory.

edit flag offensive delete publish link more

Comments

There is a WebDAV patch setting in the NC account registration dialog (initial screen). I'd guess you should prepend /nextcloud to it when you have it in a subfolder.

Valentin ( 2020-04-04 11:38:12 +0300 )edit

I have a similar problem and have my Nextcloud instance in a subpath. I have prepended the subpath to the webdav path setting. I had to do that for it to even create the account. My calendar and contacts sync correctly, but not pictures. I get the same 404 error in the logs as others have mentioned.

b ( 2020-04-04 12:04:36 +0300 )edit

You need to have a proper well-known-Setting, like here:

https://github.com/nextcloud/server/issues/11787

https://your.site/.well-known/carddav or https://your.site/.well-known/caldav must redirect to https://your.site/nextcloudsubfolder/remote.php/dav/

Then on initializing the calendars are listed.

cy8aer ( 2020-04-04 20:48:48 +0300 )edit

I do have a proper well-known-Setting, but in the nextcloud virtual folder, not at the server root. This should work (it works with all other dav clients, it even works with the standard dav account).

JulienBlanc ( 2020-04-05 08:49:16 +0300 )edit

Half-dumb question: as NextCloud and OwnCloud are (were at least) closely related, should this work with OwnCloud, too?

Direc ( 2020-04-05 15:50:08 +0300 )edit
3

answered 2020-04-04 20:55:40 +0300

cy8aer gravatar image

You need to have a proper well-known-setting on your nextcloud side, like here:

https://github.com/nextcloud/server/issues/11787

https://your.site/.well-known/carddav or https://your.site/.well-known/caldav must redirect to https://your.site/nextcloudsubfolder/remote.php/dav/

Then on initializing the calendars are listed. And contacts work too.

edit flag offensive delete publish link more

Comments

... removing the old carddav and caldav accounts

cy8aer ( 2020-04-04 20:56:18 +0300 )edit

Backup does not work. My system has a subfolder...

cy8aer ( 2020-04-05 20:41:43 +0300 )edit
1

answered 2020-04-04 13:18:23 +0300

JulienBlanc gravatar image

Another thing noticed. Syncing a small collection of pictures (ie, a small Photos folder on nextcloud side) works correctly. However, with a large collections (~250Gb of photos), the process fails completely.

The only (somewhat) relevant error i found in the msyncd logs is the following :

[W] unknown:0 - calculateAndApplyDelta: failed to add album: "/remote.php/dav/files/jul/Photos/<anonymized path>" 14 "Failed to execute store album query: FOREIGN KEY constraint failed Unable to fetch row\nINSERT INTO Albums (accountId, userId, albumId, photoCount, thumbnailUrl, thumbnailPath, parentAlbumId, albumName, thumbnailFileName) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?)"
[W] unknown:0 - Failed to find user: "jul" for account: 7 14 "Failed to execute store album query: FOREIGN KEY constraint failed Unable to fetch row\nINSERT INTO Albums (accountId, userId, albumId, photoCount, thumbnailUrl, thumbnailPath, parentAlbumId, albumName, thumbnailFileName) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?)"

7 is the correct account number, and "jul" is my username on the nextcloud instance. I can provide additional informations if i know where to find / what to check.

edit flag offensive delete publish link more

Comments

I have exactly the same message in the log. My Photos folder is 11Gb. edit : In fact, I've found that my "Photos" folder is one shared with me and it doesn't sync. So apparently, it's not possible to sync Photos when we are not the owner.

debeliu ( 2020-04-06 15:45:10 +0300 )edit
0

answered 2020-04-04 22:45:47 +0300

DragonLich gravatar image

In my case the problem was resolved when I changed path of the webdav. Before I changed the path I was able to upload backup and photos but contacts sync did not work.

The default is:

/remote.php/webdav

But on my Nextcloud it is:

/remote.php/dav/files/<USERNAME>

See: https://docs.nextcloud.com/server/18/user_manual/files/access_webdav.html for more info.

Also I did not found other way to change this than to remove the Nextcloud account and add it again.

Hope this will help you.

edit flag offensive delete publish link more

Comments

@DragonLich: i installed new Netxcloud (v19.0.1) from scrach. Connection with Linux file manager worked as described above.

But Sailfish did not work. Only addressbook and calendar sync correct (both directions). This is regardless if i use '/remote.php/dav/', '/remote.php/dav/files/' or '/remote.php/dav/files/User/'. Sharing Pictures, Notes or make backup on nextcloud did not work.On server log i miss the access to '/remote.php/dav/files/User/Photos' and '/remote.php/dav/files/User/Documents' from Sailfish side.

As descriebed above vom Linux side it works.I use Sailfish version 3.3.0.16 (latest version) with german language.

Should i switch to english? But i read elsewher that 'Photos' and 'Documents' are fix on Sailfish.

gabs5807 ( 2020-08-17 00:11:56 +0300 )edit
Login/Signup to Answer

Question tools

Follow
9 followers

Stats

Asked: 2020-04-03 13:07:23 +0300

Seen: 2,920 times

Last updated: Apr 06 '20