Can't connect OpenRemote mobile app with OpenRemote when run by Docker

Hi everyone,

I have recently learned about OpenRemote. I used the default OpenRemote Docker yml file from the quickstart guide to run a docker instance. I have succeeded run it on localhost, and after deploying OpenRemote to my hosting using the command

OR_HOSTNAME=mydomain docker-compose -p openremote up -d

I also have pull certificate from letsencrypt for it by using certbot (the same with demo page). However, whenever I tried to connect mobile app with the manager, I ran into these problem:

If I input “https:// mydomain.site” or mydomain.site, I got could not connect to domain, please verify address
If I input mydomain.site/manager, I came to input realm step, but after that, I got not found error

My app version is 1.1.1.

May I ask what did I do wrong, I appreciate any help, I have stuck for days. Thank you.

Please tell me if anyone need the logs, I’m willing to provide them.

I’d suggest navigating to https:// mydomain.site/manager/, on your computer (note the trailing backslash) sometimes there’s an issue with navigating to the proper manager URL. If that works, then you should use https://mydomain.site. Best of luck!

hi @panos , I do have access to https:// mydomain.site/manager/ on my browser. I still can’t manage to connect with mobile app

Does the connection to the browser on your desktop fully use HTTPS?

@panos yes I can, here’s the screenshot of it. I believe I’m using the same type of https with the demo.openremote.app which is from certbot and letsencrypt
image

I have a logs in proxy instance that said

26/Nov/2023:17:11:00 +0000 https~ my-pc-public-ip manager 0/0/1/10/11 "GET /api/master/apps/consoleConfig HTTP/1.1" 500 4/4/2/2/0 0/0
26/Nov/2023:17:11:00 +0000 https~ my-pc-public-ip manager 0/0/0/4/4 "GET /api/master/apps/consoleConfig HTTP/1.1" 500 4/4/2/2/0 0/0
26/Nov/2023:17:11:00 +0000 https~ my-pc-public-ip manager 0/0/0/5/5 "GET /api/master/apps/consoleConfig HTTP/1.1" 500 4/4/2/2/0 0/0
26/Nov/2023:17:11:01 +0000 https~ my-pc-public-ip manager 0/0/0/4/4 "GET /api/master/apps/consoleConfig HTTP/1.1" 500 4/4/2/2/0 0/0
26/Nov/2023:17:11:01 +0000 https~ my-pc-public-ip manager 0/0/0/5/5 "GET /api/master/apps/consoleConfig HTTP/1.1" 500 4/4/2/2/0 0/0
26/Nov/2023:17:11:01 +0000 https~ my-pc-public-ip manager 0/0/0/5/5 "GET /api/master/apps/consoleConfig HTTP/1.1" 500 4/4/2/2/0 0/0
26/Nov/2023:17:11:02 +0000 https~ my-pc-public-ip manager 0/0/0/5/5 "GET /api/master/apps/consoleConfig HTTP/1.1" 500 4/4/2/2/0 0/0

is this the reason ? if so, can you suggest me how to fix it ? thank you

After dig deeper, I found this, and I think this is the reason, I’m not a docker expert, can you help me fixing the yml file for this, thanks a lot!!

Have you inspected your certificate? if the certificate fails it uses a self-signed cert

According to your screenshot, I noticed there is an issue with the /deployment folder.

Can you assure you did the following command? That fills up the folder, giving issues in your screenshot.

./gradlew clean installDist

hi @pdw where should i run this command. I’m using docker instance provided in the Quickstart section and only run these following step

You did use the default docker. You need to fill that out nowhere. I answered with a solution to a problem you do not have.

I’d suggest using my pre-packaged collection.json, since I’ve gone through the struggles of all this before. I am inclined to believe that there is an issue with your called URLs, but I do not remember off the top of my head. You can find it at Release: OpenRemote Postman API Collection with fix for OAuth Authentication - #2 by panos

Right,

But the error in the screenshot shows the folder /deployment/manager/app is not found in the manager docker container. Second, the HTTP calls to the map API, are giving a 500 error. So, very likely the file mapdata.mbtiles (fileformat storing the maps) is not where it needs to be.

An easy way to check this hypothesis: can you check this link for your deployment: https://demo.openremote.app/manager_config.json

If that does not work, your screenshot telling /deployment/manager/app is not a directory will be correct. As this file is stored in /deployment/manager/app/manager_config.json

Hi @pdw thanks for your fast reply, I recently check your suggestion, and indeed, it’s returning not found on my https://mydomain.site/manager_config.json. Then what should I do to resolve this ? Thank you!!

To give you more information, there’s a folder deployment created (in the same directory with yml file, not in the docker container) with nothing inside when I run the docker instance. Is this the folder I’m looking for ? Thank you!

hi @panos @pdw , thank you for all of your supports, I have managed to connect with the mobile app.

What I did was manually create folder deployment/manager/app and manually create the file manager_config.json. Then add this following line to the yml file under manager services and under volumn line: - ./deployment:/deployment

Quite not sure the creation of the folder is necessary, but it works, I would like not to touch it :smile:

Top,

I was typing to add the last line to the docker-compose.yml file. The last line alone should be enough if you run it from the git repository. Your message came first.

Fast and good thinking, and have some fun!

@panos can you take this found bug along to wherever or whoever can solve this?

Peter

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.