RaspberryNtpServer icon indicating copy to clipboard operation
RaspberryNtpServer copied to clipboard

Anybody got this "gpsd[748]: gpsd:ERROR: accept: fail: Too many open files in system" error before?

Open Nebulosa-Cat opened this issue 1 year ago • 1 comments

I have been encountering this error recently, and the log generated by this error has unexpectedly expanded my syslog and user.log to 10GB (almost filling up my SD card). Does anyone know how to solve this error?

2024-07-30T22:26:45.183731+08:00 NHI-RaspberryPi-4B gpsd[748]: gpsd:ERROR: accept: fail: Too many open files in system
2024-07-30T22:26:45.183779+08:00 NHI-RaspberryPi-4B gpsd[748]: gpsd:ERROR: accept: fail: Too many open files in system
2024-07-30T22:26:45.183825+08:00 NHI-RaspberryPi-4B gpsd[748]: gpsd:ERROR: accept: fail: Too many open files in system
2024-07-30T22:26:45.183867+08:00 NHI-RaspberryPi-4B gpsd[748]: gpsd:ERROR: accept: fail: Too many open files in system
2024-07-30T22:26:45.183915+08:00 NHI-RaspberryPi-4B gpsd[748]: gpsd:ERROR: accept: fail: Too many open files in system
2024-07-30T22:26:45.183960+08:00 NHI-RaspberryPi-4B gpsd[748]: gpsd:ERROR: accept: fail: Too many open files in system
2024-07-30T22:26:45.184002+08:00 NHI-RaspberryPi-4B gpsd[748]: gpsd:ERROR: accept: fail: Too many open files in system
2024-07-30T22:26:45.184050+08:00 NHI-RaspberryPi-4B gpsd[748]: gpsd:ERROR: accept: fail: Too many open files in system
2024-07-30T22:26:45.184093+08:00 NHI-RaspberryPi-4B gpsd[748]: gpsd:ERROR: accept: fail: Too many open files in system
2024-07-30T22:26:45.184141+08:00 NHI-RaspberryPi-4B gpsd[748]: gpsd:ERROR: accept: fail: Too many open files in system

and looks it create log super fast, this is my first time encountering this situation, is there anything I should check first?

Nebulosa-Cat avatar Jul 30 '24 17:07 Nebulosa-Cat

I couldn't find any hints about an existing problem with gpsd that would cause that.

My best guess would be: something else in your system exhausts file-handles.

One way to narrow things down would be to disable all other services and software you are running on the Raspberry, and check if the problem still exists?

domschl avatar Jul 31 '24 06:07 domschl

I couldn't find any hints about an existing problem with gpsd that would cause that.我找不到任何關於gpsd現有問題的提示,這會導致這種情況。

My best guess would be: something else in your system exhausts file-handles.我最好的猜測是:系統中的其他東西耗盡了檔案句柄。

One way to narrow things down would be to disable all other services and software you are running on the Raspberry, and check if the problem still exists?縮小問題範圍的一種方法是停用 Raspberry 上執行的所有其他服務和軟體,並檢查問題是否仍然存在?

I change my swap system to zram and this never happen again, and even I switch back to normal swap system it not happen too, maybe just the old swap have some problem make it randomly happen.

Nebulosa-Cat avatar Jan 21 '25 03:01 Nebulosa-Cat