NC + OnlyOffice on ARM64 using qemu

@mbcon
Dear,
I would like to know can we use local ip, to be set with OO,
work with it locally when i am on same local network, (without connecting to internet)
Regards,
Kiran

Hi earth,
Not sure if i understand your question. Let my try to answer:

You have NC + OO running on your RPi. The RPi has a single IP address, fx. 192.168.1.62. If you are accessing NC via your browser, you will use the URL http://192.168.1.62/. In your browser you will also edit documents using OO. So it is always the same IP. You will have this IP in the configuration of the ONLYOFFICE app as a service address:

http://192.168.1.62/apps/documentserver_community/

Or are you asking if you can use the “local IP” 127.0.0.1? This would only be possible if you have logged on your RPi, started the browser locally. If you want to use OO in that setup, then you will have to configure the ONLYOFFICE app service address in NC accordingly.

But then you should not be able to use OO from another device - not really sure about that. But you could try this out easily! Change the service address and see if it works!

Curious if your question and my answer fit together :slight_smile:

Cheers,
mbcon

This is my case,
I can’t set localip in OO config.
When trying to set local ip settings
(Error host violates local address rules ) appears

When I use Nextcloud with local IP,
I am unable to open any documents.
Some error of blocked by X-frame options policy appears.

Look at this: Nextcloud 19 Onlyoffice 4.30 error:Host violates local access rules

I am affected as well … now I will try to downgrade my NC/OO :nauseated_face:

1 Like

Dear mbcon,
if you find any way, that works,
please share here.
Regards,
Earth

Hello earth,
for me things work again after adding these lines to config.php right before the closing “);”

  'allow_local_remote_servers' => true,
  'onlyoffice' =>
   array (
     'verify_peer_off' => true,
  )

Found the details here: Can't connect to OnlyOffice document server after update to NC19

Hope you are good to go with this as well.

Cheers,
mbcon

2 Likes

Dear mbcon

after adding above mentioned “allow_local_remote_servers’= true”

i am getting this error
To protect your security, my.domain will not allow Firefox to display the page if another site has embedded it. To see this page, you need to open it in a new window
after clicking on it ,loading onlyoffice page appers and get stucked, nothing happens further.

in my settings if i changed
https://192.168.1.2/apps/documentserver_community/
thank onlyoffice works on local network with nextcloud logged in with local ip.
but when i tried to open files with my.domain than it error appears, onlyoffice cant be reached.

what should be my settings for onlyoffice to work as expected from internet as well as local network?

regards,
earth

Hi earth,

The error is displayed in Firefox when you access NC from the internet, ok.
I think this is some form of cross-site-scripting protection Firefox in combination with NC.

Two questions:

  • Why don’t you just run NC with my.domain instead of your local IP?
  • Regarding OO getting stuck when loading, do you see anything in the logs?

Please post some more information (NC setup, screenshots, logs, …) so maybe somebody else here in the forum is able to help.

Cheers,
mbcon

Dear mbcon,
these are the only logs for onlyoffice inmy nextcloud.log file.

{“reqId”:“ZHP3rF4BXsogR25xaNDk”,“level”:0,“time”:“2020-07-09T02:49:02+00:00”,“remoteAddr”:“192.168.11.3”,“user”:“xyz”,“app”:“serverDI”,“method”:“GET”,“url”:"/apps/onlyoffice/ajax/settings",“message”:“The requested alias “PreviewManager” is depreacted. Please request “OCP\IPreview” directly. This alias will be removed in a future Nextcloud version.”,“userAgent”:“Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0”,“version”:“19.0.0.12”}
{“reqId”:“yqakMAztn8uj85tlZ13l”,“level”:0,“time”:“2020-07-09T02:49:08+00:00”,“remoteAddr”:“192.168.11.3”,“user”:“xyz”,“app”:“serverDI”,“method”:“GET”,“url”:"/apps/onlyoffice/2084071?filePath=%2FDocument.docx&inframe=true",“message”:“The requested alias “PreviewManager” is depreacted. Please request “OCP\IPreview” directly. This alias will be removed in a future Nextcloud version.”,“userAgent”:“Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0”,“version”:“19.0.0.12”}
{“reqId”:“yqakMAztn8uj85tlZ13l”,“level”:0,“time”:“2020-07-09T02:49:09+00:00”,“remoteAddr”:“192.168.11.3”,“user”:“xyz”,“app”:“onlyoffice”,“method”:“GET”,“url”:"/apps/onlyoffice/2084071?filePath=%2FDocument.docx&inframe=true",“message”:“Open: 2084071 /Document.docx”,“userAgent”:“Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0”,“version”:“19.0.0.12”}
{“reqId”:“pO1ROkbmvsgTlyvvXNi1”,“level”:0,“time”:“2020-07-09T02:49:10+00:00”,“remoteAddr”:“192.168.11.3”,“user”:“xyz”,“app”:“serverDI”,“method”:“GET”,“url”:"/apps/onlyoffice/ajax/config/2084071?filePath=%2FDocument.docx&inframe=2",“message”:“The requested alias “PreviewManager” is depreacted. Please request “OCP\IPreview” directly. This alias will be removed in a future Nextcloud version.”,“userAgent”:“Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0”,“version”:“19.0.0.12”}
{“reqId”:“pO1ROkbmvsgTlyvvXNi1”,“level”:0,“time”:“2020-07-09T02:49:10+00:00”,“remoteAddr”:“192.168.11.3”,“user”:“xyz”,“app”:“workflowengine”,“method”:“GET”,“url”:"/apps/onlyoffice/ajax/config/2084071?filePath=%2FDocument.docx&inframe=2",“message”:“Flow activation: rules were requested for operation Block access to a file”,“userAgent”:“Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0”,“version”:“19.0.0.12”}
{“reqId”:“pO1ROkbmvsgTlyvvXNi1”,“level”:0,“time”:“2020-07-09T02:49:10+00:00”,“remoteAddr”:“192.168.11.3”,“user”:“xyz”,“app”:“workflowengine”,“method”:“GET”,“url”:"/apps/onlyoffice/ajax/config/2084071?filePath=%2FDocument.docx&inframe=2",“message”:“No flow configurations is going to run Block access to a file”,“userAgent”:“Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0”,“version”:“19.0.0.12”}
{“reqId”:“pO1ROkbmvsgTlyvvXNi1”,“level”:0,“time”:“2020-07-09T02:49:10+00:00”,“remoteAddr”:“192.168.11.3”,“user”:“xyz”,“app”:“onlyoffice”,“method”:“GET”,“url”:"/apps/onlyoffice/ajax/config/2084071?filePath=%2FDocument.docx&inframe=2",“message”:“Config is generated for: 2084071 with key 165863524”,“userAgent”:“Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0”,“version”:“19.0.0.12”}
{“reqId”:“4acRb1f7xbY0bHijGUuz”,“level”:0,“time”:“2020-07-09T02:49:14+00:00”,“remoteAddr”:“my.static.ip”,“user”:"–",“app”:“serverDI”,“method”:“GET”,“url”:"/apps/documentserver_community/3rdparty/onlyoffice/documentserver/web-apps/apps/documenteditor/main/locale/en.json",“message”:“The requested alias “PreviewManager” is depreacted. Please request “OCP\IPreview” directly. This alias will be removed in a future Nextcloud version.”,“userAgent”:“Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0”,“version”:“19.0.0.12”}

Hi earth,

I am sorry, but the logs do not tell me anything.
What about using the domain name instead of the local IP? Is this an option?

I would propose to start a new thread with this specific topic which is not linked to ARM64. A new topic would attract attention from other members of the community.

Best,
mbcon

2 Likes

Dear, with new verision of community documents server 0.18.
Will this process work?
Please guide thanks

Hi @earth,
Hope you are doing well!
I am still on NC 19.0.0 / Community Server 0.1.7. I understand your concern. Reading the various sources about OO Community versions does not give much confidence.
Unfortunately I do not have time for playing around with NC at the moment. But if you dare to give it a try, keep me posted, please!

Best,
mbcon

VMware has now a (non-supported) version of its hypervisor (ESXi) for ARM

Would this simplify things?

i does work on 19.0.4 / Community Server 0.1.8.
let see when 20 comes at my location, and than will update with results from nextcloud 20
thanks

1 Like

Hello @anon71540698,
I am unsure how this could help. We are running x86_64 binaries on a ARM v8 architecture using qemu, because there is no native binary. There is no issue with virtualization (docker) in general. Or did I get you wrong?

Best,
mbcon

Hi @earth,
Thanks a lot! With your input I upgraded to OO 6 + DocumentServer 0.1.8. Still too lazy to upgrade NC, though :nerd_face:

Best,
mbcon

Did I miss something? Still no convenient and guaranteed working way for using OnlyOffice on e. g. Raspberry Pi - right?

try above mentioned process and you will surely get office working on Pi

1 Like

Hi @earth,
you really tried NC 20 + OO?! And that worked?! Great news, man, really. Makes me feel confident about NC future releases in combination with OO!

:+1: You are the pro!

1 Like

So, this mostly works, but I cannot save Excel files. I have had to use the various “generic” OnlyOffice workarounds to get files to save at all (documentserver:flush), but no matter what I try, Excel files never save. Word and PowerPoint files seem to save.

The log file generated by the wrapper invariably produces the following.

change_code: e.ZH=!1;e.EMc=e.Mcb();null!=d&&d()})}else null!=d&&d()};Qa.prototype.tVf=function(c,d,e){if(null!=d){this.ZH=!0;if(null==c){var h=a.Asc.editor.td.Eoa,z;for(z in h)Ta(h[z])&&Ta(h[z].Hg)&&Ta(h[z].Hg.controller)&&(h[z].fSa(),h[z].Hg.controller.Dh());wb.yg();wb.uh();wb.fJa(null);wb.BDa(null);c=new AscCommonExcel.ePc;wb.gld(c,!1)}h=new AscCommon.Paa(d,d.length);h.Ew=null;var f=h.jb(),n=4;for(z=0;z<f&&(!0!==a.NATIVE_EDITOR_ENJINE||!a["native"].CheckNextChange||a["native"].CheckNextChange());z++){var Fa=

change: Uncaught TypeError: Cannot read property 'Eoa' of null

DoctRenderer:<result><error index="-2" /></result>

Are others able to save Excel files OK?