-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NC 19 unable to Use Build in Code Server #26
Comments
Same problem for me ... Added experience also on help.nextcloud.com Forum: |
Problem also exists when adding this to additian directives if ngingx-config:
|
So I was also getting
and the lack of any documentation is really frustrating, I had hoped after the onlyoffice debacle with NC18 that wouldn't repeat, at least the news entry for NC19 states that it's only for personal use. So there are a few prerequisites which looks like they aren't mentioned anywhere - README.md (?). There's a After trying to manually launch it I first got
so that's the first prerequisite. After I installed fuse2 it wouldn't of course run since my kernel didn't include fuse support. Next I got Note: Somewhere along the line I also had to add |
Hello, sorry about the problem! Let me quote:
I believe this is the same bug we are actually working on - that the PHP7.3-fpm refuses to accept connections after some time. Please restart it using something like: service php7.3-fpm restart and the CODE server should start working again. Can you please confirm that this fixes the behavior (until the PHP7.3-fpm stops working again)? To be sure we are working on the same thing. Thank you in advance! |
Hello Timo, thank you for writing this down!
Please is it OK for you if we actually copy info from your post to the README? :-) Or would you like to do a pull request? Very happy to accept patches! Currently we avoid FUSE (and unpack the AppImage instead) when we run under Docker / LXC, but apparently we should improve the detection code to avoid the use cases like yours... All the best! |
...
Hello, Kendy, |
Hi, |
as i can see, after trying to open an document, an ipv6 socket is opened: |
installing fuse, fontconfig and restarting php7.4-fpm fixed it for me. |
On my Ubuntu 18.04 LTS i got already following: `---:~$ sudo apt-get install fuse ---:~$ sudo apt-get install fontconfig Still opening an IPV6 socket and no connection possible. |
I made a fresh install of Nextcloud 19 from scratch, and Collabora Online doesn't work To Reproduce Expected behavior Client details: OS: Linux Centos7 Web server: Database: PHP version: Nextcloud version: Version of the richdocuments app Version of Collabora Online |
That's what it looks like in the snap as well. |
@kendy can we get that detection logic updated to include the snap as well? I'd be happy to help if you could point me to the right place in code. |
@kyrofa Thanks for the offer to help! In the meantime, I've done this pull request: Instead of detection, we just fallback to --appimage-extract-and-run which should sort out even the cases when people are using a normal distro, but don't have the FUSE package installed. Can you try with that stuff applied please? |
@kendy seems like a good approach. The patch still doesn't work on the snap and without a log I can't know for sure, but taking what you did there and running locally gives me a good idea:
Services in the snap run as (confined) root. Is there a way to opt out of that check? |
@kyrofa Ah cool. Normally the loolwsd has to run under user 'lool' and we already have a switch that overrides this - but works only for "any non-root user". But we should probably allow that even for root; but unfortunately needs a rebuild of the AppImage, hope to include that early next week. |
@kendy excellent, ping me next week then and I'd love to give it a test! |
Also had some problems connecting to the server on Debian 9, running on a vserver. But then I hit another problem (only to be seen when trying to start the appimage manually):
For anyone else seeing this: It can be fixed with this patch: --- proxy.php~ 2020-06-06 20:40:50.000000000 +0200
+++ proxy.php 2020-06-06 21:43:40.395496132 +0200
@@ -67,6 +67,7 @@
@chmod($appImage, 0744);
$launchCmd = $appImage;
+ $launchCmd .= ' --override=security.seccomp=false';
// FUSE usually does not work in a docker, unpack instead
if (preg_match('/(docker|lxc)/', file_get_contents('/proc/1/cgroup'))) Afterwards, the server starts fine (albeit the performance is limited on a small vserver...) Not sure if it is possible to detect the seccomp issue automatically. |
It tries to do stuff with seccomp? That might prove to be an issue in the snap as well, which is already confined via seccomp. I doubt it will have the permission it needs to further sandbox itself. Time will tell though. |
@thmo Ah makes sense, thank you! We'll disable this in the AppImage build too. |
I have tryed the new release 4.2.404 but i get this in my log (ending up with connection lost to document server): |
With the update to .404 the CODE builtin server startet working for me on my Plesk 18 environment (Ubuntu 18.04). |
#57 might help here as well |
...sooo - is there any chance in the not-too-distant-future of getting CODE to run using a shared server (I don't have any access to files or console, just the NC backend)? |
I have exactly the same error message in my NC 19.0.2 docker installation. Is there any way to get this solved sustainable? Because when I do these things and have to delete the container I can do it again in the new one... |
Since I was getting the same error messages as a lot (but not all) the people here and I see no mention of this here, this should help at least some of the people with this issue. Your server needs to be connected to a router that supports hairpinning (or NAT loopback). |
Anyone got a solution to this madness? I've got fuse installed, fontconfig installed, port opened, yet it's still saying This is frustrating as hell :/ |
Hi! I managed to make it work by activating open_basedir in PHP |
@jorgelloret: Oh cool, thanks for the info! @mrkara - can you add a check for that to proxy.php too please? |
@TheSkrypt after executing ./Collabora_Online.AppImage manually in /var/www/html/nextcloud/apps/richdocumentscode/collabora/ Then I checked in the nextcloud control panel by clicking again on use CODE. And works for me!! |
For reference, when I execute AppImage in console on Centos7 get this $ ./Collabora_Online.AppImage /tmp/.mount_CollabDfHRVb/AppRun: line 14: warning: setlocale: LC_ALL: cannot change locale (C.UTF-8): No such file or directory /tmp/.mount_CollabDfHRVb/AppRun: line 14: warning: setlocale: LC_ALL: cannot change locale (C.UTF-8) loolwsd: /lib64/libstdc++.so.6: version 'GLIBCXX_3.4.20' not found (required by loolwsd) loolwsd: /lib64/libstdc++.so.6: version 'CXXABI_1.3.9' not found (required by loolwsd) loolwsd: /lib64/libstdc++.so.6: version 'GLIBCXX_3.4.21' not found (required by loolwsd) |
I made the app image executable, then I started /var/www/html/"my nextcloud path"/apps/richdocumentscode/collabora/Collabora_Online.AppImage on Ubuntu 20.10 with nginx. After that I made the command line in NextCloud http://localhost9982 and it took it locally and worked (locally). This appears to be a HARD code issue, and NOT a nginx issue. Just saying. |
I just realised that leaving these addons enabled while they are not working created around 10 log lines per second and my log quickly grew to 10GIG.. |
Hi, I'm facing the connection issue too using the build in CODE Server with message: "Could not establish connection to the Collabora Online server." in the admin. The ./custom_apps/richdocumentscode/proxy.php?status returns: And in the NC Log i found a message: My installation is based on a opensuse host and docker. Nextcloud running behind a nginx proxy companion solution. Maybe someone can put me in the right direction to use the collabora server thanks |
Add a larger pho cache. The default is to small.
Eric Morgenstern
… On Nov 16, 2020, at 1:34 PM, Mbee69 ***@***.***> wrote:
Hi, I'm facing the connection issue too using the build in CODE Server with message: "Could not establish connection to the Collabora Online server." in the admin.
The ./custom_apps/richdocumentscode/proxy.php?status returns:
status | "starting"
And in the NC Log i found a message:
Error: count(): Parameter must be an array or an object that implements Countable at /var/www/html/custom_apps/richdocuments/lib/Service/CapabilitiesService.php#63
My installation is based on a opensuse host and docker. Nextcloud running behind a nginx proxy companion solution.
Maybe someone can put me in the right direction to use the collabora server
thanks
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
Hi Eric, Realy? Thats my only problem? :D Thanks for your quick replay. I will have a try on it. cheers Ben |
Let me know.
Eric Morgenstern
… On Nov 16, 2020, at 2:02 PM, Mbee69 ***@***.***> wrote:
Add a larger pho cache. The default is to small. Eric Morgenstern
…
On Nov 16, 2020, at 1:34 PM, Mbee69 @.***> wrote: Hi, I'm facing the connection issue too using the build in CODE Server with message: "Could not establish connection to the Collabora Online server." in the admin. The ./custom_apps/richdocumentscode/proxy.php?status returns: status | "starting" And in the NC Log i found a message: Error: count(): Parameter must be an array or an object that implements Countable at /var/www/html/custom_apps/richdocuments/lib/Service/CapabilitiesService.php#63 My installation is based on a opensuse host and docker. Nextcloud running behind a nginx proxy companion solution. Maybe someone can put me in the right direction to use the collabora server thanks — You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.
Hi Eric, Realy? Thats my only problem? :D Thanks for your quick replay. I will have a try on it. cheers Ben
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
What did you do? |
I can't change open_basedir on FPM |
Hi Eric, |
Check out file permissions and ownership. I read yesterday about changing the permissions. I just have not gotten that far again. I changed to OpenOffice from Collabra to get it working while I pursued some DR strategies. The FPM is a good call, I used that as part of my install already. Had issues with file sizes but managed to get that resolved.
Eric Morgenstern
… On Nov 29, 2020, at 11:02 AM, Mbee69 ***@***.***> wrote:
Let me know. Eric Morgenstern
…
On Nov 16, 2020, at 2:02 PM, Mbee69 @.> wrote: Add a larger pho cache. The default is to small. Eric Morgenstern … On Nov 16, 2020, at 1:34 PM, Mbee69 @.> wrote: Hi, I'm facing the connection issue too using the build in CODE Server with message: "Could not establish connection to the Collabora Online server." in the admin. The ./custom_apps/richdocumentscode/proxy.php?status returns: status | "starting" And in the NC Log i found a message: Error: count(): Parameter must be an array or an object that implements Countable at /var/www/html/custom_apps/richdocuments/lib/Service/CapabilitiesService.php#63 My installation is based on a opensuse host and docker. Nextcloud running behind a nginx proxy companion solution. Maybe someone can put me in the right direction to use the collabora server thanks — You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe. Hi Eric, Realy? Thats my only problem? :D Thanks for your quick replay. I will have a try on it. cheers Ben — You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.
Hi Eric,
i did a big change on my docker configuration, switching the nc-apache image to the nc-fpm. Managed do make all working, collabora code response on the path. But collabora online does not recognize it. So collabora code still does not work.
The error message in the log is gone, so i think it was not related to the collabora issue.
Ben
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
Hi @ewm0657 , I found here on reply from "Cor Nouws", that my issue may be related to the stable-fpm-alpine image. It looks like alpine image is not supported, because it uses musl libc instead of glibc, and AppImage does not support muls libc yet. Permissions and ownership are ok. Cheers Ben |
@kendy As I'm running into the same problem at the moment with a fresh nc20 instance - did you solve this port problem lately?
|
@maste9 Yep, not a real solution, but I switched to the snap |
Seems to be semi-working in 20.0.6 - but new bug has arised! |
Let's close this, then. |
nope. still broken |
Describe the bug
NC 19 stable with Collabora Online - Built in CODE Server throws errors in Apache error.log:
AH01071: Got error 'en(): unable to connect to localhost:9982 (Connection refused) in /var/www/nextcloud/apps/richdocumentscode/proxy.php on line 246PHP message: PHP Warning: fsockopen(): unable to connect to localhost:9982 (Connection refused) in /var/www/nextcloud/apps/richdocumentscode/proxy.php on line 246PHP message: PHP Warning: fsockopen(): unable to connect to localhost:9982 (Connection refused) in /var/www/nextcloud/apps/richdocumentscode/proxy.php on line 246PHP message: PHP Warning: fsockopen(): unable to connect to localhost:9982 (Connection refused) in /var/www/nextcloud/apps/richdocumentscode/proxy.php on line 246PHP message: PHP Warning: fsockopen(): unable to connect to localhost:9982 (Connection refused) in /var/www/nextcloud/apps/richdocumentscode/proxy.php on line 246PHP message: PHP Warning: fsockopen(): unable to connect to localhost:9982 (Connection refused) in /var/www/nextcloud/apps/richdocumentscode/proxy.php on line 246PHP message: PHP Warning: fsockopen(): unable to connect to localhost:9982 (Connection refused) in /var/www/nextcloud/apps/richdocumentscode/proxy.php on line 246PHP message: PHP Warning: fsockopen(): unable to connect to localhost:9982 (Connection refused) in /var/www/nextcloud/apps/richdocumentscode/proxy.php on line 246PHP message: PHP Warning: fsockopen(): unable to connect to localhost:9982 (Connection refused) in /var/www/nextcloud/apps/richdocumentscode/proxy.php on line 246'
Nextcloud is displaying error: Connection to Documentserver lost.
New or existing Documents arent opened, white screen appears (see log above).
Settings are correct to use internal CODE Server:
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Document is opening for editiing
Client details:
Server details
Operating system: Ubuntu 18.04 LTS
Web server: Apache2
Database: Postgresql
PHP version: PHP7.3-fpm
Nextcloud version: 19
Version of the richdocuments app 3.7.0
Version of Collabora Online 4.2.403
Logs
Nextcloud log (data/nextcloud.log)
The text was updated successfully, but these errors were encountered: