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

mastodon user creation & ruby install #1396

Open
cmdr-nova opened this issue Jan 27, 2024 · 1 comment
Open

mastodon user creation & ruby install #1396

cmdr-nova opened this issue Jan 27, 2024 · 1 comment
Labels
admin Managing a Mastodon instance install-guide Installing a Mastodon instance

Comments

@cmdr-nova
Copy link

cmdr-nova commented Jan 27, 2024

I'm submitting this issue because there are multiple issues with the current install from source Mastodon instructions.

Firstly, if you're running things on Digital Ocean and installing Ubuntu, you're going to be a couple of versions ahead of what the guide says they're using. I'm assuming this means that some stuff detailed in the install instructions will not work, or be broken. I only assume this, because at this point, I am definitely not going to go back and wipe my entire droplet just to try and install an older version of Ubuntu.

Anyway.

When you get to the section that says

adduser --disabled-login mastodon

That works completely fine (and may I note that I'm speaking from having done this as root with sudo).

But then when you get to the very next instruction, still followed absolutely to the T, that instruction being:

su - mastodon

It will fail. This doesn't work. You have to instead use:

sudo -su mastodon

and then switch to the mastodon user's home directory.

Once you've done that, you're instructed to clone ruby, and then install the correct ruby version, but upon attempting to do so you'll get:

rbenv: no such command `install'
rbenv: version `3.2.3' not installed

And in order to remedy this, you'll need to ... clone the install function, like so:

git clone https://github.com/rbenv/ruby-build.git "$(rbenv root)"/plugins/ruby-build

After doing this, the install instructions move forward with ease, or at least they appear to. I will return to this issue if it fails beyond this point.

Further issues:

Once you reach the point where it's time to install Mastodon, the instructions will again ask you to

su - mastodon

Do not do this.

Use the method from before, and then type in

cd ~/

Then, and only then, clone Mastodon.

@aaaaalbert
Copy link
Contributor

(The su problem was also reported in #1372.)

@andypiper andypiper added install-guide Installing a Mastodon instance admin Managing a Mastodon instance labels Jan 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
admin Managing a Mastodon instance install-guide Installing a Mastodon instance
Projects
None yet
Development

No branches or pull requests

3 participants