Clone to a new server; Change Domain; New Topic Asking for Login Everytime

AI-generated summary

A user marlinhares reports an issue after cloning a Discourse instance to a new server and changing the domain: new topics redirect to the login page. pfaffman suggests checking if the issue occurs in safe mode. Ethsim2 explains that existing posts still reference the old domain and recommends using the discourse remap command to update domain references, followed by rebaking posts. marlinhares confirms the problem was resolved by disabling and reenabling a plugin, but also acknowledges the value of the remapping advice for future setups. marlinhares thanks Ethsim2 for the guidance.

hi, new to discourse.

I need to clone an environment.

What I did:

  • rsync -a from dirs discourse_docker and discourse_volumes
  • moved the dirs to a new server
  • changed discourse_docker/containers/app.yml (the domain name)
  • generated new certs to new domain, moved cert and key to discourse_volumes/shared/standalone/ssl
  • ran ./launcher rebuild app on new server

Works great, everything appears normal. When I repply a topic works. But when I create a “New Topic" it sends me to the login page.

What am I doing wrong? Any hint?

Does that happen in safe mode?

i think you need to do a another task to map the topics from the old domain name to the new domain name

Many thanks for this info.
Problem solved with your help.

In safe mode it worked ok.

Exited safe mode and as long as I disabled each plugin I retested the functionality.

One plugin was causing the trouble.

But fortunately when I reenabled it the functionality worked ok. I did not know what happened. Maybe a remap on backstage when I disabled and reenabled it.

Problem solved

Very precious advice @Ethsim2

As stated in my earlier post, the problem was solved, disabling and reenabling the offending plugin.

But as a novice in discourse I will definitely do your advice on this new environment.