GOA cant connect to my NC-Instance

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: 26.0.2
Operating system and version (eg, Ubuntu 20.04): Ubuntu 22.04 LTS
Apache or nginx version (eg, Apache 2.4.25): Apache/2.4.52 (Ubuntu)
PHP version (eg, 7.4): 8.1.2-1ubuntu2.11

The issue you are facing:

Hi!
Since a few weeks I face a problem when trying to connect to my Nextcloud-Instance with gnome-online-accounts (Gnome 44, Fedora 38). Every time I try, I get a sort of timeout-error.

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

Steps to replicate it:

  1. Try to connect to ones Nextcloud-Instance with gnome-online-accounts
  2. wait
  3. the application crashes

The output of your Nextcloud log in Admin > Logging:

No Logs for this error in NC... 

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

<?php
$CONFIG = array (
  'trusted_domains' => 
  array (
    0 => '192.168.178.221',
    1 => '',
  ),
  'trusted_proxies' => 
  array (
    0 => '192.168.178.226',
  ),
  'datadirectory' => '/mnt/disk1/data/nextcloud/',
  'log_type' => 'file',
  'logtimezone' => 'Europe/Berlin',
  'loglevel' => 2,
  'logfile' => '/var/log/nextcloud/nextcloud.log',
  'log_rotate_size' => '104857600',
  'enable_previews' => true,
  'enabledPreviewProviders' => 
  array (
    0 => 'OC\\Preview\\PNG',
    1 => 'OC\\Preview\\JPEG',
    2 => 'OC\\Preview\\GIF',
    3 => 'OC\\Preview\\BMP',
    4 => 'OC\\Preview\\XBitmap',
    5 => 'OC\\Preview\\Movie',
    6 => 'OC\\Preview\\PDF',
    7 => 'OC\\Preview\\MP3',
    8 => 'OC\\Preview\\TXT',
    9 => 'OC\\Preview\\MarkDown',
  ),
  'preview_max_x' => 1024,
  'preview_max_y' => 768,
  'preview_max_scale_factor' => 1,
  'skeletondirectory' => '/data/nextcloud/skeleton',
  'filelocking.enabled' => 'true',
  'memcache.locking' => '\\OC\\Memcache\\Redis',
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'redis' => 
  array (
    'host' => '/var/run/redis/redis-server.sock',
    'port' => 0,
    'timeout' => 1.5,
  ),
  'default_language' => 'de',
  'default_locale' => 'de_DE',
  'default_phone_region' => 'DE',
  'trashbin_retention_obligation' => '15, 30',
  'updater.release.channel' => 'stable',
  'overwrite.cli.url' => '',
  'overwriteprotocol' => 'https',
  'htaccess.RewriteBase' => '/',
  'instanceid' => '',
  'passwordsalt' => '',
  'secret' => '',
  'dbtype' => 'mysql',
  'version' => '26.0.2.1',
  'dbname' => '',
  'dbhost' => '',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => '',
  'dbpassword' => '',
  'installed' => true,
  'theme' => '',
  'maintenance' => false,
  'mail_smtpmode' => 'smtp',
  'mail_smtpsecure' => 'ssl',
  'mail_sendmailmode' => 'smtp',
  'mail_from_address' => 'j.rohrberg',
  'mail_domain' => 'mailbox.org',
  'mail_smtpauthtype' => 'LOGIN',
  'mail_smtpauth' => 1,
  'mail_smtphost' => '',
  'mail_smtpport' => '',
  'mail_smtpname' => '',
  'mail_smtppassword' => '',
  'updater.secret' => '',
);

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

192.168.178.226 - - [30/May/2023:15:59:01 +0200] "GET /remote.php/webdav/ HTTP/1.1" 401 1606 "-" "gnome-online-accounts/3.48.0 libsoup/3.4.2"
192.168.178.226 - - [30/May/2023:15:59:13 +0200] "PUT /ocs/v2.php/apps/user_status/api/v1/heartbeat?format=json HTTP/1.1" 200 919 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/113.0"
192.168.178.226 - - [30/May/2023:15:59:13 +0200] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 304 761 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/113.0"
192.168.178.226 - - [30/May/2023:15:58:56 +0200] "GET /apps/logreader/poll?lastReqId=4uknMMqfMG3aXiDXItJj HTTP/1.1" 200 789 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/113.0"


Is this the same issue as this bug?
Did you find a work around? I’m having this issue too.

I found a workaround: install a LetsEncrypt certificate (I use NextcloudPi, where you can do this from the NextcoudPi management web interface.
See also my comment on this bug.