Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Default AZCOPY_JOB_PLAN_LOCATION leads to panic: mkdir /home/app/.azcopy: read-only file system #2191

Closed
sandersaares opened this issue May 2, 2023 · 2 comments
Assignees
Milestone

Comments

@sandersaares
Copy link

Which version of the AzCopy was used?

Whatever downloading from the v10 URL installed today. AzCopy fails to run even without any argument - cannot check for sure.

Which platform are you using? (ex: Windows, Mac, Linux)

Linux

What command did you run?

  1. azcopy
  2. Receive error saying "You should point AZCOPY_LOG_LOCATION to writable directory`
  3. Set AZCOPY_LOG_LOCATION=/tmp/azcopy
  4. azcopy
  5. Receive new error without helpful instructions to resolve.

What problem was encountered?

App immediately crashes with:

panic: mkdir /home/app/.azcopy: read-only file system

goroutine 1 [running]:
github.com/Azure/azure-storage-azcopy/v10/common.PanicIfErr(...)
        /home/vsts/work/1/s/common/lifecyleMgr.go:696
main.main()
        /home/vsts/work/1/s/main.go:63 +0x57a

How can we reproduce the problem in the simplest way?

  1. Create a container with azcopy, mount with a read-only filesystem and writable /tmp
  2. Point AZCOPY_LOG_LOCATION to writable location
  3. Yry to execute azcopy.

Have you found a mitigation/solution?

It seems I also need to define AZCOPY_JOB_PLAN_LOCATION and point to a writable location.

There is an error message in the code for AZCOPY_JOB_PLAN_LOCATION but it is never reached for some reason.

log.Fatalf("Problem making .azcopy directory. Try setting AZCOPY_JOB_PLAN_LOCATION env variable. %v", err)

When I set AZCOPY_JOB_PLAN_LOCATION to a writable location, the error goes away. I suggest investigating why the app crashes before the error message about AZCOPY_JOB_PLAN_LOCATION is displayed, and ensuring the error actually gets displayed.

@gapra-msft
Copy link
Member

Hi @sandersaares thank you for reporting this issue, we will work on reproducing this behavior and potentially wrap the error in a more helpful message.

@nakulkar-msft
Copy link
Member

Fixed in 10.19.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants