grahampugh / jamf-upload

Scripts for uploading packages to Jamf Cloud
Apache License 2.0
149 stars 37 forks source link

[Errno 2] No such file or directory: '/Volumes/JAMFShare/Packages/xxxxx.pkg using Multi DP #86

Open lchsit opened 1 year ago

lchsit commented 1 year ago

Repost from Slack as requested:

First my environment if it is relevant is Jamf cloud with a secondary local SMB FSDP. The MacBook running AutoPkg is an M1 running Ventura. I'm getting [Errno 2] No such file or directory: '/Volumes/JAMFShare/Packages/xxxxx.pkg Other references to this error don't seem to mirror my experience This error seems to occur under two circumstances:

  1. If a recipe doesn't have to copy a file to the FSDP share because it already exists. Many times it doesn't seem to dismount the share and the next recipe run fails with the aforementioned error. Manually dismounting allows the recipe to run correctly
  2. If any other SMB share is mounted, it is always dismounted and the recipe will intermittently fail as above Additionally if the process doesn't fail because of another mounted volume then it will leave the FSDP volume mounted causing the next recipe to fail

Output of the first scenario occurring. Recipe that generated this output

Thanks

grahampugh commented 1 year ago

Please would you be able to supply -vv or -vvv output?

lchsit commented 1 year ago

As it is the easiest to reproduce. This is the output from scenario 2 where a different SMB share is mounted before running. It is dismounted and after the recipe fails the FSDP is left mounted https://gist.github.com/lchsit/21e7c0dc68f2e9244229998513211155