question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[BUG] trying to enforce user/group ownership, paths were missing

See original GitHub issue

Description

Archive extracted fails to enforce user/group on particular filenames

Setup

I was testing java-formula PR on macOS: https://github.com/saltstack-formulas/java-formula/pull/13

Steps to Reproduce the behavior

On MacOS: Do https://github.com/saltstack/salt/issues/57742#issuecomment-658569444 Test java-formula: https://github.com/saltstack-formulas/java-formula/pull/13

Expected behavior

State should succeed.

Screenshots If applicable, add screenshots to help explain your problem.

          ID: java-package-archive-install
    Function: archive.extracted
        Name: /Library/Java/JavaVirtualMachines/adoptopenjdk-8-8u252-b09/
      Result: False
     Comment: /private/tmp/java_tmp_salt/java-archive.tar.gz extracted to /Library/Java/JavaVirtualMachines/adoptopenjdk-8-8u252-b09/, due to absence of one or more files/dirs. Output was trimmed to 100 number of lines
              
              While trying to enforce user/group ownership, the following paths were missing:
              
              - /Library/Java/JavaVirtualMachines/adoptopenjdk-8-8u252-b09/._jdk8u252-b09
              
              While trying to enforce user/group ownership, Salt was unable to change ownership on the following paths:
              
              - /Library/Java/JavaVirtualMachines/adoptopenjdk-8-8u252-b09/._jdk8u252-b09
     Started: 12:44:39.807768
    Duration: 1989.353 ms
     Changes:   
              ----------
              extracted_files:
                  - x Contents/
                  - x Contents/Home/
                  - x Contents/Info.plist
                  - x Contents/MacOS/
                  - x Contents/MacOS/libjli.dylib

Versions Report

salt --versions-report (Provided by running salt --versions-report. Please also mention any differences in master/minion versions.)
Salt Version:
           Salt: 3001
 
Dependency Versions:
           cffi: 1.12.2
       cherrypy: unknown
       dateutil: 2.8.0
      docker-py: Not Installed
          gitdb: 2.0.6
      gitpython: 2.1.15
         Jinja2: 2.10.1
        libgit2: 1.0.1
       M2Crypto: 0.35.2
           Mako: 1.0.7
   msgpack-pure: Not Installed
 msgpack-python: 0.5.6
   mysql-python: Not Installed
      pycparser: 2.19
       pycrypto: Not Installed
   pycryptodome: 3.9.7
         pygit2: 1.2.1
         Python: 3.7.8 (default, Jul  8 2020, 14:18:28)
   python-gnupg: 0.4.4
         PyYAML: 5.1.2
          PyZMQ: 18.0.1
          smmap: 3.0.4
        timelib: 0.2.4
        Tornado: 4.5.3
            ZMQ: 4.3.1
 
System Versions:
           dist: darwin 19.6.0 
         locale: UTF-8
        machine: x86_64
        release: 19.6.0
         system: Darwin
        version: 10.15.6 x86_64

Additional context Add any other context about the problem here.

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
weswhetcommented, Aug 12, 2020

@sagetherage we can but I don’t think this is an issue with macOS. It appears that ._jdk8u252-b09 is in the list of contents but not actually present, hence why it can’t change the ownership. Seems more like an issue with the java tarball

0reactions
sagetheragecommented, Aug 13, 2020

oh sure, your Working Group is active and we would love to simply see collaboration, but of course we can also pair a core team member, as well. 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Rsync command issues, owner and group permissions doesn ...
Show activity on this post. It sounds like it is working correctly. Use --owner and --group to preserve (not set) the owner and...
Read more >
Ownership issues - Microsoft Community
Hi there,. I recently had to change ownership of a few files in order to get access to the preview build of Microsoft...
Read more >
Apache: access denied because search permissions are ...
In my case, a directory in my path has the permission 700, it causes the problem. After changing it to 701, the problem...
Read more >
How does one fix the issue of not writable paths with conda?
Agreed that changing ownership is preferable over less-restrictive permissions. This was my solution as well. – ephsmith. Mar 10 at 16:23. 1.
Read more >
[Solved] “Failed to Enumerate Objects in the Container ...
Access is denied error like a charm. Here are the steps involved to change folder ownership in Windows: Step 1: Make a right...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found