Package Details: mastodon 4.3.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: Vamp898
Last Packager: Vamp898
Votes: 22
Popularity: 0.131497
First Submitted: 2018-06-19 19:35 (UTC)
Last Updated: 2025-05-07 07:43 (UTC)

Latest Comments

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

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.

Sandwich commented on 2023-06-24 01:44 (UTC)

It sucessfully compiled on my Main PC but not on an Virtual Machine that has 6GB RAM 6GB Swap and 6Cores :/

Both systems are up to date

Sandwich commented on 2023-06-24 01:33 (UTC)

Hi, any updates? I also have precompilation issues:

ERROR in ./app/javascript/mastodon/containers/media_container.js 1:999 Module parse failed: Unexpected token (1:999) File was processed with these loaders: * ./node_modules/babel-loader/lib/index.js You may need an additional loader to handle the result of these loaders.

peippo commented on 2023-03-11 19:51 (UTC)

It's odd, yes. Good to know that I should work with current ruby versions - I'll try to find what's wrong with my installation