All plugins gone

I have already posted in a different thread with the same issue:

But as suggested by another member, I am posting it in a new thread.

I had finished a successful print. Turned off my printer, octoprint stayed on (this is different for me).
Today I wanted to check something with the Tuya plugin as I have not been able to correctly shutdown the printer automatically. To my surprise, the plugin was gone. Later on I discovered that in fact all plugins I installed are gone.
I tried installing from Plugin manager, but it did not work. In the logs I was able to find this:

...
  File "/home/pi/oprint/lib/python3.9/site-packages/pkg_resources/__init__.py", line 2815, in __getattr__
    raise AttributeError(attr)
AttributeError: _ep_map

During handling of the above exception, another exception occurred:

...
...
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xbb in position 0: invalid start byte in entry_points.txt file at path: /home/pi/oprint/lib/python3.9/site-packages/OctoPrint_PrintTimeGenius-2.4.0.dist-info/entry_points.txt

I went ahead and checked whats in that file, and it seems to be corrupted:

pi@octopi:~ $ cat /home/pi/oprint/lib/python3.9/site-packages/OctoPrint_PrintTimeGenius-2.4.0.dist-info/entry_points.txt
�Ms��O�ΐ�=:"N��=&��B:��h[��OY�6mӹ��]i1ڐN��dz�L&��0

I now tried to get the System Bundle, but the webUI also seems not to be working and so I cannot do it. There is another error when trying to access the webUI:

2025-03-20 21:03:48,040 - octoprint.server.util.flask.PreemptiveCache - ERROR - Error while writing /home/pi/.octoprint/data/preemptive_cache_config.yaml
Traceback (most recent call last):
  File "/home/pi/oprint/lib/python3.9/site-packages/octoprint/server/util/flask.py", line 1118, in set_all_data
    with atomic_write(self.cachefile, "wt", max_permissions=0o666) as handle:
  File "/usr/lib/python3.9/contextlib.py", line 117, in __enter__
    return next(self.gen)
  File "/home/pi/oprint/lib/python3.9/site-packages/octoprint/util/__init__.py", line 1001, in atomic_write
    fd = tempfile.NamedTemporaryFile(**kwargs)
  File "/usr/lib/python3.9/tempfile.py", line 680, in NamedTemporaryFile
    (fd, name) = _mkstemp_inner(dir, prefix, suffix, flags, output_type)
  File "/usr/lib/python3.9/tempfile.py", line 390, in _mkstemp_inner
    fd = _os.open(file, flags, 0o600)
OSError: [Errno 30] Read-only file system: '/home/pi/.octoprint/data/tmp29ezac93'

2025-03-20 21:03:48,866 - octoprint - ERROR - Exception on /api/settings [GET]
Traceback (most recent call last):
  File "/home/pi/oprint/lib/python3.9/site-packages/flask/app.py", line 2529, in wsgi_app
    response = self.full_dispatch_request()
  File "/home/pi/oprint/lib/python3.9/site-packages/flask/app.py", line 1825, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "/home/pi/oprint/lib/python3.9/site-packages/flask/app.py", line 1823, in full_dispatch_request
    rv = self.dispatch_request()
  File "/home/pi/oprint/lib/python3.9/site-packages/flask/app.py", line 1799, in dispatch_request
    return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)
  File "/home/pi/oprint/lib/python3.9/site-packages/octoprint/server/util/flask.py", line 1370, in decorated_function
    response = f(*args, **kwargs)
  File "/home/pi/oprint/lib/python3.9/site-packages/octoprint/server/api/settings.py", line 282, in getSettings
    "uploads": s.getBaseFolder("uploads"),
  File "/home/pi/oprint/lib/python3.9/site-packages/octoprint/settings/__init__.py", line 2027, in getBaseFolder
    _validate_folder(
  File "/home/pi/oprint/lib/python3.9/site-packages/octoprint/settings/__init__.py", line 2336, in _validate_folder
    raise OSError(error)
OSError: Folder at /home/pi/.octoprint/uploads doesn't appear to be writable, please fix its permissions

P.S. After rebooting, I was able to access the webUI again, so here is the System Bundle:
octoprint-systeminfo-20250320215559.zip (20.6 KB)

So, what should I do here? Is a reinstall the only solution? Thanks :slight_smile:

Sounds like a dying SD card and/or power related issues

Make sure the pi isn't backpowring the printer and the PSU is sufficient

I agree the errors definitely appear to be a failing/corrupted SD card.

This is also what it looked like to me.
The strange thing is that a couple months ago, we came back from holidays and I found the device in a similar state. After damaging a couple of SD cards I realised the issues was that the SD card slot turned bad, and was damaging the cards. So I installed the OctoPi on a flash drive, and this is where it is booted from atm.
This was not even 5-6 months ago. What could be the reason for this happening? Is there some process that is constantly writing in the SD card? E.g. some of the loggers? I don't know what other reason there could be...

I have covered the USB power pin with electrical tape from the start. The PSU is the one that came with the Raspberry Pi kit, with 3A output. So I guess that should be fine too.
Only thing left is the failing flash drive...

Did you enable serial logging for by chance?

I dont think I have enabled anything like this. Where would this option be?
After spending some more time today, it seems that I can no longer use the RPi board. I have flashed a new image on a new drive, but it cannot boot from it either. I think I will have to retire it and go for Octo4A, as I have a few smart phones just collecting dust...

It's in Settings > Serial Connection

Meh. Poor pi :confused: