Until a few days ago, I operated my Nextcloud server without any problems on my old vServer. Due to some missing possibilities with that vServer I had to migrate to another one. Before doing so, I read some experience reports about how to install Nextcloud the best way: by “hand” (as before), as snap package or as docker container. I decided for the latter.
Everything seems to be fine with that. I only have some problems:
1.) Calendar synchronisation
Since I also ported my domain to the new vServer, I thought I do not have to change any configuration on our family mobile phones to synchronize calendars and contacts since I only used the domain name and no ip adresses when configuring the phones. I just exported all calendars and contacts by using the Nextcloud GUI and imported them again to the new server (also via the GUI).
But my Android phone is currently not able to synchronize e.g. the calendar (via DAVx5).
When I try to do so, no entries appear in the logfile. Then I tried to uninstall the Nextcloud app on my phone and I got some log output.
<ip> - <user> [02/Dec/2020:10:17:24 +0000] "PROPFIND /remote.php/dav/calendars/<user>/personal/ HTTP/1.1" 207 1970 "-" "DAVx5/3.3.7-gplay (2020/11/28; dav4jvm; okhttp/4.9.0) Android/10"
<ip> - <user> [02/Dec/2020:10:17:25 +0000] "PROPFIND /remote.php/dav/calendars/<user>/gemeinsamer-kalender/ HTTP/1.1" 207 2109 "-" "DAVx5/3.3.7-gplay (2020/11/28; dav4jvm; okhttp/4.9.0) Android/10"
<ip> - <user> [02/Dec/2020:10:17:25 +0000] "PROPFIND /remote.php/dav/addressbooks/users/<user>/gemeinsame-kontakte/ HTTP/1.1" 207 2014 "-" "DAVx5/3.3.7-gplay (2020/11/28; dav4jvm; okhttp/4.9.0) Android/10"
<ip> - <user> [02/Dec/2020:10:17:25 +0000] "REPORT /remote.php/dav/calendars/<user>/personal/ HTTP/1.1" 207 1646 "-" "DAVx5/3.3.7-gplay (2020/11/28; dav4jvm; okhttp/4.9.0) Android/10"
<ip> - <user> [02/Dec/2020:10:17:26 +0000] "PROPFIND /remote.php/dav/calendars/<user>/personal/ HTTP/1.1" 207 2108 "-" "DAVx5/3.3.7-gplay (2020/11/28; dav4jvm; okhttp/4.9.0) Android/10"
<ip> - <user> [02/Dec/2020:10:17:31 +0000] "PROPFIND /remote.php/dav/addressbooks/users/<user>/contacts/ HTTP/1.1" 207 2001 "-" "DAVx5/3.3.7-gplay (2020/11/28; dav4jvm; okhttp/4.9.0) Android/10"
<ip> - - [02/Dec/2020:10:17:32 +0000] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 304 230 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.66 Safari/537.36"
<ip> - <user> [02/Dec/2020:10:17:32 +0000] "PROPFIND /remote.php/dav/addressbooks/users/<user>/contacts/ HTTP/1.1" 207 2001 "-" "DAVx5/3.3.7-gplay (2020/11/28; dav4jvm; okhttp/4.9.0) Android/10"
<ip> - <user> [02/Dec/2020:10:17:33 +0000] "PROPFIND /remote.php/dav/addressbooks/users/<user>/contacts/ HTTP/1.1" 207 2005 "-" "DAVx5/3.3.7-gplay (2020/11/28; dav4jvm; okhttp/4.9.0) Android/10"
<ip> - - [02/Dec/2020:10:17:41 +0000] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 304 230 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:83.0) Gecko/20100101 Firefox/83.0"
With that it seems that the calendars are only synchronized partially since they reach my phone but the new entries from my phone are not synchronized to the Nextcloud instance.
There is also an iPhone in the family. Funnily there is one calendar synchronized, but one is not. The logfile says:
<ip> - - [02/Dec/2020:07:57:26 +0000] "OPTIONS /remote.php/dav/principals/users/<user>/ HTTP/1.1" 401 557 "-" "-" 25 "nextcloud@docker" "http://<ip>:80" 63ms
<ip> - - [02/Dec/2020:07:57:26 +0000] "OPTIONS /remote.php/dav/principals/users/<user>/ HTTP/1.1" 200 0 "-" "-" 26 "nextcloud@docker" "http://<ip>:80" 63ms
<ip> - - [02/Dec/2020:07:57:27 +0000] "REPORT /remote.php/dav/principals/users/<user>/ HTTP/1.1" 401 557 "-" "-" 27 "nextcloud@docker" "http://<ip>:80" 70ms
<ip> - - [02/Dec/2020:07:57:27 +0000] "REPORT /remote.php/dav/principals/users/<user>/ HTTP/1.1" 207 554 "-" "-" 28 "nextcloud@docker" "http://<ip>:80" 77ms
<ip> - - [02/Dec/2020:07:57:27 +0000] "PROPFIND</remote.php/dav/calendars/<user>/ HTTP/1.1" 401 557 "-" "-" 29 "nextcloud@docker" "http://<ip>:80" 46ms
<ip> - - [02/Dec/2020:07:57:28 +0000] "PROPFIND /remote.php/dav/calendars/<user>/ HTTP/1.1" 207 1341 "-" "-" 30 "nextcloud@docker" "http://<ip>:80" 82ms
<ip> - - [02/Dec/2020:07:57:28 +0000] "PROPFIND /remote.php/dav/calendars/<user>/inbox/ HTTP/1.1" 207 250 "-" "-" 31 "nextcloud@docker" "http://<ip>:80" 60ms
<ip> - - [02/Dec/2020:07:57:28 +0000] "PROPFIND /remote.php/dav/calendars/<user>/inbox/ HTTP/1.1" 207 250 "-" "-" 32 "nextcloud@docker" "http://<ip>:80" 58ms
as you can see, there are some http-401 codes!
2.) Push notifications
Currently I get no push notifications. I reinstalled the official Android Nextcloud app and it gives a note about new calendar entries in the notifications area, but there it also says that push notifications are currently not avalaible. Somewhere here in the forum I found a post that proposes to test, if push notifications can be triggered manually with the command:
docker exec --user www-data nextcloud-app php occ notification:test-push <user>
but there I get the info No devices found for user
. In the “notifications” area in the Android Nextcloud app, these test-notifications are listed.
Do I have to register my phone manually? Do I have to open some ports in my firewall?
Thank you very much in advance for your help to these two issues!!!
If you need more log output, of course I will provide that, if you tell me what you need or what I have to test!
Nextcloud version (eg, 18.0.2): 20.0.2 (as in the latest docker image)
Operating system and version (eg, Ubuntu 20.04): Ubuntu 20.04 with Docker 19.03.13
Apache or nginx version (eg, Apache 2.4.25): apache (as in the docker image) with traefik (latest) in front
PHP version (eg, 7.1): 7.4.13 (as in the nextcloud docker image)
“com.docker.compose.version”: “1.27.4”
The issue you are facing:
Is this the first time you’ve seen this error? (Y/N): Y (old installation was fine regarding that issues)
Steps to replicate it:
a) try to synchronize my phone
b) create calendar entries and wait for notification
The output of your Nextcloud log in Admin > Logging:
see above
The output of your config.php file in /path/to/nextcloud
(make sure you remove any identifiable information!):
<?php
$CONFIG = array (
'htaccess.RewriteBase' => '/',
'memcache.local' => '\\OC\\Memcache\\APCu',
'apps_paths' =>
array (
0 =>
array (
'path' => '/var/www/html/apps',
'url' => '/apps',
'writable' => false,
),
1 =>
array (
'path' => '/var/www/html/custom_apps',
'url' => '/custom_apps',
'writable' => true,
),
),
'memcache.distributed' => '\\OC\\Memcache\\Redis',
'memcache.locking' => '\\OC\\Memcache\\Redis',
'redis' =>
array (
'host' => 'nextcloud-redis',
'password' => 'xxx',
'port' => 6379,
),
'passwordsalt' => 'xxx',
'secret' => 'xxx',
'trusted_domains' =>
array (
0 => 'localhost',
1 => 'nextcloud.<mydomain>.de',
),
'trusted_proxies' => '<ip>/16',
'datadirectory' => '/var/www/html/data',
'dbtype' => 'mysql',
'version' => '20.0.2.2',
'overwrite.cli.url' => 'https://nextcloud.<mydomain>.de',
'overwriteprotocol' => 'https',
'overwritehost' => 'nextcloud.<mydomain>.de',
'dbname' => 'nextcloud',
'dbhost' => 'mariadb',
'dbport' => '',
'dbtableprefix' => 'oc_',
'mysql.utf8mb4' => true,
'dbuser' => 'nextcloud',
'dbpassword' => 'xxx',
'installed' => true,
'instanceid' => '<id>',
'mail_smtpmode' => 'smtp',
'mail_smtphost' => 'mail.gmx.net',
'mail_sendmailmode' => 'smtp',
'mail_smtpport' => '587',
'mail_from_address' => '<from>',
'mail_domain' => 'gmx.de',
'mail_smtpauthtype' => 'LOGIN',
'mail_smtpauth' => 1,
'mail_smtpname' => '<emailaddress>',
'mail_smtppassword' => 'xxx',
'mail_smtpsecure' => 'tls',
);
The output of your Apache/nginx/system log in /var/log/____
:
see above