Results 1 to 12 of 12

Thread: hdiutil: flatten: "test.dmg" failed: Resource temporarily unavailable

  1. #1
    New Member
    Join Date
    Aug 2019
    Posts
    1

    Default hdiutil: flatten: "test.dmg" failed: Resource temporarily unavailable

    I'm having this issue intermittently on Catalina using 3.5.6 and 3.5.7b1. It usually occurs the first time, and then if I re-run DropDMG (using the command-line tool) it often succeeds:

    Code:
         [exec] Error: hdiutil: flatten: flattening "test.dmg"...
         [exec] hdiutil: flatten: "test.dmg" failed: Resource temporarily unavailable (-54)
         [exec] hdiutil: flatten failed - Invalid argument
    I'm using the latest Catalina beta at this time. Is there anything more I can provide to help diagnose this issue?

  2. #2

    Default

    Quote Originally Posted by karlvr View Post
    I'm having this issue intermittently on Catalina using 3.5.6 and 3.5.7b1. It usually occurs the first time, and then if I re-run DropDMG (using the command-line tool) it often succeeds:

    Code:
         [exec] Error: hdiutil: flatten: flattening "test.dmg"...
         [exec] hdiutil: flatten: "test.dmg" failed: Resource temporarily unavailable (-54)
         [exec] hdiutil: flatten failed - Invalid argument
    I'm using the latest Catalina beta at this time.
    This is probably a Catalina bug, so I would recommend reporting to Apple that the “hdiutil: flatten” command is failing intermittently.

    Is this occurring when creating a disk image with a license agreement? If so, it may help to create the image without the license first, and then add it later (by converting).

  3. #3

    Default

    I have same problem, after update to Catalina.

  4. #4

    Default

    Added Diagnostic report, simple log is:
    Code:
    dropdmg -t --internet-enabled --custom-icon --format=zlib --destination="builds/Seznam.cz/mac/nwjs0.37.4/dist" --base-name="Seznam.cz-dev-nwjs0.37.4-5.5.1-909762.dmg" --signing-identity="xxx" --layout-folder="./MacPackaging/DropDMG/Layouts/Seznam" --license-folder="./MacPackaging/DropDMG/Licenses/Seznam" "builds/Seznam.cz/mac/nwjs0.37.4/Seznam.cz.app";
    >> Error: hdiutil: flatten: flattening "Seznam.cz-dev-nwjs0.37.4-5.5.1-909762.dmg"...
    >> hdiutil: flatten: "Seznam.cz-dev-nwjs0.37.4-5.5.1-909762.dmg" failed: Prostředek dočasně nedostupný (-54)
    >> hdiutil: flatten failed - Neplatný argument
    >> Exited with code: 1.

  5. #5

    Default

    Tested on v3.5.7 and v3.5.8b1, both failed

  6. #6

    Default

    Quote Originally Posted by panther7 View Post
    Added Diagnostic report, simple log is:
    Code:
    dropdmg -t --internet-enabled --custom-icon --format=zlib --destination="builds/Seznam.cz/mac/nwjs0.37.4/dist" --base-name="Seznam.cz-dev-nwjs0.37.4-5.5.1-909762.dmg" --signing-identity="xxx" --layout-folder="./MacPackaging/DropDMG/Layouts/Seznam" --license-folder="./MacPackaging/DropDMG/Licenses/Seznam" "builds/Seznam.cz/mac/nwjs0.37.4/Seznam.cz.app";
    >> Error: hdiutil: flatten: flattening "Seznam.cz-dev-nwjs0.37.4-5.5.1-909762.dmg"...
    >> hdiutil: flatten: "Seznam.cz-dev-nwjs0.37.4-5.5.1-909762.dmg" failed: Prostředek dočasně nedostupný (-54)
    >> hdiutil: flatten failed - Neplatný argument
    >> Exited with code: 1.
    Thanks for the report. I will try to find a workaround to this Catalina bug. In the meantime, it may help to restart your Mac. And the error should not occur when not using a license agreement.

  7. #7

    Default

    Restart mac doesn't solve problem.

    Works, without signing:
    Code:
    dropdmg --always-create --internet-enabled --custom-icon --format=zlib --destination="builds/" --base-name="application.dmg" --layout-folder="./MacPackaging/DropDMG/Layouts/Seznam" "application.app";
    But, i need sign (second line has same error with hdiutil: flatten):
    Code:
    dropdmg --always-create --internet-enabled --custom-icon --format=zlib --destination="builds/" --base-name="application.dmg" --layout-folder="./MacPackaging/DropDMG/Layouts/Seznam" "builds/application.app"
    dropdmg --signing-identity="XXX" --license-folder="./MacPackaging/DropDMG/Licenses/Seznam" "builds/application.dmg"

  8. #8

    Default

    Quote Originally Posted by panther7 View Post
    Works, without signing:
    Code:
    dropdmg --always-create --internet-enabled --custom-icon --format=zlib --destination="builds/" --base-name="application.dmg" --layout-folder="./MacPackaging/DropDMG/Layouts/Seznam" "application.app";
    I think the difference there is that, like I said, no flattening is needed if there is no license agreement. If you do have a license agreement, signing shouldn’t matter because it happens after flattening.

  9. #9

    Default

    Ahh, you are right, signing works:
    Code:
    dropdmg --always-create --internet-enabled --custom-icon --format=zlib --destination="builds/" --base-name="application.dmg" --layout-folder="./MacPackaging/DropDMG/Layouts/Seznam" --signing-identity="XXX" "application.app"
    But not add license agreement:
    Code:
    dropdmg --license-folder="./MacPackaging/DropDMG/Licenses/Seznam" "builds/application.dmg"

  10. #10

    Default

    Does it make a difference if you have “Always run with root access” checked or unchecked in the preferences?

  11. #11

    Default

    I believe this is fixed in the DropDMG 3.5.8b2 public beta.

  12. #12

    Default

    Thanks, now its works.

    Good job.

Similar Threads

  1. Replies: 1
    Last Post: 10-26-2016, 10:18 PM
  2. hdiutil: unflatten failed
    By ghenne in forum DropDMG
    Replies: 5
    Last Post: 06-20-2013, 03:00 PM
  3. Replies: 23
    Last Post: 03-30-2011, 09:19 PM
  4. hdiutil: create failed - Operation timed out
    By sobiloff in forum DropDMG
    Replies: 8
    Last Post: 03-07-2010, 12:14 PM
  5. ".bz2" extension added to .dmg downloads
    By SintraWorks in forum DropDMG
    Replies: 5
    Last Post: 11-23-2007, 03:08 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •