A new Discourse user, lyseoy, encountered an issue where all files and directories appeared to have vanished from the root after setting up Mailgun for email. Despite the forum still loading in the browser, running ls showed nothing, and commands like ./discourse-setup and ./discourse-doctor failed with “command not found” lyseoy. osioke suggested using ./discourse-doctor for diagnostics, but it didn’t help. Stephen correctly pointed out that lyseoy was likely in the wrong directory — specifically, their home folder instead of /var/discourse. After lyseoy confirmed they were indeed in the wrong location, the issue was resolved by navigating to the correct directory. The user expressed surprise that ls didn’t reveal anything at root, but the real problem was simply being in the wrong working directory. No files were actually lost — it was a navigation error. The forum remained functional throughout, confirming the system itself was intact. This highlights the importance of verifying your current directory (pwd) and using cd /var/discourse after reconnecting via SSH to ensure you’re in the correct location for Discourse management commands.
I’m in the process of spinning up Discourse for the first time. I just finished getting my mail server setup. I’m using Mailgun, and their DNS checking tool gives me all green check marks. Still I’m not receiving the activation email when signing up for the forum. So I find this discussion:
I Putty into the system to check the settings using ./discourse-setup, but nothing. I use the “ls” command, and there is nothing! The droplet is still working, because when I visit the forum, the welcome screen shows up in my browser.
What happened here? The system says it needs a restart; Will my files and directories show up after that?