What type of hardware are you using : Old laptop or computer
What YunoHost version are you running : 12.0.14
What app is this about : Mastodon
Describe your issue
My 1-Person-Instance (fedi.bcna.de ) dont show most Pictures in the WebFrontend and Mastodon-App on iOS. In Tusky on Android the Pictures are extremly softed.
This appears since some Weeks. I did many Restarts, all Updates, new Profiles for Testing.
i tried a Suggestion from Mastodon-DIskussion on Github (RAILS_ENV=production ./tootctl media remove), but this does not help.
Where i have to check, whats happend?
What can i do?
Share relevant logs or error messages
Where is the Logfile i have to check?
Start by doing a little cleaning:
sudo apt autoclean -y & sudo apt autoremove -y
This command cleans up storage:
sudo yunohost tools basic-space-cleanup
Clean the server and swap.
sync; echo 3 > /proc/sys/vm/drop_caches & swapoff -a & swapon -a
Make a backup before:
yunohost backup create --apps mastodon
To go further.
To be executed as root :
$ sudo su - Mastodon -s /bin/bash
> Or
$ cd /var/www/mastodon/live/
$ mv public/packs/ /tmp/
$ Rails_env = bac /rails de production: précompilation
Then, relaunch the mastodon services:
systemctl start mastodon-web.service mastodon-sidekiq.service mastodon-streaming.service
It worked for me.
Hello and thank You for tryingto help me.
mv public/packs/ /tmp/
gives back: command not found
When i look into directory “public” there is no directory “packs”.
What i am doing wrong?
i tried …
… but i get the Answer “command not found”.
You should normally have the “packs” folder
cd /var/www/mastodon/live/public/
Command
ls -al
What does it give?
Sorry, an error occurred with the order. Rails_env = bac /rails de production: précompilation
This one is correct:
RAILS_ENV=production bin/rails assets:precompile
JfmbLinux:
ls -al
… this :
root@yunohost:/var/www/mastodon/live/public# ls -al
total 324
drwxrwx--- 9 mastodon www-data 4096 Apr 13 23:08 .
drwxr-x--- 22 mastodon www-data 4096 Apr 11 23:27 ..
lrwxrwxrwx 1 mastodon www-data 15 Apr 2 09:14 500.html -> assets/500.html
drwxr-xr-x 9 mastodon mastodon 4096 Apr 6 13:43 assets
drwxrwx--- 3 mastodon www-data 4096 Apr 2 09:14 avatars
-rw-rw---- 1 mastodon www-data 2998 Apr 2 09:14 badge.png
-rw-rw---- 1 mastodon www-data 3551 Apr 2 09:14 embed.js
drwxrwx--- 2 mastodon www-data 155648 Apr 2 09:14 emoji
drwxrwx--- 3 mastodon www-data 4096 Apr 2 09:14 headers
drwxrwx--- 3 mastodon www-data 4096 Apr 2 09:14 ocr
-rw-rw---- 1 mastodon www-data 95633 Apr 2 09:14 oops.gif
-rw-rw---- 1 mastodon www-data 16948 Apr 2 09:14 oops.png
-rw-rw---- 1 mastodon www-data 190 Apr 2 09:14 robots.txt
drwxrwx--- 2 mastodon www-data 4096 Apr 2 09:14 sounds```
lrwxrwxrwx 1 mastodon www-data 11 Apr 2 09:14 sw.js -> packs/sw.js
lrwxrwxrwx 1 mastodon www-data 15 Apr 2 09:14 sw.js.map -> packs/sw.js.map
drwx------ 4 mastodon www-data 4096 Apr 11 02:51 system
-rw-rw---- 1 mastodon www-data 1077 Apr 2 09:14 web-push-icon_expand.png
-rw-rw---- 1 mastodon www-data 721 Apr 2 09:14 web-push-icon_favourite.png
-rw-rw---- 1 mastodon www-data 590 Apr 2 09:14 web-push-icon_reblog.png
root@yunohost:/var/www/mastodon/live/public#
i dont know, what “sw.js → packs/sw.js” means
strange: i don’t have node.js … i will install it …
Next message: Yarn is not installed
i dont understand this, because Mastodon worked fine for some months.
Otherwise, delete mastodon and restore the backup.
Make a backup of the Packs folder.
cd /var/www/mastodon/live/public
cp -R packs /tmp
Try a mastodon update again.
Check that the packs folder is present.
If it is not present, use backup of the Packs folder.
cd /tmp/
cp -R packs /var/www/mastodon/live/public
Relaunch the mastodon services
systemctl start mastodon-web.service mastodon-sidekiq.service mastodon-streaming.service
Thank You for Your Hints.
I deinstalled Mastodon.
Reinstalling of Mastodon only delivers an empty Nginx, without Mastodon.
I give up.