desktop icon indicating copy to clipboard operation
desktop copied to clipboard

[Bug]: Failed to access nextcloud under proxy network

Open zhangga1302 opened this issue 2 years ago • 5 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] I agree to follow Nextcloud's Code of Conduct.

Bug description

Failed to access nextcloud under proxy network.

  1. After the browser opens and logs in to nextcloud, click "file" or "calendar", and the page is always loading. Use F12 to view and find that the caldav or WebDAV connection will always be in the pending state, and the page will not be called. image

  2. Use the nextcloud win client to add a user, pop up the connection, log in and authorize, and the user will be permanently stuck in the following figure, and then prompt for timeout. image

Steps to reproduce

I tried various methods, such as modifying the configuration, reinstalling, and so on, but they were all invalid

Expected behavior

修复这个问题,个人感觉是存在某些bug

Installation method

Manual installation

Operating system

RHEL/CentOS

PHP engine version

PHP 8.0

Web server

Nginx

Database engine version

MySQL

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

Fresh Nextcloud Server install

Are you using the Nextcloud Server Encryption module?

No response

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": [
            "43.138.171.97:1208"
        ],
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "dbtype": "mysql",
        "version": "24.0.2.1",
        "overwrite.cli.url": "http:\/\/43.138.171.97:1208",
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbport": "",
        "dbtableprefix": "oc_",
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "installed": true,
        "auth.bruteforce.protection.enabled": false
    }
}

List of activated Apps

root@VM-8-3-centos nextcloud]# sudo -u www php occ app:list
The current PHP memory limit is below the recommended value of 512MB.
Enabled:
  - accessibility: 1.10.0
  - activity: 2.16.0
  - calendar: 3.4.0
  - circles: 24.0.0
  - cloud_federation_api: 1.7.0
  - comments: 1.14.0
  - contactsinteraction: 1.5.0
  - dashboard: 7.4.0
  - dav: 1.22.0
  - federatedfilesharing: 1.14.0
  - federation: 1.14.0
  - files: 1.19.0
  - files_pdfviewer: 2.5.0
  - files_rightclick: 1.3.0
  - files_sharing: 1.16.2
  - files_trashbin: 1.14.0
  - files_versions: 1.17.0
  - files_videoplayer: 1.13.0
  - firstrunwizard: 2.13.0
  - logreader: 2.9.0
  - lookup_server_connector: 1.12.0
  - mail: 1.13.5
  - nextcloud_announcements: 1.13.0
  - notifications: 2.12.0
  - oauth2: 1.12.0
  - onlyoffice: 7.5.2
  - password_policy: 1.14.0
  - photos: 1.6.0
  - privacy: 1.8.0
  - provisioning_api: 1.14.0
  - recommendations: 1.3.0
  - serverinfo: 1.14.0
  - settings: 1.6.0
  - sharebymail: 1.14.0
  - support: 1.7.0
  - survey_client: 1.12.0
  - systemtags: 1.14.0
  - text: 3.5.1
  - theming: 1.15.0
  - twofactor_backupcodes: 1.13.0
  - updatenotification: 1.14.0
  - user_status: 1.4.0
  - viewer: 1.8.0
  - weather_status: 1.4.0
  - workflowengine: 2.6.0
Disabled:
  - admin_audit
  - encryption
  - files_external
  - user_ldap

Nextcloud Signing status

Technical information
=====================
The following list covers which files have failed the integrity check. Please read
the previous linked documentation to learn more about the errors and how to fix
them.

Results
=======
- core
	- EXTRA_FILE
		- latest.zip

Raw output
==========
Array
(
    [core] => Array
        (
            [EXTRA_FILE] => Array
                (
                    [latest.zip] => Array
                        (
                            [expected] => 
                            [current] => fecb5f87fea4d4d7cd12b2631313d603db60bca83bd2b443b30a26860a3efca6d7632bdd750574f8ef858cd3d788b0acef2998d02ba398d48715b4f14da87187
                        )

                )

        )

)

Nextcloud Logs

There are no log records in the time point related to the operation

Additional info

nothing

zhangga1302 avatar Jun 28 '22 01:06 zhangga1302

Hi, did you see our guide for Nextcloud behind a reverse proxy? https://docs.nextcloud.com/server/stable/admin_manual/configuration_server/reverse_proxy_configuration.html

kesselb avatar Jun 28 '22 21:06 kesselb

Hi, did you see our guide for Nextcloud behind a reverse proxy? https://docs.nextcloud.com/server/stable/admin_manual/configuration_server/reverse_proxy_configuration.html

You understand me wrong. My nextcloud service itself does not use a proxy. I mean accessing the nextcloud service through a PC interrupt that must set an agent.

zhangga1302 avatar Jun 29 '22 00:06 zhangga1302

image

Ah okay. Did you see that we have an option to configure a proxy in the client?

kesselb avatar Jun 29 '22 09:06 kesselb

image

Ah okay. Did you see that we have an option to configure a proxy in the client?

To be sure, I have configured an agent in the window operating system. When the browser accesses, it can log in using the system agent, but the file and calendar cannot be opened;

The proxy is also configured in the nextcloud client and cannot be connected at all

zhangga1302 avatar Jul 01 '22 01:07 zhangga1302

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 Aug 01 '22 00:08 nextcloud-command

This bug report did not receive an update in the last 4 weeks. Please take a look again and update the issue with new details, otherwise the issue will be automatically closed in 2 weeks. Thank you!

github-actions[bot] avatar Aug 29 '22 16:08 github-actions[bot]

This bug report is getting automatically closed due to no answer since the issue has been staled. Thank you!

github-actions[bot] avatar Sep 12 '22 16:09 github-actions[bot]