FORUM CTRLX AUTOMATION
ctrlX World Partner Apps for ctrlX AUTOMATION
Dear Community User! We have started the migration process.
This community is now in READ ONLY mode.
Read more: Important
information on the platform change.
10-27-2021 12:27 PM
Hello,
I'm occasionally coming across the situation that functions in the ctrlX web interface fail with an error like "too many files open". If I try to log in again over the web, I am unable to do so.
Doing some debugging, I've found that there are two processes with many files open, both in the rexroth-deviceadmin snap. They are caddy and wasp.
I'm not entirely sure of the cause of this, however it seems to be related to manually installing/uninstalling snaps. When I started writing this post the two processes had 145 and 154 open files respectively. I have just uninstalled my local snap and the counts changed to 213 and 222 respectively. journalctl reports many errors related to wasp:
Oct 21 11:17:03 ctrlX-CORE wasp[20890]: ||080F0410|Trace error web.common.logger|||||web.identitymanager|jlogger.go
|jlogger.(*JLoggerImpl).TraceError|179|Server validation: Failed to receive request: EOF
Deleting the local package and uploading a new one didn't result in a permanent change in the open file count, nor any error messages.
Installing the new snap produces a lot more of the above errors, and roughly the same increase in the open file count. I'm now up and 277 and 286. Once the count hits 1024, the processes need restarting. Using `snap restart snap.rexroth-deviceadmin` fixes the problem, as does restarting the device.
I can work around it, but I thought you might like the information to investigate why it might be happening.
Regards,
Roger
Solved! Go to Solution.
10-27-2021 01:55 PM
Thanks for reporting the bug. We have noticed similar behavior when installing/uninstalling many apps without a restart of a device. We are currently investigating the issue and will keep you updated.
Best regards
Jochen Scheib