-
Notifications
You must be signed in to change notification settings - Fork 29
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
Document server fails with "./x2t: Permission denied" #10
Comments
I got the same error and for me it was a permission problem, installed the app from within Nextcloud, I had the following in the logs:
Which was fixed by:
|
Same with the official 18.0.0RC2-apache Docker image. I also just now upgraded from 17 to 18. |
Thank you, @tgurr - I had similar errors in my logs when I tried to launch a newly installed OnlyOffice Community Edition of Nextcloud 18 and I can confirm a |
@tgurr Thank you, this got me closer to a solution. However, when I input this, it switched from a "Permission Denied" error to an "x2t not found" error.. Strangest thing. I am running my installation through docker, which may be the difference. |
I fixed it by:
|
It fixed the permission denied log-entry but not the the "not supported" issue. I am running the official nextcloud:latest docker container behind a reverse proxy. Could that be an issue? There is a entry in the onlyoffice settings called "Service address" for the documentserver. The reverse proxy does forward that address to the docker container but I don't know if the docker image handles that correctly. On the other hand, the "permission denied" log entry shouldn't occur if the documentserver could not be accessed... |
Thanks, but how can I realize the fix if my NC is running with a Webhoster: Where do I have to go and enter this? Is it likely that there will be an update vor the apps that solve the problem without manually fixing it? |
This comment was marked as spam.
This comment was marked as spam.
I got exactly the same issue. I installed the Community Document Server App (which i did not found in any officlal documentation) and installed ONLYOFFICE-App. I even tried the permission fix by @tgurr without success. I'm still getting the errormessage "Community document server is not supported for this instance, please setup and configure an external document server" Edit: Using Ubuntu 16.04 here. |
For CentOS, RedHat & selinux distro do as root in addition to above setsebool -P httpd_unified 1 |
Same problem here.. the "chmod fix" fixes only the error message but not the I also deleted and reinstalled both apps, but it didnt help. Same config runs fine in NC18 RC2..thats strange. I also have done a manual upgrade from NC18 RC2 to NC18. OS: Centos7 x64 |
Same issue here. I manually upgraded from 17.0.1 to 18.0.0, installed ONLYOFFICE then Community Document Server, ran the chmod fix. I'm running NextCloud on Ubuntu 18.04 behind a Citrix Netscaler doing SSL offloading. |
I'm having this same problem, and unfortunately the solution posted by @tgurr didn't work for me. |
0.1.2 should fix most of the "permission denied" errors. For the sake of keeping the overview, if you're getting "Community document server not supported" errors with different causes in the log, please open a separate issue. |
It also fixed the "Community document server is not supported for this instance, please setup and configure an external document server" error for me! Nice! Edit: Now if i click on an Office-Document in the Webinterface its showing just an white page an nothing else happens. If i do an manual refresh of the page, "Onlyoffice" is loading and i can edit/view the file! Edit2: My issue seems to be: #13 Everything working now, thanks! |
confirmed, version 0.1.2 works for me. :) thanks! |
Unfortunately I'm still getting the "Community document server is not supported for this instance, please setup and configure an external document server" error, but there are not any entires in my log, even with debug enabled. Any ideas where I should start trouble shooting? |
Was the same for me... upgrading document server to version 0.1.2 fixed it for me. Maybe its useful to restart webserver and deleting your browser cache... and/or deactivate and delete onlyoffice app and reinstall it after you have upgraded document-server app. |
You might also have to click the save button in the OO connector app at least once even if not changing anything? |
Fixed with current version for me as well. Thx a lot for the fast fix! |
For me the |
I fixed my issues by upgrading glibc to 2.14+, what is normally required by the document server, so, please, check. |
Unfortunately, upgrading to glibc 2.30 didn't work for me. I actually had to install it since I am running the Linuxserver.io version of Nextcloud which uses Alpine linux's musl libc. I think the installation worked as I got a new error stating
I installed libstdc++6 which worked successfully, now I am back to the same message ""Community document server is not supported for this instance" However, no new error messages in the log are coming up. |
I'm also running the Linuxserver Nextcloud container, so perhaps that has something to do with it? Anyway, please do update here if you find a solution. I just reinstalled both apps, applied the chmod fix @tgurr described and am still getting the For anyone else running the Linuxserver Nextclouder Docker container, here is the related issue: linuxserver/docker-nextcloud#128
|
Summarising the issue on: linuxserver/docker-nextcloud#128 It would probably be best if nextcloud shipped fat versions of native binaries to support multiple platforms and statically linked any dependencies to ensure they are portable across distros. |
I'm also getting the ONLYOFFICE cannot be reached. Please contact admin. I've set the permissions of x2t as per above and still no luck. It would be useful to know if this is DNS related or permissions related. I suspect it's DNS related (or reverse proxy related) based on the below. 2020/01/29 20:31:06 [error] 347#347: *192092 upstream timed out (110: Operation timed out) while reading response header from upstream, client: 172.18.0.3, server: _, request: "GET /ocs/v2.php/core/navigation/apps?absolute=true&format=json HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "nextcloud.domain.com" And the result of that is OCA\DocumentServer\Document\DocumentConversionException: sh: ./x2t: not found Nextcloud itself DOES resolve via my set up reverse proxy correctly, so unless there's an extra line needed for onlyoffice, but I assume they both communicate via the same web server over port 443. It is only the onlyoffice instance that's not working, so there must be something basic I'm missing. Also I assume the port 9000 above is some internal port that is set up for nextcloud / onlyoffice and doesn't need to be entered into the url anywhere... BTW I'm using the linuxserver.io container... |
I got exactly same issue that xthursdayx has. Any hints? |
To my knowledge, this hasn’t been fixed. Or at least nothing I’ve done has fixed the issue. |
I'll throw my error into the party too hopefully someone can provide a fix. I did run the chmod command that @tgurr posted previously. I am also running this in docker.
|
https://autoize.com/building-onlyoffice-document-server-from-source/ is a guide how to compile document server from source. Could someone try to recompile with muslc? |
I am using the actual nextcloud apache 18.xx version.. Onlyoffice working fine..the move to this container is a bit tricky but worked for me. But for someone how don't know that much about sysadmin should stay on Linux server version and wait for a working onlyoffice version I think |
I just updated to nc18.0.1, reinstalled both the Community Document Server and OnlyOffice, and applied @tgurr 's fix and am still getting the
|
For those on CentOS 7 / SELinux, do this first: #10 (comment) ... then, in nextcloud/apps/documentserver_community/3rdparty/onlyoffice/documentserver/server/FileConverter/bin/
|
This worked for me when trying to view on mobile app, however as with the above (and comment 10) I had to also include the binary, x2t, so the following was done for me to make it work
My install is CentOS 7 latest with SELinux enabled I also have an install with CentOS 8 and I haven't had to do the latter part of the above as far as I can remember, seems to be an issue with CentOS 7 only |
Hello, there seems to be no reports from Nextcloud or DocumentServer staff here about the resolution of this issue. Does it progress in any way? |
Please also remember that the files needs to be owned by the html user (www-data usually, adjust to your setup) |
For those who use an alpine Nextcloud image in their docker compose (which I had because Nextcloud uses alpine in their docker compose example code), you can switch to using the non-alpine Nextcloud image. That way I got Onlyoffice to work. As always, make sure you have backups!
|
I have tried everything in here but nothing seem to work around this I'm using nextcloud:stable with mysql as db. even fresh installation suffers of this |
If anyone read this above with reference to CentOS and is serious about using SELinux properly, DO NOT do this, as it essentially tells SELinux to stop enforcing anything for httpd effectively giving it all permissions for any resources assigned to the Apache user. Do a little more work and figure out what specific contexts / boolean permissions you need and enable them, and only them. If you're using |
As stated above, don't disable selniux to enforce it's policy's. I just had the same problem and solved it by adding a policy to selinux. The sever needs to execute the binary, so instead add the following (might have to change the path to your installation folder) for CentOS;
|
Old thread but to anyone still experiencing this issue, ensure that you use -R when applying chown (chown -R www-data:www-data documentserver_community/) if you installed the Community Document Server app manually. I had this exact issue and realized that I had only been changing ownership of the main directory, not the sub-directories. Hope this helps someone |
For whoever might be concerned about the more recent problems with x2t and onlyoffice, eg Check if your problem is SELinux related, eg disable selinux with Create file
Now proceed to create a module from that file with command
Now create a selinux loadable policy
Load the policy with Now it's time to label your nextcloud + onlyoffice setup (of course, adapt paths to your virtualhost)
Should work ;) |
I was running OnlyOffice fine since it was included in Nextcloud 19. I needed to adjust the SELinux permissions as described here to get it work. System Fedora-Server 32 Edition, Nextcloud 20.0.2 |
Even after applying @deajan 's SELinux module and contexts I still cannot get OnlyOffice to run. Checking the SELinux audits with Creating a custom SELinux module with System CentOS 7, Nextcloud 20.0.8 |
I applied @deajan SELinux module and I get now: I do not understand why php-fpm should get write access to clamd.sock file? System Fedora 33 Server-Edition, Nextcloud 20.0.8 |
@Wotisrv Looks like you have the antivirus plugin in Nextcloud where nextcloud itself triggers an AV scan. Can you confirm ? |
@deajan yes that's right. |
On our server (managed by the provider) the same issue comes up (since yesterday). Error messages: Since I have no admin access to the server itself i can't provide much more information. The provider claims it gives no support for the App but tells me, that other customers experience the same issue. Bottonline: Issue is still unresolved and comes up under Nexcloud 21 as well. |
Yeah I just got this error as well. I've read about the "chmod u+x docbuilder" solution, but I don't have a file path which corresponds to the where I'm supposed to run that command. |
Same issue here |
Hey, all. I have updated my Nextcloud instance from 16 to 18. I uninstalled the OnlyOffice app, then reinstalled it. After doing that, I installed the Community Document Server app. Whenever I click on a .doc or .docx file, I get the error stated in the subject.
Please let me know if you need me to pull any logs and I will gladly do so.
The text was updated successfully, but these errors were encountered: