Skip to content

Latest commit

 

History

History
80 lines (53 loc) · 1.62 KB

TROUBLESHOOTING.md

File metadata and controls

80 lines (53 loc) · 1.62 KB

🐛 Known Issues and Troubleshooting

thumbnail_IMG_0546

📚 Table of Contents

🪲 Current Development Issues

Long Runtime Issue

  • Problem: OSError: [Errno 24] Too many open files
  • Status: Partially resolved with system limits configuration.
  • Workaround: Implemented file descriptor limits increase.
  • Monitoring: Check open files with lsof -p $(pgrep -f Bjorn.py) | wc -l
  • At the moment the logs show periodically this information as (FD : XXX)

🛠️ Troubleshooting Steps

Service Issues

#See bjorn journalctl service
journalctl -fu bjorn.service

# Check service status
sudo systemctl status bjorn.service

# View detailed logs
sudo journalctl -u bjorn.service -f

or

sudo tail -f /home/bjorn/Bjorn/data/logs/*


# Check port 8000 usage
sudo lsof -i :8000

Display Issues

# Verify SPI devices
ls /dev/spi*

# Check user permissions
sudo usermod -a -G spi,gpio bjorn

Network Issues

# Check network interfaces
ip addr show

# Test USB gadget interface
ip link show usb0

Permission Issues

# Fix ownership
sudo chown -R bjorn:bjorn /home/bjorn/Bjorn

# Fix permissions
sudo chmod -R 755 /home/bjorn/Bjorn

📜 License

2024 - Bjorn is distributed under the MIT License. For more details, please refer to the LICENSE file included in this repository.