Skip to content
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

After Upgrade to 9.1.0 Nextcloud not connected to onlyoffice server #977

Closed
syntezit opened this issue Apr 8, 2024 · 60 comments
Closed
Labels
bug Something isn't working

Comments

@syntezit
Copy link

syntezit commented Apr 8, 2024

After Upgrade to 9.1.0, Nextcloud not connected to onlyoffice server.
Nextcloud 28.0.4
Onlyoffice 8.0.1

Errors
Could not find resource onlyoffice/js/onlyoffice-template.js to load
{"reqId":"t1ol3FPfmGk44gNOLLZ2",
"level":3,
"time":"2024-04-08T17:34:56+03:00",
"remoteAddr":"172.16.0.20",
"user":"12345",
"app":"jsresourceloader",
"method":"GET",
"url":"/settings/admin/onlyoffice","message":"Could not find resource onlyoffice/js/onlyoffice-template.js to load",
"userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36",
"version":"28.0.4.1",
"data":{"app":"jsresourceloader"},
"id":"661400959c75b"}

@JacobMembrino
Copy link

JacobMembrino commented Apr 8, 2024

Having this issue as well. I noticed that restoring the lost files (the entire JS directory under nextcloud/apps/onlyoffice/js) from a backup does not work. These files seem to be generated at install in previous versions but this no longer works.

edit: using a fresh install of onlyoffice 8.0.1-31 and nextcloud 28.0.4 (just updated) with the 9.0.1 plugin.

@Nikos-Mennecy
Copy link

Nikos-Mennecy commented Apr 8, 2024

Same problem After Upgrade to 9.1.0
Nextcloud 28.0.4
PHP 8.3.4

In the Nextcloud logs :

Could not find resource onlyoffice/js/onlyoffice-listener.js to load
Could not find resource onlyoffice/js/onlyoffice-viewer.js to load
Could not find resource onlyoffice/js/onlyoffice-template.js to load
Could not find resource onlyoffice/js/onlyoffice-main.js to load
Could not find resource onlyoffice/js/onlyoffice-desktop.js to load
Could not find resource onlyoffice/js/desktop.js to load

Since version 9.1.0 the js folder (/apps/onlyoffice/js) has disappeared.

Seems to work good copying the js directory from version 9.0.0 to 9.1.0 ;+)

Thanks !

@blcetux
Copy link

blcetux commented Apr 8, 2024

Same problem after upgrade to 9.1.0

We've reverted to 8.2.4 in the meantime.

@alyfilipe
Copy link

Some problem here

@waja
Copy link

waja commented Apr 8, 2024

Downgrade to the app version 9.0.0 fixed the issue for now.

@arnowelzel
Copy link
Contributor

arnowelzel commented Apr 8, 2024

Same issue here. Something went wrong with the 9.1.0 release. But even after downgrading to 9.0.0 it does not work any longer :-(

In fact I can not use OnlyOffice any longer at all! I completely removed the app and reinstalled it - now it only complains that the document server is not available, but this is not correct - it worked fine with version 9.0.0. But somehow the upgrade to 9.1.0 changed something, that even 9.0.0 does not work anymore.

In addition the OnlyOffice settings also don't work any longer. What ever I enter to "ONLYOFFICE Docs address" is just ignored. The whole form is completely without any function:

image

I tried everything including restoring the last known working version from my backup - it does not work any longer.


Got it working again.

I removed the setting for the document server URL in the Nextcloud appconfig table:

update oc_appconfig set configValue='' where appid='onlyoffice' and configKey='DocumentServerUrl';

Then the administration part of OnlyOffice worked again - I could now enter the old URL again and OnlyOffice also realized that the server is available.

Considering what files 9.1.0 tries to install it seems that this is not an correct build but just a plain 1:1 copy of the GitHub repository. The required folder js is missing but other files got included which are not needed:

.gitmodules
package.json
ruleset.xml
webpack.js

@JacobMembrino
Copy link

I tried everything including restoring the last known working version from my backup - it does not work any longer.

Run these commands:

$ sudo -u www-data php occ app:disable onlyoffice
$ sudo -u www-data php occ app:remove onlyoffice
$ sudo -u www-data php occ maintenance:repair

Then install the last release, unpack it to the /apps/ directory of nextcloud, and change its ownership to your web hosting user (www-data).

I am getting the "Error connection: Error occurred in the document service: Error while downloading the document file to be converted."' error but I can get the plugin to almost work at least.

@arnowelzel
Copy link
Contributor

I am getting the "Error connection: Error occurred in the document service: Error while downloading the document file to be converted."' error but I can get the plugin to almost work at least.

See my last comment edit - I had to remove the URL setting from the appconfig table in Nextcloud, but after that I was able to configure OnlyOffice again.

@JacobMembrino
Copy link

See my last comment edit - I had to remove the URL setting from the appconfig table in Nextcloud, but after that I was able to configure OnlyOffice again.

Any thoughts on the Error connection: Error occurred in the document service: Error while downloading the document file to be converted error?

@arnowelzel
Copy link
Contributor

See my last comment edit - I had to remove the URL setting from the appconfig table in Nextcloud, but after that I was able to configure OnlyOffice again.

Any thoughts on the Error connection: Error occurred in the document service: Error while downloading the document file to be converted error?

Sorry - no. I don't have this error here. Neither with DOCX nor with ODT or other formats. But there is an older issue which mentions this: #895

@stepcellwolf
Copy link

Same here!

@a0g83agbc84
Copy link

I unfortunately am experiencing the same issue...

@alyfilipe
Copy link

A problem like this for a stable package is quite complicated. We will have to act by migrating the solution to another platform, as the company is completely at a standstill.

@a0g83agbc84
Copy link

This guy seems to be onto something but not even clearing the values from the db empties them from the onlyoffice configuration page, not even after deleting and reinstalling the app: #956 (comment)

@arnowelzel
Copy link
Contributor

This guy seems to be onto something but not even clearing the values from the db empties them from the onlyoffice configuration page, not even after deleting and reinstalling the app: #956 (comment)

The database table oc_appconfig is the only place where the app stores the configuration. If removing the value there does not work, then maybe you need to clear the browser cache, so it has to load the value from the DB.

@a0g83agbc84
Copy link

@arnowelzel something seems off, because I cleared the browser data (even tried on incognito mode) and I can see the previous values every time. Those values are clearly empty in the db: https://i.imgur.com/KzWHEIn.jpeg

@arnowelzel
Copy link
Contributor

arnowelzel commented Apr 8, 2024

@arnowelzel something seems off, because I cleared the browser data (even tried on incognito mode) and I can see the previous values every time. Those values are clearly empty in the db: https://i.imgur.com/KzWHEIn.jpeg

Strange - for me that worked fine and I have no idea from where else OnlyOffice should get the value from.

Maybe restart php-fpm just to be sure, that also the PHP opcache is flushed?

@t3cneo
Copy link

t3cneo commented Apr 8, 2024

It does work after copying 9.0.0 js folder as @Nikos-Mennecy pointed out

on your server :

1 grab the 9.0 relaease

wget https://github.com/ONLYOFFICE/onlyoffice-nextcloud/releases/download/v9.0.0/onlyoffice.tar.gz

2 expend

tar -xf onlyoffice.tar.gz

3 copy js folder to where it should be

sudo cp -R onlyoffice/js/ /var/lib/docker/volumes/nextcloud_aio_nextcloud/_data/custom_apps/onlyoffice/js

4 change ownership

sudo chown -R www-data:www-data /var/lib/docker/volumes/nextcloud_aio_nextcloud/_data/custom_apps/onlyoffice/js

5 cleanup a bit

rm -rf onlyoffice onlyoffice.tar.gz

6 go to NC webUI > admin settings > OnlyOffice and hit save

Edit :
I guess the new gitignore file is the explanation...

@a0g83agbc84
Copy link

@arnowelzel something seems off, because I cleared the browser data (even tried on incognito mode) and I can see the previous values every time. Those values are clearly empty in the db: https://i.imgur.com/KzWHEIn.jpeg

Strange - for me that worked fine and I have no idea from where else OnlyOffice should get the value from.

Maybe restart php-fpm just to be sure, that also the PHP opcache is flushed?

I use docker compose with the nextcloud instance, its db, nginx, onlyoffice and redit. I take it down and then back up -d. Strange.

@alyfilipe
Copy link

It does work after copying 9.0.0 js folder as @Nikos-Mennecy pointed out

on your server :

1 grab the 9.0 relaease

wget https://github.com/ONLYOFFICE/onlyoffice-nextcloud/releases/download/v9.0.0/onlyoffice.tar.gz

2 expend

tar -xf onlyoffice.tar.gz

3 copy js folder to where it should be

sudo cp -R onlyoffice/js/ /var/lib/docker/volumes/nextcloud_aio_nextcloud/_data/custom_apps/onlyoffice/js

4 change ownership

sudo chown -R www-data:www-data /var/lib/docker/volumes/nextcloud_aio_nextcloud/_data/custom_apps/onlyoffice/js

5 cleanup a bit

rm -rf onlyoffice onlyoffice.tar.gz

6 go to NC webUI > admin settings > OnlyOffice and hit save

Edit : I guess the new gitignore file is the explanation...

Using this option it saves the onlyoffice configuration, but when I try to open a document, it keeps trying forever....
Direct tests on the onlyoffice server work normally. Only the integration has a problem following the plugin update.

@kiwiradler
Copy link

Wouldn't it be better to release an update to v.9.1.1 or whatever instead of finding workarounds? Not everyone is able to do all this stuff on his server...

@JacobMembrino
Copy link

JacobMembrino commented Apr 8, 2024

Any thoughts on the Error connection: Error occurred in the document service: Error while downloading the document file to be converted error?

If anyone experiences this error, I was able to fix it after adding this line to my config file in nextcloud:

'onlyoffice' => array (
    'verify_peer_off' => false,
  ),

And rebooting the server.

@arnowelzel
Copy link
Contributor

Wouldn't it be better to release an update to v.9.1.1 or whatever instead of finding workarounds? Not everyone is able to do all this stuff on his server...

Of course - but until then it might help people what to do to get their installation back running.

@a0g83agbc84
Copy link

a0g83agbc84 commented Apr 8, 2024

@arnowelzel the fact that onlyoffice kept the configuration even though I was deleting the values from the db remains a mystery, but at least I could fix my setup. I could have saved myself almost 1 hour or trial and error if I had gotten enough sleep last night and used the correct custom_apps directory :) Thanks for your help.

@vagner-dias
Copy link

Same problem here. OnlyOffice is down after the latest upgrade.

@Nordlead75
Copy link

same problem for me too

@masterwishx
Copy link

same issue :

image

@JacobMembrino
Copy link

same issue :

Luckily all you have to do is uninstall the new version of the connector app and install the last release. The commands to do so are above

@DragDrop69
Copy link

DragDrop69 commented Apr 9, 2024

same thing.. Nextcloud Snap can't work with Onlyoffice Docs Server aftel last update to 9.1.0

Onlyoffice app version - 9.1.0
Nextcloud Snap version 27.1.7

maybe give me manual about downgrade Onlyoffice app in Nextcloud Snap

@Scriptkiddi
Copy link

Onlyoffice 7.10 is also affected

@LinneyS LinneyS added the bug Something isn't working label Apr 9, 2024
@phreaker0
Copy link

just installed v9.1.2 from the release page and can confirm that it works, thx.

@mmallejac
Copy link

No, not here. Having same issue with v9.1.2

@Leprazoriy
Copy link

9.1.2 work for me.

@SergeyKorneyev
Copy link

Version 9.1.2 should resolve this issue. If it does not, please let us know.

@PifPof73
Copy link

PifPof73 commented Apr 9, 2024

@arnowelzel something seems off, because I cleared the browser data (even tried on incognito mode) and I can see the previous values every time. Those values are clearly empty in the db: https://i.imgur.com/KzWHEIn.jpeg

Strange - for me that worked fine and I have no idea from where else OnlyOffice should get the value from.

Maybe restart php-fpm just to be sure, that also the PHP opcache is flushed?

I had the same problem and restarting php-fpm solved it. I could reach the admin page again and type the old value into it. Since than it is running again with Version 9.0.0

@PifPof73
Copy link

PifPof73 commented Apr 9, 2024

No, not here. Having same issue with v9.1.2

I think you have to repair the v9.1.0 first - just installing 9.1.2 over it does not worked for me either.
I first downgraded to v9.0.0, deleted the entry in the database (see posts of @arnowelzel ), restarted the php-fpm service and got anything running.
After that, I could upgrade from v9.0.0 -> v9.1.2 and still got everything up and running.

@stepcellwolf
Copy link

Even with the latest version, 9.1.2 having a issue:
Error when trying to connect (Error occurred in the document service: Error while downloading the document file to be converted.) (version 7.5.1.23)

@W3XTR1337
Copy link

W3XTR1337 commented Apr 9, 2024

Upgrade to 9.1.2 didn't work. Running cloud 27.1.8 on Ubuntu 20.04. Common settings reappeared and I can change them, but now I have missing area with extensions which OnlyOffice should open and he is still downloading files.
Screenshot 2024-04-09 at 10 54 03

UPD: Forgot about error in logs
"foreach() argument must be of type array|object, null given at /var/snap/nextcloud/41512/nextcloud/extra-apps/onlyoffice/lib/AppConfig.php#1282"

@mmallejac
Copy link

mmallejac commented Apr 9, 2024

@arnowelzel
Copy link
Contributor

It seems, 9.1.2 fixes the issue and also brings back the missing js folder (at least on my test instances). You may have to completely disable and remove your existing installation first (maybe remove the folder apps/onlyoffice from your Nextcloud installation top be sure) and then reinstall 9.1.2 as a new app. If configuration fails, try removing the URL setting, so OnlyOffice allows you reconfigure the URL of the backend in the administrative settings:

update oc_appconfig set configValue='' where appid='onlyoffice' and configKey='DocumentServerUrl';

Thanks for the quick response to @LinneyS.

@jdaviescoates
Copy link

Just updating to 9.1.2 worked for me. Thanks @LinneyS

@stepcellwolf
Copy link

It does work after copying 9.0.0 js folder as @Nikos-Mennecy pointed out
on your server :
1 grab the 9.0 relaease

wget https://github.com/ONLYOFFICE/onlyoffice-nextcloud/releases/download/v9.0.0/onlyoffice.tar.gz

2 expend

tar -xf onlyoffice.tar.gz

3 copy js folder to where it should be

sudo cp -R onlyoffice/js/ /var/lib/docker/volumes/nextcloud_aio_nextcloud/_data/custom_apps/onlyoffice/js

4 change ownership

sudo chown -R www-data:www-data /var/lib/docker/volumes/nextcloud_aio_nextcloud/_data/custom_apps/onlyoffice/js

5 cleanup a bit

rm -rf onlyoffice onlyoffice.tar.gz

6 go to NC webUI > admin settings > OnlyOffice and hit save
Edit : I guess the new gitignore file is the explanation...

Using this option it saves the onlyoffice configuration, but when I try to open a document, it keeps trying forever.... Direct tests on the onlyoffice server work normally. Only the integration has a problem following the plugin update.

This is the only solution that worked for me in yunohost and manually install the app to /var/www/nextcloud/apps/ and chown -R nextcloud:www-data onlyoffice and enable it via admin in NC settings and it should work.

@ostasevych
Copy link
Contributor

ostasevych commented Apr 9, 2024

For me the upgrade from 8.x to 9.1.2 passed without errors and it works fine. Thanks for raising this issue, so I have waited for the fixed update.

@rchaconmolero
Copy link

rchaconmolero commented Apr 9, 2024

After updating from 9.0.0 to 9.1.2 we got this message.

After uninstalling the app and reinstalling, this message continues to appear. After uninstalling we verified that the nextloud folder does not exist in app folders.

After installing again, we see that the onlyoffice/js folder exists with all the .js files, but the message still appears.

I
,"app":"jsresourceloader","method":"GET","url":"/apps/dashboard/","message":"Could not find resource onlyoffice/js/desktop.js to load

@osm-frasch
Copy link

osm-frasch commented Apr 9, 2024

We also have the following error message in the Nextcloud log

jsresourceloader
Could not find resource onlyoffice/js/desktop.js to load

We have installed the hotfix.
In general, OnlyOffice is running again. (Nextcloud 28.0.4)

@MichaelHeimann
Copy link

fixed by:

  1. disable onlyoffice addon in nextcloud
  2. remove onlyoffice addon in nextcloud
  3. "sudo mysql nextcloud" on nextcloud server
  4. "update oc_appconfig set configValue='' where appid='onlyoffice' and configKey='DocumentServerUrl';" to remove the url
  5. sudo apache2ctl reload
  6. sudo restart php-fpm
  7. add onlyoffice addon and configure it again

@masterwishx
Copy link

Version 9.1.2 should resolve this issue. If it does not, please let us know.

Thanks , working Fine now

@vagner-dias
Copy link

@LinneyS - Please help on this issue - is cause massive problems

V9.1.2 fixed my issue. Thanks @LinneyS !

@Petersoj
Copy link

Petersoj commented Apr 9, 2024

Thanks for releasing a fast patch release! 9.1.2 fixes this issue on my NC instance.

@alyfilipe
Copy link

alyfilipe commented Apr 10, 2024

For me not function. Save configuration with sucess, but if i try open a document:

Error richdocuments GuzzleHttp\Exception\ConnectException: cURL error 28: Connection timed out after 45001 milliseconds (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) 2024-04-10T02:37:49+00:00
for http://onlyoffice.'masked'.com.br:9980/hosting/discovery at .../guzzlehttp/guzzle/src/Handler/CurlFactory.php line 210

With 9.0.0 plugin and NC version 27.1.3, work fine, but the snap update to 27.1.4 and today to 27.1.8 and now no version works anymore

@LinneyS
Copy link
Member

LinneyS commented Apr 12, 2024

Thanks to everyone for reporting the problem.
Release 9.1.2 fixes this issue
A separate issue #981 has been created regarding the problem with the desktop file.

@joskapista44
Copy link

We also have the following error message in the Nextcloud log

jsresourceloader Could not find resource onlyoffice/js/desktop.js to load

We have installed the hotfix. In general, OnlyOffice is running again. (Nextcloud 28.0.4)

Yes, I still have this in my log. The app works, but I get the error message in my log really often.

@arnowelzel
Copy link
Contributor

arnowelzel commented Apr 17, 2024

I created a pull request yesterday for the fix. Hopefully this will be sorted out with the next update. It seems only to affect widgets not the regular application.

Edit: sorry - wrong issue... I was confusing this with log errors about "desktop.js".

@stephan1827
Copy link

Anybody knows when the docker is updated?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests