- 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)
#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
# Verify SPI devices
ls /dev/spi*
# Check user permissions
sudo usermod -a -G spi,gpio bjorn
# Check network interfaces
ip addr show
# Test USB gadget interface
ip link show usb0
# Fix ownership
sudo chown -R bjorn:bjorn /home/bjorn/Bjorn
# Fix permissions
sudo chmod -R 755 /home/bjorn/Bjorn
2024 - Bjorn is distributed under the MIT License. For more details, please refer to the LICENSE file included in this repository.