Uploaded image for project: 'Coin'
  1. Coin
  2. COIN-545

Coin and "too many open files" error

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Cannot Reproduce
    • Affects Version/s: master
    • Fix Version/s: None
    • Component/s: Scheduler
    • Labels:
      None

      Description

      Mar 27 00:11:46 personal-coins env[4255]: ERROR:agentlauncher.py:146(6234): Exception during agent launch: '[Errno 24] Too many open files' (attempt: 1)
      

      I had this issue many times in personal-coins. Despite the coin@service unit having a high limit, it's not permitted to apply it because the user systemd instance has a low limit. It can be verified if the limits are low by checking the file /proc/PID/limits, where PID can be the pid of scheduler.py for example.

      The following file was needed to change the limits of the user@`id -u`.service for all users on personal-coins:

      $ cat /etc/systemd/system/user@.service.d/override.conf 
      [Service]
      LimitNOFILE=98765
      

      Then run `systemctl daemon-reload` and kill the user-level systemd instances and restart them and relogin.

      I'm opening this since I'm guessing it might be affecting production Coin on vmbuilder too. In that case, the user@vmbuilder.service should be changed.

        Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            tosaario Toni Saario
            Reporter:
            jimis Dimitrios Apostolou
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes