Talk error 412 after send any message

  • Nextcloud Server version (e.g., 29.x.x):
    • 30.0.2
  • Operating system and version (e.g., Ubuntu 24.04):
    • Ubuntu 24.04.1
  • Web server and version (e.g, Apache 2.4.25):
    • Apache/2.4.58
  • PHP version (e.g, 8.3):
    • 8.3
  • Is this the first time you’ve seen this error? (Yes / No):
    • Yes
  • When did this problem seem to first start?
    • When triad to connect Whiteboard server with Nextcloud
  • Installation method (e.g. AlO, NCP, Bare Metal/Archive, etc.)
    • Docker Compose
  • Are you using CloudfIare, mod_security, or similar? (Yes / No)
    • No

Summary of the issue you are facing:

After i open any conversation and send any message page is refreshing and showing:
The conversation does not exist

I can go back to that conversation and everything looks fina until i send another message. When i do that then again - after about half minut - same thing: reload and “The conversation does not exist”

I don’t have any errors in logs but i do have errors in JS console

messagesService.ts:199 
       POST https://chmura.topory.org/ocs/v2.php/apps/spreed/api/v1/chat/q6rxz4k8/read 412 (Precondition Failed)

image

messagesService.ts:199
       Request to https://chmura.topory.org/ocs/v2.php/apps/spreed/api/v1/chat/q6rxz4k8/read failed because of a CSRF mismatch. Fetching a new token

image

image

At last case closed… At least for me…

It is something with caching. Distributed caching to be more specific. I’v turn it off and everything looks to be fine,

I had caching configured in my config file like this:

  'memcache.local' => '\\OC\\Memcache\\APCu',
  'memcache.distributed' => '\\OC\\Memcache\\Memcached',
  'memcache.locking' => '\\OC\\Memcache\\Memcached',

now i have:

  'memcache.local' => '\\OC\\Memcache\\APCu',
  'memcache.locking' => '\\OC\\Memcache\\Memcached',

Maybe Memcached on my server can’t handle distributed caching? Or maybe its a bug? I don’t know. Fortunately i don’t need it so for me it’s the end of the topic.