Package Details: mastodon 4.3.2-2

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.125359
First Submitted: 2018-06-19 19:35 (UTC)
Last Updated: 2024-12-24 15:43 (UTC)

Latest Comments

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

shtrophic commented on 2023-09-21 16:06 (UTC)

about the upcoming v4.2.0 update, does this package handle database migrations upon updating?

dodecahedron commented on 2023-07-10 15:14 (UTC)

@peippo I intentionally didn't increase the $pkgrel for some changes so that people with already working installations won't have to rebuild the package.

peippo commented on 2023-07-10 07:41 (UTC)

Thanks @dodecahedron for all your quick reaction and prompt changes! This is really great open source collaboration :)

Could you please remember to increase the $pkgrel counter with every change, so the package gets rebuilt for people using aur toolchains or helpers? Thanks!

hafeoz commented on 2023-07-09 14:58 (UTC)

I believe git and base-devel (or at least parts of it) should be added as depends.

I have built this AUR on one machine and installed the resulting package on another machine. Upon installation, some files are actually being compiled and resulting in a non-working installation as make, gcc and maybe other packeges are not installed on the machine. Installing git and base-devel fixed it.

mansuetus commented on 2023-07-09 08:04 (UTC) (edited on 2023-07-09 08:17 (UTC) by mansuetus)

Thank you @dodecahedron & @peippo : the proposed Gemfile change did not change anything to the erb/compiler problem on my system.

I tested with a "vanilla" /usr/lib/ruby/3.0.0/erb.rb (and it crashed as before, with updated mastodon package).

So I used my "full path" erb.rb file, and it works again.

(EDIT : if you want to test things on my system without "flooding" here since we have 2 workarounds, you can contact me with my username on my mastodon server that is pilote.me)

peippo commented on 2023-07-08 13:05 (UTC)

I just experimented a bit, and found that adding

echo "gem 'erb'" >> Gemfile

to prepare() helped with this. It makes my recent suggestion of rebuilding the bundle in post_install() unnecessary :)

mansuetus commented on 2023-07-08 10:39 (UTC) (edited on 2023-07-08 10:43 (UTC) by mansuetus)

For those having a hard-time with erb, this is my << don't downgrade >> way to fix the erb/compiler crash. If someone clever knows why this change was required =)

$ diff erb.rb.ORIG /usr/lib/ruby/3.0.0/erb.rb
16,19c16,19
< require 'erb/version'
< require 'erb/compiler'
< require 'erb/def_method'
< require 'erb/util'
---
> require '/usr/lib/ruby/3.0.0/erb/version'
> require '/usr/lib/ruby/3.0.0/erb/compiler'
> require '/usr/lib/ruby/3.0.0/erb/def_method'
> require '/usr/lib/ruby/3.0.0/erb/util'

peippo commented on 2023-07-04 07:27 (UTC)

@mansuetus: that’s exactly the error I had, and for which rebuilding the bundle helped (thanks @dodecahedron for adding that line so quickly to the install script)

mansuetus commented on 2023-07-04 06:36 (UTC) (edited on 2023-07-08 09:15 (UTC) by mansuetus)

I also have the issue with erb/compiler https://aur.archlinux.org/packages/mastodon?O=20#comment-892275 when having done full upgrade, deleting the AUR "mastodon" directory to build it from scratch. I also tried to delete several directories in "/var/lib/mastodon/" (".bundle", "vendor", ...) : the error always comes back, and requires pacman -U in directory where I downloaded the list from comment 892275.

This is pretty hard to test, since "chown mastodon:mastodon ." is veeeeery long to finish.

EDIT : \o/ thank you for fixing the "chown" part of script <3

peippo commented on 2023-07-02 21:01 (UTC)

I found updates tend to work if I refresh the entire bundle. For that, I added

sudo -u mastodon RAILS_ENV=production NODE_OPTIONS=--openssl-legacy-provider bundle install --force --standalone

at the top of the post_upgrade() function