Hosting my own docker image. No client app can login.

Support intro

Sorry to hear you’re facing problems. :slightly_frowning_face:

The community help forum (help.nextcloud.com) is for home and non-enterprise users. Support is provided by other community members on a best effort / “as available” basis. All of those responding are volunteering their time to help you.

If you’re using Nextcloud in a business/critical setting, paid and SLA-based support services can be accessed via portal.nextcloud.com where Nextcloud engineers can help ensure your business keeps running smoothly.

Getting help

In order to help you as efficiently (and quickly!) as possible, please fill in as much of the below requested information as you can.

Before clicking submit: Please check if your query is already addressed via the following resources:

(Utilizing these existing resources is typically faster. It also helps reduce the load on our generous volunteers while elevating the signal to noise ratio of the forums otherwise arising from the same queries being posted repeatedly).

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:

The Basics

  • Nextcloud Server version (e.g., 29.x.x):
    • Nextcloud Hub 10 (31.0.7)
  • Operating system and version (e.g., Ubuntu 24.04):
    • docker container running on Synology with up to date DSM.
  • Web server and version (e.g, Apache 2.4.25):
    • replace me
  • Reverse proxy and version _(e.g. nginx 1.27.2)
    • `reverse proxy on Synology
  • PHP version (e.g, 8.3):
    • replace me
  • Is this the first time you’ve seen this error? (Yes / No):
    • `No
  • When did this problem seem to first start?
    • from the start
  • Installation method (e.g. AlO, NCP, Bare Metal/Archive, etc.)
    • docker container, managed by portainer, has it’s own stack
  • Are you using CloudfIare, mod_security, or similar? (Yes / No)
    • `no

Summary of the issue you are facing:

Installed the container and associated services. Deployed stack and was able to login via my domain and reverse proxy as the admin. So far that is all that has worked. I’ve tried the Android, Linux and Windows clients and they all just spin for awhile and then times out. Can’t see anything meaningful in the logs, but then again I’m not familiar enough with NextCloud to know what normal looks like.

All I know is I wanted to replace Dropbox for my company and this is my home lab dry run of a setup and so far the inability to even get a basic client app to connect in a simple reverse proxy is not promising.

Why does logging in via Web work fine and the client not? The client launches the browser with a long token and times out. After which I can’t log in via web for several minutes (almost as if the container is restarting but it actually isn’t.

What I do see in the logs:
“Error
internet_connection_check
ConnectException
cURL error 28: Connection timed out after 30001 milliseconds (see libcurl - Error Codes) for https://www.eff.org”

in there dozens of times and then every now and then this odd one:
“Error
no app in context
Exception
HMAC does not match.
Could not decrypt or decode encrypted session data”

I do have a letsencrypt wildcard cert in place and that is working fine for my 4 or 5 other reverse proxy containers and none are having issues.

I’m willing to accept I have something configured wrong but I’m stuck on why the web approach works and the client doesn’t?

Steps to replicate it (hint: details matter!):

Log entries

Nextcloud

Please provide the log entries from your Nextcloud log that are generated during the time of problem (via the Copy raw option from Administration settings->Logging screen or from your nextcloud.log located in your data directory). Feel free to use a pastebin/gist service if necessary.

PASTE HERE

Web Browser

If the problem is related to the Web interface, open your browser inspector Console and Network tabs while refreshing (reloading) and reproducing the problem. Provide any relevant output/errors here that appear.

PASTE

Web server / Reverse Proxy

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

PASTE HERE

Configuration

Nextcloud

The output of occ config:list system or similar is best, but, if not possible, the contents of your config.php file from /path/to/nextcloud is fine (make sure to remove any identifiable information!):

PASTE HERE

Apps

The output of occ app:list (if possible).

Tips for increasing the likelihood of a response

  • Use the preformatted text formatting option in the editor for all log entries and configuration output.
  • If screenshots are useful, feel free to include them.
    • If possible, also include key error output in text form so it can be searched for.
  • Try to edit log output only minimally (if at all) so that it can be ran through analyzers / formatters by those trying to help you.

Which Docker image are you using?

Also please post your config as requested in the support template.

Also, do you have any errors or warnings under Admin settings->Overview?

Bear with me as I am a noob at this. I followed the instructions at marius for installing a docker image onto my synology. His instructions have always worked. Note sure which one he has us pull. Synology: How to Install Nextcloud Using Docker – Marius Hosting for reference. Here is the config, I think, if you meant config.php.

I have gotten it to work intermittently, but once the client fails then even logging in via the web interface stops working. I suspect there is a header being passed when it shouldn’t be or not being passed when it should. I know synology uses nginx for reverse proxy but I have no idea where it stores the settings for those. As of now, nextcloud is the only stack that doesn’t work for me out of the box nearly.

As for errors or warnings I don’t know because I can’t login or it won’t stay logged in if I do manage to get in as soon as I select something it goes nuts again with the “can’t reach the endpoint” error.

<?php $CONFIG = array ( 'htaccess.RewriteBase' => '/', 'memcache.local' => '\\OC\\Memcache\\APCu', 'apps_paths' => array ( 0 => array ( 'path' => '/var/www/html/apps', 'url' => '/apps', 'writable' => false, ), 1 => array ( 'path' => '/var/www/html/custom_apps', 'url' => '/custom_apps', 'writable' => true, ), ), 'memcache.distributed' => '\\OC\\Memcache\\Redis', 'memcache.locking' => '\\OC\\Memcache\\Redis', 'redis' => array ( 'host' => 'nextcloudredis', 'password' => '', 'port' => 6379, ), 'overwritehost' => 'nextcloud.raptor2.synology.me', 'overwriteprotocol' => 'https', 'trusted_proxies' => array ( 0 => '192.168.101.16', ), 'upgrade.disable-web' => true, 'passwordsalt' => '*************', 'secret' => '****************', 'trusted_domains' => array ( 0 => 'localhost', 1 => 'nextcloud.mydomain.synology.me', 2 => '192.168.101.16', ), 'datadirectory' => '/var/www/html/data', 'dbtype' => 'mysql', 'version' => '31.0.7.1', 'overwrite.cli.url' => 'https://localhost', 'dbname' => 'nextcloud', 'dbhost' => 'mariadb', 'dbport' => '', 'dbtableprefix' => 'oc_', 'mysql.utf8mb4' => true, 'dbuser' => 'nextcloud', 'dbpassword' => '**********', 'installed' => true, 'instanceid' => 'occqkifp8htd', 'mail_from_address' => 'mpcdav', 'mail_smtpmode' => 'smtp', 'mail_sendmailmode' => 'smtp', 'mail_domain' => '', 'forbidden_filename_basenames' => array ( 0 => 'con', 1 => 'prn', 2 => 'aux', 3 => 'nul', 4 => 'com0', 5 => 'com1', 6 => 'com2', 7 => 'com3', 8 => 'com4', 9 => 'com5', 10 => 'com6', 11 => 'com7', 12 => 'com8', 13 => 'com9', 14 => 'com¹', 15 => 'com²', 16 => 'com³', 17 => 'lpt0', 18 => 'lpt1', 19 => 'lpt2', 20 => 'lpt3', 21 => 'lpt4', 22 => 'lpt5', 23 => 'lpt6', 24 => 'lpt7', 25 => 'lpt8', 26 => 'lpt9', 27 => 'lpt¹', 28 => 'lpt²', 29 => 'lpt³', ), 'forbidden_filename_characters' => array ( 0 => '<', 1 => '>', 2 => ':', 3 => '"', 4 => '|', 5 => '?', 6 => '*', 7 => '\\', 8 => '/', ), 'forbidden_filename_extensions' => array ( 0 => ' ', 1 => '.', 2 => '.filepart', 3 => '.part', ), 'mail_smtphost' => '', 'mail_smtpport' => '587', 'mail_smtpauth' => true, 'mail_smtpname' => '', 'mail_smtppassword' => '', ); I did obfuscate the fields I didn't think the world needed to know. ;-)

I did manage to restart the web server doing the reverse proxy. The only errors I see in the logs under Admin->Overview are the same ones I posted in the original:

Error internet_connection_check ConnectException
cURL error 28: Connection timed out after 30001 milliseconds (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for https://www.nextcloud.com

Error no app in context Exception HMAC does not match.

So I think it has to be something with the reverse proxy.

This topic can be closed. After struggling with this for a couple of weeks only to have an update break everything again I’ve determined this is simply too much of a maintenance nightmare to continue with. I was just trying to replace dropbox with a self hosted solution that was easy to setup and maintain.

Might be all me and my my particular setup but I don’t have time to change that to fit Nextcloud. I found an alternative solution that I was able to setup in day and my users are happy. Thanks to all those that tried to help.

This topic was automatically closed after 90 days. New replies are no longer allowed.