Change domain name of Riot

My YunoHost server

Hardware: Old laptop or computer
YunoHost version: 3.6.4.6
I have access to my server : Through SSH | through the webadmin
Are you in a special context or did you perform some particular tweaking on your YunoHost instance ? : no

Description of my issue

Hello!
I’ve recently purchased a domain and have began migrating my apps from my domain.nohost.me to my purchased domain.se

So far everything has gone smoothly, I began with the Shell In a box and moved on to Nextcloud, RSS etc to make sure I understood the process with configuring the DNS in the Registrar.
The way I did this was to use the Yunohost web interface of each app to run the change url command.
Now when I took the initiative to start migrating Riot, I really hit a snag.

It seems like even though I’ve done the same procedure as for the other apps (made a subdomain.domain.se, installed let’s encrypt and then changed the domain for Riot, the iOS and desktop applications won’t accept my new domain.se (returns a 404).
Fortunately I guess, the old domain.nohost.me still works in those apps so I’m not blocked from communicating with the other users on Riot.

I don’t, however, know how to proceed.
Strangely enough, accessing riot.domain.se in the web browser seems to work, but the domain.nohost.me doesn’t.

Please advice

Error messages:

I can see a lot of

open() “/var/www/riot/config.riot.domain.se.json” failed (2: No such file or directory),
and indeed there is no such file in the www/riot folder.
There is a config.json in that path however.

Hey @mackemint,

Firstly, please use the template to file a support request.

You haven’t made clear how you are doing the migration. Are you using the CLI with the backup and restore commands or? In general, it sounds like you need to run the change_url action on your riot installation so it uses the new domain.

1 Like

Thanks, I updated the error description with the template.

OK I wasn’t aware of this command, I thought I needed to do a change URL for every app individually.

Please disregard my previous comment, I completely misread what you wrote. My apologies.

I ran the change url from the Admin UI to point to my new URL, my subdomain.domain.se
When I now run the change-url command from the terminal, I get the message

The old and new domain/url_path are identical (‘subdomain.domain.se/’), nothing to do

I found a reference to my old domain.nohost.me in /var/www/riot/config.json
Tried changing that to my new domain but without success. Still only in a desktop web browser can I access Riot, but using the mobile app this URL returns a 404 error.

Hello,

Well, do you want to change the URL of Riot or the synapse server ? It’s different.

I want to change the access URL of my Riot instance, I was under the impression that the URL of the synapse server can’t be changed.

Yes exacly.

For riot if you have to many problem, could also just remove the app and reinstall it on the new domain. On riot there are no data to save.

Seems like I’ve yet again conflated the server with the Riot app. :sweat:

So to make the move of my Synapse installation, and thereby changing the URL of my ‘custom server’-field to my new domain, I’ll have to do a backup, uninstall, re-install to my desired domain and restore procedure to not loose all my conversations and whatnot. Correct?

Looks pretty straightforward, anything I should keep in mind?

To be clear:

  • For Synapse: it’s not possible to change the domain of the install. Maybe when #136 will be finished something might be possible. But for now nothing is possible because if you change the domain of synapse you change the username of all synapse user… and this is not possible.

  • For Riot: there are no data. This is just a web client. The app just provide some javascipt and html code and some pictures. Nothing more. So removing this app will dop any data. If you still have a problem to change the url of this app you can just remove the old install and install the app on the new domain.

1 Like

OK, thats a shame.
I guess I’ll have to start from a clean slate then if I want to get rid of my nohost.me domain.

Thanks alot for all your efforts in making this platform, I truly appreciate all the work that is done and the possibilities that it provides! :heart:

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