cubic is getting stuck after pressing back

Asked by Aniruddha on 2019-08-30

I am on Ubuntu 18.04, and trying to create a custom 18.04.2 ISO, Cubic was working fine until today.
But once I went to the preseed customization screen and then realized I had to install a package, so
I pressed the Back button to go back to the chroot terminal, it got stuck and did not recover.
I had to kill the process (xkill + killall) then reboot my host.
Now, each time I open Cubic, it gets stuck in the chroot terminal (the prompt does not appear).
Is there some cleanup (temp file removal) etc. I can try to make it run?

P.S. I invoke Cubic from the command line, and there are no error message shown.
I have persisted the configurations since the first time and not removed any of it.

Question information

Language:
English Edit question
Status:
Solved
For:
Cubic Edit question
Assignee:
No assignee Edit question
Solved by:
Aniruddha
Solved:
2019-09-03
Last query:
2019-09-03
Last reply:
2019-09-02
Cubic PPA (cubic-wizard) said : #1

Sorry to hear about that.
Let's see if this can be can fixed...

Please paste the output of:

    $ cd <cubic project directory>

    $ tree -L 3 -I isolinux custom-live-iso/; tree -L 1 squashfs-root/

    $ cat cubic.conf

Cubic PPA (cubic-wizard) said : #2

Aniruddha,

Please also include the output of...

    $ dpkg -l cubic

Aniruddha (aniruddha-a) said : #3

Here are the outputs:

$ dpkg -l | grep cubic
ii cubic
 2019.07-58-release~201907290101~ubuntu18.04.1 all Wizard to
create a customized Ubuntu Live CD image.

$ tree --charset=ascii -L 1 squashfs-root/
squashfs-root/
|-- bin
|-- boot
|-- dev
|-- etc
|-- home
|-- initrd.img -> boot/initrd.img-4.15.0-58-generic
|-- initrd.img.old -> boot/initrd.img-4.15.0-58-generic
|-- lib
|-- lib64
|-- media
|-- mnt
|-- opt
|-- proc
|-- root
|-- run
|-- sbin
|-- srv
|-- sys
|-- tmp
|-- usr
|-- var
|-- vmlinuz -> boot/vmlinuz-4.15.0-58-generic
`-- vmlinuz.old -> boot/vmlinuz-4.15.0-58-generic

19 directories, 4 files

$ tree --charset=ascii -L 3 -I isolinux custom-live-iso/
custom-live-iso/
|-- boot
| `-- grub
| |-- efi.img
| |-- font.pf2
| |-- grub.cfg
| |-- loopback.cfg
| `-- x86_64-efi
|-- dists
| |-- bionic
| | |-- main
| | |-- Release
| | |-- Release.gpg
| | `-- restricted
| |-- stable -> bionic
| `-- unstable -> bionic
|-- doc
| `-- install
| `-- manual
|-- EFI
| `-- BOOT
| |-- BOOTx64.EFI
| `-- grubx64.efi
|-- install
| |-- filesystem.manifest
| |-- filesystem.manifest-remove
| |-- filesystem.size
| |-- filesystem.squashfs
| |-- hwe-initrd.gz
| |-- hwe-netboot
| | |-- ldlinux.c32 -> ubuntu-installer/amd64/boot-screens/ldlinux.c32
| | |-- pxelinux.0 -> ubuntu-installer/amd64/pxelinux.0
| | |-- pxelinux.cfg -> ubuntu-installer/amd64/pxelinux.cfg
| | |-- ubuntu-installer
| | `-- version.info
| |-- hwe-vmlinuz
| |-- initrd.gz
| |-- mt86plus
| |-- netboot
| | |-- ldlinux.c32 -> ubuntu-installer/amd64/boot-screens/ldlinux.c32
| | |-- pxelinux.0 -> ubuntu-installer/amd64/pxelinux.0
| | |-- pxelinux.cfg -> ubuntu-installer/amd64/pxelinux.cfg
| | |-- ubuntu-installer
| | `-- version.info
| |-- README.sbm
| |-- sbm.bin
| `-- vmlinuz
|-- md5sum.txt
|-- pics
| |-- blue-lowerleft.png
| |-- blue-lowerright.png
| |-- blue-upperleft.png
| |-- blue-upperright.png
| |-- debian.jpg
| |-- logo-50.jpg
| |-- red-lowerleft.png
| |-- red-lowerright.png
| |-- red-upperleft.png
| `-- red-upperright.png
|-- pool
| `-- main
| |-- a
| |-- b
| |-- c
| |-- d
| |-- e
| |-- f
| |-- g
| |-- h
| |-- i
| |-- j
| |-- k
| |-- l
| |-- liba
| |-- libb
| |-- libc
| |-- libd
| |-- libe
| |-- libf
| |-- libg
| |-- libh
| |-- libi
| |-- libj
| |-- libk
| |-- libl
| |-- libm
| |-- libn
| |-- libo
| |-- libp
| |-- libq
| |-- libr
| |-- libs
| |-- libt
| |-- libu
| |-- libv
| |-- libw
| |-- libx
| |-- liby
| |-- libz
| |-- m
| |-- n
| |-- o
| |-- p
| |-- q
| |-- r
| |-- s
| |-- t
| |-- u
| |-- v
| |-- w
| |-- x
| |-- y
| `-- z
|-- preseed
| |-- cloud.seed
| |-- hwe-cloud.seed
| |-- hwe-ubuntu-server-minimal.seed
| |-- hwe-ubuntu-server-minimalvm.seed
| |-- hwe-ubuntu-server.seed
| |-- ubuntu-server-minimal.seed
| |-- ubuntu-server-minimalvm.seed
| |-- ubuntu-server.seed
| |-- versa.seed
| `-- versausb.seed
|-- README.diskdefines
`-- ubuntu -> .

78 directories, 47 files

$ \cat cubic.conf
[General]
cubic_version = 2019.07-58-release~201907290101~ubuntu18.04.1
project_directory = /home/ani/Downloads/ubuntu-iso

[Original]
original_iso_image_filename = ubuntu-18.04.2-server-amd64.iso
original_iso_image_directory = /home/ani/Downloads/ubuntu-iso
original_iso_image_volume_id = Ubuntu-Server 18.04.2 LTS amd64
original_iso_image_release_name = Bionic Beaver
original_iso_image_disk_name = Ubuntu-Server 18.04.2 LTS "Bionic Beaver" -
Release amd64

[Custom]
custom_iso_image_version_number = Flex
custom_iso_image_filename = ubuntu-18.04.2-Flex-server-amd64.iso
custom_iso_image_directory = /home/ani/Downloads/ubuntu-iso
custom_iso_image_volume_id = Ubuntu-Server 18.04.2 LTS amd64
custom_iso_image_release_name = FlexVNF Bionic Beaver
custom_iso_image_disk_name = Ubuntu-Server 18.04.2 LTS amd64 "FlexVNF
Bionic Beaver"
custom_iso_image_md5_filename = ubuntu-18.04.2-Flex-server-amd64.md5

[Status]
is_success_copy_original_iso_files = True
is_success_extract_squashfs = True

[Options]
boot_configurations =
boot/grub/grub.cfg,boot/grub/loopback.cfg,isolinux/txt.cfg

Please let me know if any other info is needed
--
Ani

On Sat, Aug 31, 2019 at 4:27 AM Cubic PPA <
<email address hidden>> wrote:

> Your question #683533 on Cubic changed:
> https://answers.launchpad.net/cubic/+question/683533
>
> Status: Open => Needs information
>
> Cubic PPA requested more information:
> Sorry to hear about that.
> Let's see if this can be can fixed...
>
> Please paste the output of:
>
> $ cd <cubic project directory>
>
> $ tree -L 3 -I isolinux custom-live-iso/; tree -L 1 squashfs-root/
>
> $ cat cubic.conf
>
> --
> To answer this request for more information, you can either reply to
> this email or enter your reply at the following page:
> https://answers.launchpad.net/cubic/+question/683533
>
> You received this question notification because you asked the question.
>

Cubic PPA (cubic-wizard) said : #4

Ani,

I downloaded ubuntu-18.04.2-server-amd64.iso and created a Cubic project.
I compared the project structure with the structure you shared above.

Initially, I thought that perhaps some files had been removed or deleted when you had killed the process.

However, I do not see a structural difference between your project and my test project. All the files and directories that should be there, are there.

The only discrepancy I see was that your original ISO download location is ~inside~ your project. But this will obviously not cause an issue in your case, since your custom ISO has a different name (ubuntu-18.04.2-Flex-server-amd64.iso) than the original ISO (ubuntu-18.04.2-server-amd64.iso).

(1)

You can try deleting the following files, since they are recreated by Cubic.
On your host system, execute the following:
    $ sudo rm -rf /home/ani/Downloads/ubuntu-iso/custom-live-iso/install/filesystem.*
Then try to start Cubic and see if it helps?

(2)

If this doesn't help, the issue might be something got corrupted in your customized Linux file system.
In other words, the structure of /home/ani/Downloads/ubuntu-iso/squashfs-root looks fine, but there could be something corrupted inside this directory.

Let's see if an error is output by Cubic that might help diagnose the problem...

Open a new terminal window on your host machine.
Run Cubic from the command-line by typing `cubic` and pressing enter.
Once you run into the problem, cut and paste the output from the terminal into this question.
I'll review the output for clues.

Aniruddha (aniruddha-a) said : #5

Thanks. with (1) I am able to bring back cubic (first time it came up with no options to customize existing project, on
second start its showing all options)