Package Details: mastodon 4.3.7-1

Git Clone URL: https://aur.archlinux.org/mastodon.git (read-only, click to copy)
Package Base: mastodon
Description: Your self-hosted, globally interconnected microblogging community
Upstream URL: https://github.com/mastodon/mastodon
Keywords: activitypub fediverse mastodon server
Licenses: AGPL3
Submitter: flacks
Maintainer: Vamp898
Last Packager: Vamp898
Votes: 22
Popularity: 0.46
First Submitted: 2018-06-19 19:35 (UTC)
Last Updated: 2025-04-03 03:14 (UTC)

Latest Comments

« First ‹ Previous 1 .. 4 5 6 7 8 9 10 11 Next › Last »

dodecahedron commented on 2022-10-13 18:18 (UTC)

It seems like updates to the Ruby stdlib packages recently caused Mastodon to break with errors like this:

Oct 13 14:43:52 exozyme bundle[20494]: [20494] ! Unable to load application: LoadError: cannot load such file -- digest/version
Oct 13 14:43:52 exozyme bundle[20494]: Did you mean?  digest/version
Oct 13 14:43:52 exozyme bundle[20494]: bundler: failed to load command: puma (/var/lib/mastodon/vendor/bundle/ruby/3.0.0/bin/puma)
Oct 13 14:43:52 exozyme bundle[20494]: /var/lib/mastodon/vendor/bundle/ruby/3.0.0/gems/bootsnap-1.11.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:27:in `require': cannot load such file -- digest/version (LoadError)
Oct 13 14:43:52 exozyme bundle[20494]: Did you mean?  digest/version

Until this is fixed, I recommend you do not upgrade any Ruby packages. Does anyone with more Ruby knowledge than me know what should be done to actually fix this?

ZhangHua commented on 2022-08-27 03:40 (UTC)

line 76 should be -i nginx.conf because when run that command, current working directory has already been dist folder.

dodecahedron commented on 2022-08-25 23:16 (UTC)

@MShrimp4 Thanks, fixed!

MShrimp4 commented on 2022-08-25 03:53 (UTC)

Default dist/nginx.conf needs to be changed:

#root /home/mastodon/live/public
root /var/lib/mastodon/public # Change to this one

Or add this line to package()

sed -e 's/home\/mastodon\/live/var\/lib\/mastodon/g' \
    -i dist/nginx.conf

dodecahedron commented on 2022-04-28 21:03 (UTC) (edited on 2022-04-28 21:23 (UTC) by dodecahedron)

@istobic I've ran this package for nearly a year now and it's not much of a hassle.

Edit: I adopted the package and just pushed a major overhaul that fixes the issues listed in my previous comment.

istobic commented on 2022-04-27 15:40 (UTC) (edited on 2022-04-27 15:40 (UTC) by istobic)

@Ta180m: Is it still the same hassle as described in the pinned comment, or can you recommend using the package (your updated version)?

dodecahedron commented on 2022-03-30 23:43 (UTC) (edited on 2022-03-30 23:53 (UTC) by dodecahedron)

This is my updated version of the diff for Mastodon 3.5.0: https://paste.tildeverse.org/?de9bf19cd49588f5#5PhTH6fPu4dGifW8JhEBnjHW3JGTdsZmPfZK8TGBZrdP

dodecahedron commented on 2022-02-24 21:57 (UTC) (edited on 2022-02-24 23:04 (UTC) by dodecahedron)

I made several improvements for this package:

  • Updated link to https://github.com/mastodon/mastodon

  • Correctly set ReadWritePaths in the systemd service file

  • Use sudo instead of su for the post-install instructions because it's cleaner

  • Changed the tmpfiles configuration to not recursively modify /var/lib/mastodon and instead use chmod the files this package owns

Here's the diff: https://paste.tildeverse.org/?36f7d91d98bed155#AgNER737dt3br38M7D5ushznAJeAKQLaYrxGub1JiuZf

Note: the chmod command seems to fail with bash: /usr/bin/chown: Argument list too long, so I think running chown mastodon:mastodon -R /var/lib/mastodon post-install might be a better option.

heftig commented on 2021-11-14 00:13 (UTC)

The tmpfiles config you install modifies /var/lib/mastodon recursively on every boot and anytime pacman touches tmpfiles.d. That can be quite slow, taking 30 seconds or more each time.

You might want to go back to chmod'ing post-install/upgrade and only modify the dirs and files contained in the package, and not recursively.

dodecahedron commented on 2021-07-29 16:38 (UTC)

Due to permission issues, I had to add

[Service]
ProtectSystem=no

to the override files of the systemd services for this package to work.