-
Notifications
You must be signed in to change notification settings - Fork 154
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Loop doesn't seem to be working with Ubuntu 19.04, fails at losetup #46
Comments
Ok, tested here on my 19.04 installation, and it works.
In your run it says:
failed to setup loop device for
Are you sure the loopback device is mounted? Did you use:
sudo modprobe loop
Note - if you did something to your system, I can't really support it, that
is why we have vagrant and docker, so you don't get environment issues.
|
Loop is not a loadable module in the newest versions of Ubuntu, it is compiled into the kernel, so:: sudo modprobe loop does nothing |
I have since created a new VM using Debian 9 and it is appearing to work. I still want to get it installed on Ubuntu since I am more familiar with it than Debian. For now I am going to create a new Ubuntu VM and see if it isn't osboxes.org nonsense. Please leave this open until I report back that it is working. |
Okay, I can now say with confidence that osboxes.org prebuilt VM for Ubuntu is the fault. I created a new Ubuntu VM installed VBoxGuestAdditions and was able to successfully build a rPi image. please note there are two corrections to your instructions needed if running on Ubuntu 18.04 RTS or newer (I ran CustomPiOS on Ubuntu 19.04). the first command to install dependencies needs realpath removed.
Secondly, since loop is now built into the kernel, there is no need to execute the following command:
I am closing this issue as it appears it was a configuration issue with the pre-built VM. |
Ok, I found out why this happends. When running losetup you get a list, including
If you run |
@WheresWaldo If you feel like testing out this fix it would be great |
Yes, I will, give me 24 hours to get things set up again. Been busy actually trying to use CustomPiOS, we have a community project trying to duplicate the functionality of Robo 3D's RoboOS, which is OctoPi based Kivy frontend for their printers. They have appeared to have stopped all development and left their users with very old versions of all parts, myself and a few others are trying to update it to work with the latest versions of OctoPrint / plugins / Kivy. It is located here, https://github.com/WheresWaldo/CommunityOS. By the way, I have no issues using Debian 9 guest OS in VirtualBox on a Windows 10 host. |
Cool! |
Still doesn't appear to work under Ubuntu, I am beginning to think it is because Ubuntu (other distros also) obscures or doesn't have a 'root' user. I haven't tried any other distros except for Debian 9, Ubuntu 19.04 and Mint 19.1. Debian is the only one that works 100% of the time, baring stupid commands I put in the chroot_script. |
@WheresWaldo Can you give the output of Also note you need the latest dev build. |
I will git clone the dev build of CustomPiOS, then try my setup. I will try to do it on Monday / Tuesday, since I am busy trying to fix stupid scripting errors in my distribution. I will start with a initial snapshot VM of Ubuntu 19.04 as it appears, once it is broken it is almost impossible to fix. |
You dont need to clone for the docker-build. just pull from https://hub.docker.com/r/guysoft/custompios/ the devel tag. Also be sure to run |
If this works will you release a new tagged version to Docker Hub? I think when I first tried, I assumed |
I think this wiki change might help a bit. There's another |
Yes, if it works it justifies a new version, can be tagged. Would love to
confirm it fixes the issue first.
|
Note that this is 18.04, not 19.04. |
I got this working on my AWS LightSail box (see above) just by using
|
After |
I cannot get this working on 19.04 (DigitalOcean, fresh 19.04 instance) even with sudo-ing as I mentioned previously on an updated 18.04 box.
|
I've not been able to successfully build a simple distro on my macOS host using Docker for Mac and the referenced |
Can you just give an example of plain, with no arguments |
Here is a plain output from 'losetup' on a failed Ubuntu 19.04 build that works 100% on Debian 9.
|
Ok, found another scenerio where you will get an error "no such file or directory". If you run out of loopack devices! Try running outside the container:
Then build again using docker. Should create Will try and see if there is a way to output an error about this. |
Ok, pushed a fix, docker-compose pull and try building now. |
Ok, had a chance to test it today and now it is building properly on Ubuntu. No other changes except using new code from devel. |
Great! Thanks for testing and reporting! |
Having this issue on a later bookworm PiOS release. No changes made that should have impacted this. Were there any fixes identified for the host system not being able to use loop devices or is this an entirely unsupported feature now?
|
@WheresWaldo see #55 that tracks it |
Are these not separate issues? #55 seems to be related to issues inside the docker container. |
@Rattkener sorry for the late reply. I don't know of an issue with that outside a docker container, you might be missing. Open a separate issue and post the exact error messages you are getting. |
Building my own version of OctoPrint with a few plugins when the build command is issued and it appears to go all the way through building the necessary modules and ripping apart the image, only to fail rebuilding the image.
Using Ubuntu 19.04 (64-bit) in a VirtualBox VM from osboxes.org. Simply using 'terminal' and not trying to install in Docker or with Vagrant.
build.log
I am pretty sure it is a permissions issue, but can't figure out how to fix it, sorry I am a linux noob.
A couple of notes, 'realpath' is not in the current Ubuntu package repository so it cannot be installed, also 'curl' needed be added to the install list in order to download the source via the provided instructions. Also, loop is not built into the kernel and not a loadable module so 'modprobe loop' does nothing. Nor does it list loop when searching for modules with 'lsmod'.
I studied the four other issues that mention loop failing (2 closed, 2 open) and it does not appear to provide a clear understanding of what is going on.
Just to verify if my setup of OctoPrint was the culprit, I tried building AlarmPi and OctoPi and both failed at the same location.
The text was updated successfully, but these errors were encountered: