Collabora in Nextcloud 23.0.3


b0rgi85
Go to solution Solved by alturismo,

Recommended Posts

Hallo Zusammen,

 

ich nutze nun schon seit einiger Zeit Nextcloud und Collabora. Habe dazu damals die Anleitung von SpaceInvaderOne genutzt. Das hat bisher auch recht gut funktioniert. Nur leider ist seit einem Update nun die Funktion nicht mehr gegeben.
Ich habe von LetsEncrypt Container auf Swag umgestellt und habe die Nextcloud gestern auf 23.0.3 geupdatet. Für den Collabora Docker Container gab es wohl auch ein Update. Jetzt funktioniert nur irgendwie nix mehr.

In Nextcloud kriege ich angezeigt, dass der Server nicht verfügbar ist:
grafik.thumb.png.7396a545b16a6b7f2d450f659fb8632e.png

 

Den Container von Collabora habe ich bereits nach einer Anleitung hier im Forum angepasst und der startet nun auch wieder:
grafik.thumb.png.3fb1995ba7ae44803f4cbbd41695c988.png

Alias Group 1: https://subdomain.domain.de:443

 

Mein Proxy-Conf File in Swag/NGINX sieht wie folgt aus:

## Version 2021/05/18
# make sure that your dns has a cname set for collabora and that your collabora container is named collabora

server {
    listen 443 ssl;
    listen [::]:443 ssl;

    server_name collabora.*;

    include /config/nginx/ssl.conf;

    client_max_body_size 0;

    # enable for ldap auth, fill in ldap details in ldap.conf
    #include /config/nginx/ldap.conf;

    # enable for Authelia
    #include /config/nginx/authelia-server.conf;

    location / {
        # enable the next two lines for http auth
        #auth_basic "Restricted";
        #auth_basic_user_file /config/nginx/.htpasswd;

        # enable the next two lines for ldap auth
        #auth_request /auth;
        #error_page 401 =200 /ldaplogin;

        # enable for Authelia
        #include /config/nginx/authelia-location.conf;

        include /config/nginx/proxy.conf;
        include /config/nginx/resolver.conf;
        set $upstream_app Collabora;
        set $upstream_port 9980;
        set $upstream_proto https;
        proxy_pass $upstream_proto://$upstream_app:$upstream_port;

    }
}

 

Ich erreiche so zwar die WebGui über UnRaid aber Nextcloud kriegt keinen Connect hin.

Wenn ich mich lokal über UnRaid verbinde bekomme ich auch folgende Log-Einträge im Collabora Container:

wsd-00001-00035 2022-04-21 07:09:59.699683 +0000 [ websrv_poll ] ERR #27 Error while handling poll at 0 in websrv_poll: #27BIO error: 0, rc: -1: error:00000000:lib(0):func(0):reason(0):| net/Socket.cpp:467
wsd-00001-00035 2022-04-21 07:10:02.140967 +0000 [ websrv_poll ] WRN client - server version mismatch, disabling browser cache. Expected: 5e2e1b6| wsd/FileServer.cpp:510
wsd-00001-00035 2022-04-21 07:10:02.142462 +0000 [ websrv_poll ] ERR JWTAuth: verification failed; Expected: dDUkm-nUeVAQGvsNbXoEGDGIj3y3Tre5FxTol8E62CvN8wsmhfQiAbhui_eAOQ4lPQE0HIsKGJHkkE_eq7swhxkTiqrBDH23EaybQiUe7h5p5a8zY0IMp6j-BcHqgGjzMGKBHh1rJP_MQJCOVc1jhcTPaV79PV3WKvW35Ev9xSX8Sv3sHF308_xe8b3nfaFe9CyFb9FZJWth2hMzKRgwgHcQb_sBktfGxxhwBkbWTQpNVJzQq9tY6VolFJ1ZWa6fX28GVsIbbAjlmcmBg_QZjJ0oAhrL1LBt-DNjUmyK1HfSzrSKNj-v7Yip_mI06KRZG7ni-LzErpkIeh061orjig, Received: kVUFTABHu6tyikEaUuIU4D1gtbFoZkI2nJdnhxv7J226UtOMDbGencctSuhDYiMY4aI31jAVbHDE4mQT_kFlf3WRr1fjvkRyxEQSH0IUQPaKFIY4GBZWB_DGfg7QZVke1UKCC2_BMx6YsfBOHJP28i2fSnbOqhbTGKgAn-t5og4uy_Hgpw-9fPnwWTeIaBLR2Wv2wD4XpVZUvDqDukd5Vrx0i-Q9gbMlS7P0d0Qh1W9CQInrKBQUPje7PxSYMhpeKJVD1PjJXnnBvERyhKyyqKyeu3gcPVOhOpPW7c776fuDNaF7vcy9FOXLsRNthLkhlx3I7OwKEwm0EjT6AY8LJg| wsd/Auth.cpp:134
wsd-00001-00035 2022-04-21 07:10:02.248824 +0000 [ websrv_poll ] WRN client - server version mismatch, disabling browser cache. Expected: 5e2e1b6| wsd/FileServer.cpp:510
wsd-00001-00035 2022-04-21 07:10:02.140967 +0000 [ websrv_poll ] WRN client - server version mismatch, disabling browser cache. Expected: 5e2e1b6| wsd/FileServer.cpp:510
wsd-00001-00035 2022-04-21 07:10:02.142462 +0000 [ websrv_poll ] ERR JWTAuth: verification failed; Expected: dDUkm-nUeVAQGvsNbXoEGDGIj3y3Tre5FxTol8E62CvN8wsmhfQiAbhui_eAOQ4lPQE0HIsKGJHkkE_eq7swhxkTiqrBDH23EaybQiUe7h5p5a8zY0IMp6j-BcHqgGjzMGKBHh1rJP_MQJCOVc1jhcTPaV79PV3WKvW35Ev9xSX8Sv3sHF308_xe8b3nfaFe9CyFb9FZJWth2hMzKRgwgHcQb_sBktfGxxhwBkbWTQpNVJzQq9tY6VolFJ1ZWa6fX28GVsIbbAjlmcmBg_QZjJ0oAhrL1LBt-DNjUmyK1HfSzrSKNj-v7Yip_mI06KRZG7ni-LzErpkIeh061orjig, Received: kVUFTABHu6tyikEaUuIU4D1gtbFoZkI2nJdnhxv7J226UtOMDbGencctSuhDYiMY4aI31jAVbHDE4mQT_kFlf3WRr1fjvkRyxEQSH0IUQPaKFIY4GBZWB_DGfg7QZVke1UKCC2_BMx6YsfBOHJP28i2fSnbOqhbTGKgAn-t5og4uy_Hgpw-9fPnwWTeIaBLR2Wv2wD4XpVZUvDqDukd5Vrx0i-Q9gbMlS7P0d0Qh1W9CQInrKBQUPje7PxSYMhpeKJVD1PjJXnnBvERyhKyyqKyeu3gcPVOhOpPW7c776fuDNaF7vcy9FOXLsRNthLkhlx3I7OwKEwm0EjT6AY8LJg| wsd/Auth.cpp:134
wsd-00001-00035 2022-04-21 07:10:02.248824 +0000 [ websrv_poll ] WRN client - server version mismatch, disabling browser cache. Expected: 5e2e1b6| wsd/FileServer.cpp:510


Auch ich kann über die konfigurierte Subdomain mein Collabora Container nicht ansprechen.

Hoffe ihr könnt mir hier weiterhelfen?

Link to comment

Hast du schon mal recherchiert ob andere mit 23 das selbe Problem haben bzw welche Version hattest du vorher?

 

Ich wäre jetzt hingegangen und hätte mein Backup wiederhergestellt und Nextcloud zB auf 22 fixiert, bis das Problem gelöst wurde. Vorzugsweise in dem man eine zweite Nextcloud / Collabora Instanz installiert und damit testet.

 

Version 22 wird noch bis Juni mit Sicherheitsupdates versorgt, also kein Grund was zu überstürzen:

https://docs.nextcloud.com/server/latest/admin_manual/release_schedule.html

Link to comment
4 hours ago, Imkerei Schell said:

Hab das gleiche Problem.

 

@b0rgi85 Nach welcher Anleitung hast du das angepasst?

 

On 4/21/2022 at 12:49 PM, alturismo said:

auch mal im Nextcloud Forum geschaut ?

 

 

hab mal schnell zum Spaß auf collabora umgestellt, wie beschrieben ... geht es so ... siehe meinen link oben zum NC Forum ...

sogar ne Anleitung anbei für die NPM user ... ich nutze ja swag hier.

 

image.thumb.png.c1d740fcb9171c072782a85e78c862f1.png

 

hab auch noch schnell das update auf die 23.04 gemacht, auch alles gut, war vorher auf 23.03

 

image.thumb.png.97ad9ae47748b4756151d18931cba6b5.png

image.thumb.png.28adda9e2257920baac9331195121c08.png

 

 

Link to comment

Also ich habe im Forum nachgeschaut und auch deinen Post mir angeschaut.
Aber ich komme da trotzdem nicht wirklich weiter.
Kriege immer noch die gleichen Fehler und in Nextcloud kann ich es nicht hinzufügen. Sagt immer der Server ist nicht verfügbar.

Nehme an, es liegt am Config-File in NGINX von Swag

 

## Version 2021/05/18
# make sure that your dns has a cname set for code-server

server {
    listen 443 ssl;
    listen [::]:443 ssl;

    server_name collabora.* "~^[0-9]{1,10}\.code-server\..*$";

    include /config/nginx/ssl.conf;

    client_max_body_size 0;

    # enable for ldap auth, fill in ldap details in ldap.conf
    #include /config/nginx/ldap.conf;

    # enable for Authelia
    #include /config/nginx/authelia-server.conf;

    location / {
        # enable the next two lines for http auth
        #auth_basic "Restricted";
        #auth_basic_user_file /config/nginx/.htpasswd;

        # enable the next two lines for ldap auth
        #auth_request /auth;
        #error_page 401 =200 /ldaplogin;

        # enable for Authelia
        #include /config/nginx/authelia-location.conf;

        include /config/nginx/proxy.conf;
        include /config/nginx/resolver.conf;
        set $upstream_app Collabora;
        set $upstream_port 8443;
        set $upstream_proto http;
        proxy_pass $upstream_proto://$upstream_app:$upstream_port;

        # static files
location ^~ /loleaflet {
  proxy_pass $forward_scheme://$server:$port;
  proxy_set_header Host $http_host;
}

# WOPI discovery URL
location ^~ /hosting/discovery {
  proxy_pass $forward_scheme://$server:$port;
  proxy_set_header Host $http_host;
}

# main websocket
location ~ ^/lool/(.*)/ws$ {
  proxy_set_header Upgrade $http_upgrade;
  proxy_set_header Connection "upgrade";
  proxy_http_version 1.1;
  proxy_pass $forward_scheme://$server:$port;
  proxy_set_header Host $http_host;
  proxy_read_timeout 36000s;
}

# download, presentation and image upload
location ~ ^/lool {
  proxy_pass $forward_scheme://$server:$port;
  proxy_set_header Host $http_host;
}

# Admin Console websocket
location ^~ /lool/adminws {
  proxy_set_header Upgrade $http_upgrade;
  proxy_set_header Connection "upgrade";
  proxy_http_version 1.1;
  proxy_pass $forward_scheme://$server:$port;
  proxy_set_header Host $http_host;
  proxy_read_timeout 36000s;
}

    }
}

 

Link to comment
5 hours ago, b0rgi85 said:

Aber ich komme da trotzdem nicht wirklich weiter.

 

5 hours ago, b0rgi85 said:
    server_name collabora.* "~^[0-9]{1,10}\.code-server\..*$";

 

5 hours ago, b0rgi85 said:
        set $upstream_app Collabora;
        set $upstream_port 8443;
        set $upstream_proto http;

 

auf den ersten Blick, warum hast du diese Änderungen vorgenommen ? das mag es jetzt nicht alleine sein, aber wenn Änderungen vorgenommen wurden und das auch nicht geht würde ich evtl. retour gehen ... auf die Standard Vorlage in swag

## Version 2021/05/18
# make sure that your dns has a cname set for collabora and that your collabora container is named collabora

server {
    listen 443 ssl;
    listen [::]:443 ssl;

    listen 1443 ssl;
    listen [::]:1443 ssl;

    server_name office.*;

    include /config/nginx/ssl.conf;

	if ($lan-ip = yes) { set $geo-whitelist yes; }
	if ($geo-whitelist = no) { return 404; }

    client_max_body_size 0;

    # enable for ldap auth, fill in ldap details in ldap.conf
    #include /config/nginx/ldap.conf;

    # enable for Authelia
    #include /config/nginx/authelia-server.conf;

    location / {
        # enable the next two lines for http auth
        #auth_basic "Restricted";
        #auth_basic_user_file /config/nginx/.htpasswd;

        # enable the next two lines for ldap auth
        #auth_request /auth;
        #error_page 401 =200 /ldaplogin;

        # enable for Authelia
        #include /config/nginx/authelia-location.conf;

        include /config/nginx/proxy.conf;
        resolver 127.0.0.11 valid=30s;
        set $upstream_app collabora;
        set $upstream_port 9980;
        set $upstream_proto https;
        proxy_pass $upstream_proto://$upstream_app:$upstream_port;

    }
}

 

Beispiel meiner swag config

Server Name anpassen, 1443 er listen Block kann raus, geoip part kann raus (if .... geo ....), docker name anpassen (case sensitive) oder ip nehmen ... fertig, sofern collabora richtig aufgesetzt ist mit alias..... das hat sich effektiv geändert, sonst nichts.

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.