# Mastodon do not show 99% of the Pictures since some Weeks

**URL:** https://forum.yunohost.org/t/mastodon-do-not-show-99-of-the-pictures-since-some-weeks/36453
**Category:** Support apps
**Tags:** mastodon, english
**Created:** [April 13, 2025, 1:18pm UTC](https://forum.yunohost.org/t/mastodon-do-not-show-99-of-the-pictures-since-some-weeks/36453 "2025-04-13T13:18:16Z")
**Posts on this page:** 13
**Page:** 1

<div class="post-metadata">

### Author: ![Daniel\_Tietze](https://forum.yunohost.org/letter_avatar_proxy/v4/letter/d/7c8e57/32.png) [@Daniel\_Tietze](https://forum.yunohost.org/u/Daniel_Tietze)
#### Post date: [April 13, 2025, 1:18pm UTC](https://forum.yunohost.org/t/mastodon-do-not-show-99-of-the-pictures-since-some-weeks/36453/1 "2025-04-13T13:18:16Z")

</div>

**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](http://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?

---

<div class="post-metadata">

### Author: ![JfmbLinux](https://forum.yunohost.org/user_avatar/forum.yunohost.org/jfmblinux/32/11238_2.png) [@JfmbLinux](https://forum.yunohost.org/u/JfmbLinux)
#### Post date: [April 13, 2025, 2:26pm UTC](https://forum.yunohost.org/t/mastodon-do-not-show-99-of-the-pictures-since-some-weeks/36453/2 "2025-04-13T14:26:07Z")

</div>

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:

```auto
yunohost backup create --apps mastodon

```

To go further.  
To be executed as root :

```auto
$ 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:

```auto
systemctl start mastodon-web.service mastodon-sidekiq.service mastodon-streaming.service

```

It worked for me.

---

<div class="post-metadata">

### Author: ![Daniel\_Tietze](https://forum.yunohost.org/letter_avatar_proxy/v4/letter/d/7c8e57/32.png) [@Daniel\_Tietze](https://forum.yunohost.org/u/Daniel_Tietze)
#### Post date: [April 13, 2025, 8:21pm UTC](https://forum.yunohost.org/t/mastodon-do-not-show-99-of-the-pictures-since-some-weeks/36453/3 "2025-04-13T20:21:14Z")

</div>

Hello and thank You for tryingto help me.

```auto
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?

---

<div class="post-metadata">

### Author: ![Daniel\_Tietze](https://forum.yunohost.org/letter_avatar_proxy/v4/letter/d/7c8e57/32.png) [@Daniel\_Tietze](https://forum.yunohost.org/u/Daniel_Tietze)
#### Post date: [April 13, 2025, 8:23pm UTC](https://forum.yunohost.org/t/mastodon-do-not-show-99-of-the-pictures-since-some-weeks/36453/4 "2025-04-13T20:23:36Z")

</div>

i tried …

> [@JfmbLinux](#):
>
> `Rails_env = bac /rails de production: précompilation`

… but i get the Answer “command not found”.

---

<div class="post-metadata">

### Author: ![JfmbLinux](https://forum.yunohost.org/user_avatar/forum.yunohost.org/jfmblinux/32/11238_2.png) [@JfmbLinux](https://forum.yunohost.org/u/JfmbLinux)
#### Post date: [April 13, 2025, 8:38pm UTC](https://forum.yunohost.org/t/mastodon-do-not-show-99-of-the-pictures-since-some-weeks/36453/5 "2025-04-13T20:38:12Z")

</div>

You should normally have the “packs” folder 🤔

```auto
cd /var/www/mastodon/live/public/

```

Command

```auto
ls -al

```

What does it give?

---

<div class="post-metadata">

### Author: ![JfmbLinux](https://forum.yunohost.org/user_avatar/forum.yunohost.org/jfmblinux/32/11238_2.png) [@JfmbLinux](https://forum.yunohost.org/u/JfmbLinux)
#### Post date: [April 13, 2025, 8:52pm UTC](https://forum.yunohost.org/t/mastodon-do-not-show-99-of-the-pictures-since-some-weeks/36453/6 "2025-04-13T20:52:32Z")

</div>

Sorry, an error occurred with the order. `Rails_env = bac /rails de production: précompilation`

This one is correct:

```auto
RAILS_ENV=production bin/rails assets:precompile

```

---

<div class="post-metadata">

### Author: ![Daniel\_Tietze](https://forum.yunohost.org/letter_avatar_proxy/v4/letter/d/7c8e57/32.png) [@Daniel\_Tietze](https://forum.yunohost.org/u/Daniel_Tietze)
#### Post date: [April 13, 2025, 9:10pm UTC](https://forum.yunohost.org/t/mastodon-do-not-show-99-of-the-pictures-since-some-weeks/36453/7 "2025-04-13T21:10:37Z")

</div>

> [@JfmbLinux](#):
>
> `ls -al`

**… this** :

````auto
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 🤷

---

<div class="post-metadata">

### Author: ![Daniel\_Tietze](https://forum.yunohost.org/letter_avatar_proxy/v4/letter/d/7c8e57/32.png) [@Daniel\_Tietze](https://forum.yunohost.org/u/Daniel_Tietze)
#### Post date: [April 13, 2025, 9:19pm UTC](https://forum.yunohost.org/t/mastodon-do-not-show-99-of-the-pictures-since-some-weeks/36453/8 "2025-04-13T21:19:48Z")

</div>

> [@JfmbLinux](#):
>
> `RAILS_ENV=production bin/rails assets:precompile`

strange: i don’t have node.js … i will install it …

---

<div class="post-metadata">

### Author: ![Daniel\_Tietze](https://forum.yunohost.org/letter_avatar_proxy/v4/letter/d/7c8e57/32.png) [@Daniel\_Tietze](https://forum.yunohost.org/u/Daniel_Tietze)
#### Post date: [April 13, 2025, 9:25pm UTC](https://forum.yunohost.org/t/mastodon-do-not-show-99-of-the-pictures-since-some-weeks/36453/9 "2025-04-13T21:25:24Z")

</div>

Next message: Yarn is not installed ☹

i dont understand this, because Mastodon worked fine for some months.

---

<div class="post-metadata">

### Author: ![JfmbLinux](https://forum.yunohost.org/user_avatar/forum.yunohost.org/jfmblinux/32/11238_2.png) [@JfmbLinux](https://forum.yunohost.org/u/JfmbLinux)
#### Post date: [April 13, 2025, 9:51pm UTC](https://forum.yunohost.org/t/mastodon-do-not-show-99-of-the-pictures-since-some-weeks/36453/10 "2025-04-13T21:51:10Z")

</div>

```auto
yarn install

```

---

<div class="post-metadata">

### Author: ![JfmbLinux](https://forum.yunohost.org/user_avatar/forum.yunohost.org/jfmblinux/32/11238_2.png) [@JfmbLinux](https://forum.yunohost.org/u/JfmbLinux)
#### Post date: [April 13, 2025, 10:16pm UTC](https://forum.yunohost.org/t/mastodon-do-not-show-99-of-the-pictures-since-some-weeks/36453/11 "2025-04-13T22:16:48Z")

</div>

Otherwise, delete mastodon and restore the backup.

Make a backup of the Packs folder.

```auto
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.

```auto
cd /tmp/ 

cp -R packs /var/www/mastodon/live/public

```

Relaunch the mastodon services

```auto
systemctl start mastodon-web.service mastodon-sidekiq.service mastodon-streaming.service

```

---

<div class="post-metadata">

### Author: ![Daniel\_Tietze](https://forum.yunohost.org/letter_avatar_proxy/v4/letter/d/7c8e57/32.png) [@Daniel\_Tietze](https://forum.yunohost.org/u/Daniel_Tietze)
#### Post date: [April 15, 2025, 11:34am UTC](https://forum.yunohost.org/t/mastodon-do-not-show-99-of-the-pictures-since-some-weeks/36453/12 "2025-04-15T11:34:28Z")

</div>

Thank You for Your Hints.  
I deinstalled Mastodon.  
Reinstalling of Mastodon only delivers an empty Nginx, without Mastodon.  
I give up.

---

<div class="post-metadata">

### Author: ![system](https://forum.yunohost.org/uploads/default/original/2X/f/f59fe8e3ee6b100b4f574d30d6e30479c68b89f0.png) [@system](https://forum.yunohost.org/u/system)
#### Post date: [April 30, 2025, 11:35am UTC](https://forum.yunohost.org/t/mastodon-do-not-show-99-of-the-pictures-since-some-weeks/36453/13 "2025-04-30T11:35:00Z")

</div>

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.
