You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@buildstream.apache.org by GitBox <gi...@apache.org> on 2021/01/22 18:07:29 UTC

[GitHub] [buildstream] nanonyme opened a new issue #1448: Error while pushing artifacts to local CAS in bst1

nanonyme opened a new issue #1448:
URL: https://github.com/apache/buildstream/issues/1448


   ```
   ERROR:grpc._server:Exception calling application: [Errno 21] Is a directory: '/data/cas/objects/'
   Traceback (most recent call last):
     File "/usr/lib64/python3.7/site-packages/grpc/_server.py", line 406, in _call_behavior
       return behavior(argument, context), True
     File "/usr/local/lib/python3.7/site-packages/buildstream/_artifactcache/casserver.py", line 381, in GetReference
       self.cas.update_tree_mtime(tree)
     File "/usr/local/lib/python3.7/site-packages/buildstream/_artifactcache/cascache.py", line 638, in update_tree_mtime
       self._reachable_refs_dir(reachable, tree, update_mtime=True)
     File "/usr/local/lib/python3.7/site-packages/buildstream/_artifactcache/cascache.py", line 792, in _reachable_refs_dir
       with open(self.objpath(tree), 'rb') as f:
   IsADirectoryError: [Errno 21] Is a directory: '/data/cas/objects/'
   ```


----------------------------------------------------------------
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.

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



[GitHub] [buildstream] nanonyme commented on issue #1448: Error while pushing artifacts to local CAS in bst1

Posted by GitBox <gi...@apache.org>.
nanonyme commented on issue #1448:
URL: https://github.com/apache/buildstream/issues/1448#issuecomment-765594756


   When this faulty digest is passed to https://github.com/apache/buildstream/blob/45442f963a19a67c9346b53f9f802dc17ed560f2/buildstream/_artifactcache/cascache.py#L392, then we get tree object which points to directory which results in the original error.


----------------------------------------------------------------
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.

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



[GitHub] [buildstream] nanonyme commented on issue #1448: Error while pushing artifacts to local CAS in bst1

Posted by GitBox <gi...@apache.org>.
nanonyme commented on issue #1448:
URL: https://github.com/apache/buildstream/issues/1448#issuecomment-765598573


   This in turn seems possible if either
   
   1. https://github.com/apache/buildstream/blob/45442f963a19a67c9346b53f9f802dc17ed560f2/buildstream/_artifactcache/cascache.py#L466 this serialization results in empty bytestring
   2. https://github.com/apache/buildstream/blob/45442f963a19a67c9346b53f9f802dc17ed560f2/buildstream/utils.py#L498 this helper manages somehow storing data such that it doesn't properly hit filesystem


----------------------------------------------------------------
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.

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



[GitHub] [buildstream] nanonyme commented on issue #1448: Error while pushing artifacts to local CAS in bst1

Posted by GitBox <gi...@apache.org>.
nanonyme commented on issue #1448:
URL: https://github.com/apache/buildstream/issues/1448#issuecomment-765593295


   I've debugged that this happens because https://github.com/apache/buildstream/blob/45442f963a19a67c9346b53f9f802dc17ed560f2/buildstream/_artifactcache/cascache.py#L488 is invoked when relevant path is empty.


----------------------------------------------------------------
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.

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



[GitHub] [buildstream] nanonyme edited a comment on issue #1448: Error while pushing artifacts to local CAS in bst1

Posted by GitBox <gi...@apache.org>.
nanonyme edited a comment on issue #1448:
URL: https://github.com/apache/buildstream/issues/1448#issuecomment-765593295


   I've debugged that this happens because https://github.com/apache/buildstream/blob/45442f963a19a67c9346b53f9f802dc17ed560f2/buildstream/_artifactcache/cascache.py#L488 is invoked when relevant file exists but is empty. Parsing succeeds but eg hash becomes an empty string.


----------------------------------------------------------------
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.

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