Search Criteria
Package Details: mastodon 4.3.2-2
Package Actions
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: | bjo |
Last Packager: | bjo |
Votes: | 22 |
Popularity: | 0.102152 |
First Submitted: | 2018-06-19 19:35 (UTC) |
Last Updated: | 2024-12-24 15:43 (UTC) |
Dependencies (15)
- ffmpeg (ffmpeg-nvcodec-11-1-gitAUR, ffmpeg-cudaAUR, ffmpeg-fullAUR, ffmpeg-decklinkAUR, ffmpeg-amd-fullAUR, ffmpeg-ffplayoutAUR, ffmpeg-full-gitAUR, ffmpeg-gitAUR, ffmpeg-headlessAUR, ffmpeg-amd-full-gitAUR, ffmpeg-obsAUR, ffmpeg-libfdk_aacAUR)
- git (git-gitAUR, git-glAUR)
- libidn (libidn-gitAUR)
- libpqxx (libpqxx-gitAUR)
- libvips (libvips-gitAUR, libvips-notiffAUR)
- libxml2 (libxml2-gitAUR, libxml2-2.9AUR)
- libxslt (libxslt-gitAUR)
- libyaml (libyaml-gitAUR)
- nodejs (nodejs-gitAUR, python-nodejs-wheelAUR, nodejs-lts-hydrogen, nodejs-lts-iron)
- postgresql (postgresql-12AUR, postgresql15-docsAUR, postgresql15AUR, postgresql17-docsAUR, postgresql17AUR, postgresql13AUR, postgresql-gitAUR)
- protobuf (protobuf-gitAUR)
- ruby-bundler
- sudo (fake-sudoAUR, polkit-fakesudoAUR, sudo-gitAUR, doas-sudo-shimAUR, doas-sudo-shim-minimalAUR, sudo-hgAUR, sudo-selinuxAUR, fudo-gitAUR)
- valkey (valkey-gitAUR)
- zlib (zlib-ng-compat-gitAUR, zlib-gitAUR, zlib-ng-compat)
Latest Comments
« First ‹ Previous 1 .. 3 4 5 6 7 8 9 10 Next › Last »
peippo commented on 2022-11-03 09:46 (UTC)
Thanks for the reply, and thanks for the package!
It did not work for me as-is. Might be connected to other things as well, but the changes I commented about made it work for me. Not saying that that’s what’s supposed to go into the PKGBUILD, but maybe it helps others who have similar struggles. For the record, I did not try to backup the config file and database, then uninstall mastodon and reinstall a clean copy from scratch, which might have been easier.
ZhangHua commented on 2022-11-03 03:44 (UTC)
@peippo
I think there is no need to set permission for
/opt/mastodon/.bundle
because it is just a symbol link to/var/lib/mastodon/.bundle
, when read/write those files, program should follow the link to the place it have permission to do .As all the file in
/var/lib/mastodon
belongs tomastodon:mastodon
, I think there is also no need to set permission explicitly for/var/lib/mastodon/public
.Files in
/opt/mastodon/app
is read-only for user mastodon because there shouldn't change them when setting up or precompiling assets.There is also no
/var/lib/mastodon/node_modules/font-awesome/css/postcss.config.js
on my computer but precompiling still works. You can check if your working directory is/opt/mastodon
rather than/var/lib/mastodon
, files in/var/lib/mastodon
are more like an overlay to add writable data to/opt/mastodon
.I am also still trying to understand what happens when installing/upgrading this package, so I can't guarantee that I am right. If I am wrong, please let me know so I can fix the gist. You can leave a comment on gist to avoid disturbing ones noticing here.
peippo commented on 2022-11-02 17:00 (UTC)
One last comment for today, because it might help others: manually copying
/opt/mastodon/postcss.config.js
to/var/lib/mastodon/node_modules/font-awesome/css/
did allow me to run the precompile step. Not ideal, but works.peippo commented on 2022-11-02 15:26 (UTC)
Thanks, @ZhangHua!
I also still added
to the
tmpfiles.d
, and manuallyusermod
ed mastodon’s home directory.Note that the permissions I gave are maybe too generous, and that I don’t have any idea how the home directory of the user could be updated from the
sysusers.d
(would stopping all processes be enough?)However, I still end up with an error during precompile, which I don’t seem to be able to solve:
Do you have any idea how to fix this? (google and stackoverflow did not help ;))
ZhangHua commented on 2022-11-02 13:15 (UTC)
@peippo Oh I see, I forgot to set proper options, you can add
options=(!lto)
just like https://github.com/archlinux/svntogit-community/blob/packages/ruby/trunk/PKGBUILD#L16peippo commented on 2022-11-02 11:21 (UTC) (edited on 2022-11-02 12:06 (UTC) by peippo)
@ZhangHua: I tried the PKGBUILD from your gist, but I cannot build it. I always end up in a segfault during ruby compilation:
<internal:gc>:240: [BUG] Segmentation fault at 0x0000000000000004
full build log here
edit: seems to be connected to LTO, see https://bugs.ruby-lang.org/issues/18062 . I’ll try building without LTO and will let you know.
edit 2: with
options=(!lto)
it builds, but the installed bundle seems to get lost - are all the symlinks in the correct direction, or should they be the opposite way around?ZhangHua commented on 2022-10-28 03:21 (UTC) (edited on 2022-10-29 04:07 (UTC) by ZhangHua)
I think we may build a custom version of ruby instead using the system one, just like what the Dockerfile does, the size of custom one is just about 121MB and I think it is affordable compared to this package's size.
Edit: I have tried to use the custom version of ruby and it seems works well. If you want to try, you can use this gist to create a newer version of
mastodon
package. Please also note that there are some breaking changes such as moving program to/opt/mastodon
and just make/var/lib/mastodon
for storing data, you may want to run migrate steps to keep your server work after upgrading.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:
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 beendist
folder.dodecahedron commented on 2022-08-25 23:16 (UTC)
@MShrimp4 Thanks, fixed!
« First ‹ Previous 1 .. 3 4 5 6 7 8 9 10 Next › Last »