Ubuntu client halts suddenly

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): 22.2.3
Operating system and version (eg, Ubuntu 20.04): Debian 4.19.0-18-amd64
Apache or nginx version (eg, Apache 2.4.25): Apache 2.4.38
PHP version (eg, 7.4): 7.3.31-1

The issue you are facing:
Nextcloud desktop client stops after a short time. Reinstalling AppImage and installing from Ubuntu snap-store doesn’t make any difference

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

Steps to replicate it:

  1. Start nextcloud client in Ubuntu Studio
  2. wait
  3. it stops after a few messages and syncs. Sometimes in seconds, sometimes after several minutes

The output of your Nextcloud log in Admin > Logging:

[notes] Error: Controller failed with OCP\Files\NotPermittedException
	OCP\Files\NotPermittedException: 

    /var/www/nextcloud/apps/notes/lib/Service/NotesService.php - line 121:
    OC\Files\Node\File->delete()

    /var/www/nextcloud/apps/notes/lib/Controller/NotesApiController.php - line 221:
    OCA\Notes\Service\NotesService->delete("ncp", 16710)

    /var/www/nextcloud/apps/notes/lib/Service/Util.php - line 28:
    OCA\Notes\Controller\NotesApiController->OCA\Notes\Controller\{closure}("*** sensiti ... *")

    /var/www/nextcloud/apps/notes/lib/Controller/Helper.php - line 145:
    OCA\Notes\Service\Util::retryIfLocked(Closure {})

    /var/www/nextcloud/apps/notes/lib/Controller/NotesApiController.php - line 223:
    OCA\Notes\Controller\Helper->handleErrorResponse(Closure {})

    /var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php - line 217:
    OCA\Notes\Controller\NotesApiController->destroy(16710)

    /var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php - line 126:
    OC\AppFramework\Http\Dispatcher->executeController(OCA\Notes\Co ... {}, "destroy")

    /var/www/nextcloud/lib/private/AppFramework/App.php - line 156:
    OC\AppFramework\Http\Dispatcher->dispatch(OCA\Notes\Co ... {}, "destroy")

    /var/www/nextcloud/lib/private/Route/Router.php - line 302:
    OC\AppFramework\App::main("OCA\\Notes\ ... r", "destroy", OC\AppFramew ... {}, { apiVersion ... "})

    /var/www/nextcloud/lib/base.php - line 1006:
    OC\Route\Router->match("/apps/notes ... 0")

    /var/www/nextcloud/index.php - line 36:
    OC::handleRequest()

DELETE /index.php/apps/notes/api/v1/notes/16710?
from 85.149.47.128 by ncp at 2021-11-18T09:09:18+00:00

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

<?php
$CONFIG = array (
  'passwordsalt' => 'xxx',
  'secret' => 'xxx',
  'trusted_domains' => 
  array (
    0 => 'localhost',
    11 => 'xxx',
    1 => '192.168.2.7',
    5 => 'xxx',
    7 => 'xxx',
    8 => 'xxx',
    12 => 'xxx',
    '' => 'xxx',
    20 => '192.168.2.1',
  ),
  'datadirectory' => '/media/myCloudDrive/ncdata',
  'dbtype' => 'mysql',
  'version' => '22.2.3.0',
  'overwrite.cli.url' => 'xxx',
  'dbname' => 'nextcloud',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'ncadmin',
  'dbpassword' => 'xxx,
  'installed' => true,
  'instanceid' => 'oc5satfd8pae',
  'memcache.local' => '\\OC\\Memcache\\Redis',
  'memcache.locking' => '\\OC\\Memcache\\Redis',
  'redis' => 
  array (
    'host' => '/var/run/redis/redis.sock',
    'port' => 0,
    'timeout' => 0.0,
    'password' => 'xxx',
  ),
  'tempdirectory' => '/media/myCloudDrive/ncdata/tmp',
  'mail_smtpmode' => 'sendmail',
  'mail_smtpauthtype' => 'LOGIN',
  'mail_from_address' => 'xx',
  'mail_domain' => 'xxx',
  'preview_max_x' => '2048',
  'preview_max_y' => '2048',
  'jpeg_quality' => '60',
  'overwriteprotocol' => 'https',
  'htaccess.RewriteBase' => '/',
  'maintenance' => false,
  'logfile' => '/media/myCloudDrive/ncdata/nextcloud.log',
  'theme' => '',
  'loglevel' => 2,
  'updater.secret' => 'xxx,
);


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

[error.log]

[Thu Nov 18 00:00:05.364417 2021] [ssl:warn] [pid 983:tid 140587373106304] AH01909: localhost:4443:0 server certificate does NOT include an ID which matches the server name
[Thu Nov 18 00:00:05.378830 2021] [ssl:error] [pid 983:tid 140587373106304] AH02217: ssl_stapling_init_cert: can't retrieve issuer certificate! [subject: CN=debian.xxxx / issuer: CN=debian.xxx / serial: 718552C831D8583E872C8648688E948158FAF427 / notbefore: Jul 14 06:01:44 2021 GMT / notafter: Jul 12 06:01:44 2031 GMT]
[Thu Nov 18 00:00:05.378923 2021] [ssl:error] [pid 983:tid 140587373106304] AH02604: Unable to configure certificate localhost:4443:0 for stapling
[Thu Nov 18 00:00:05.380715 2021] [mpm_event:notice] [pid 983:tid 140587373106304] AH00489: Apache/2.4.38 (Debian) OpenSSL/1.1.1d configured -- resuming normal operations
[Thu Nov 18 00:00:05.380777 2021] [core:notice] [pid 983:tid 140587373106304] AH00094: Command line: '/usr/sbin/apache2'
[Thu Nov 18 08:06:21.381577 2021] [core:error] [pid 21153:tid 140586417907456] [client 45.146.164.110:60616] AH00126: Invalid URI in request POST /cgi-bin/.%2e/.%2e/.%2e/.%2e/bin/sh HTTP/1.1

[nc-access.log]
  GNU nano 3.2                                                                                                                                                         /var/log/apache2/nc-access.log                                                                                                                                                                    

85.149.47.128 - - [18/Nov/2021:10:24:44 +0100] "GET /apps/logreader/poll?lastReqId=YZYb3FVSnI%40QB1ZKfArWoQAAAIA HTTP/2.0" 200 1190 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:94.0) Gecko/20100101 Firefox/94.0"
85.149.47.128 - - [18/Nov/2021:10:24:45 +0100] "DELETE /index.php/apps/notes/api/v1/notes/16654? HTTP/1.1" 500 2180 "-" "Mozilla/5.0 (Android) Nextcloud-android/3.18.0 RC5"
85.149.47.128 - - [18/Nov/2021:10:24:46 +0100] "GET /apps/logreader/poll?lastReqId=YZYb3eo-O4rwQGt7Ssk0agAAAMQ HTTP/2.0" 200 938 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:94.0) Gecko/20100101 Firefox/94.0"
85.149.47.128 - - [18/Nov/2021:10:24:46 +0100] "DELETE /index.php/apps/notes/api/v1/notes/16677? HTTP/1.1" 500 2180 "-" "Mozilla/5.0 (Android) Nextcloud-android/3.18.0 RC5"
85.149.47.128 - - [18/Nov/2021:10:24:47 +0100] "DELETE /index.php/apps/notes/api/v1/notes/16694? HTTP/1.1" 500 2180 "-" "Mozilla/5.0 (Android) Nextcloud-android/3.18.0 RC5"
85.149.47.128 - - [18/Nov/2021:10:24:47 +0100] "DELETE /index.php/apps/notes/api/v1/notes/16695? HTTP/1.1" 500 2180 "-" "Mozilla/5.0 (Android) Nextcloud-android/3.18.0 RC5"
85.149.47.128 - - [18/Nov/2021:10:24:46 +0100] "GET /apps/logreader/poll?lastReqId=YZYb3eo-O4rwQGt7Ssk0awAAANE HTTP/2.0" 200 1047 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:94.0) Gecko/20100101 Firefox/94.0"
85.149.47.128 - - [18/Nov/2021:10:24:48 +0100] "DELETE /index.php/apps/notes/api/v1/notes/16705? HTTP/1.1" 500 2180 "-" "Mozilla/5.0 (Android) Nextcloud-android/3.18.0 RC5"
85.149.47.128 - - [18/Nov/2021:10:24:48 +0100] "DELETE /index.php/apps/notes/api/v1/notes/16711? HTTP/1.1" 500 2180 "-" "Mozilla/5.0 (Android) Nextcloud-android/3.18.0 RC5"
85.149.47.128 - - [18/Nov/2021:10:24:47 +0100] "GET /apps/logreader/poll?lastReqId=YZYb3%40o-O4rwQGt7Ssk0bgAAAM4 HTTP/2.0" 200 1004 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:94.0) Gecko/20100101 Firefox/94.0"
85.149.47.128 - - [18/Nov/2021:10:24:49 +0100] "DELETE /index.php/apps/notes/api/v1/notes/16716? HTTP/1.1" 500 2180 "-" "Mozilla/5.0 (Android) Nextcloud-android/3.18.0 RC5"
85.149.47.128 - - [18/Nov/2021:10:24:49 +0100] "DELETE /index.php/apps/notes/api/v1/notes/16672? HTTP/1.1" 500 2180 "-" "Mozilla/5.0 (Android) Nextcloud-android/3.18.0 RC5"
85.149.47.128 - - [18/Nov/2021:10:24:49 +0100] "GET /apps/logreader/poll?lastReqId=YZYb4Oo-O4rwQGt7Ssk0cAAAANU HTTP/2.0" 200 1010 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:94.0) Gecko/20100101 Firefox/94.0"
85.149.47.128 - - [18/Nov/2021:10:24:50 +0100] "DELETE /index.php/apps/notes/api/v1/notes/16690? HTTP/1.1" 500 2180 "-" "Mozilla/5.0 (Android) Nextcloud-android/3.18.0 RC5"
85.149.47.128 - - [18/Nov/2021:10:24:50 +0100] "GET /apps/logreader/poll?lastReqId=YZYb4eo-O4rwQGt7Ssk0cgAAANM HTTP/2.0" 200 937 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:94.0) Gecko/20100101 Firefox/94.0"
85.149.47.128 - - [18/Nov/2021:10:24:50 +0100] "DELETE /index.php/apps/notes/api/v1/notes/16710? HTTP/1.1" 500 2180 "-" "Mozilla/5.0 (Android) Nextcloud-android/3.18.0 RC5"
85.149.47.128 - - [18/Nov/2021:10:24:51 +0100] "GET /index.php/apps/notes/api/v1/notes?pruneBefore=1637177106 HTTP/1.1" 304 1524 "-" "Mozilla/5.0 (Android) Nextcloud-android/3.18.0 RC5"
85.149.47.128 - - [18/Nov/2021:10:24:50 +0100] "GET /apps/logreader/poll?lastReqId=YZYb4uo-O4rwQGt7Ssk0cwAAAMQ HTTP/2.0" 200 915 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:94.0) Gecko/20100101 Firefox/94.0"
85.149.47.128 - - [18/Nov/2021:10:24:56 +0100] "PUT /apps/user_status/heartbeat HTTP/2.0" 200 178 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:94.0) Gecko/20100101 Firefox/94.0"
85.149.47.128 - - [18/Nov/2021:10:25:07 +0100] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/2.0" 304 75 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:94.0) Gecko/20100101 Firefox/94.0"
85.149.47.128 - - [18/Nov/2021:10:24:52 +0100] "GET /apps/logreader/poll?lastReqId=YZYb4uo-O4rwQGt7Ssk0dAAAANE HTTP/2.0" 200 86 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:94.0) Gecko/20100101 Firefox/94.0"
85.149.47.128 - - [18/Nov/2021:10:25:12 +0100] "GET /apps/logreader/poll?lastReqId=YZYb4uo-O4rwQGt7Ssk0dAAAANE HTTP/2.0" 200 109 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:94.0) Gecko/20100101 Firefox/94.0"
85.149.47.128 - - [18/Nov/2021:10:25:37 +0100] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/2.0" 304 75 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:94.0) Gecko/20100101 Firefox/94.0"
85.149.47.128 - - [18/Nov/2021:10:25:32 +0100] "GET /apps/logreader/poll?lastReqId=YZYb4uo-O4rwQGt7Ssk0dAAAANE HTTP/2.0" 200 86 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:94.0) Gecko/20100101 Firefox/94.0"
192.168.2.1 - - [18/Nov/2021:10:25:58 +0100] "GET /index.php/204 HTTP/1.1" 204 7014 "-" "Mozilla/5.0 (Android) Nextcloud-android/3.12.1"
192.168.2.1 - - [18/Nov/2021:10:25:58 +0100] "GET /index.php/204 HTTP/1.1" 204 7016 "-" "Mozilla/5.0 (Android) Nextcloud-android/3.12.1"
192.168.2.1 - - [18/Nov/2021:10:25:58 +0100] "GET /index.php/204 HTTP/1.1" 204 7018 "-" "Mozilla/5.0 (Android) Nextcloud-android/3.12.1"
85.149.47.128 - - [18/Nov/2021:10:26:07 +0100] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/2.0" 304 75 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:94.0) Gecko/20100101 Firefox/94.0"
85.149.47.128 - - [18/Nov/2021:10:25:52 +0100] "GET /apps/logreader/poll?lastReqId=YZYb4uo-O4rwQGt7Ssk0dAAAANE HTTP/2.0" 200 86 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:94.0) Gecko/20100101 Firefox/94.0"
85.149.47.128 - - [18/Nov/2021:10:26:13 +0100] "GET /apps/logreader/poll?lastReqId=YZYb4uo-O4rwQGt7Ssk0dAAAANE HTTP/2.0" 200 86 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:94.0) Gecko/20100101 Firefox/94.0"
85.149.47.128 - - [18/Nov/2021:10:26:31 +0100] "PROPFIND /remote.php/dav/calendars/ncp/personal/ HTTP/2.0" 207 1494 "-" "DAVx5/4.0-ose (2021/10/13; dav4jvm; okhttp/4.9.1) Android/10"
85.149.47.128 - - [18/Nov/2021:10:26:37 +0100] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/2.0" 304 75 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:94.0) Gecko/20100101 Firefox/94.0"
85.149.47.128 - - [18/Nov/2021:10:26:35 +0100] "PROPFIND /remote.php/dav/calendars/ncp/contact_birthdays/ HTTP/2.0" 207 1500 "-" "DAVx5/4.0-ose (2021/10/13; dav4jvm; okhttp/4.9.1) Android/10"


[nc-error.log]
[Thu Nov 18 09:22:52.597051 2021] [proxy_fcgi:error] [pid 21153:tid 140587066189568] (70007)The timeout specified has expired: [client 85.149.47.128:56632] AH01075: Error dispatching request to : (reading input brigade)

the desktop client also has logfiles:
https://docs.nextcloud.com/desktop/3.3/troubleshooting.html

Thank you very much. I could start the making of the debug file in the few seconds the client was up.

These are the last warnings in the file:

2021-11-23 10:47:46:815 [ debug nextcloud.sync.database.sql ] [ OCC::SqlQuery::bindValue ]: SQL bind 1 -2631705713114798469
2021-11-23 10:47:46:815 [ debug nextcloud.sync.database.sql ] [ OCC::SqlQuery::exec ]: SQL exec “SELECT path, inode, modtime, type, md5, fileid, remotePerm, filesize, ignoredChildrenRemote, contentchecksumtype.name || ‘:’ || contentChecksum, e2eMangledName, isE2eEncrypted FROM metadata LEFT JOIN checksumtype as contentchecksumtype ON metadata.contentChecksumTypeId == contentchecksumtype.id WHERE parent_hash(path) = ?1 ORDER BY path||’/’ ASC”
2021-11-23 10:47:46:815 [ info sync.discovery ]: Processing “Fonts/windows fon/8514fix.fon” | valid: false/true/false | mtime: 0/1244666592/0 | size: 0/10976/0 | etag: “”//"" | checksum: “”//"" | perm: “”//"" | fileid: “”//"" | inode: 0/43780574/ | type: CSyncEnums::ItemTypeSkip/CSyncEnums::ItemTypeFile/CSyncEnums::ItemTypeFile | e2ee: false/false | e2eeMangledName: “”/""
2021-11-23 10:47:46:815 [ warning sync.discovery ]: File “Fonts/windows fon/8514fix.fon” was modified before the last sync run and is not in the sync journal and server
2021-11-23 10:47:46:815 [ debug nextcloud.sync.database.sql ] [ OCC::SqlQuery::bindValue ]: SQL bind 1 43780574
2021-11-23 10:47:46:815 [ debug nextcloud.sync.database.sql ] [ OCC::SqlQuery::exec ]: SQL exec “SELECT path, inode, modtime, type, md5, fileid, remotePerm, filesize, ignoredChildrenRemote, contentchecksumtype.name || ‘:’ || contentChecksum, e2eMangledName, isE2eEncrypted FROM metadata LEFT JOIN checksumtype as contentchecksumtype ON metadata.contentChecksumTypeId == contentchecksumtype.id WHERE inode=?1”
2021-11-23 10:47:46:815 [ warning nextcloud.sync.discovery ]: ENFORCE(FAILING) “Fonts/8514fix.fon”
2021-11-23 10:47:46:815 [ warning nextcloud.sync.discovery ]: instruction == CSYNC_INSTRUCTION_REMOVE false
2021-11-23 10:47:46:815 [ warning nextcloud.sync.discovery ]: ((*it)->_type == ItemTypeVirtualFile && instruction == CSYNC_INSTRUCTION_NEW) false
2021-11-23 10:47:46:815 [ warning nextcloud.sync.discovery ]: ((*it)->_isRestoration && instruction == CSYNC_INSTRUCTION_NEW)) false
2021-11-23 10:47:46:815 [ warning nextcloud.sync.discovery ]: instruction CSyncEnums::CSYNC_INSTRUCTION_IGNORE
2021-11-23 10:47:46:815 [ warning nextcloud.sync.discovery ]: (*it)->_type CSyncEnums::ItemTypeFile
2021-11-23 10:47:46:815 [ warning nextcloud.sync.discovery ]: (*it)->_isRestoration true
2021-11-23 10:47:46:815 [ fatal default ]: ENFORCE: “false” in file /build/nextcloud-desktop-jdvq4P/nextcloud-desktop-3.3.6-20211028.151202.6d3270dd2/src/libsync/discoveryphase.cpp, line 188

I hope this is sufficient.

Bedankt en de hartelijke groeten,
Henny

At this moment, nearly a week later, the client behaves better in Ubuntu Studio, but I can’t reason why. It stops only two or three times a day. So, I suggest the moderator of this forum deletes my post because there will not ever be an answer. Only the link to the troubleshooting-page was very helpful.

Groetjes!