server icon indicating copy to clipboard operation
server copied to clipboard

[Bug]: Safari browser does not show login form

Open hunter-nl opened this issue 2 years ago • 15 comments

⚠️ This issue respects the following points: ⚠️

  • [X] This is a bug, not a question or a configuration/webserver/proxy issue.
  • [X] This issue is not already reported on Github (I've searched it).
  • [X] Nextcloud Server is up to date. See Maintenance and Release Schedule for supported versions.
  • [X] Nextcloud Server is running on 64bit capable CPU, PHP and OS.
  • [X] I agree to follow Nextcloud's Code of Conduct.

Bug description

With Safari browser and NC 26.0.2 the login form is not showing. Can not login. In the browser console the following error is provided: SyntaxError: Unexpected end of script in core-common.js:2

With Firefox and Google Chrome browsers this issue does not appear and can login into Nextcloud.

Steps to reproduce

  1. Use latest Safari browser
  2. Open the nextcloud site. Background is displayed, but no login form
  3. Can not login
  4. Tried with Firefox browser, is working
  5. Tried with Google Chrome browser, is working

Expected behavior

Login page should be loaded correctly in Safari browser.

Installation method

Community Manual installation with Archive

Nextcloud Server version

26

Operating system

RHEL/CentOS

PHP engine version

PHP 8.1

Web server

Nginx

Database engine version

MariaDB

Is this bug present after an update or on a fresh install?

Updated from a minor version (ex. 22.2.3 to 22.2.4)

Are you using the Nextcloud Server Encryption module?

Encryption is Disabled

What user-backends are you using?

  • [X] Default user-backend (database)
  • [ ] LDAP/ Active Directory
  • [ ] SSO - SAML
  • [ ] Other

Configuration report

{
    "system": {
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "***REMOVED SENSITIVE VALUE***"
        ],
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "tempdirectory": "\/var\/www\/nextcloud\/tmp",
        "overwrite.cli.url": "***REMOVED SENSITIVE VALUE***",
        "dbtype": "mysql",
        "version": "26.0.2.1",
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbtableprefix": "nc_",
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "installed": true,
        "filelocking.enabled": true,
        "memcache.local": "\\OC\\Memcache\\APCu",
        "memcache.locking": "\\OC\\Memcache\\Redis",
        "redis": {
            "host": "***REMOVED SENSITIVE VALUE***",
            "port": 0,
            "timeout": 1.5
        },
        "preview_libreoffice_path": "\/usr\/bin\/soffice",
        "preview_office_cl_parameters": " --headless --nologo --nofirststartwizard --invisible --norestore -convert-to pdf -outdir ",
        "trusted_proxies": "***REMOVED SENSITIVE VALUE***",
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpmode": "smtp",
        "mail_domain": "***REMOVED SENSITIVE VALUE***",
        "loglevel": 1,
        "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpport": "25",
        "singleuser": false,
        "maintenance": false,
        "logtimezone": "Europe\/Amsterdam",
        "log_rotate_size": 104857600,
        "activity_expire_days": 30,
        "theme": "",
        "updatechecker": true,
        "appstore.experimental.enabled": true,
        "updater.release.channel": "stable",
        "trashbin_retention_obligation": "auto, 90",
        "versions_retention_obligation": "auto, 90",
        "auth.bruteforce.protection.enabled": true,
        "ldapIgnoreNamingRules": false,
        "ldapProviderFactory": "\\OCA\\User_LDAP\\LDAPProviderFactory",
        "twofactor_enforced": "true",
        "twofactor_enforced_groups": [],
        "twofactor_enforced_excluded_groups": [
            "***REMOVED SENSITIVE VALUE***",
            "***REMOVED SENSITIVE VALUE***"
        ],
        "mysql.utf8mb4": true,
        "app_install_overwrite": [
            "external",
            "groupfolders",
            "files_antivirus",
            "impersonate",
            "richdocumentscode"
        ],
        "skeletondirectory": "\/var\/www\/nextcloud\/skeleton",
        "mail_sendmailmode": "smtp",
        "overwriteprotocol": "https",
        "default_phone_region": "NL",
        "auth.webauthn.enabled": false
    }
}

List of activated Apps

Enabled:
  - activity: 2.18.0
  - admin_audit: 1.16.0
  - announcementcenter: 6.6.1
  - bruteforcesettings: 2.6.0
  - calendar: 4.3.4
  - circles: 26.0.0
  - cloud_federation_api: 1.9.0
  - comments: 1.16.0
  - contacts: 5.2.0
  - contactsinteraction: 1.7.0
  - dav: 1.25.0
  - external: 5.1.0
  - federatedfilesharing: 1.16.0
  - federation: 1.16.0
  - files: 1.21.1
  - files_accesscontrol: 1.16.0
  - files_antivirus: 5.0.0
  - files_automatedtagging: 1.16.1
  - files_downloadactivity: 1.16.0
  - files_external: 1.18.0
  - files_pdfviewer: 2.7.0
  - files_retention: 1.15.0
  - files_rightclick: 1.5.0
  - files_sharing: 1.18.0
  - files_trashbin: 1.16.0
  - files_versions: 1.19.1
  - groupfolders: 14.0.2
  - impersonate: 1.13.1
  - logreader: 2.11.0
  - lookup_server_connector: 1.14.0
  - maps: 1.0.2
  - nextcloud_announcements: 1.15.0
  - notifications: 2.14.0
  - oauth2: 1.14.0
  - password_policy: 1.16.0
  - photos: 2.2.0
  - provisioning_api: 1.16.0
  - quota_warning: 1.17.0
  - related_resources: 1.1.0-alpha1
  - serverinfo: 1.16.0
  - settings: 1.8.0
  - sharebymail: 1.16.0
  - systemtags: 1.16.0
  - text: 3.7.2
  - theming: 2.1.1
  - theming_customcss: 1.14.0
  - twofactor_admin: 4.1.9
  - twofactor_backupcodes: 1.15.0
  - twofactor_totp: 8.0.0
  - twofactor_webauthn: 1.2.0
  - updatenotification: 1.16.0
  - user_status: 1.6.0
  - viewer: 1.10.0
  - weather_status: 1.6.0
  - workflowengine: 2.8.0
Disabled:
  - dashboard: 7.6.0 (installed 7.0.0)
  - encryption: 2.14.0 (installed 1.1.0)
  - firstrunwizard: 2.15.0 (installed 1.1)
  - group_everyone: 0.1.12 (installed 0.1.12)
  - guests: 2.5.0 (installed 2.5.0)
  - mail: 3.1.1 (installed 3.1.1)
  - privacy: 1.10.0 (installed 1.4.0)
  - recommendations: 1.5.0 (installed 0.4.0)
  - richdocuments: 8.0.2 (installed 8.0.2)
  - richdocumentscode: 22.5.1301 (installed 22.5.1301)
  - spreed: 16.0.4 (installed 16.0.4)
  - support: 1.9.0 (installed 1.0.0)
  - survey_client: 1.14.0 (installed 1.4.0)
  - suspicious_login: 4.4.0
  - talk_matterbridge: 1.26.0 (installed 1.26.0)
  - tasks: 0.15.0 (installed 0.15.0)
  - twofactor_email: 2.7.3 (installed 2.7.3)
  - user_ldap: 1.16.0 (installed 1.9.0)
  - user_saml: 5.2.0 (installed 5.2.0)

Nextcloud Signing status

No errors have been found.

Nextcloud Logs

Not related to the issue.

Additional info

Safari browser console: SyntaxError: Unexpected end of script in core-common.js:2

hunter-nl avatar May 31 '23 14:05 hunter-nl

Can’t confirm, it’s working fine here in safari 16.3. can you try clearing the cache?

SystemKeeper avatar Jun 01 '23 05:06 SystemKeeper

@hunter-nl Can you be more explicit about what you mean when you say "latest Safari"? It helps to keep Issues evergreen.

You aren't referring to the Tech Preview that happened to be released on the same day as your report are you? https://webkit.org/blog/14200/release-notes-for-safari-technology-preview-171/

joshtrichards avatar Jun 01 '23 12:06 joshtrichards

Safari version 16.5 on MacOS 13.4 (ventura) on M2 Pro mini system. And clearing cache does not help.

hunter-nl avatar Jun 01 '23 13:06 hunter-nl

Can you try with a different browser like firefox or chrome?

szaimen avatar Jun 05 '23 10:06 szaimen

@szaimen as in opening post mentioned. Firefox and chrome working fine. Issue exist only with Safari.

hunter-nl avatar Jun 05 '23 10:06 hunter-nl

Ah I see. Sorry, overread this. Do you have some browser extensions installed maybe that could block it from working?

szaimen avatar Jun 05 '23 10:06 szaimen

I’ve already disabled all the extensions. Problem still exist.

hunter-nl avatar Jun 05 '23 10:06 hunter-nl

Hi @hunter-nl - I haven't seen a rush of issues from other Safari users. This suggests something is going on that is specific to your environment or setup.

Do you have more than one Saferi device to compare behavior on?

If this continues two ideas:

  • check integrity of NC server installation
  • take a deeper look at the browser console for any additional errors besides the one provided that might provide further clues. Also check the network tab for any things that aren't loading properly behind the scenes

joshtrichards avatar Aug 27 '23 16:08 joshtrichards

This issue has been automatically marked as stale because it has not had recent activity and seems to be missing some essential information. It will be closed if no further activity occurs. Thank you for your contributions.

nextcloud-command avatar Sep 27 '23 00:09 nextcloud-command

Nextcloud 27 with recent updates. iPad with Safari on iOS 12.5.7. No login form. And thus unable to login thru the app.

ssstain avatar Oct 09 '23 01:10 ssstain

Same happens with Nextcloud 27.1.3 and iPad Pro 2017 on iPadOS 14.4.2

Some suggested that the issue comes from an option enabled when using Cloudfare but for me it's not the case, in fact trying to connect from local network does not show the login form either.

On my iPad 9th gen on iPadOS 15.0.1 and every non-Apple device there is no such issue, so I'm assuming that NC started using some javascript feature not available on older safari versions so the login form does not appear

btw when you are redirected to login from the ios client after inserting the server address (on the device that the login form is not showed on safari) it shows the page with the Log in button grayed out, so in this case the page is not totally empty

mineketchup avatar Oct 28 '23 15:10 mineketchup

Same problem on iPhone 5s with iOS 12. On iPhone SE everything works. Nextcloud 27.1.7.

MrFermer avatar Mar 29 '24 13:03 MrFermer

same problem on ipad mini 2 with iOS12, tried with firefox, safary and chrome, not showing login fields, Nextcloud 29.0.2.2

xrogeman avatar Jun 28 '24 19:06 xrogeman

Please confirm your situation meets the system requirements:

https://docs.nextcloud.com/server/latest/admin_manual/installation/system_requirements.html#mobile-apps

joshtrichards avatar Jun 30 '24 02:06 joshtrichards

Please confirm your situation meets the system requirements:

https://docs.nextcloud.com/server/latest/admin_manual/installation/system_requirements.html#mobile-apps

Yeah, we are all on lower versions than what's required but since the latest files app seems to be installable on lower-than-required versions like ios 14 this created this issue and confusion

mineketchup avatar Jun 30 '24 10:06 mineketchup

what a way to make obsolete a working tablet/phone

xrogeman avatar Jul 03 '24 04:07 xrogeman

This issue has been automatically marked as stale because it has not had recent activity and seems to be missing some essential information. It will be closed if no further activity occurs. Thank you for your contributions.

nextcloud-command avatar Oct 23 '24 00:10 nextcloud-command

Requst to reopen, as it still presists on: iPad Air2 (A1566) iOS 15.8.3 NC 30.0.8, just updated fro latest 29 The above should be supported, as per docs. I’m experiencing the issue over and over again, on +20 versions of NC and many versions of iOS-Safari!

Ref: https://help.nextcloud.com/t/cant-see-login-fields-on-safari/168509/3

make-nz avatar Mar 27 '25 10:03 make-nz

Image Image

In Developer-Tool this shows up and the login div has no content, which seems to me like some JS issue.

make-nz avatar Mar 27 '25 10:03 make-nz

@joshtrichards hope you can regard this as ‘more info’ and reopen the issue. I’m the main admin for this install and know my way around PHP, JS, CSS… to help

make-nz avatar Mar 27 '25 10:03 make-nz

See #51506 for current

joshtrichards avatar Mar 27 '25 14:03 joshtrichards