3 User work fine, one is "Service Unavailable"

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.5.1`

Operating system and version (eg, Ubuntu 20.04): Debian GNU/Linux 11. 5.10.103-v8+ (aarch64)
NextCloudPi_10-08-21

PHP version (eg, 7.4): 8.1.10

The issue you are facing:
The NC profiles of both my children as well as mine are working fine, for any reason my wifes’ not. I have no idea why. It turned unavailable quite suddenly. Can’t log-in to her account anymore. Also the iPhone and MacOS synch don’t work anymore.

side note:
If I scan for external files, I mostly get this error:
Starting scan for user 1 out of 5 (B***)
/usr/local/bin/ncc: line 3: 2121 Segmentation fault ${SUDO} php /var/www/nextcloud/occ “$@”

I can’t access the user settings in admin dashboard.
“Es ist ein Fehler bei der Anfrage aufgetreten. Es kann nicht fortgefahren werden.”

I access my nextcloud only via VPN - not HTTP/HTTPS port mapped to the world. However, I did give them out and rebooted the RPi, but the problem persists.

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

Steps to replicate it:

I can’t replicate the issue. Rebooting the RPi does not help

The output of your Nextcloud log in Admin > Logging:


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

<?php
$CONFIG = array (
  'passwordsalt' => '',
  'secret' => '',
  'trusted_domains' => 
  array (
    0 => 'localhost',
    22 => 'nextcloudpi',
    1 => '',
    3 => '.duckdns.org',
    20 => '.duckdns.org',
    14 => 'nextcloudpi',
    '' => '.duckdns.org',
    12 => '.duckdns.org',
    11 => '.duckdns.org',
  ),
  'datadirectory' => '/var/www/nextcloud/data',
  'dbtype' => 'mysql',
  'version' => '24.0.5.1',
  'overwrite.cli.url' => 'https://.duckdns.org/',
  'dbname' => 'nextcloud',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'ncadmin',
  'dbpassword' => '=',
  'installed' => true,
  'instanceid' => '',
  'memcache.local' => '\\OC\\Memcache\\Redis',
  'memcache.locking' => '\\OC\\Memcache\\Redis',
  'redis' => 
  array (
    'host' => '/var/run/redis/redis.sock',
    'port' => 0,
    'timeout' => 0.0,
    'password' => '=',
  ),
  'tempdirectory' => '/var/www/nextcloud/data/tmp',
  'mail_smtpmode' => 'smtp',
  'mail_smtpauthtype' => 'LOGIN',
  'mail_from_address' => '',
  'mail_domain' => '.de',
  'preview_max_x' => '2048',
  'preview_max_y' => '2048',
  'jpeg_quality' => '60',
  'overwriteprotocol' => 'https',
  'trusted_proxies' => 
  array (
    11 => '127.0.0.1',
    12 => '::1',
    13 => '',
    14 => '',
  ),
  'theme' => '',
  'loglevel' => '2',
  'maintenance' => false,
  'mail_sendmailmode' => 'smtp',
  'mail_smtpsecure' => 'ssl',
  'mail_smtpauth' => 1,
  'mail_smtphost' => 'mail.gmx.net',
  'mail_smtpport' => '465',
  'mail_smtpname' => '',
  'mail_smtppassword' => '',
  'log_type' => 'file',
  'logfile' => '/var/www/nextcloud/data/nextcloud.log',
  'data-fingerprint' => '',
  'default_phone_region' => 'DE',
);

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

[Thu Oct 06 00:00:08.325341 2022] [ssl:warn] [pid 534:tid 547980297280] AH01909: localhost:4443:0 server certificate does NOT include an ID which matches the server name
[Thu Oct 06 00:00:08.325618 2022] [ssl:error] [pid 534:tid 547980297280] AH02217: ssl_stapling_init_cert: can't retrieve issuer certificate! [subject: CN=archlinux / issuer: CN=archlinux / serial: 18C088C8F787E3CFD6C7C76280DC1F392C6E3DC2 / notbefore: Oct  8 19:39:52 2021 GMT / notafter: Oct  6 19:39:52 2031 GMT]
[Thu Oct 06 00:00:08.325651 2022] [ssl:error] [pid 534:tid 547980297280] AH02604: Unable to configure certificate localhost:4443:0 for stapling
[Thu Oct 06 00:00:08.327861 2022] [mpm_event:notice] [pid 534:tid 547980297280] AH00489: Apache/2.4.54 (Debian) OpenSSL/1.1.1n configured -- resuming normal operations
[Thu Oct 06 00:00:08.327927 2022] [core:notice] [pid 534:tid 547980297280] AH00094: Command line: '/usr/sbin/apache2'
[Thu Oct 06 08:45:12.748545 2022] [proxy_fcgi:error] [pid 4666:tid 547785937280] [client 192.168.178.76:60218] AH01067: Failed to read FastCGI header
[Thu Oct 06 08:45:12.748677 2022] [proxy_fcgi:error] [pid 4666:tid 547785937280] (104)Connection reset by peer: [client 192.168.178.76:60218] AH01075: Error dispatching request to :4443: 
[Thu Oct 06 08:45:12.807376 2022] [mpm_event:notice] [pid 534:tid 547980297280] AH00492: caught SIGWINCH, shutting down gracefully
[Thu Oct 06 08:45:17.186593 2022] [ssl:warn] [pid 460:tid 548353045568] AH01909: localhost:4443:0 server certificate does NOT include an ID which matches the server name
[Thu Oct 06 08:45:17.187485 2022] [ssl:error] [pid 460:tid 548353045568] AH02217: ssl_stapling_init_cert: can't retrieve issuer certificate! [subject: CN=archlinux / issuer: CN=archlinux / serial: 18C088C8F787E3CFD6C7C76280DC1F392C6E3DC2 / notbefore: Oct  8 19:39:52 2021 GMT / notafter: Oct  6 19:39:52 2031 GMT]
[Thu Oct 06 08:45:17.187557 2022] [ssl:error] [pid 460:tid 548353045568] AH02604: Unable to configure certificate localhost:4443:0 for stapling
[Thu Oct 06 08:45:17.236728 2022] [ssl:warn] [pid 525:tid 548353045568] AH01909: localhost:4443:0 server certificate does NOT include an ID which matches the server name
[Thu Oct 06 08:45:17.237027 2022] [ssl:error] [pid 525:tid 548353045568] AH02217: ssl_stapling_init_cert: can't retrieve issuer certificate! [subject: CN=archlinux / issuer: CN=archlinux / serial: 18C088C8F787E3CFD6C7C76280DC1F392C6E3DC2 / notbefore: Oct  8 19:39:52 2021 GMT / notafter: Oct  6 19:39:52 2031 GMT]
[Thu Oct 06 08:45:17.237066 2022] [ssl:error] [pid 525:tid 548353045568] AH02604: Unable to configure certificate localhost:4443:0 for stapling
[Thu Oct 06 08:45:17.248684 2022] [mpm_event:notice] [pid 525:tid 548353045568] AH00489: Apache/2.4.54 (Debian) OpenSSL/1.1.1n configured -- resuming normal operations
[Thu Oct 06 08:45:17.248833 2022] [core:notice] [pid 525:tid 548353045568] AH00094: Command line: '/usr/sbin/apache2'
[Thu Oct 06 08:48:40.475630 2022] [mpm_event:notice] [pid 525:tid 548353045568] AH00493: SIGUSR1 received.  Doing graceful restart
[Thu Oct 06 08:48:40.496541 2022] [ssl:warn] [pid 525:tid 548353045568] AH01909: localhost:4443:0 server certificate does NOT include an ID which matches the server name
[Thu Oct 06 08:48:40.496799 2022] [ssl:error] [pid 525:tid 548353045568] AH02217: ssl_stapling_init_cert: can't retrieve issuer certificate! [subject: CN=archlinux / issuer: CN=archlinux / serial: 18C088C8F787E3CFD6C7C76280DC1F392C6E3DC2 / notbefore: Oct  8 19:39:52 2021 GMT / notafter: Oct  6 19:39:52 2031 GMT]
[Thu Oct 06 08:48:40.496833 2022] [ssl:error] [pid 525:tid 548353045568] AH02604: Unable to configure certificate localhost:4443:0 for stapling
[Thu Oct 06 08:48:40.499010 2022] [mpm_event:notice] [pid 525:tid 548353045568] AH00489: Apache/2.4.54 (Debian) OpenSSL/1.1.1n configured -- resuming normal operations
[Thu Oct 06 08:48:40.499062 2022] [core:notice] [pid 525:tid 548353045568] AH00094: Command line: '/usr/sbin/apache2'
[Thu Oct 06 08:49:58.335749 2022] [proxy_fcgi:error] [pid 529:tid 548225843584] [client 192.168.178.76:60226] AH01067: Failed to read FastCGI header
[Thu Oct 06 08:49:58.335913 2022] [proxy_fcgi:error] [pid 529:tid 548225843584] (104)Connection reset by peer: [client 192.168.178.76:60226] AH01075: Error dispatching request to :4443: 
[Thu Oct 06 08:49:58.412918 2022] [mpm_event:notice] [pid 525:tid 548353045568] AH00492: caught SIGWINCH, shutting down gracefully
[Thu Oct 06 08:50:03.008120 2022] [ssl:warn] [pid 469:tid 547801306176] AH01909: localhost:4443:0 server certificate does NOT include an ID which matches the server name
[Thu Oct 06 08:50:03.012876 2022] [ssl:error] [pid 469:tid 547801306176] AH02217: ssl_stapling_init_cert: can't retrieve issuer certificate! [subject: CN=archlinux / issuer: CN=archlinux / serial: 18C088C8F787E3CFD6C7C76280DC1F392C6E3DC2 / notbefore: Oct  8 19:39:52 2021 GMT / notafter: Oct  6 19:39:52 2031 GMT]
[Thu Oct 06 08:50:03.012981 2022] [ssl:error] [pid 469:tid 547801306176] AH02604: Unable to configure certificate localhost:4443:0 for stapling
[Thu Oct 06 08:50:03.102852 2022] [ssl:warn] [pid 583:tid 547801306176] AH01909: localhost:4443:0 server certificate does NOT include an ID which matches the server name
[Thu Oct 06 08:50:03.103406 2022] [ssl:error] [pid 583:tid 547801306176] AH02217: ssl_stapling_init_cert: can't retrieve issuer certificate! [subject: CN=archlinux / issuer: CN=archlinux / serial: 18C088C8F787E3CFD6C7C76280DC1F392C6E3DC2 / notbefore: Oct  8 19:39:52 2021 GMT / notafter: Oct  6 19:39:52 2031 GMT]
[Thu Oct 06 08:50:03.108988 2022] [ssl:error] [pid 583:tid 547801306176] AH02604: Unable to configure certificate localhost:4443:0 for stapling
[Thu Oct 06 08:50:03.123946 2022] [mpm_event:notice] [pid 583:tid 547801306176] AH00489: Apache/2.4.54 (Debian) OpenSSL/1.1.1n configured -- resuming normal operations
[Thu Oct 06 08:50:03.124059 2022] [core:notice] [pid 583:tid 547801306176] AH00094: Command line: '/usr/sbin/apache2'

PASTE HERE


Output errors in nextcloud.log in /var/www/ or as admin user in top right menu, filtering for errors. Use a pastebin service if necessary.

https://pastebin.com/s4Q2J3KQ

Hi All,

I just tried to make a new user starting with A as I expected the error does appear on A then…
Now all used users work again and also the file scan did run succesfully.
Not sure if it was some sort of database hickup. I will keep an eye on it and report back, if I have further issues.

Thank you for your support!!

Cheers

:frowning: now I have the same behaviour again. Scan stops with following error:

‘’’
[ nc-scan ] (Sat Oct 8 22:18:55 CEST 2022)
Starting scan for user 1 out of 7 (abcd)

Starting scan for user 2 out of 7 (Atest)

Starting scan for user 3 out of 7 (B***)
/usr/local/bin/ncc: line 3: 6524 Segmentation fault ${SUDO} php /var/www/nextcloud/occ “$@”
‘’’

Any support is very much appreciated.
Please let me know, if have to provide more info.
Thanks!

Do you use a SD card as memory? Sound like a dying one. Just my first impression.

Thank you for your reply @REAPERSbattlecry . I actually use an externel SanDisk USB-C SSD. The driev was new when I started with NCP a year ago… I will go and try to get the SMART values.

1 Like

Interesting, curious for what your SMART test shows.

not sure, if I did that right as there are some unknown values… :cold_face:
the Total_LBAs_Written value is garbage, isn’t it?
The drive is a SanDisk Exterme Portable SSD (500GB)

  1. sudo smartctl -d sat -t long /dev/sda
    after 10 minutes:
  2. sudo smartctl -d sat -a /dev/sda

without addind -d sat, it turns out like that:
#/dev/sda: Unknown USB bridge [0x0781:0x558c (0x1012)]
Please specify device type with the -d option.
(with command: sudo smartctl -t long /dev/sda)

couldn’t this relate to php 8.1 maybe?
I am curious as my installation has v 8.1, and the official NCP githup sais 7.4

I didn’t update it manually

Thank you for your advice

php was upgraded with >v1.50.1 that only a small mistake on the github page.

1 Like

Thanks for clearing this @REAPERSbattlecry.

So do you guys recommend to replace the external drive?

Thanks again for your advice

Hi All,

after multiple reboots, I am in a working state at the moment. I switched the auto-file-scan to the actual path now. Before it scanned all users which corrupted my wifes user. Mine however is working fine. Hope it will run as usual now and that the issue is gone with future updates.

Thanks again for your support!!