nextcloud / documentserver_community

Document server for onlyoffice
https://apps.nextcloud.com/apps/documentserver_community
129 stars 29 forks source link

I need update for nextcloud 29 #325

Open argos2024 opened 2 months ago

argos2024 commented 2 months ago

In recent days, we have proceeded to update NextCloud to version 29. Currently there is no version for this plugin. Please I need an update of it adapting it to version 29 of nextcloud

NeverLoseHope777 commented 1 month ago

I have found a workaround that works.

I uninstalled the two apps "ONLYOFFICE" and "Community Document Server" in Nextcloud and deleted the folder "documentserver_community" from the "apps" folder on the server.

I then downloaded release v0.1.17 of the "Community Document Server" from GitHub and copied it to the "apps" folder on the server.

In Nextcloud, I activated the "Community Document Server" under "Apps" and reinstalled "ONLYOFFICE". (Maybe you have to clear browser-cache)

In my case, I had to enter the address "https:///index.php/apps/documentserver_community/" (including the index.php) in the settings under "ONLYOFFICE" and then it worked again.

Good luck and best regards

smeisner commented 3 weeks ago

Any updates on this? I tried @NeverLoseHope777 solution, but I still receive an error:

Error when trying to connect (Client error: GET https://<nextcloud server>/apps/onlyoffice/empty?doc=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhY3Rpb24iOiJlbXB0eSJ9.KLGYsd0wQFVcoAWfrUOxLPGp4HK5Tvxm4Yvzv84DEw4 resulted in a 403 Forbidden response: {"message":"Access denied"} ) (version 7.2.2)

NextCloud VM version is 29.0.2 (stable)

The ONLYOFFICE Docs address is set as indicated by NeverLoseHope777 ... I am starting to lose hope though :)

smeisner commented 3 weeks ago

Additional info from Nextcloud.log from my server:

{"reqId":"lj0VOz2GsxZkKK5GU8Jg","level":4,"time":"2024-06-13T12:52:35-04:00","remoteAddr":"127.0.0.1","user":"--","app":"onlyoffice","method":"GET","url":"/apps/onlyoffice/empty?doc=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhY3Rpb24iOiJlbXB0eSJ9.KLGYsd0wQFVcoAWfrUOxLPGp4HK5Tvxm4Yvzv84DEw4","message":"Download empty without jwt","userAgent":"Nextcloud Server Crawler","version":"29.0.2.2","data":{"app":"onlyoffice"}}
{"reqId":"D05cW2k8tlEdKJAwlwfr","level":3,"time":"2024-06-13T12:52:35-04:00","remoteAddr":"192.168.0.201","user":"steve","app":"onlyoffice","method":"PUT","url":"/apps/onlyoffice/ajax/settings/address","message":"Request converted file on check error","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Safari/537.36","version":"29.0.2.2","exception":{"Exception":"GuzzleHttp\\Exception\\ClientException","Message":"Client error: `GET https://nextcloud.REDACTED/apps/onlyoffice/empty?doc=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhY3Rpb24iOiJlbXB0eSJ9.KLGYsd0wQFVcoAWfrUOxLPGp4HK5Tvxm4Yvzv84DEw4` resulted in a `403 Forbidden` response:\n{\"message\":\"Access denied\"}\n","Code":403,"Trace":[{"file":"/var/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/Middleware.php","line":72,"function":"create","class":"GuzzleHttp\\Exception\\RequestException","type":"::","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/nextcloud/3rdparty/guzzlehttp/promises/src/Promise.php","line":204,"function":"GuzzleHttp\\{closure}","class":"GuzzleHttp\\Middleware","type":"::","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/nextcloud/3rdparty/guzzlehttp/promises/src/Promise.php","line":153,"function":"callHandler","class":"GuzzleHttp\\Promise\\Promise","type":"::"},{"file":"/var/www/nextcloud/3rdparty/guzzlehttp/promises/src/TaskQueue.php","line":48,"function":"GuzzleHttp\\Promise\\{closure}","class":"GuzzleHttp\\Promise\\Promise","type":"::","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/nextcloud/3rdparty/guzzlehttp/promises/src/Promise.php","line":248,"function":"run","class":"GuzzleHttp\\Promise\\TaskQueue","type":"->"},{"file":"/var/www/nextcloud/3rdparty/guzzlehttp/promises/src/Promise.php","line":224,"function":"invokeWaitFn","class":"GuzzleHttp\\Promise\\Promise","type":"->"},{"file":"/var/www/nextcloud/3rdparty/guzzlehttp/promises/src/Promise.php","line":269,"function":"waitIfPending","class":"GuzzleHttp\\Promise\\Promise","type":"->"},{"file":"/var/www/nextcloud/3rdparty/guzzlehttp/promises/src/Promise.php","line":226,"function":"invokeWaitList","class":"GuzzleHttp\\Promise\\Promise","type":"->"},{"file":"/var/www/nextcloud/3rdparty/guzzlehttp/promises/src/Promise.php","line":62,"function":"waitIfPending","class":"GuzzleHttp\\Promise\\Promise","type":"->"},{"file":"/var/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/Client.php","line":189,"function":"wait","class":"GuzzleHttp\\Promise\\Promise","type":"->"},{"file":"/var/www/nextcloud/lib/private/Http/Client/Client.php","line":230,"function":"request","class":"GuzzleHttp\\Client","type":"->"},{"file":"/var/www/nextcloud/apps/onlyoffice/lib/DocumentService.php","line":382,"function":"get","class":"OC\\Http\\Client\\Client","type":"->"},{"file":"/var/www/nextcloud/apps/onlyoffice/lib/DocumentService.php","line":455,"function":"request","class":"OCA\\Onlyoffice\\DocumentService","type":"->"},{"file":"/var/www/nextcloud/apps/onlyoffice/lib/Controller/SettingsController.php","line":192,"function":"checkDocServiceUrl","class":"OCA\\Onlyoffice\\DocumentService","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":232,"function":"saveAddress","class":"OCA\\Onlyoffice\\Controller\\SettingsController","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":138,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/App.php","line":184,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/Route/Router.php","line":338,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"file":"/var/www/nextcloud/lib/base.php","line":1050,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/var/www/nextcloud/index.php","line":49,"function":"handleRequest","class":"OC","type":"::"}],"File":"/var/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/Exception/RequestException.php","Line":113,"message":"Request converted file on check error","CustomMessage":"Request converted file on check error"}}