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

Snap set siteurl "is not a valid url" #51

Open
motherboard1999 opened this issue Jan 11, 2023 · 1 comment
Open

Snap set siteurl "is not a valid url" #51

motherboard1999 opened this issue Jan 11, 2023 · 1 comment

Comments

@motherboard1999
Copy link

motherboard1999 commented Jan 11, 2023

Hey,

I founded the following bug, which is very critical for us.

We want to change the Site URL of our Rocketchat system. We change it in the webinterface and works perfect UNITL we restart the service. Then Rocketchat use the default "http://localhost:3000" again.

After I changed the URL in the webinterface I checked the snap configuration:
root@rocketchat:~# snap get rocketchat-server siteurl http://localhost:3000
You can see webinterface do not override this variable. I think thats the problem.

So I tried to change the variable:
root@rocketchat:~# snap set rocketchat-server siteurl=http://localhost root@rocketchat:~# snap set rocketchat-server siteurl=http://localhost.de error: cannot perform the following tasks: Run configure hook of "rocketchat-server" snap (run hook "configure": [ERROR] "http://localhost.de" is not a valid url)
But you see so soon I use a FQDN with .de the hook says it's not a valid url.

Our system:
+-------------------------------------------------+ | SERVER RUNNING | +-------------------------------------------------+ | | | Rocket.Chat Version: 5.4.0 | | NodeJS Version: 14.19.3 - x64 | | MongoDB Version: 4.4.15 | | MongoDB Engine: wiredTiger | | Platform: linux | | Process Port: 3000 | | Site URL: https://rc.multamedio.de | | ReplicaSet OpLog: Enabled | | Commit Hash: 51f456a544 | | Commit Branch: HEAD | | | +-------------------------------------------------+

Thank you!

@Lax4ever
Copy link

I would also be interested in seeing how this is resolved. I have not yet tried to change the variable through snap set rocketchat-server siteurl=<URL, not localhost> but if that is the course I need to take it would be great to know. I do get the same issue, however, of the Site URL resetting to localhost:3000 every time the service restarts. This is on RC 5.4.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants