YunoHost-Apps / mastodon_ynh

Free, open-source social network for YunoHost
https://joinmastodon.org/
GNU Affero General Public License v3.0
84 stars 36 forks source link

Fatal error while trying to install Mastodon on Raspberry Pi 4 #240

Closed narFnarF closed 3 years ago

narFnarF commented 3 years ago

Note: This is a copy of : https://github.com/YunoHost/issues/issues/1668

I attempted to install Mastodon on my Yunohost and got a fatal error. I'm reporting the error here as the app suggested me to do.

Screenshot of the error:

Paste of the error: https://paste.yunohost.org/raw/yewivizido

My device:

I'm very new to Yunohost but I find it very cool so far. Don't hesitate to ask for more infos. I'll help as much as I can.

alexAubin commented 3 years ago

Indeed, these days many people report that same issue about bcrypt failing to compile

2020-10-20 00:21:10,435: WARNING - current directory:
2020-10-20 00:21:10,436: WARNING - /var/www/mastodon/live/vendor/bundle/ruby/2.6.0/gems/bcrypt-3.1.13/ext/mri
2020-10-20 00:21:10,437: WARNING - make "DESTDIR="
2020-10-20 00:21:10,439: WARNING - compiling bcrypt_ext.c
2020-10-20 00:21:10,440: WARNING - compiling crypt_blowfish.c
2020-10-20 00:21:10,441: WARNING - gcc  -D__SKIP_GNU -I/opt/rbenv/versions/2.6.6/include  -D_FILE_OFFSET_BITS=64
2020-10-20 00:21:10,442: WARNING - -c -o x86.o x86.S
2020-10-20 00:21:10,444: WARNING - x86.S: Assembler messages:
2020-10-20 00:21:10,445: WARNING - x86.S:202: Error: junk at end of line, first unrecognized character is `,'
2020-10-20 00:21:10,446: WARNING - make: *** [<builtin>: x86.o] Error 1
[...]
2020-10-20 00:21:10,458: WARNING - An error occurred while installing bcrypt (3.1.13), and Bundler cannot continue.
2020-10-20 00:21:10,459: WARNING - Make sure that `gem install bcrypt -v '3.1.13' --source 'https://rubygems.org/'`
2020-10-20 00:21:10,460: WARNING - succeeds before bundling.

I'm really not knowledgeable enough about this app and ruby to know how to fix it tho, maybe the people maintaining the app know better :/

ghost commented 3 years ago

Hi even so I run on normal on x86 architecture, I'm unable to install mastodon.

Der Vorgang konnte nicht abgeschlossen werden 'Installiere die Anwendung 'mastodon''. Bitte gib das vollständige Protokoll dieser Operation mit Klicken Sie hier an, um Hilfe zu erhalten

The logs are uploaded to Yunohost Paste If this is not related to the ARM-error I would create a new issue.

Thanks in advance

morta5 commented 3 years ago

Hi! This issue can be fixed by using the install file attached to this comment. In the Script I added two lines in the „ DOWNLOAD, CHECK AND UNPACK SOURCE“ section. install

ghost commented 3 years ago

As I don't know how I could make this work with the provided workaround - will these changes also come to the master branch?