Cannot get file info from WOPI storage uri

i have installed collabora online using docker and Rest API host on [https://localhost:5001
now i am facing error Cannot get file info from WOPI storage uri [https://localhost:5001/api/wopi/files/ahmed?reuse_cookies=ALFRESCO_REMEMBER_ME%3D1%3A_gcl_au%3D1.1.908821500.1633419112%3Autm_source%3Dalfresco%3Autm_medium%3Ddirect%3A_ga%3DGA1.1.586843340.1633419113%3Agtm_referralHostname%3Dlocalhost%3A_alfTest%3D_alfTest%3A_gid%3DGA1.1.1978794307.1634189258]. Error: Connection refused| wsd/Storage.cpp:647

Note.i have also installed alfresco on same machine

@vicky, Welcome.

It could be that there is another container running of the port.

you can run docker ps -a to list all containers.

Also, you can run docker stop [container-id] to stop the container

Then you can restart your docker container.

You can follow the steps in the link as a guide: CODE Docker image โ€” SDK https://sdk.collaboraonline.com/ documentation

I am really grateful for your response. I have thoroughly checked all the containers. I have stopped all the container only keep one container running collabora/code:6.4.8.4 .even though i am still getting the same error

ibreoffice-app | frk-00054-00054 2021-10-15 07:06:30.031044 [ forkit ] ERR Failed to unmount [/opt/lool/child-roots/NWWLVSjULglPzWBi].| common/JailUtil.cpp:68
^[[3;5~libreoffice-app | wsd-00007-00058 2021-10-15 07:28:08.549667 [ websrv_poll ] WRN client - server version mismatch, disabling browser cache. Expected: 6a844e4| wsd/FileServer.cpp:285
libreoffice-app | wsd-00007-00076 2021-10-15 07:28:08.678520 [ docbroker_003 ] ERR Cannot get file info from WOPI storage uri [https://localhost:5001/api/wopi/files/ahmed?reuse_cookies=ALFRESCO_REMEMBER_ME%3D1%3A_gcl_au%3D1.1.908821500.1633419112%3Autm_source%3Dalfresco%3Autm_medium%3Ddirect%3A_ga%3DGA1.1.586843340.1633419113%3Agtm_referralHostname%3Dlocalhost]. Error: Connection refused| wsd/Storage.cpp:647
libreoffice-app | wsd-00007-00076 2021-10-15 07:28:08.678652 [ docbroker_003 ] ERR loading document exception: Connection refused| wsd/DocumentBroker.cpp:1445
libreoffice-app | wsd-00007-00076 2021-10-15 07:28:08.678724 [ docbroker_003 ] ERR Failed to add session to [/api/wopi/files/ahmed] with URI [https://localhost:5001/api/wopi/files/ahmed?reuse_cookies=ALFRESCO_REMEMBER_ME%3D1%3A_gcl_au%3D1.1.908821500.1633419112%3Autm_source%3Dalfresco%3Autm_medium%3Ddirect%3A_ga%3DGA1.1.586843340.1633419113%3Agtm_referralHostname%3Dlocalhost]: Connection refused| wsd/DocumentBroker.cpp:1407
libreoffice-app | wsd-00007-00076 2021-10-15 07:28:08.678788 [ docbroker_003 ] ERR Error while loading : Connection refused| wsd/LOOLWSD.cpp:3465
libreoffice-app | wsd-00007-00076 2021-10-15 07:28:08.920355 [ docbroker_003 ] ERR No DocBroker found, or DocBroker marked to be destroyed. Terminating session ToClient-034| wsd/ClientSession.cpp:332
libreoffice-app | wsd-00007-00076 2021-10-15 07:28:08.921461 [ docbroker_003 ] ERR No DocBroker found, or DocBroker marked to be destroyed. Terminating session ToClient-034| wsd/ClientSession.cpp:332
libreoffice-app | wsd-00007-00076 2021-10-15 07:28:09.479141 [ docbroker_003 ] ERR Invalid or unknown session [034] to remove.| wsd/DocumentBroker.cpp:1484

Note: List of all containers on my machine

The problem seems to be that localhost from within the container refers to the container itself, and not the external WOPI host.

but how do i resolve this issue?

Still looking for help. Any one please any suggestion any idea?

You should use the external host name of the WOPI host.

sorry donโ€™t understand it what exactly you are pointing out. Can you explain it further how could I use external host name of the WOPI host.