[SOLVED] New calendar event and contact on smartphone doesn't appear in the NextCloud web Interface but seems to be in database (replicated on another smartphone)

Support intro

Sorry to hear you’re facing problems :slightly_frowning_face:

help.nextcloud.com is for home/non-enterprise users. If you’re running a business, paid support can be accessed via portal.nextcloud.com where we can ensure your business keeps running smoothly.

In order to help you as quickly as possible, before clicking Create Topic please provide as much of the below as you can. Feel free to use a pastebin service for logs, otherwise either indent short log examples with four spaces:

example

Or for longer, use three backticks above and below the code snippet:

longer
example
here

Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can :heart:

Nextcloud version (eg, 20.0.5): 24.0.2
Operating system and version (eg, Ubuntu 20.04): Linux nextcloud 5.10.0-15-arm64 #1 SMP Debian 5.10.120-1 (2022-06-09) armv8l GNU/Linux in a LXC container
Apache or nginx version (eg, Apache 2.4.25): Apache/2.4.54 but I have a reverse proxy in front which is Caddy
PHP version (eg, 7.4): v8.0.20

The issue you are facing:

I deployed a test version of NextCloud on a Raspberry Pi 3 in a LXD / LXC container. I seems to work fine. So I migrated the NextCloud container and the MariaDB container from the Raspberry Pi 3 to a Raspberry Pi 4.

There is a reverse proxy named Caddy in front of the containers, like that, I can have multiple services hosted in different containers.

My MariaDB database is also in another container, like that, I can snapshot each container separatly.

The problem is : when I create a calendar event or a new contact on my smartphone, called smartphone A (I have NextCloud application version 3.20.3 and DavX 5 (version 4.2.2-ose), it did’t appear on my NextCloud web interface. When I use a second smartphone also with NextCloud application and DavX5, called smartphone B, events and contacts created on smartphone A are well displayed on smartphone B.

So, it looks like the data are sent on the NextCloud database but aren’t displayed. I have no idea of why ! If anyone could help me, it will be very nice !

Edit : I forgot to mention that if I create a contact or a calendar event from the web interface, it is immediatly replicated on the smartphones… So initialy I was thinking that the update was only one way, but the try with another smartphone shows that data are sent to the server…

Is this the first time you’ve seen this error? (Y/N): Y

Steps to replicate it: hard to replicate I think

  1. Install a pure Debian ARM on a Raspberry Pi 3
  2. Install LXD / LXC
  3. Install MariaDB in a LXC container
  4. Install NextCloud in a LXC container with all the required dependancies
  5. Make everything working without any error
  6. Install a pure Debian ARM on a Raspberry Pi 4 8 Go
  7. Install LXD / LXC on the RPI4
  8. Migrate containers from RPI3 to RPI4
  9. Have some difficulties to make everything working has before
  10. Having the feeling that everything is ok
  11. Install adGuard in a new container
  12. Having some trouble with DNS, making me became crazy because anything was working
  13. Finally resolving the DNS problems
  14. Be happy because everyting work, but discover that new calendar event and new contact doesn’t appear on the Web interface but are replicated on another smartphone.

The output of your Nextcloud log in Admin > Logging (I didn’t copy/past all the file, it is 60kb) :

{"reqId":"qEMugFRsmkcIXKLWsbNK","level":4,"time":"2022-07-03T16:10:04+00:00","remoteAddr":"192.168.1.254","user":"nicolas","app":"webdav","method":"MOVE","url":"/remote.php/dav/uploads/nicolas/a138a135c9d0598f679212cb205d73de/.file","message":"X-OC-MTime header must be a valid positive integer","userAgent":"Mozilla/5.0 (Android) Nextcloud-android/3.20.3","version":"24.0.2.1","exception":{"Exception":"InvalidArgumentException","Message":"X-OC-MTime header must be a valid positive integer","Code":0,"Trace":[{"file":"/var/www/nextcloud/apps/dav/lib/Connector/Sabre/Node.php","line":432,"function":"sanitizeMtime","class":"OCA\\DAV\\Connector\\Sabre\\MtimeSanitizer","type":"::"},{"file":"/var/www/nextcloud/apps/dav/lib/Connector/Sabre/File.php","line":379,"function":"sanitizeMtime","class":"OCA\\DAV\\Connector\\Sabre\\Node","type":"->"},{"file":"/var/www/nextcloud/apps/dav/lib/Connector/Sabre/Directory.php","line":164,"function":"put","class":"OCA\\DAV\\Connector\\Sabre\\File","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Tree.php","line":307,"function":"createFile","class":"OCA\\DAV\\Connector\\Sabre\\Directory","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Tree.php","line":133,"function":"copyNode","class":"Sabre\\DAV\\Tree","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Tree.php","line":163,"function":"copy","class":"Sabre\\DAV\\Tree","type":"->"},{"file":"/var/www/nextcloud/apps/dav/lib/Upload/ChunkingPlugin.php","line":94,"function":"move","class":"Sabre\\DAV\\Tree","type":"->"},{"file":"/var/www/nextcloud/apps/dav/lib/Upload/ChunkingPlugin.php","line":76,"function":"performMove","class":"OCA\\DAV\\Upload\\ChunkingPlugin","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php","line":89,"function":"beforeMove","class":"OCA\\DAV\\Upload\\ChunkingPlugin","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php","line":603,"function":"emit","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php","line":89,"function":"httpMove","class":"Sabre\\DAV\\CorePlugin","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":472,"function":"emit","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":253,"function":"invokeMethod","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":321,"function":"start","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/apps/dav/lib/Server.php","line":352,"function":"exec","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/apps/dav/appinfo/v2/remote.php","line":35,"function":"exec","class":"OCA\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/remote.php","line":166,"args":["/var/www/nextcloud/apps/dav/appinfo/v2/remote.php"],"function":"require_once"}],"File":"/var/www/nextcloud/apps/dav/lib/Connector/Sabre/MtimeSanitizer.php","Line":37,"CustomMessage":"--"}}
{"reqId":"GlhBW97YyRyj7vjrQ1oJ","level":4,"time":"2022-07-03T16:11:57+00:00","remoteAddr":"192.168.1.254","user":"nicolas","app":"webdav","method":"MOVE","url":"/remote.php/dav/uploads/nicolas/04acd0ea6cdc45c0f89cbc8876d24d10/.file","message":"X-OC-MTime header must be a valid positive integer","userAgent":"Mozilla/5.0 (Android) Nextcloud-android/3.20.3","version":"24.0.2.1","exception":{"Exception":"InvalidArgumentException","Message":"X-OC-MTime header must be a valid positive integer","Code":0,"Trace":[{"file":"/var/www/nextcloud/apps/dav/lib/Connector/Sabre/Node.php","line":432,"function":"sanitizeMtime","class":"OCA\\DAV\\Connector\\Sabre\\MtimeSanitizer","type":"::"},{"file":"/var/www/nextcloud/apps/dav/lib/Connector/Sabre/File.php","line":379,"function":"sanitizeMtime","class":"OCA\\DAV\\Connector\\Sabre\\Node","type":"->"},{"file":"/var/www/nextcloud/apps/dav/lib/Connector/Sabre/Directory.php","line":164,"function":"put","class":"OCA\\DAV\\Connector\\Sabre\\File","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Tree.php","line":307,"function":"createFile","class":"OCA\\DAV\\Connector\\Sabre\\Directory","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Tree.php","line":133,"function":"copyNode","class":"Sabre\\DAV\\Tree","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Tree.php","line":163,"function":"copy","class":"Sabre\\DAV\\Tree","type":"->"},{"file":"/var/www/nextcloud/apps/dav/lib/Upload/ChunkingPlugin.php","line":94,"function":"move","class":"Sabre\\DAV\\Tree","type":"->"},{"file":"/var/www/nextcloud/apps/dav/lib/Upload/ChunkingPlugin.php","line":76,"function":"performMove","class":"OCA\\DAV\\Upload\\ChunkingPlugin","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php","line":89,"function":"beforeMove","class":"OCA\\DAV\\Upload\\ChunkingPlugin","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php","line":603,"function":"emit","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php","line":89,"function":"httpMove","class":"Sabre\\DAV\\CorePlugin","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":472,"function":"emit","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":253,"function":"invokeMethod","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":321,"function":"start","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/apps/dav/lib/Server.php","line":352,"function":"exec","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/apps/dav/appinfo/v2/remote.php","line":35,"function":"exec","class":"OCA\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/remote.php","line":166,"args":["/var/www/nextcloud/apps/dav/appinfo/v2/remote.php"],"function":"require_once"}],"File":"/var/www/nextcloud/apps/dav/lib/Connector/Sabre/MtimeSanitizer.php","Line":37,"CustomMessage":"--"}}
{"reqId":"Ulh9g1k3nfYcaGVzK5j4","level":4,"time":"2022-07-03T16:12:48+00:00","remoteAddr":"192.168.1.254","user":"nicolas","app":"webdav","method":"MOVE","url":"/remote.php/dav/uploads/nicolas/be86fccc8838acdcad738c7ae40fbba7/.file","message":"X-OC-MTime header must be a valid positive integer","userAgent":"Mozilla/5.0 (Android) Nextcloud-android/3.20.3","version":"24.0.2.1","exception":{"Exception":"InvalidArgumentException","Message":"X-OC-MTime header must be a valid positive integer","Code":0,"Trace":[{"file":"/var/www/nextcloud/apps/dav/lib/Connector/Sabre/Node.php","line":432,"function":"sanitizeMtime","class":"OCA\\DAV\\Connector\\Sabre\\MtimeSanitizer","type":"::"},{"file":"/var/www/nextcloud/apps/dav/lib/Connector/Sabre/File.php","line":379,"function":"sanitizeMtime","class":"OCA\\DAV\\Connector\\Sabre\\Node","type":"->"},

The output of your config.php file in /path/to/nextcloud :

$CONFIG = array (
  'instanceid' => 'XXXXX',
  'passwordsalt' => 'XXXXXX',
  'secret' => 'XXXXXXXX',
  'trusted_domains' =>
  array (
    0 => 'nextcloud.XXXX.XXX',
    1 => '192.168.1.250',
    2 => '10.94.185.250',
    3 => 'nextcloud.lxd',
  ),
  'datadirectory' => '/var/data_nextcloud',
  'dbtype' => 'mysql',
  'version' => '24.0.2.1',
  'overwrite.cli.url' => 'http://nextcloud.lxd/nextcloud',
  'dbname' => 'nextcloud',
  'dbhost' => 'mariadb.lxd',
  'dbport' => '3306',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'oc_XXXXX',
  'dbpassword' => 'XXXXXXXXXX',
  'installed' => true,
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'trusted_proxies' =>
  array (
    0 => '10.94.185.1',
  ),
  'default_phone_region' => 'FR',
  'mail_from_address' => 'XXXX',
  'mail_smtpmode' => 'smtp',
  'mail_sendmailmode' => 'smtp',
  'mail_domain' => 'free.fr',
  'mail_smtphost' => 'smtp.free.fr',
  'mail_smtpport' => '25',
  'maintenance' => false,
  'theme' => '',
  'loglevel' => 2,
);

The output of your Apache/nginx/system log in /var/log/____: I past only the end of the file error.log (1.6M)

[Wed Jun 29 22:28:42.181340 2022] [core:notice] [pid 104] AH00094: Command line: '/usr/sbin/apache2'
[Wed Jun 29 22:41:28.597597 2022] [php:error] [pid 524] [client 10.94.185.1:37744] PHP Fatal error:  Uncaught Doctrine\\DBAL\\Exception: Failed to connect to the database: An exception occurred in the driver: SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution in /var/www/nextcloud/lib/private/DB/Connection.php:139\nStack trace:\n#0 /var/www/nextcloud/3rdparty/doctrine/dbal/src/Connection.php(1519): OC\\DB\\Connection->connect()\n#1 /var/www/nextcloud/3rdparty/doctrine/dbal/src/Connection.php(1041): Doctrine\\DBAL\\Connection->getWrappedConnection()\n#2 /var/www/nextcloud/lib/private/DB/Connection.php(261): Doctrine\\DBAL\\Connection->executeQuery()\n#3 /var/www/nextcloud/3rdparty/doctrine/dbal/src/Query/QueryBuilder.php(345): OC\\DB\\Connection->executeQuery()\n#4 /var/www/nextcloud/lib/private/DB/QueryBuilder/QueryBuilder.php(281): Doctrine\\DBAL\\Query\\QueryBuilder->execute()\n#5 /var/www/nextcloud/lib/private/AppConfig.php(411): OC\\DB\\QueryBuilder\\QueryBuilder->execute()\n#6 /var/www/nextcloud/lib/private/AppConfig.php(176): OC\\AppConfig->loadConfigValues()\n#7 /var/www/nextcloud/lib/private/AppConfig.php(367): OC\\AppConfig->getApps()\n#8 /var/www/nextcloud/lib/private/legacy/OC_App.php(983): OC\\AppConfig->getValues()\n#9 /var/www/nextcloud/lib/private/Server.php(713): OC_App::getAppVersions()\n#10 /var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(162): OC\\Server->OC\\{closure}()\n#11 /var/www/nextcloud/3rdparty/pimple/pimple/src/Pimple/Container.php(122): OC\\AppFramework\\Utility\\SimpleContainer->OC\\AppFramework\\Utility\\{closure}()\n#12 /var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(129): Pimple\\Container->offsetGet()\n#13 /var/www/nextcloud/lib/private/ServerContainer.php(136): OC\\AppFramework\\Utility\\SimpleContainer->query()\n#14 /var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(57): OC\\ServerContainer->query()\n#15 /var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(184): OC\\AppFramework\\Utility\\SimpleContainer->get()\n#16 /var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(162): OC\\AppFramework\\Utility\\SimpleContainer->OC\\AppFramework\\Utility\\{closure}()\n#17 /var/www/nextcloud/3rdparty/pimple/pimple/src/Pimple/Container.php(118): OC\\AppFramework\\Utility\\SimpleContainer->OC\\AppFramework\\Utility\\{closure}()\n#18 /var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(129): Pimple\\Container->offsetGet()\n#19 /var/www/nextcloud/lib/private/ServerContainer.php(136): OC\\AppFramework\\Utility\\SimpleContainer->query()\n#20 /var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(57): OC\\ServerContainer->query()\n#21 /var/www/nextcloud/lib/private/Server.php(1105): OC\\AppFramework\\Utility\\SimpleContainer->get()\n#22 /var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(162): OC\\Server->OC\\{closure}()\n#23 /var/www/nextcloud/3rdparty/pimple/pimple/src/Pimple/Container.php(122): OC\\AppFramework\\Utility\\SimpleContainer->OC\\AppFramework\\Utility\\{closure}()\n#24 /var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(129): Pimple\\Container->offsetGet()\n#25 /var/www/nextcloud/lib/private/ServerContainer.php(136): OC\\AppFramework\\Utility\\SimpleContainer->query()\n#26 /var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(57): OC\\ServerContainer->query()\n#27 /var/www/nextcloud/lib/private/Server.php(2082): OC\\AppFramework\\Utility\\SimpleContainer->get()\n#28 /var/www/nextcloud/lib/private/Files/View.php(122): OC\\Server->getLockingProvider()\n#29 /var/www/nextcloud/lib/private/Server.php(454): OC\\Files\\View->__construct()\n#30 /var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(162): OC\\Server->OC\\{closure}()\n#31 /var/www/nextcloud/3rdparty/pimple/pimple/src/Pimple/Container.php(122): OC\\AppFramework\\Utility\\SimpleContainer->OC\\AppFramework\\Utility\\{closure}()\n#32 /var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(129): Pimple\\Container->offsetGet()\n#33 /var/www/nextcloud/lib/private/ServerContainer.php(136): OC\\AppFramework\\Utility\\SimpleContainer->query()\n#34 /var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(57): OC\\ServerContainer->query()\n#35 /var/www/nextcloud/lib/private/Server.php(1445): OC\\AppFramework\\Utility\\SimpleContainer->get()\n#36 /var/www/nextcloud/lib/base.php(602): OC\\Server->boot()\n#37 /var/www/nextcloud/lib/base.php(1104): OC::init()\n#38 /var/www/nextcloud/ocs/v1.php(31): require_once('...')\n#39 /var/www/nextcloud/ocs/v2.php(23): require_once('...')\n#40 {main}\n  thrown in /var/www/nextcloud/lib/private/DB/Connection.php on line 139
[Wed Jun 29 22:48:58.900021 2022] [mpm_prefork:notice] [pid 104] AH00170: caught SIGWINCH, shutting down gracefully
[Wed Jun 29 22:28:42.483722 2022] [mpm_prefork:notice] [pid 233] AH00163: Apache/2.4.53 (Debian) configured -- resuming normal operations
[Wed Jun 29 22:28:42.484506 2022] [core:notice] [pid 233] AH00094: Command line: '/usr/sbin/apache2'
[Sat Jul 02 16:24:40.056225 2022] [mpm_prefork:notice] [pid 233] AH00170: caught SIGWINCH, shutting down gracefully
[Sat Jul 02 16:25:08.723505 2022] [mpm_prefork:notice] [pid 104] AH00163: Apache/2.4.53 (Debian) configured -- resuming normal operations
[Sat Jul 02 16:25:08.724309 2022] [core:notice] [pid 104] AH00094: Command line: '/usr/sbin/apache2'
[Sat Jul 02 17:04:03.277498 2022] [mpm_prefork:notice] [pid 104] AH00170: caught SIGWINCH, shutting down gracefully
[Sat Jul 02 16:25:08.573431 2022] [mpm_prefork:notice] [pid 236] AH00163: Apache/2.4.53 (Debian) configured -- resuming normal operations
[Sat Jul 02 16:25:08.574203 2022] [core:notice] [pid 236] AH00094: Command line: '/usr/sbin/apache2'
[Sat Jul 02 17:24:12.155068 2022] [mpm_prefork:notice] [pid 236] AH00170: caught SIGWINCH, shutting down gracefully
[Sat Jul 02 17:24:41.087346 2022] [mpm_prefork:notice] [pid 258] AH00163: Apache/2.4.53 (Debian) configured -- resuming normal operations
[Sat Jul 02 17:24:41.088142 2022] [core:notice] [pid 258] AH00094: Command line: '/usr/sbin/apache2'
[Sat Jul 02 17:32:14.585038 2022] [mpm_prefork:notice] [pid 258] AH00170: caught SIGWINCH, shutting down gracefully
[Sat Jul 02 17:32:45.667645 2022] [mpm_prefork:notice] [pid 182] AH00163: Apache/2.4.53 (Debian) configured -- resuming normal operations
[Sat Jul 02 17:32:45.668445 2022] [core:notice] [pid 182] AH00094: Command line: '/usr/sbin/apache2'
[Sat Jul 02 17:39:28.958781 2022] [mpm_prefork:notice] [pid 182] AH00171: Graceful restart requested, doing restart
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message
[Sat Jul 02 17:39:29.177623 2022] [mpm_prefork:notice] [pid 182] AH00163: Apache/2.4.53 (Debian) configured -- resuming normal operations
[Sat Jul 02 17:39:29.177718 2022] [core:notice] [pid 182] AH00094: Command line: '/usr/sbin/apache2'
[Sat Jul 02 17:41:40.826426 2022] [mpm_prefork:notice] [pid 182] AH00171: Graceful restart requested, doing restart
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message
[Sat Jul 02 17:41:41.106331 2022] [mpm_prefork:notice] [pid 182] AH00163: Apache/2.4.53 (Debian) configured -- resuming normal operations
[Sat Jul 02 17:41:41.106420 2022] [core:notice] [pid 182] AH00094: Command line: '/usr/sbin/apache2'
[Sat Jul 02 17:51:40.742329 2022] [php:error] [pid 684] [client 192.168.1.2:58882] script '/var/www/html/nextcloud/index.php' not found or unable to stat
[Sat Jul 02 18:03:40.736021 2022] [php:error] [pid 667] [client 192.168.1.2:57398] script '/var/www/html/nextcloud/index.php' not found or unable to stat
[Sat Jul 02 18:15:40.734832 2022] [php:error] [pid 663] [client 192.168.1.2:47944] script '/var/www/html/nextcloud/index.php' not found or unable to stat
[Sat Jul 02 18:28:51.399798 2022] [php:error] [pid 666] [client 192.168.1.2:58912] script '/var/www/html/nextcloud/index.php' not found or unable to stat
[Sat Jul 02 18:39:40.754045 2022] [php:error] [pid 964] [client 192.168.1.2:50344] script '/var/www/html/nextcloud/index.php' not found or unable to stat
[Sat Jul 02 18:51:40.730613 2022] [php:error] [pid 968] [client 192.168.1.2:54156] script '/var/www/html/nextcloud/index.php' not found or unable to stat
[Sat Jul 02 19:03:40.727440 2022] [php:error] [pid 971] [client 192.168.1.2:55630] script '/var/www/html/nextcloud/index.php' not found or unable to stat
[Sat Jul 02 19:15:40.727357 2022] [php:error] [pid 970] [client 192.168.1.2:53582] script '/var/www/html/nextcloud/index.php' not found or unable to stat
[Sat Jul 02 19:27:40.727513 2022] [php:error] [pid 977] [client 192.168.1.2:52280] script '/var/www/html/nextcloud/index.php' not found or unable to stat
[Sat Jul 02 19:39:40.729013 2022] [php:error] [pid 968] [client 192.168.1.2:47500] script '/var/www/html/nextcloud/index.php' not found or unable to stat
[Sat Jul 02 19:51:40.727684 2022] [php:error] [pid 972] [client 192.168.1.2:42756] script '/var/www/html/nextcloud/index.php' not found or unable to stat
[Sat Jul 02 20:03:40.725433 2022] [php:error] [pid 973] [client 192.168.1.2:33196] script '/var/www/html/nextcloud/index.php' not found or unable to stat
[Sat Jul 02 20:15:40.724798 2022] [php:error] [pid 977] [client 192.168.1.2:38240] script '/var/www/html/nextcloud/index.php' not found or unable to stat
[Sat Jul 02 20:27:40.733505 2022] [php:error] [pid 975] [client 192.168.1.2:49324] script '/var/www/html/nextcloud/index.php' not found or unable to stat
[Sun Jul 03 20:18:29.071723 2022] [mpm_prefork:notice] [pid 182] AH00170: caught SIGWINCH, shutting down gracefully
[Sun Jul 03 20:19:00.250983 2022] [mpm_prefork:notice] [pid 258] AH00163: Apache/2.4.53 (Debian) configured -- resuming normal operations
[Sun Jul 03 20:19:00.253294 2022] [core:notice] [pid 258] AH00094: Command line: '/usr/sbin/apache2'
[Sun Jul 10 06:29:35.650746 2022] [mpm_prefork:notice] [pid 258] AH00170: caught SIGWINCH, shutting down gracefully
[Sun Jul 10 06:29:36.295414 2022] [mpm_prefork:notice] [pid 39899] AH00163: Apache/2.4.54 (Debian) configured -- resuming normal operations
[Sun Jul 10 06:29:36.295666 2022] [core:notice] [pid 39899] AH00094: Command line: '/usr/sbin/apache2'

Access.log of Apache 2 :


::1 - - [10/Jul/2022:18:39:38 +0200] "OPTIONS * HTTP/1.0" 200 126 "-" "Apache/2.4.54 (Debian) (internal dummy connection)"
::1 - - [10/Jul/2022:18:39:39 +0200] "OPTIONS * HTTP/1.0" 200 126 "-" "Apache/2.4.54 (Debian) (internal dummy connection)"
::1 - - [10/Jul/2022:18:39:40 +0200] "OPTIONS * HTTP/1.0" 200 126 "-" "Apache/2.4.54 (Debian) (internal dummy connection)"
::1 - - [10/Jul/2022:18:39:41 +0200] "OPTIONS * HTTP/1.0" 200 126 "-" "Apache/2.4.54 (Debian) (internal dummy connection)"
::1 - - [10/Jul/2022:18:39:47 +0200] "OPTIONS * HTTP/1.0" 200 126 "-" "Apache/2.4.54 (Debian) (internal dummy connection)"

No log see in /var/log/caddy. The output of systemctl status caddy :

# systemctl status caddy
● caddy.service - Caddy
     Loaded: loaded (/etc/systemd/system/caddy.service; enabled; vendor preset: enabled)
     Active: active (running) since Sun 2022-07-03 20:48:15 CEST; 6 days ago
       Docs: https://caddyserver.com/docs/
   Main PID: 2495 (caddy)
      Tasks: 12 (limit: 3370)
     Memory: 59.2M
        CPU: 1min 17.239s
     CGroup: /system.slice/caddy.service
             └─2495 /usr/bin/caddy run --environ --config /etc/caddy/Caddyfile

juil. 06 09:48:16 srv-rpi4 caddy[2495]: {"level":"info","ts":1657093696.188488,"logger":"tls.cache.maintenance","msg":"advancing OCSP>
juil. 06 20:48:15 srv-rpi4 caddy[2495]: {"level":"info","ts":1657133295.7217922,"logger":"tls","msg":"cleaning storage unit","descrip>
juil. 06 20:48:15 srv-rpi4 caddy[2495]: {"level":"info","ts":1657133295.7259598,"logger":"tls","msg":"finished cleaning storage units>
juil. 07 20:48:15 srv-rpi4 caddy[2495]: {"level":"info","ts":1657219695.721289,"logger":"tls","msg":"cleaning storage unit","descript>
juil. 07 20:48:15 srv-rpi4 caddy[2495]: {"level":"info","ts":1657219695.7248795,"logger":"tls","msg":"finished cleaning storage units>
juil. 08 20:48:15 srv-rpi4 caddy[2495]: {"level":"info","ts":1657306095.7215896,"logger":"tls","msg":"cleaning storage unit","descrip>
juil. 08 20:48:15 srv-rpi4 caddy[2495]: {"level":"info","ts":1657306095.7240415,"logger":"tls","msg":"finished cleaning storage units>
juil. 08 21:48:16 srv-rpi4 caddy[2495]: {"level":"info","ts":1657309696.0170105,"logger":"tls.cache.maintenance","msg":"advancing OCS>
juil. 09 20:48:15 srv-rpi4 caddy[2495]: {"level":"info","ts":1657392495.7215025,"logger":"tls","msg":"cleaning storage unit","descrip>
juil. 09 20:48:15 srv-rpi4 caddy[2495]: {"level":"info","ts":1657392495.7278764,"logger":"tls","msg":"finished cleaning storage units>

For the apache log, can you just get the log, when you try to create a new event with your smartphone? There should be a POST or PUT request…

Hello @tflidd, thanks for your answer.

I have created an event calendar on my smartphone and immediatly look after Apache log :

# tail other_vhosts_access.log
XXXX:80 10.94.185.1 - - [11/Jul/2022:14:30:29 +0200] "GET /index.php/204 HTTP/1.1" 204 1366 "-" "Mozilla/5.0 (Android) Nextcloud-android/3.20.3"
XXXX:80 10.94.185.1 - - [11/Jul/2022:14:30:36 +0200] "GET /index.php/204 HTTP/1.1" 204 1358 "-" "Mozilla/5.0 (Android) Nextcloud-android/3.20.3"
XXXX:80 10.94.185.1 - - [11/Jul/2022:14:30:36 +0200] "GET /index.php/204 HTTP/1.1" 204 1362 "-" "Mozilla/5.0 (Android) Nextcloud-android/3.20.3"
XXXX:80 10.94.185.1 - - [11/Jul/2022:14:31:46 +0200] "GET /index.php/204 HTTP/1.1" 204 1366 "-" "Mozilla/5.0 (Android) Nextcloud-android/3.20.3"
XXXX:80 10.94.185.1 - - [11/Jul/2022:14:34:45 +0200] "GET /index.php/204 HTTP/1.1" 204 1370 "-" "Mozilla/5.0 (Android) Nextcloud-android/3.20.3"
XXXX:80 10.94.185.1 - - [11/Jul/2022:14:34:45 +0200] "GET /index.php/204 HTTP/1.1" 204 1358 "-" "Mozilla/5.0 (Android) Nextcloud-android/3.20.3"
XXXX:80 10.94.185.1 - - [11/Jul/2022:14:46:52 +0200] "GET /index.php/204 HTTP/1.1" 204 1362 "-" "Mozilla/5.0 (Android) Nextcloud-android/3.20.3"
XXXX:80 10.94.185.1 - nicolas [11/Jul/2022:14:58:10 +0200] "PROPFIND /remote.php/dav/addressbooks/users/nicolas/contacts/ HTTP/1.1" 207 2135 "-" "DAVx5/4.2.2-ose (2022/06/25; dav4jvm; okhttp/4.9.3) Android/11"
XXXX:80 10.94.185.1 - nicolas [11/Jul/2022:14:58:10 +0200] "PROPFIND /remote.php/dav/calendars/nicolas/contact_birthdays/ HTTP/1.1" 207 2271 "-" "DAVx5/4.2.2-ose (2022/06/25; dav4jvm; okhttp/4.9.3) Android/11"
XXXX:80 10.94.185.1 - nicolas [11/Jul/2022:14:58:12 +0200] "PROPFIND /remote.php/dav/calendars/nicolas/personal/ HTTP/1.1" 207 1516 "-" "DAVx5/4.2.2-ose (2022/06/25; dav4jvm; okhttp/4.9.3) Android/11"

The event arrives on the server. So why it is not displayed ? Mystery to me…

In fact I am pretty stupid. I had published the calendar events in my Google account, that why it look like it was synchronizing calendars between smartphones.

And the same for the contacts ! So in fact there is no synchronization of my contacts and calendars between Nextcloud server and smartphone.

Picture does. I just took a picture to be sure, it appears on my web interface.

Well, it is crazy…

I used to configure directly DAVx, and it was working fine before.

When I reinstalled my NextCloud server, I still configure again directly from DAVx. And calendar and contacts did not synchronized.

I tried to delete my DAVx5 configuration and to configure the DAVx synchronisation directly from the NextCloud application.

Now, it works. Strange…