-
Notifications
You must be signed in to change notification settings - Fork 3
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
Install failing #9
Comments
The install step makes certain assumptions about the contents of the dmg.
|
Thanks. It looks like there is pkg file there same as before. As a workaround can I install it manually and use the prepare command or is that only when you're first using mlvm? |
I run into this issue while playing around using "sudo" or not. It may simply be that the .mounts repository doesn't have the right permissions |
I have sudo rights and I am having the same problem as @popzip... |
I didn't change anything in mlvm.sh I redid my installation by avoiding extra "sudo" in command that were not meant to |
I committed an update to mlvm.sh that removes the -quiet flag from the mount command. This should let you know if there was a problem mounting the dmg. I had an issue installing 7.0-4 that said the resource was busy (because I had mounted it manually to check the contents). Hopefully that can help you diagnose if it's a mount issue during installation. |
I'm still having this issue with I was able to decompose the steps successfully manually: mkdir ./mount
hdiutil attach ~/Downloads/MarkLogic-8.0-20141016-x86_64.dmg -nobrowse -mountpoint ./mount and tar xfz ./mount/*.pkg/Contents/Archive.pax.gz -C ~/tmp/mlvm I'm not sure what's different about the |
With
|
It is a timing issue. TIMEOUT=30
i=0
while [ "$(echo $MOUNTPOINT/*)" == "$MOUNTPOINT/*" ]; do
if [ $i -gt $TIMEOUT ]; then
echo "No files found, exiting"
exit 1
fi
sleep 1
i=$(expr $i + 1)
done What a pain in the rear. |
Something else is going on. Even with that change it's still failing with a directory not found when attaching to the mount point. I see the mount point directory and can attach the same |
Building up the following script piece by piece everything works. In the end, it looks just like the mlvm version (modulo some variable names and hard-coded paths). I don't know what's going on that's special to mlvm. #!/usr/bin/env bash
DMG="$1"
MOUNT=$(date +%s)$RANDOM
MOUNT=~/tmp/.mounts/"$MOUNT"
mkdir -p "$MOUNT"
ls -laGh "$MOUNT"
echo "Mounting $DMG to $MOUNT"
hdiutil attach "$DMG" -mountpoint "$MOUNT" -nobrowse -quiet
# <http://dxr.mozilla.org/mozilla-central/source/build/package/mac_osx/unpack-diskimage>
TIMEOUT=15
i=0
while [ "$(echo $MOUNT/*)" == "$MOUNT/*" ]; do
if [ $i -gt $TIMEOUT ]; then
echo "No files found, exiting"
exit 1
fi
ls -la "$MOUNT"
sleep 1
i=$(expr $i + 1)
done
mkdir -p ~/tmp/ML
tar xfz "$MOUNT"/*.pkg/Contents/Archive.pax.gz -C ~/tmp/ML |
I think the issue is the use of |
FYI I ended up here again and basically had a corrupt dmg. I think I interrupted extraction by accidentally clicking on the dmg after downloading then clicking stop or skip or cancel extraction. Re-downloaded and it worked smoothly. |
Requirement for “resume download”? |
It was previously working great for me - I have 5 versions of MarkLogic that I manage on my machine. Not sure if I did something different today but am not able to successfully install a new version:
I downloaded a new install file (.dmg)
mlvm install 8.0-20140806 ~/Downloads/MarkLogic-8.0-20140806-x86_64.dmg
Response:
Mounting dmg
Extracting contents
tar: Error opening archive: Failed to open '/Users/kalderet/GHstuff/mlvm/.mounts/140736206619611/*.pkg/Contents/Archive.pax.gz'
chmod: /Users/kalderet/GHstuff/mlvm/versions/8.0-20140806/StartupItems/MarkLogic/MarkLogic: No such file or directory
cleaning up
The text was updated successfully, but these errors were encountered: