Internal Server Error - 'service-worker.js' is missing?

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): 23.0.3.2
Operating system and version (eg, Ubuntu 20.04): Arch Linux
Apache or nginx version (eg, Apache 2.4.25): Nginx 1.20.2
PHP version (eg, 7.4): 8.1.5

The issue you are facing:

On access, Nextcloud responds with an internal server error with no additional information. Nextcloud log is empty. Nginx error log has nothing for this request. Nginx access log shows:

... "GET /apps/photos/service-worker.js HTTP/2.0" 500 289 "-" ...

This file indeed does not appear to be present.

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

Steps to replicate it:

  1. try to access webserver

The output of your Nextcloud log in Admin > Logging:

Nextcloud log is empty.

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

<?php
$CONFIG = array (
  'datadirectory' => '/var/lib/nextcloud/data',
  'logfile' => '/var/log/nextcloud/nextcloud.log',
  'apps_paths' => 
  array (
    0 => 
    array (
      'path' => '/usr/share/webapps/nextcloud/apps',
      'url' => '/apps',
      'writable' => false,
    ),
    1 => 
    array (
      'path' => '/var/lib/nextcloud/apps',
      'url' => '/wapps',
      'writable' => true,
    ),
  ),
  'trusted_domains' => 
  array (
	  0 => 'localhost',
	  1 => 'my.website.space',
  ),
  'overwrite.cli.url' => 'https://my.website.space/',
  'htaccess.RewriteBase' => '/',
  'passwordsalt' => 'salty',
  'secret' => 'secrets_dreams',
  'dbtype' => 'pgsql',
  'version' => '23.0.3.2',
  'dbname' => 'nextcloud',
  'dbhost' => '/run/postgresql',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'dbuser' => 'nextcloud',
  'dbpassword' => 'password',
  'installed' => true,
  'instanceid' => 'ocoqz23aixtv',
  'memcache.local' => '\OC\Memcache\Redis',
  'memcache.distributed' => '\OC\Memcache\Redis',
  'memcache.locking' => '\OC\Memcache\Redis',
  'redis' => [
    'host'	=> '/run/redis/redis-server.sock',
    'port'	=> 0,
    'dbindex'	=> 0,
    'timeout'	=> 1.5,
  ],
);