Write tcp 10.238.2.195:45814: write: connection timed out

Woke up after long night of printing went to check octoprint and not able to access the site due to error

write tcp 10.238.2.195:40715: write: connection timed out
or
write tcp 10.238.2.195:38719: write: network is unreachable

ive tried restarting service / rebooting pi not able to fix it

ā— octoprint.service - The snappy web interface for your 3D printer
   Loaded: loaded (/etc/systemd/system/octoprint.service; enabled; vendor preset: enabled)
   Active: active (running) since Sat 2021-01-30 13:17:15 GMT; 4min 16s ago
 Main PID: 7663 (octoprint)
    Tasks: 22 (limit: 1939)
   CGroup: /system.slice/octoprint.service
           ā””ā”€7663 /home/pi/oprint/bin/python3 /home/pi/oprint/bin/octoprint serve --host=127.0.0.1 --port=5000

Jan 30 13:18:09 octopi octoprint[7663]: Traceback (most recent call last):
Jan 30 13:18:09 octopi octoprint[7663]:   File "/home/pi/oprint/lib/python3.7/site-packages/raven/utils/serializer/manager.py", line 76, in transform
Jan 30 13:18:09 octopi octoprint[7663]:     return repr(value)
Jan 30 13:18:09 octopi octoprint[7663]:   File "/home/pi/oprint/lib/python3.7/site-packages/picamera/mmalobj.py", line 808, in __repr__
Jan 30 13:18:09 octopi octoprint[7663]:     self.__class__.__name__, self.name,
Jan 30 13:18:09 octopi octoprint[7663]:   File "/home/pi/oprint/lib/python3.7/site-packages/picamera/mmalobj.py", line 747, in name
Jan 30 13:18:09 octopi octoprint[7663]:     return self._component[0].name.decode('ascii')
Jan 30 13:18:09 octopi octoprint[7663]: ValueError: NULL pointer access
Jan 30 13:18:09 octopi octoprint[7663]: 2021-01-30 13:18:09,884 - sentry.errors - ERROR - Sentry responded with an API error: APIError(Event dropped due to filter: error-message)
Jan 30 13:18:09 octopi octoprint[7663]: 2021-01-30 13:18:09,885 - sentry.errors.uncaught - ERROR - ["PiCameraError: Camera is not enabled. Try running 'sudo raspi-config' and ensure that the camera has been enabled.", '  File "octoprint

octoprint.log (55.8 KB)
here are my logs

i cant make heads or tail of it

Your Pi appears to be out of memory, and it is also actively throttling itself due to an inadequate power supply:

2021-01-30 13:17:28,747 - octoprint.plugins.pi_support - WARNING - This Raspberry Pi is reporting problems that might lead to bad performance or errors caused by overheating or insufficient power.
!!! UNDERVOLTAGE REPORTED !!! Make sure that the power supply and power cable are capable of supplying enough voltage and current to your Pi.
throttle_state: '0x50005'

The memory errors:

picamera.exc.PiCameraMMALError: Failed to create MMAL component b'vc.ril.camera': Out of memory

Maybe it's a spaghetti detective problem, I can't tell. But memory is causing an issue, maybe that is the first to fail and the rest of it get's taken out too. Make sure you have nothing else running at the same time on the Pi, try and run OctoPrint in safe mode too.

1 Like

Dam should saw that my self tried safemode but getting error

Jan 30 21:24:30 octopi systemd[1]: Started The snappy web interface for your 3D printer.
Jan 30 21:24:33 octopi octoprint[15587]: 2021-01-30 21:24:33,744 - octoprint.startup - CRITICAL - Could not initialize settings manager: Error parsing the configuration file /home/pi/.octoprint/config.yaml, it is invalid YAML. The parser
Jan 30 21:24:33 octopi octoprint[15587]: 2021-01-30 21:24:33,745 - octoprint.startup - CRITICAL - There was a fatal error starting up OctoPrint.
Jan 30 21:24:33 octopi octoprint[15587]: Could not initialize settings manager: Error parsing the configuration file /home/pi/.octoprint/config.yaml, it is invalid YAML. The parser reported an error on line 41, column 12.
Jan 30 21:24:33 octopi octoprint[15587]: There was a fatal error starting up OctoPrint.
Jan 30 21:24:34 octopi systemd[1]: octoprint.service: Succeeded.

config is

server:
 startOnceInSafeMode: true
    commands:
        serverRestartCommand: sudo service octoprint restart
        systemRestartCommand: sudo shutdown -r now
        systemShutdownCommand: sudo shutdown -h now
    firstRun: false
    onlineCheck:
        enabled: true
    pluginBlacklist:
        enabled: true
    secretKey: REDACTED
    seenWizards:
        backup: null
        corewizard: 4
        thespaghettidetective: 2
        tracking: null