ellisk42 / ec

MIT License
487 stars 140 forks source link

container img Failed to mount squashfs image #72

Open simin75simin opened 3 years ago

simin75simin commented 3 years ago

i'm on ubuntu 18.04. i tried singularity 2.5, 2.6.1, and v3.3.0, removing container.img each time and running 'sudo singularity..' to generate a new container image each time. but when i try to run ./container.img it says ERROR : Failed to mount squashfs image in (read only): Invalid argument ABORT : Retval = 255 i also tried the alternative method for singulairty 2.5 and v3.3.0. help please. thanks.

Angular-Angel commented 3 years ago

Hallo, I am having exactly the same error. Xubuntu for me, should be latest version.

Angular-Angel commented 3 years ago

I think this may be relevant: https://github.com/hpcng/singularity/issues/3465

Edit: or, maybe not. That one says 'no such device', this one says 'invalid argument'. Hmm.

Edit: Okay, maybe this one: https://github.com/hpcng/singularity/issues/5144

simin75simin commented 3 years ago

i did not know what the last link you provided was about though, specifically i did not find a mount.c file and neither could i understand the fix itself. it seems someone added a commit to fix that issue but i used singularity 3.3 and the same result popped up so i don't think that fix alone resolves my issue.

so far i haven't been able to resolve this. i'm thinking of doing it on google colab as i find their machines are usually more compatible to various projects i came across than my own. but that could take a while.

Angular-Angel commented 3 years ago

The patch requires a change to signularity itself - that is, you have to edit it's source and then remake, I think.

Edit: Yup, I edited the singularity source, and then ran 'make' and 'sudo make install' again, and now I can run dreamcoder. Now I just need to figure out how to start playing with the examples and I'm golden... XD

santolucito commented 3 years ago

@Angular-Angel what was the edit you made to the singularity source code?

Also is there a vm anywhere that has everything preinstalled? Or maybe someone can share one if they have it working?