You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@buildstream.apache.org by "abderrahim (via GitHub)" <gi...@apache.org> on 2023/05/13 16:24:48 UTC

[GitHub] [buildstream] abderrahim opened a new issue, #1842: "Too many open files" when running with remote execution

abderrahim opened a new issue, #1842:
URL: https://github.com/apache/buildstream/issues/1842

   When building with remote execution, I get the following error. I don't know if it's consistent, but retrying once gives the same error. 
   
   ```
   [16:35:19][00:11:56][e8a2758a][   build:bootstrap/build/gcc-stage1.bst] BUG     Build
   
       An unhandled exception occured:
       
       Traceback (most recent call last):
         File "/home/abderrahimkitouni/.local/pipx/venvs/buildstream/lib/python3.11/site-packages/buildstream/_scheduler/jobs/job.py", line 438, in child_action
           result = self.child_process()  # pylint: disable=assignment-from-no-return
                    ^^^^^^^^^^^^^^^^^^^^
         File "/home/abderrahimkitouni/.local/pipx/venvs/buildstream/lib/python3.11/site-packages/buildstream/_scheduler/jobs/elementjob.py", line 91, in child_process
           return self._action_cb(self._element)
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
         File "/home/abderrahimkitouni/.local/pipx/venvs/buildstream/lib/python3.11/site-packages/buildstream/_scheduler/queues/buildqueue.py", line 55, in _assemble_element
           element._assemble()
         File "/home/abderrahimkitouni/.local/pipx/venvs/buildstream/lib/python3.11/site-packages/buildstream/element.py", line 1689, in _assemble
           collect = self.assemble(sandbox)  # pylint: disable=assignment-from-no-return
                     ^^^^^^^^^^^^^^^^^^^^^^
         File "/home/abderrahimkitouni/.local/pipx/venvs/buildstream/lib/python3.11/site-packages/buildstream/buildelement.py", line 315, in assemble
           with sandbox.batch(root_read_only=True, label="Running commands"):
         File "/usr/lib/python3.11/contextlib.py", line 144, in __exit__
           next(self.gen)
         File "/home/abderrahimkitouni/.local/pipx/venvs/buildstream/lib/python3.11/site-packages/buildstream/sandbox/sandbox.py", line 265, in batch
           batch.execute()
         File "/home/abderrahimkitouni/.local/pipx/venvs/buildstream/lib/python3.11/site-packages/buildstream/sandbox/_sandboxreapi.py", line 234, in execute
           self.sandbox._run_with_flags(
         File "/home/abderrahimkitouni/.local/pipx/venvs/buildstream/lib/python3.11/site-packages/buildstream/sandbox/sandbox.py", line 374, in _run_with_flags
           return self._run(command, flags=flags, cwd=cwd, env=env)
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
         File "/home/abderrahimkitouni/.local/pipx/venvs/buildstream/lib/python3.11/site-packages/buildstream/sandbox/_sandboxreapi.py", line 101, in _run
           action_result = self._execute_action(action, flags)  # pylint: disable=assignment-from-no-return
                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
         File "/home/abderrahimkitouni/.local/pipx/venvs/buildstream/lib/python3.11/site-packages/buildstream/sandbox/_sandboxremote.py", line 221, in _execute_action
           cascache.pull_tree(casremote, tree_digest)
         File "/home/abderrahimkitouni/.local/pipx/venvs/buildstream/lib/python3.11/site-packages/buildstream/_cas/cascache.py", line 278, in pull_tree
           digest = self._fetch_tree(remote, digest)
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
         File "/home/abderrahimkitouni/.local/pipx/venvs/buildstream/lib/python3.11/site-packages/buildstream/_cas/cascache.py", line 644, in _fetch_tree
           dirdigests = self.add_objects(buffers=dirbuffers)
                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
         File "/home/abderrahimkitouni/.local/pipx/venvs/buildstream/lib/python3.11/site-packages/buildstream/_cas/cascache.py", line 370, in add_objects
           tmp = stack.enter_context(self._temporary_object())
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
         File "/usr/lib/python3.11/contextlib.py", line 505, in enter_context
           result = _enter(cm)
                    ^^^^^^^^^^
         File "/usr/lib/python3.11/contextlib.py", line 137, in __enter__
           return next(self.gen)
                  ^^^^^^^^^^^^^^
         File "/home/abderrahimkitouni/.local/pipx/venvs/buildstream/lib/python3.11/site-packages/buildstream/_cas/cascache.py", line 595, in _temporary_object
           with utils._tempnamedfile(dir=self.tmpdir) as f:
         File "/usr/lib/python3.11/contextlib.py", line 137, in __enter__
           return next(self.gen)
                  ^^^^^^^^^^^^^^
         File "/home/abderrahimkitouni/.local/pipx/venvs/buildstream/lib/python3.11/site-packages/buildstream/utils.py", line 1268, in _tempnamedfile
           with _signals.terminator(close_tempfile), tempfile.NamedTemporaryFile(
                                                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
         File "/usr/lib/python3.11/tempfile.py", line 702, in NamedTemporaryFile
           file = _io.open(dir, mode, buffering=buffering,
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
         File "/usr/lib/python3.11/tempfile.py", line 699, in opener
           fd, name = _mkstemp_inner(dir, prefix, suffix, flags, output_type)
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
         File "/usr/lib/python3.11/tempfile.py", line 395, in _mkstemp_inner
           fd = _os.open(file, flags, 0o600)
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
       OSError: [Errno 24] Too many open files: '/home/abderrahimkitouni/.cache/buildstream/tmp/tmpr9a6fdwb'
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@buildstream.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] "Too many open files" when running with remote execution [buildstream]

Posted by "juergbi (via GitHub)" <gi...@apache.org>.
juergbi commented on issue #1842:
URL: https://github.com/apache/buildstream/issues/1842#issuecomment-4692607056

   Closing this as a duplicate of #1961 as the same fix will address both issues and #1961 already includes a discussion of possible fixes.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@buildstream.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] "Too many open files" when running with remote execution [buildstream]

Posted by "juergbi (via GitHub)" <gi...@apache.org>.
juergbi closed issue #1842: "Too many open files" when running with remote execution
URL: https://github.com/apache/buildstream/issues/1842


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@buildstream.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] "Too many open files" when running with remote execution [buildstream]

Posted by "nanonyme (via GitHub)" <gi...@apache.org>.
nanonyme commented on issue #1842:
URL: https://github.com/apache/buildstream/issues/1842#issuecomment-1793748435

   @abderrahim did you ever figure out what this was about? Is there some fd leak?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@buildstream.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] "Too many open files" when running with remote execution [buildstream]

Posted by "abderrahim (via GitHub)" <gi...@apache.org>.
abderrahim commented on issue #1842:
URL: https://github.com/apache/buildstream/issues/1842#issuecomment-1794106647

   Nope, I just increased the limit with ulimit and got my build going.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@buildstream.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org