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

Install instructions are outdated #1208

Closed
innosflew opened this issue Apr 27, 2023 · 3 comments
Closed

Install instructions are outdated #1208

innosflew opened this issue Apr 27, 2023 · 3 comments
Labels
install-guide Installing a Mastodon instance

Comments

@innosflew
Copy link

innosflew commented Apr 27, 2023

Recently I had to set up like three different Mastodon instances on different servers. Every time I've followed the "Installing from source" guide to the letter and each time I have run into the same issues:

The first issue is at the "Setting up nginx" and "Acquiring a SSL certificate" part. When you try to set up certbot using the command from the guide it modifies your Nginx configuration that you've already set up in the previous step and causes it to fail. In order to avoid this you have to run certbot in certonly mode by using this command: certbot certonly --nginx -d example.com and only then copy the configuration template for nginx per the instructions, then uncomment the ssl_certificate and ssl_certificate_key lines in /etc/nginx/sites-enabled/mastodon and then restart nginx with systemctl reload nginx. This might have caused less experienced users to think they did something wrong (even though they followed the guide) and give up. From what I've seen this issue has already been reported last year but the guide is still the same.

The second issue I noticed at each install is that after I set everything up the site looks broken. I only see a white page with a black Mastodon logo somewhere and nothing else at all. The way I managed to fix this every time is by modifying the folder permissions of the main Mastodon folder and its subfolders to 775 using the Chmod command. As I've said this has happened at every installation even though I was installing on different computers, so this might also be worth mentioning in the guide.

@aaaaalbert
Copy link
Contributor

Re file permissions: This is also reported in #1128, and a docs fix (with stricter dir access mode than yours) has been proposed and is linked there.

Makes me wonder which OS/flavor you are using. I'm looking at the user creation template, /etc/adduser, on a Ubuntu 22.04.2 LTS and a Raspbian/Debian Bullseye, and both have a default of DIR_MODE=0755.

@innosflew
Copy link
Author

innosflew commented May 7, 2023

I've used Hetzner cloud servers with Ubuntu 22.04 each time. I don't remember what were the default permissions. I just changed it to 775 thinking that Mastodon is definitely going to load with that one. But now I have changed it to 755 and everything seems to be working still. Which means the default permissions were probably even stricter than 755.

@andypiper andypiper added the install-guide Installing a Mastodon instance label Jun 11, 2023
@brookmiles
Copy link
Contributor

The certbot instructions have been fixed with #1036

@vmstan vmstan closed this as completed Dec 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
install-guide Installing a Mastodon instance
Projects
None yet
Development

No branches or pull requests

5 participants