Built-in CODE Server (23.5.402) not loading in NC 27.1.2 - listens on IPv6 only

Hi,
I have a nc-instance running in a vm on proxmox for severeal years now. I used alawys the Built-in CODE Server and it worked as soon as I disabled IPv6.
Now i switched to a lxc (Debian 12) and my logs are empty but I have again the issue that the Built-in CODE Server starts to listen on IPv6 only if I wanna open a document. My setting is behind a reverse proxy (NGINX, different machine, same host).
My NGINX access.log indicates that the document itself opens (respose 200). If I go to “my-domain.de/apps/richdocumentscode/proxy.php?req=/hosting/capabilities” it works as well without any issues. But loading a document always results in a time-out.
Disabling IPv6 does not change the behaviour this time, it still opens a port and starts to listen on IPv6 only.
I’m not sure if the NGINX config from the backend (lxc with nc) helps but here it is:

upstream php-handler {
  server unix:/run/php/php8.2-fpm.sock;
  }
  map $arg_v $asset_immutable {
  "" "";
  default "immutable";
  }
  server {
  listen 80;
  listen [::]:80 ;
  server_name FQDN LOCAL_IP;
  client_max_body_size 10G;
  client_body_timeout 3600s;
  client_body_buffer_size 512k;
  fastcgi_buffers 64 4K;
  gzip on;
  gzip_vary on;
  gzip_comp_level 4;
  gzip_min_length 256;
  gzip_proxied expired no-cache no-store private no_last_modified no_etag auth;
  gzip_types application/atom+xml application/javascript application/json application/ld+json application/manifest+json application/rss+xml application/vnd.geo+json application/vnd.ms-fontobject application/wasm application/x-font-ttf application/x-web-app-manifest+json application/xhtml+xml application/xml font/opentype image/bmp image/svg+xml image/x-icon text/cache-manifest text/css text/plain text/vcard text/vnd.rim.location.xloc text/vtt text/x-component text/x-cross-domain-policy;
  fastcgi_hide_header X-Powered-By;
  root /var/www/nextcloud;
  index index.php index.html /index.php$request_uri;
  location = / {
  if ( $http_user_agent ~ ^DavClnt ) {
  return 302 /remote.php/webdav/$is_args$args;
  }
  }
  location = /robots.txt {
  allow all;
  log_not_found off;
  access_log off;
  }
  location ^~ /apps/rainloop/app/data {
  deny all;
  }
  location ^~ /.well-known {
  location = /.well-known/carddav { return 301 /remote.php/dav/; }
  location = /.well-known/caldav  { return 301 /remote.php/dav/; }
  location /.well-known/acme-challenge { try_files $uri $uri/ =404; }
  location /.well-known/pki-validation { try_files $uri $uri/ =404; }
  return 301 /index.php$request_uri;
  }
  location ~ ^/(?:build|tests|config|lib|3rdparty|templates|data)(?:$|/)  { return 404; }
  location ~ ^/(?:\.|autotest|occ|issue|indie|db_|console)                { return 404; }
  location ~ \.php(?:$|/) {
  rewrite ^/(?!index|remote|public|cron|core\/ajax\/update|status|ocs\/v[12]|updater\/.+|oc[ms]-provider\/.+|.+\/richdocumentscode\/proxy) /index.php$request_uri;
  fastcgi_split_path_info ^(.+?\.php)(/.*)$;
  set $path_info $fastcgi_path_info;
  try_files $fastcgi_script_name =404;
  include fastcgi_params;
  fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  fastcgi_param PATH_INFO $path_info;
  fastcgi_param HTTPS on;
  fastcgi_param modHeadersAvailable true;
  fastcgi_param front_controller_active true;
  fastcgi_pass php-handler;
  fastcgi_intercept_errors on;
  fastcgi_request_buffering off;
  fastcgi_read_timeout 3600;
  fastcgi_send_timeout 3600;
  fastcgi_connect_timeout 3600;
  fastcgi_max_temp_file_size 0;
  }
  location ~ \.(?:css|js|svg|gif|png|jpg|ico|wasm|tflite|map)$ {
  try_files $uri /index.php$request_uri;
  add_header Cache-Control "public, max-age=15778463, $asset_immutable";
  expires 6M;
  access_log off;
  location ~ \.wasm$ {
  default_type application/wasm;
  }
  }
  location ~ \.woff2?$ {
  try_files $uri /index.php$request_uri;
  expires 7d;
  access_log off;
  }
  location /remote {
  return 301 /remote.php$request_uri;
  }
  location / {
  try_files $uri $uri/ /index.php$request_uri;
  }
  location ^~ /push/ {
      proxy_pass http://127.0.0.1:7867/;
      proxy_http_version 1.1;
      proxy_set_header Upgrade $http_upgrade;
      proxy_set_header Connection "Upgrade";
      proxy_set_header Host $host;
      proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  }
  }

This is the corresponding part on my frontend wich handles ssl:


location / {
    proxy_pass http://IP_NC:80;
    proxy_max_temp_file_size 10240m;
    proxy_buffering off;
    proxy_connect_timeout 3600;
    proxy_send_timeout 3600;
    proxy_read_timeout 3600;
    proxy_request_buffering off;
    proxy_buffers 128 32k;
    proxy_buffer_size 32k;
    proxy_intercept_errors off;
    proxy_set_header Host $host;
    proxy_set_header X-Real-IP $remote_addr;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    #proxy_set_header X-Forwarded-For $remote_addr;
    proxy_set_header X-Forwarded-Proto $scheme;
    proxy_http_version 1.1;
    proxy_set_header Upgrade $http_upgrade;
    proxy_set_header Connection "upgrade";
    proxy_redirect off;
}

Here is some of my access.log:

{{"time_local":"06/Oct/2023:09:12:03 +0200","remote_addr":"PUBLIC_IP","remote_user":"","request":"POST /apps/richdocumentscode/proxy.php?req=/cool/https%3A%2F%2FFQDN%2Findex.php%2Fapps%2Frichdocuments%2Fwopi%2Ffiles%2F565266_instanceid%3Faccess_token%3DdqMjGlrgpdax4uCOXki6R8PG1g3yHwp7%26access_token_ttl%3D0/ws?WOPISrc=https%3A%2F%2FFQDN%2Findex.php%2Fapps%2Frichdocuments%2Fwopi%2Ffiles%2F565266_instanceid&compat=/ws/open/open/0 HTTP/1.1","status": "499","body_bytes_sent":"0","request_time":"24.372","http_referrer":"","http_user_agent":"Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/118.0"}

{"time_local":"06/Oct/2023:09:12:08 +0200","remote_addr":"PUBLIC_IP","remote_user":"","request":"PROPFIND /remote.php/dav/files/USER_NAME/Documents/Dokumente/test.docx HTTP/1.1","status": "207","body_bytes_sent":"614","request_time":"0.059","http_referrer":"","http_user_agent":"Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/118.0"}

{"time_local":"06/Oct/2023:09:12:08 +0200","remote_addr":"PUBLIC_IP","remote_user":"","request":"GET /apps/richdocumentscode/proxy.php?status HTTP/1.1","status": "200","body_bytes_sent":"46","request_time":"0.001","http_referrer":"","http_user_agent":"Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/118.0"}

{"time_local":"06/Oct/2023:09:12:08 +0200","remote_addr":"PUBLIC_IP","remote_user":"","request":"POST /apps/richdocuments/token HTTP/1.1","status": "200","body_bytes_sent":"325","request_time":"0.049","http_referrer":"","http_user_agent":"Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/118.0"}

{"time_local":"06/Oct/2023:09:12:08 +0200","remote_addr":"PUBLIC_IP","remote_user":"","request":"POST /apps/richdocumentscode/proxy.php?req=/browser/0b27e85/cool.html?WOPISrc=https%3A%2F%2FFQDN%2Findex.php%2Fapps%2Frichdocuments%2Fwopi%2Ffiles%2F565266_instanceid&title=%2FDocuments%2FDokumente%2Ftest.docx&lang=de&closebutton=1&revisionhistory=1 HTTP/1.1","status": "200","body_bytes_sent":"10701","request_time":"0.001","http_referrer":"","http_user_agent":"Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/118.0"}

{"time_local":"06/Oct/2023:09:12:09 +0200","remote_addr":"PUBLIC_IP","remote_user":"","request":"POST /apps/richdocumentscode/proxy.php?req=/cool/https%3A%2F%2FFQDN%2Findex.php%2Fapps%2Frichdocuments%2Fwopi%2Ffiles%2F565266_instanceid%3Faccess_token%3DdZjZTbTKsEnWnW5uwK0bU5HZFvikZXb1%26access_token_ttl%3D0/ws?WOPISrc=https%3A%2F%2FFQDN%2Findex.php%2Fapps%2Frichdocuments%2Fwopi%2Ffiles%2F565266_instanceid&compat=/ws/open/open/0 HTTP/1.1","status": "200","body_bytes_sent":"140","request_time":"0.898","http_referrer":"","http_user_agent":"Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/118.0"}

{"time_local":"06/Oct/2023:09:12:22 +0200","remote_addr":"PUBLIC_IP","remote_user":"","request":"GET /apps/files/api/v1/stats HTTP/1.1","status": "200","body_bytes_sent":"171","request_time":"0.045","http_referrer":"","http_user_agent":"Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/118.0"}

I hope this helps to understand my issue. Any ideas?

Thank you a lot :slight_smile:

Hi,

no idea where to look at anyone? Do you need more informations or more specific informations?