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

🐛 [OpenProject] <unable to change the host name in the 'System Settings' > #1690

Open
kejXero opened this issue Dec 29, 2024 · 9 comments
Labels
bug Something isn't working stale Element will be closed automatically

Comments

@kejXero
Copy link

kejXero commented Dec 29, 2024

Description

I am running OpenProject as an Home Assistant add-on. I have changed the port number from the default 8080 to 18080, due port is being used in another add-on. After login, at the buttom of the webpage, the following is stated: Hostname setting mismatch. Your application is running with its host name setting set to localhost:8080, but the request is a 192.168.XX.YY hostname. This will result in errors! Go to System settings and change the "Host name" setting to correct this. It is not possible to change the host name from the current localhost:8080.

Reproduction steps

1. Go to 'Login screen'
2. Click on 'System settings / General'
3. Scroll down to 'Host name'
4. See error, unable to change host name from localhost.

Addon Logs

Clip of the log...

2024-12-29 17:25:33,996 INFO reaped unknown pid 47590 (exit status 0)
I, [2024-12-29T17:25:38.143351 #1003]  INFO -- : [d6598e5d-6282-4282-96e4-13e24cc50d21] method=GET path=/ format=*/* controller=HomescreenController action=index status=302 allocations=1601 duration=20.80 view=0.00 db=10.70 location=http://127.0.0.1:8080/login user=3
2024-12-29 17:25:39,144 INFO reaped unknown pid 47599 (exit status 0)
I, [2024-12-29T17:25:43.305990 #1003]  INFO -- : [bbcf19ce-a44a-488d-986d-ad9fbf86709a] method=GET path=/ format=*/* controller=HomescreenController action=index status=302 allocations=1613 duration=17.21 view=0.00 db=8.75 location=http://127.0.0.1:8080/login user=3
2024-12-29 17:25:44,309 INFO reaped unknown pid 47607 (exit status 0)
I, [2024-12-29T17:25:48.457679 #1003]  INFO -- : [d680f0ec-8286-4ea3-b37d-8dd4d7057d97] method=GET path=/ format=*/* controller=HomescreenController action=index status=302 allocations=1614 duration=21.72 view=0.00 db=11.00 location=http://127.0.0.1:8080/login user=3

Architecture

No response

OS

No response

@kejXero kejXero added the bug Something isn't working label Dec 29, 2024
@ash286
Copy link

ash286 commented Dec 31, 2024

I agree with this issue. Neither it allows to change hostname from the System settings / General tab nor it takes from Add-on config.yaml files. I can't even set OPENPROJECT_HTTPS="true" It doesn't take any environment variables set in the config.yaml file.

Copy link
Contributor

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@github-actions github-actions bot added the stale Element will be closed automatically label Jan 12, 2025
@ash286
Copy link

ash286 commented Jan 14, 2025

I am still waiting.

@kejXero
Copy link
Author

kejXero commented Jan 14, 2025

Same here. The issue is still open

@alexbelgium
Copy link
Owner

@baldarn Hi, I think you initially set up the add-on would you have time to check? Or should I discontinue the add-on? Thanks!

@baldarn
Copy link
Contributor

baldarn commented Jan 15, 2025

I will try and take a look.

I didn't see this issue till you pinged me ;)

@alexbelgium
Copy link
Owner

I will try and take a look.

I didn't see this issue till you pinged me ;)

Thanks! No worry, it's not like we're on a payroll ;-)

@baldarn
Copy link
Contributor

baldarn commented Jan 15, 2025

@ash286 @kejXero
i strongly recommend to use a proxy over the addon.

you can use nginix proxy admin
this can allow you to rewrite the hostname, add an ssl certificate, without changing the confs of the other addons

@ash286
Copy link

ash286 commented Jan 17, 2025

Thank you @alexbelgium and @baldarn for responding to this even though you are not on a payroll. I really appreciate it.

@ash286 @kejXero i strongly recommend to use a proxy over the addon.

you can use nginix proxy admin this can allow you to rewrite the hostname, add an ssl certificate, without changing the confs of the other addons

I'm not sure how can I combine nginix with cloudflare tunnel that I'm using. For testing purpose, I tried assigning variables OPENPROJECT_HTTPS, OPENPROJECT_HOST__NAME, SERVER_PROTOCOL_FORCE_HTTPS and OPENPROJECT_PORT direclty using portainer that created another container and worked but it still can't work over cloudflare tunnel. I mean I get the login screen but as soon as I make login it doesn't redirect into anything and all I see is a white screen. This is now different issue but, I have similar problem with nextcloud where I can see nextcloud login screen over the other end of cloudflare tunnel but loggin in doesn't take me anywehre. (Apparently, nextcloud has a configuration option to set extern url in trusted_domains and to change port).

I am a bit lost with Openproject and nextcloud. Your help and suggestions would be great🙏

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

No branches or pull requests

4 participants