NginxProxyManager / nginx-proxy-manager

Docker container for managing Nginx proxy hosts with a simple, powerful interface
https://nginxproxymanager.com
MIT License
22.01k stars 2.53k forks source link

Nextcloud + Collabora + Nginx Proxy Manager #1881

Open dexter74 opened 2 years ago

dexter74 commented 2 years ago

Describe the bug Nextcloud office has not work with Domain SSL with Nginx.


Nginx Proxy Manager Version

jc21/nginx-proxy-manager:latest

To Reproduce

Steps to reproduce the behavior:


Expected behavior Edit file with Office Nextcloud with Domain https .


Screenshots

Portainer

Collabora (Return Code: OK) image

Install Application Nextcloud for Office image

Settings image

Create a File image

image

Error image

image

image


Operating System Debian + Docker


Additional context In Local was work perfect, i think is Nginx has broke.


Documentation Nginx Reverse Proxy

I not very understand parameters .

wsd-00001-00045 2022-02-23 02:02:05.122042 +0000 [ websrv_poll ] ERR  Socket #28 SSL BIO error: error:1420C0CF:SSL routines:ssl_write_internal:protocol is shutdown (ENOENT: No such file or directory)| ./net/SslSocket.hpp:348
wsd-00001-00045 2022-02-23 02:02:05.122190 +0000 [ websrv_poll ] ERR  Error while handling poll for socket #28 at 0 in websrv_poll: error:1420C0CF:SSL routines:ssl_write_internal:protocol is shutdown| net/Socket.cpp:466
wsd-00001-01926 2022-02-23 02:02:07.145984 +0000 [ docbroker_014 ] ERR  No acceptable WOPI hosts found matching the target host [nextcloud.drthrax74.ddns.net] in config.| wsd/Storage.cpp:276
wsd-00001-01926 2022-02-23 02:02:07.146399 +0000 [ docbroker_014 ] ERR  loading document exception: No acceptable WOPI hosts found matching the target host [nextcloud.drthrax74.ddns.net] in config.| wsd/DocumentBroker.cpp:2081
wsd-00001-01926 2022-02-23 02:02:07.146574 +0000 [ docbroker_014 ] ERR  Failed to add session to [/index.php/apps/richdocuments/wopi/files/266_oc4sxp99tr0e] with URI [https://nextcloud.drthrax74.ddns.net/index.php/apps/richdocuments/wopi/files/266_oc4sxp99tr0e?access_token=pKFEWesUq4tQhB2dVM5GX1LGZ8WHCQc1&access_token_ttl=0&permission=edit]: No acceptable WOPI hosts found matching the target host [nextcloud.drthrax74.ddns.net] in config.| wsd/DocumentBroker.cpp:2043
wsd-00001-01926 2022-02-23 02:02:07.146739 +0000 [ docbroker_014 ] ERR  Unauthorized Request while starting session on /index.php/apps/richdocuments/wopi/files/266_oc4sxp99tr0e for socket #20. Terminating connection. Error: No acceptable WOPI hosts found matching the target host [nextcloud.drthrax74.ddns.net] in config.| wsd/COOLWSD.cpp:3692
wsd-00001-01926 2022-02-23 02:02:07.150003 +0000 [ docbroker_014 ] ERR  Socket #20 SSL BIO error: error:14094123:SSL routines:ssl3_read_bytes:application data after close notify (ENOENT: No such file or directory)| ./net/SslSocket.hpp:348
wsd-00001-01926 2022-02-23 02:02:07.150424 +0000 [ docbroker_014 ] ERR  Error while handling poll for socket #20 at 1 in docbroker_014: error:14094123:SSL routines:ssl3_read_bytes:application data after close notify| net/Socket.cpp:466
wsd-00001-01926 2022-02-23 02:02:07.150749 +0000 [ docbroker_014 ] ERR  Invalid or unknown session [191] to remove.| wsd/DocumentBroker.cpp:2121
wsd-00001-01926 2022-02-23 02:02:07.150981 +0000 [ docbroker_014 ] ERR  No socket associated with WebSocketHandler 0x7fb6ec0122d0 to send Close Frame to.| ./net/WebSocketHandler.hpp:177
frk-00034-00034 2022-02-23 02:02:07.162018 +0000 [ forkit ] ERR  Failed to unmount [/opt/cool/child-roots/0kvUN5E0GmiDOiqQ/tmp]| common/JailUtil.cpp:70
frk-00034-00034 2022-02-23 02:02:07.179437 +0000 [ forkit ] ERR  Failed to unmount [/opt/cool/child-roots/0kvUN5E0GmiDOiqQ/lo]| common/JailUtil.cpp:70
frk-00034-00034 2022-02-23 02:02:07.192678 +0000 [ forkit ] ERR  Failed to unmount [/opt/cool/child-roots/0kvUN5E0GmiDOiqQ]| common/JailUtil.cpp:70
frk-00034-00034 2022-02-23 02:02:09.351324 +0000 [ forkit ] ERR  Failed to unmount [/opt/cool/child-roots/NANUD8CTyYp7C1gl/tmp]| common/JailUtil.cpp:70
frk-00034-00034 2022-02-23 02:02:09.363291 +0000 [ forkit ] ERR  Failed to unmount [/opt/cool/child-roots/NANUD8CTyYp7C1gl/lo]| common/JailUtil.cpp:70
frk-00034-00034 2022-02-23 02:02:09.375053 +0000 [ forkit ] ERR  Failed to unmount [/opt/cool/child-roots/NANUD8CTyYp7C1gl]| common/JailUtil.cpp:70
wsd-00001-00045 2022-02-23 02:02:26.727257 +0000 [ websrv_poll ] ERR  Unknown resource: //lool/convert-to/png , host: collabora.drthrax74.ddns.net, path: 3
zeitue commented 2 years ago

I've got the same issue Nextcloud + Postgres + Collabora + Nginx Proxy Manager

Has any fix been found for this issue yet?

dexter74 commented 2 years ago

Need HELP

dexter74 commented 2 years ago

up

deanhumphreys commented 2 years ago

I also have this issue. Using træfik. Anyone?

deanhumphreys commented 2 years ago

Ready to accept connections on port 9980.

wsd-00001-00040 2022-04-01 18:27:47.088987 +0000 [ websrv_poll ] ERR Unknown resource: //lool/convert-to/png , host: collabora.bliksem.me, path: 3

[0] 'lool'

[1] 'convert-to' Screenshot from 2022-04-01 20-31-32

MickMorley commented 2 years ago

I was getting the same error. This helped me https://github.com/nextcloud/richdocuments/issues/917#issuecomment-626316169

This person pointed me toward that solution https://help.nextcloud.com/t/collabora-cant-open-documents/81534/2

I had an old installed of Nextcloud Office (I don't remember installing it. Must of been years ago.) Once I wiped all traces of it and reinstalled, it worked.

jon6fingrs commented 2 years ago

I fixed this by specifying the "local" docker ip address of nextcloud in the collabora container and specifying the "local" address of the collabora container in nextcloud. I noticed that when inside the containers, when I would attempt to ping the other container, the ip address would resolve to the container (nextcloud or collabora) directly instead of to nginx from which nextcloud or collabora would be contacted.

So for example, my nginx has an ip through macvlan and is 10.0.0.144 when accessed from within my internal network.

For the collabora container I added this:

extra_hosts:
  - "nextcloud.katz.vision:172.31.0.8"
  - "collabora.katz.vision:172.31.0.8"
  - "collabora:172.31.0.8"

172.31.0.8 is the nginx container internal docker ip address.

and for the nextcloud container (on my NAS so a different machine but connected to my server over a faster, private network), I added this:

extra_hosts:
  - "collabora.katz.vision:10.10.0.18"
  - "nextcloud.katz.vision:10.10.0.18"

10.10.0.18 is the private IP address for my server where nginx and collabora are running.

So since doing this, I have had no problems. Not sure if what I did actually solved the problem or if it did, that all of what I did was necessary, but it works so I'm done messing with it.

github-actions[bot] commented 6 months ago

Issue is now considered stale. If you want to keep it open, please comment :+1: