NextCloud Client on MacOS can't login caused by extra ":" in URL login

Hi guys, recently after updating my NextCloud client to the latest 3.15.2 version I no longer can login.

The reason why it can’t login I guess was because when I try to login via the client using my NC IP address, the client automatically added a “:” at the end of the url as shown in the picture below.

There was not any problem with iOS but only on the Mac Client OS. Not sure if anyone is also facing this problem?

1 Like

What happens if you type a forward slash after the port?

Does nc -zv 192.168.1.253 30027 succeed on the console?

1 Like

The „:“ is only added as part of the error: https://github.com/nextcloud/desktop/blob/abe5e1be86026dbc889c3e4b36f3aac23475e653/src/gui/owncloudsetupwizard.cpp#L305. The issue is somewhere else

1 Like

I tried with the forward slash in the end, it just says “Server address does not seem to be invalid”.

Tried the console and it succeeded:
Connection to 192.168.1.253 30027 port [tcp/*] succeeded!

I see so you are implying that it might not be caused by the “:” right? Hmmm…in this case I guess the problem wasn’t that straightforward.

“Server address does not seem to be invalid”

That doesn’t sound likely. Screenshot?

I see so you are implying that it might not be caused by the “:” right? Hmmm…in this case I guess the problem wasn’t that straightforward.

That’s what he’s saying.

If this was just an update, how did you end up in the Add Nextcloud account setup page? Are you also trying to add a new account or something?

In any case, what happens when you visit that exact same URL from a web browser on the very same device your Desktop client is installed on?

I was trying to add new account but failed, then I proceed to remove all the accounts and re-connect it. Basically then I no longer can login with IP address and port number. But if I uses CloudFlare Tunnel with a specific domain name then the problem does not exist.

It only exists when you are trying to login with IP and port number.

I tried access through the browser on the same device and it is accessible.

That’s a backslash, not a forward slash. And, the message uses the word, “valid”, not, “invalid”.

My bad and you are right. I actually did both for backslash and forward slash. Both fail to connect. Thanks for the help.

I doubt both fail to connect. With a backslash, it says quite rightly that the address is not valid. With a forward slash, the address is definitely valid, but fails to connect. Is that correct?

So this was working previously? Anything else changed? Is the CF Tunnel new?

When you visit http://192.168.253:30027/status.php in your browser what appears and does your URL stay the same including protocol/host_or_ip/port/etc?

Can you post your server config (occ config:list system)? Maybe give us a bit more context about your environment by filling out the support template.

Yes exactly that.

Yes it is working previously with the IP and Port and alongside with CF Tunnel. The only thing changes was that I uninstall and reinstall/update to the latest NextCloud Client and things does not work for IP & Port anymore but it works with domain through CF Tunnel.

This is the output for status.php:
{“installed”:true,“maintenance”:false,“needsDbUpgrade”:false,“version”:“30.0.4.1”,“versionstring”:“30.0.4”,“edition”:“”,“productname”:“Nextcloud”,“extendedSupport”:false}

And yes the URL stays the same with http protocol and etc.

Didn’t know there is a support template, thanks for the guide and the following is the information as requested.

The Basics

  • Nextcloud Server version (e.g., 29.x.x): 30.0.4
  • Operating system and version (e.g., Ubuntu 24.04): TrueNas Scale 24.10.0.2
  • Is this the first time you’ve seen this error? (Yes / No): Yes
  • When did this problem seem to first start? After updating to the latest NC Client.

Summary of the issue you are facing:

After updating my NextCloud client to the latest 3.15.2 version I no longer can login using IP and Port number.

There was no problem with iOS but only on the Mac Client OS. Not sure if anyone is also facing this problem?

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

Login with NC Client on MacOS with IP and Port number.
exp: http://192.168.x.xxx:30027

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.

2025-01-04 03:59:30.734616+00:00127.0.0.1 - - [04/Jan/2025:03:59:30 +0000] "GET /status.php HTTP/1.1" 200 1541 "-" "curl/7.88.1"
2025-01-04 03:59:40.857624+00:00127.0.0.1 - - [04/Jan/2025:03:59:40 +0000] "GET /status.php HTTP/1.1" 200 1551 "-" "curl/7.88.1"
2025-01-04 03:59:51.002206+00:00127.0.0.1 - - [04/Jan/2025:03:59:50 +0000] "GET /status.php HTTP/1.1" 200 1545 "-" "curl/7.88.1"
2025-01-04 04:00:01.115775+00:00127.0.0.1 - - [04/Jan/2025:04:00:01 +0000] "GET /status.php HTTP/1.1" 200 1543 "-" "curl/7.88.1"
2025-01-04 04:00:11.233832+00:00127.0.0.1 - - [04/Jan/2025:04:00:11 +0000] "GET /status.php HTTP/1.1" 200 1545 "-" "curl/7.88.1"
2025-01-04 04:00:21.363871+00:00127.0.0.1 - - [04/Jan/2025:04:00:21 +0000] "GET /status.php HTTP/1.1" 200 1551 "-" "curl/7.88.1"
2025-01-04 04:00:31.520244+00:00127.0.0.1 - - [04/Jan/2025:04:00:31 +0000] "GET /status.php HTTP/1.1" 200 1539 "-" "curl/7.88.1"

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": {
        "htaccess.RewriteBase": "\/",
        "memcache.local": "\\OC\\Memcache\\APCu",
        "apps_paths": [
            {
                "path": "\/var\/www\/html\/apps",
                "url": "\/apps",
                "writable": false
            },
            {
                "path": "\/var\/www\/html\/custom_apps",
                "url": "\/custom_apps",
                "writable": true
            }
        ],
        "memcache.distributed": "\\OC\\Memcache\\Redis",
        "memcache.locking": "\\OC\\Memcache\\Redis",
        "redis": {
            "host": "***REMOVED SENSITIVE VALUE***",
            "password": "***REMOVED SENSITIVE VALUE***",
            "port": 6379
        },
        "upgrade.disable-web": true,
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "dbtype": "pgsql",
        "version": "30.0.4.1",
        "overwrite.cli.url": "http:\/\/localhost",
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbport": "",
        "dbtableprefix": "oc_",
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "installed": true,
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "loglevel": 2,
        "maintenance": false,
        "trusted_domains": [
            "*",
            "127.0.0.1",
            "192.168.1.253:30027",
            "localhost",
            "nextcloud"
        ]
    }
}

Apps

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

Enabled:
  - activity: 3.0.0
  - app_api: 4.0.3
  - bruteforcesettings: 3.0.0
  - circles: 30.0.0
  - cloud_federation_api: 1.13.0
  - comments: 1.20.1
  - contactsinteraction: 1.11.0
  - dashboard: 7.10.0
  - dav: 1.31.1
  - federatedfilesharing: 1.20.0
  - federation: 1.20.0
  - files: 2.2.0
  - files_downloadlimit: 3.0.0
  - files_pdfviewer: 3.0.0
  - files_reminders: 1.3.0
  - files_sharing: 1.22.0
  - files_trashbin: 1.20.1
  - files_versions: 1.23.0
  - firstrunwizard: 3.0.0
  - logreader: 3.0.0
  - lookup_server_connector: 1.18.0
  - nextcloud_announcements: 2.0.0
  - notifications: 3.0.0
  - oauth2: 1.18.1
  - password_policy: 2.0.0
  - photos: 3.0.2
  - privacy: 2.0.0
  - provisioning_api: 1.20.0
  - recommendations: 3.0.0
  - related_resources: 1.5.0
  - serverinfo: 2.0.0
  - settings: 1.13.0
  - sharebymail: 1.20.0
  - support: 2.0.0
  - survey_client: 2.0.0
  - systemtags: 1.20.0
  - text: 4.1.0
  - theming: 2.5.0
  - twofactor_backupcodes: 1.19.0
  - updatenotification: 1.20.0
  - user_status: 1.10.0
  - viewer: 3.0.0
  - weather_status: 1.10.0
  - webhook_listeners: 1.1.0-dev
  - workflowengine: 2.12.0
Disabled:
  - admin_audit: 1.20.0
  - encryption: 2.18.0
  - files_external: 1.22.0
  - suspicious_login: 8.0.0
  - twofactor_nextcloud_notification: 4.0.0
  - twofactor_totp: 12.0.0-dev
  - user_ldap: 1.21.0