Support intro
Sorry to hear you’re facing problems.
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:
- Official documentation (searchable and regularly updated)
- How to topics and FAQs
- Forum search
(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.
The Basics
- Nextcloud Server version (e.g., 29.x.x):
30.0.2
- Operating system and version (e.g., Ubuntu 24.04):
Ubuntu 22.04
- Web server and version (e.g, Apache 2.4.25):
Apache 2.4.62-2+3.2.cpanel
- Reverse proxy and version _(e.g. nginx 1.27.2)
replace me
- PHP version (e.g, 8.3):
8.2.25
- Is this the first time you’ve seen this error? (Yes / No):
Yes
- When did this problem seem to first start?
moving the installation from another Ubuntu 20.04 server
- Installation method (e.g. AIO, NCP, Bare Metal/Archive, etc.)
legacy installation, probably bare metal or cpanel?
- Are you using Cloudflare, mod_security, or similar? (Yes / No)
not that I know of
Summary of the issue you are facing:
[…] After having the webhost transfer over all applications from the old machine, none of our mobile Nextcloud apps would connect, using IOS, Windows, Linux desktop or Android, the sync app rejects the connection. After pressing the button to authorize this device, they receive a 401 and the log says they were not logged in. The same behaviour when using Application Passwords. All users can login on the web interface.
Steps to replicate it (hint: details matter!):
- Open (or Add Account) to the Android app
- Enter login and password, you get a challenge for Account Access
- Clicking the button results in a 401 error and returns to the login screen.
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.
These are the only messages with my phone app as origin, although some could be when I confirmed via Firefox? I scanned the log for Samsung, assuming that would be the app.
{
"app" : "no app in context",
"exception" : {
"Code" : 401,
"CustomMessage" : "Current user is not logged in",
"Exception" : "OCAppFrameworkMiddlewareSecurityExceptionsNotLoggedInException",
"File" : "/var/www/nextcloud/lib/private/AppFramework/Middleware/Security/SecurityMiddleware.php",
"Line" : 113,
"Message" : "Current user is not logged in",
"Trace" : [
{
"args" : [
{
"__class__" : "OCCoreControllerClientFlowLoginController"
},
"grantPage"
],
"class" : "OCAppFrameworkMiddlewareSecuritySecurityMiddleware",
"file" : "/var/www/nextcloud/lib/private/AppFramework/Middleware/MiddlewareDispatcher.php",
"function" : "beforeController",
"line" : 73,
"type" : "->"
},
{
"args" : [
{
"__class__" : "OCCoreControllerClientFlowLoginController"
},
"grantPage"
],
"class" : "OCAppFrameworkMiddlewareMiddlewareDispatcher",
"file" : "/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php",
"function" : "beforeController",
"line" : 106,
"type" : "->"
},
{
"args" : [
{
"__class__" : "OCCoreControllerClientFlowLoginController"
},
"grantPage"
],
"class" : "OCAppFrameworkHttpDispatcher",
"file" : "/var/www/nextcloud/lib/private/AppFramework/App.php",
"function" : "dispatch",
"line" : 161,
"type" : "->"
},
{
"args" : [
"OCCoreControllerClientFlowLoginController",
"grantPage",
{
"__class__" : "OCAppFrameworkDependencyInjectionDIContainer"
},
{
"_route" : "core.clientflowlogin.grantpage"
}
],
"class" : "OCAppFrameworkApp",
"file" : "/var/www/nextcloud/lib/private/Route/Router.php",
"function" : "main",
"line" : 302,
"type" : "::"
},
{
"args" : [
"/login/flow/grant"
],
"class" : "OCRouteRouter",
"file" : "/var/www/nextcloud/lib/base.php",
"function" : "match",
"line" : 1001,
"type" : "->"
},
{
"args" : [],
"class" : "OC",
"file" : "/var/www/nextcloud/index.php",
"function" : "handleRequest",
"line" : 24,
"type" : "::"
}
],
"exception" : {},
"message" : "Current user is not logged in"
},
"level" : 0,
"message" : "Current user is not logged in",
"method" : "GET",
"remoteAddr" : "(my home IP)",
"reqId" : "Z0KIWkkAxFtu-dASeSuK5gAAAAo",
"time" : "2024-11-24T01:58:50+00:00",
"url" : "/nextcloud/index.php/login/flow/grant?stateToken=qHq8GZmzZfHVKnbBuSXoEnhjSHQXKrW2EFQEo1JHYcsTphrQFYWpBrO67aMb39qI&clientIdentifier=&user=&direct=0",
"user" : "--",
"userAgent" : "Samsung SM-G781W (Android)",
"version" : "30.0.2.2"
}
{
"app" : "no app in context",
"exception" : {
"Code" : 0,
"CustomMessage" : "The loading of lazy AppConfig values have been requested",
"Exception" : "RuntimeException",
"File" : "/var/www/nextcloud/lib/private/AppConfig.php",
"Line" : 1194,
"Message" : "ignorable exception",
"Trace" : [
{
"args" : [
null
],
"class" : "OCAppConfig",
"file" : "/var/www/nextcloud/lib/private/AppConfig.php",
"function" : "loadConfig",
"line" : 1180,
"type" : "->"
},
{
"args" : [],
"class" : "OCAppConfig",
"file" : "/var/www/nextcloud/lib/private/AppConfig.php",
"function" : "loadConfigAll",
"line" : 100,
"type" : "->"
},
{
"args" : [
"bruteForce"
],
"class" : "OCAppConfig",
"file" : "/var/www/nextcloud/lib/private/AllConfig.php",
"function" : "getKeys",
"line" : 169,
"type" : "->"
},
{
"args" : [
"bruteForce"
],
"class" : "OCAllConfig",
"file" : "/var/www/nextcloud/lib/private/Security/Bruteforce/Throttler.php",
"function" : "getAppKeys",
"line" : 95,
"type" : "->"
},
{
"args" : [
"(my home IP)"
],
"class" : "OCSecurityBruteforceThrottler",
"file" : "/var/www/nextcloud/lib/private/Security/Bruteforce/Throttler.php",
"function" : "isBypassListed",
"line" : 175,
"type" : "->"
},
{
"args" : [
"(my home IP)",
""
],
"class" : "OCSecurityBruteforceThrottler",
"file" : "/var/www/nextcloud/lib/private/Security/Bruteforce/Throttler.php",
"function" : "getAttempts",
"line" : 192,
"type" : "->"
},
{
"args" : [
"(my home IP)"
],
"class" : "OCSecurityBruteforceThrottler",
"file" : "/var/www/nextcloud/core/Controller/LoginController.php",
"function" : "getDelay",
"line" : 151,
"type" : "->"
},
{
"args" : [
null,
"/nextcloud/index.php/login/flow/grant?stateToken=qHq8GZmzZfHVKnbBuSXoEnhjSHQXKrW2EFQEo1JHYcsTphrQFYWpBrO67aMb39qI&clientIdentifier=&user=&direct=0"
],
"class" : "OCCoreControllerLoginController",
"file" : "/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php",
"function" : "showLoginForm",
"line" : 208,
"type" : "->"
},
{
"args" : [
{
"__class__" : "OCCoreControllerLoginController"
},
"showLoginForm"
],
"class" : "OCAppFrameworkHttpDispatcher",
"file" : "/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php",
"function" : "executeController",
"line" : 114,
"type" : "->"
},
{
"args" : [
{
"__class__" : "OCCoreControllerLoginController"
},
"showLoginForm"
],
"class" : "OCAppFrameworkHttpDispatcher",
"file" : "/var/www/nextcloud/lib/private/AppFramework/App.php",
"function" : "dispatch",
"line" : 161,
"type" : "->"
},
{
"args" : [
"OCCoreControllerLoginController",
"showLoginForm",
{
"__class__" : "OCAppFrameworkDependencyInjectionDIContainer"
},
{
"_route" : "core.login.showloginform"
}
],
"class" : "OCAppFrameworkApp",
"file" : "/var/www/nextcloud/lib/private/Route/Router.php",
"function" : "main",
"line" : 302,
"type" : "::"
},
{
"args" : [
"/login"
],
"class" : "OCRouteRouter",
"file" : "/var/www/nextcloud/lib/base.php",
"function" : "match",
"line" : 1001,
"type" : "->"
},
{
"args" : [],
"class" : "OC",
"file" : "/var/www/nextcloud/index.php",
"function" : "handleRequest",
"line" : 24,
"type" : "::"
}
],
"exception" : {},
"message" : "The loading of lazy AppConfig values have been requested"
},
"level" : 0,
"message" : "The loading of lazy AppConfig values have been requested",
"method" : "GET",
"remoteAddr" : "(my home IP)",
"reqId" : "Z0KIWkkAxFtu-dASeSuK5wAAAAo",
"time" : "2024-11-24T01:58:50+00:00",
"url" : "/nextcloud/index.php/login?redirect_url=/nextcloud/index.php/login/flow/grant?stateToken%3DqHq8GZmzZfHVKnbBuSXoEnhjSHQXKrW2EFQEo1JHYcsTphrQFYWpBrO67aMb39qI
%26clientIdentifier%3D%26user%3D%26direct%3D0",
"user" : "--",
"userAgent" : "Samsung SM-G781W (Android)",
"version" : "30.0.2.2"
}
{
"app" : "no app in context",
"exception" : {
"Code" : 0,
"CustomMessage" : "The loading of lazy AppConfig values have been requested",
"Exception" : "RuntimeException",
"File" : "/var/www/nextcloud/lib/private/AppConfig.php",
"Line" : 1194,
"Message" : "ignorable exception",
"Trace" : [
{
"args" : [
null
],
"class" : "OCAppConfig",
"file" : "/var/www/nextcloud/lib/private/AppConfig.php",
"function" : "loadConfig",
"line" : 1180,
"type" : "->"
},
{
"args" : [],
"class" : "OCAppConfig",
"file" : "/var/www/nextcloud/lib/private/AppConfig.php",
"function" : "loadConfigAll",
"line" : 100,
"type" : "->"
},
{
"args" : [
"bruteForce"
],
"class" : "OCAppConfig",
"file" : "/var/www/nextcloud/lib/private/AllConfig.php",
"function" : "getKeys",
"line" : 169,
"type" : "->"
},
{
"args" : [
"bruteForce"
],
"class" : "OCAllConfig",
"file" : "/var/www/nextcloud/lib/private/Security/Bruteforce/Throttler.php",
"function" : "getAppKeys",
"line" : 95,
"type" : "->"
},
{
"args" : [
"(my home IP)"
],
"class" : "OCSecurityBruteforceThrottler",
"file" : "/var/www/nextcloud/lib/private/Security/Bruteforce/Throttler.php",
"function" : "isBypassListed",
"line" : 175,
"type" : "->"
},
{
"args" : [
"(my home IP)",
"login"
],
"class" : "OCSecurityBruteforceThrottler",
"file" : "/var/www/nextcloud/lib/private/Security/Bruteforce/Throttler.php",
"function" : "getAttempts",
"line" : 192,
"type" : "->"
},
{
"args" : [
"(my home IP)",
"login"
],
"class" : "OCSecurityBruteforceThrottler",
"file" : "/var/www/nextcloud/lib/private/Security/Bruteforce/Throttler.php",
"function" : "getDelay",
"line" : 265,
"type" : "->"
},
{
"args" : [
"(my home IP)",
"login"
],
"class" : "OCSecurityBruteforceThrottler",
"file" : "/var/www/nextcloud/lib/private/AppFramework/Middleware/Security/BruteForceMiddleware.php",
"function" : "sleepDelayOrThrowOnMax",
"line" : 64,
"type" : "->"
},
{
"args" : [
{
"__class__" : "OCCoreControllerLoginController"
},
"tryLogin"
],
"class" : "OCAppFrameworkMiddlewareSecurityBruteForceMiddleware",
"file" : "/var/www/nextcloud/lib/private/AppFramework/Middleware/MiddlewareDispatcher.php",
"function" : "beforeController",
"line" : 73,
"type" : "->"
},
{
"args" : [
{
"__class__" : "OCCoreControllerLoginController"
},
"tryLogin"
],
"class" : "OCAppFrameworkMiddlewareMiddlewareDispatcher",
"file" : "/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php",
"function" : "beforeController",
"line" : 106,
"type" : "->"
},
{
"args" : [
{
"__class__" : "OCCoreControllerLoginController"
},
"tryLogin"
],
"class" : "OCAppFrameworkHttpDispatcher",
"file" : "/var/www/nextcloud/lib/private/AppFramework/App.php",
"function" : "dispatch",
"line" : 161,
"type" : "->"
},
{
"args" : [
"OCCoreControllerLoginController",
"tryLogin",
{
"__class__" : "OCAppFrameworkDependencyInjectionDIContainer"
},
{
"_route" : "core.login.trylogin"
}
],
"class" : "OCAppFrameworkApp",
"file" : "/var/www/nextcloud/lib/private/Route/Router.php",
"function" : "main",
"line" : 302,
"type" : "::"
},
{
"args" : [
"/login"
],
"class" : "OCRouteRouter",
"file" : "/var/www/nextcloud/lib/base.php",
"function" : "match",
"line" : 1001,
"type" : "->"
},
{
"args" : [],
"class" : "OC",
"file" : "/var/www/nextcloud/index.php",
"function" : "handleRequest",
"line" : 24,
"type" : "::"
}
],
"exception" : {},
"message" : "The loading of lazy AppConfig values have been requested"
},
"level" : 0,
"message" : "The loading of lazy AppConfig values have been requested",
"method" : "POST",
"remoteAddr" : "(my home IP)",
"reqId" : "Z0KIaruWEr58t-SrmsopTQAAAAw",
"time" : "2024-11-24T01:59:06+00:00",
"url" : "/nextcloud/index.php/login",
"user" : "--",
"userAgent" : "Samsung SM-G781W (Android)",
"version" : "30.0.2.2"
}
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.
# grep Samsung *log
access_log:78.153.140.177 - - [18/Nov/2024:13:29:01 +0000] "GET /client_secrets.json HTTP/1.1" 404 10087 "-" "Mozilla/5.0 (Linux; Android 5.1.1; SAMSUNG SM-G925F Build/LMY47X) AppleWebKit/537.36 (KHTML, like Gecko) SamsungBrowser/3.2 Chrome/38.0.2125.102 Mobile Safari/537.36"
access_log:87.120.115.119 - - [19/Nov/2024:15:36:28 +0000] "GET /_profiler/phpinfo HTTP/1.1" 404 10086 "-" "Mozilla/5.0 (Linux; Android 9; SAMSUNG SM-G960F Build/PPR1.180610.011) AppleWebKit/537.36 (KHTML, like Gecko) SamsungBrowser/8.2 Chrome/63.0.3239.111 Mobile Safari/537.36"
access_log:185.208.156.160 - - [20/Nov/2024:05:04:26 +0000] "GET / HTTP/1.1" 200 163 "-" "Mozilla/5.0 (Linux; Android 9; SAMSUNG SM-G950F Build/PPR1.180610.011) AppleWebKit/537.36 (KHTML, like Gecko) SamsungBrowser/9.4 Chrome/67.0.3396.87 Mobile Safari/537.36"
access_log:78.153.140.224 - - [20/Nov/2024:12:12:07 +0000] "GET /BU/.env HTTP/1.1" 403 10066 "-" "Mozilla/5.0 (Linux; Android 5.0.1; SAMSUNG SPH-L720T Build/LRX22C) AppleWebKit/537.36 (KHTML, like Gecko) SamsungBrowser/2.1 Chrome/34.0.1847.76 Mobile Safari/537.36"
access_log:78.153.140.224 - - [20/Nov/2024:12:12:21 +0000] "GET /Stag/.env HTTP/1.1" 403 10070 "-" "Mozilla/5.0 (Linux; Android 7.0; SAMSUNG SM-N920T Build/NRD90M) AppleWebKit/537.36 (KHTML, like Gecko) SamsungBrowser/6.2 Chrome/56.0.2924.87 Mobile Safari/537.36"
modsec_audit.log:User-Agent: Mozilla/5.0 (Linux; Android 5.1.1; SAMSUNG SM-G920T Build/LMY47X) AppleWebKit/537.36 (KHTML, like Gecko) SamsungBrowser/3.2 Chrome/38.0.2125.102 Mobile Safari/537.36
modsec_audit.log:User-Agent: Mozilla/5.0 (Linux; Android 5.1.1; SAMSUNG SM-G925F Build/LMY47X) AppleWebKit/537.36 (KHTML, like Gecko) SamsungBrowser/3.2 Chrome/38.0.2125.102 Mobile Safari/537.36
modsec_audit.log:User-Agent: Mozilla/5.0 (Linux; Android 9; SAMSUNG SM-G960F Build/PPR1.180610.011) AppleWebKit/537.36 (KHTML, like Gecko) SamsungBrowser/8.2 Chrome/63.0.3239.111 Mobile Safari/537.36
modsec_audit.log:User-Agent: Mozilla/5.0 (Linux; Android 9; SAMSUNG SM-G950F Build/PPR1.180610.011) AppleWebKit/537.36 (KHTML, like Gecko) SamsungBrowser/9.4 Chrome/67.0.3396.87 Mobile Safari/537.36
modsec_audit.log:User-Agent: Mozilla/5.0 (Linux; Android 5.0.1; SAMSUNG SPH-L720T Build/LRX22C) AppleWebKit/537.36 (KHTML, like Gecko) SamsungBrowser/2.1 Chrome/34.0.1847.76 Mobile Safari/537.36
modsec_audit.log:User-Agent: Mozilla/5.0 (Linux; Android 7.0; SAMSUNG SM-N920T Build/NRD90M) AppleWebKit/537.36 (KHTML, like Gecko) SamsungBrowser/6.2 Chrome/56.0.2924.87 Mobile Safari/537.36
modsec_audit.log:User-Agent: Samsung SM-G781W (Android)
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!):
{
"system": {
"instanceid": "***REMOVED SENSITIVE VALUE***",
"passwordsalt": "***REMOVED SENSITIVE VALUE***",
"secret": "***REMOVED SENSITIVE VALUE***",
"trusted_domains": [
"ak.modusresearch.com"
],
"default_phone_region": "CA",
"datadirectory": "***REMOVED SENSITIVE VALUE***",
"dbtype": "mysql",
"version": "30.0.2.2",
"overwrite.cli.url": "https:\/\/ak.modusresearch.com\/nextcloud",
"overwriteprotocol": "https",
"overwritehost": "ak.modusresearch.com",
"dbname": "***REMOVED SENSITIVE VALUE***",
"dbhost": "***REMOVED SENSITIVE VALUE***",
"dbport": "",
"dbtableprefix": "oc_",
"dbuser": "***REMOVED SENSITIVE VALUE***",
"dbpassword": "***REMOVED SENSITIVE VALUE***",
"installed": true,
"mysql.utf8mb4": true,
"maintenance": false,
"theme": "",
"loglevel": 1,
"mail_smtpmode": "smtp",
"mail_smtpsecure": "ssl",
"mail_sendmailmode": "smtp",
"mail_domain": "***REMOVED SENSITIVE VALUE***",
"mail_smtphost": "***REMOVED SENSITIVE VALUE***",
"mail_smtpport": "465",
"mail_from_address": "***REMOVED SENSITIVE VALUE***",
"maintenance_window_start": 7
}
}
Apps
The output of occ app:list
(if possible).
It doesn’t get as far as apps, so I haven’t included this
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.