Can't move events between calendars

Support intro

Sorry to hear you’re facing problems :slightly_frowning_face: is for home/non-enterprise users. If you’re running a business, paid support can be accessed via 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:


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


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): 22.0.0
Operating system and version (eg, Ubuntu 20.04): Arch Linux on ARM 32 bits
Apache or nginx version (eg, Apache 2.4.25): 2.4.46
PHP version (eg, 7.4): 8.0.3

The issue you are facing:
Can’t move events from one calendar to another.
Sometimes it works and sometimes it won’t.
instanceid is newly generated.
Since using 22.0.0.

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

Steps to replicate it:

  1. Move a few events between calendars in a production instance

The output of your Nextcloud log in Admin > Logging:

A long series of :

Error: session_start(): Ignoring session_start() because a session is already active at /home/www/nextcloud.2200/lib/private/Session/Internal.php#206

The output of your config.php file in /path/to/nextcloud (make sure you remove any identifiable information!):

$CONFIG = array (
  'passwordsalt' => 'asalt',
  'secret' => 'asecret',
  'trusted_domains' =>
  array (
    0 => '1',
    1 => '2',
    2 => '3',
    3 => '4',
  'datadirectory' => '/home/nextcloud-data',
  'dbtype' => 'pgsql',
  'version' => '',
  'dbname' => 'nextcloud',
  'dbhost' => 'localhost:0000',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'dbuser' => 'user',
  'dbpassword' => 'pwd',
  'installed' => true,
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'theme' => '',
  'loglevel' => 2,
  'maintenance' => false,
  'overwrite.cli.url' => 'https://2',
  'default_phone_region' => 'FR',
  'instanceid' => 'id',

The output of your Apache/nginx/system log in /var/log/____:

No error reported

I have the same issue. Or at least a very similar issue. I have narrowed it down to, moving an event to a calendar where it has not been before works. Moving it back does not work. Furthermore, I have noticed that the httpd logs for moves that work look something like this: - - [21/Aug/2021:22:16:11 +0200] "MOVE /remote.php/dav/calendars/natlampen/test/898298CE-7594-471C-BB91-861158B4D3F7.ics HTTP/1.1" 201 -

Moves that do not looks something like: - - [21/Aug/2021:22:16:28 +0200] "MOVE /remote.php/dav/calendars/natlampen/faelles/08925BB8-0D08-481A-977D-E068FEE04F13.ics HTTP/1.1" 400 270

Basically the move in some cases gets an 400 instead of 201 response.

Searching a bit more. This seems to be the issue: