Package Details: mastodon 4.2.8-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: dodecahedron
Last Packager: dodecahedron
Votes: 20
Popularity: 1.04
First Submitted: 2018-06-19 19:35 (UTC)
Last Updated: 2024-02-23 15:26 (UTC)

Latest Comments

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

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

Sandwich commented on 2023-06-24 11:31 (UTC)

Don't worry, is there a possibility that some dependence is missing? Or maybe there is a certain CPU Flag that is not supported by the i440fx and q35 machine type.

If this helps, my virtual machines are completely bare bones with the following packages:

base base-devel linux-lts grub grub-btrfs efibootmgr dhcpcd sudo git reflector vim logrotate ncdu neofetch htop fish networkmanager firewalld lsof openssh cronie prometheus-node-exporter lvm2 btrfs-progs nfs-utils qemu-guest-agent spice-vdagent python-pyopenssl

dodecahedron commented on 2023-06-24 03:04 (UTC)

Sorry, I'm unable to replicate that error. It compiles successfully for me in a clean container environment.