PJ-Singh-001 / Cubic

The Official Web Site for Cubic (Custom Ubuntu ISO Creator) (https://github.com/PJ-Singh-001/Cubic)
831 stars 48 forks source link

Unable to create the customized disk image Error #356

Open yni9ht opened 1 month ago

yni9ht commented 1 month ago

Describe the bug

Error: unable to generate the customized disk image

To Reproduce

Expected behavior

save custome iso image to loacl

OS Information (please complete the following information):

Cubic Information (please complete the following information):

Cubic Log:

  Create disk image                        

  • Started process thread id.............. 137081250645568          
  • Process started by thread id........... 137081009473088                     
  • The process started at................. 18:16:43.131194                     
  • Execute asynchronously................. xorriso -as mkisofs -r -J -joliet-  
                                            long -l -iso-level 3   -V 'Kylin-   
                                            Embedded-V10 2024.10.24' Media      
                                            current: stdio file, overwriteable  
                                            Media status : is written , is      
                                            appendable Boot record  : El Torito 
                                            Media summary: 1 session, 1753981   
                                            data blocks, 3426m data,  905g free 
                                            Volume id    : 'Kylin-Embedded-V10' 
                                            -V 'Kylin-Embedded-V10 2024.10.24'  
                                            -c '/isolinux/boot.cat' -b          
                                            '/isolinux/isolinux.bin' -no-emul-  
                                            boot -boot-load-size 4 -boot-info-  
                                            table -eltorito-alt-boot -e         
                                            '/boot/grub/efi.img' -no-emul-boot  
                                            -boot-load-size 57344  -o           
                                            "/home/ubuntu/cubic-kylin-v10/Kylin-
                                            Embedded-V10-General-Release-Base-  
                                            2309130515-X86_64-2024.10.24.iso" . 
  • The process id is...................... 10350                               
  • Error.................................. An exception occurred               
  • The process thread id is............... 137081250645568                     
  • The process stopped at................. 18:16:43.258075                     
  • The exit status, signal status is...... 5, None                             
  • The message is......................... xorriso 1.5.4 : RockRidge filesystem
                                            manipulator, libburnia project.     
                                            Drive current: -outdev              
                                            'stdio:/home/ubuntu/cubic-          
                                            kylin-v10/Kylin-                    
                                            Embedded-V10-General-Release-Base-  
                                            2309130515-X86_64-2024.10.24.iso'   
                                            Media current: stdio file,          
                                            overwriteable Media status : is     
                                            blank Media summary: 0 sessions, 0  
                                            data blocks, 0 data,  895g free     
                                            xorriso : WARNING : -volid text     
                                            problematic as automatic mount point
                                            name xorriso : WARNING : -volid text
                                            is too long for Joliet (29 > 16)    
                                            xorriso : WARNING : -volid text does
                                            not comply to ISO 9660 / ECMA 119   
                                            rules xorriso : FAILURE : Cannot    
                                            determine attributes of source file 
                                            '/home/ubuntu/cubic-                
                                            kylin-v10/custom-disk/Media' : No   
                                            such file or directory xorriso :    
                                            aborting : -abort_on 'FAILURE'      
                                            encountered 'FAILURE'               
  • The exception is....................... End Of File (EOF). Exception style  
                                            platform. <pexpect.pty_spawn.spawn  
                                            object at 0x7cacd5359300> command:  
                                            /usr/bin/xorriso args:              
                                            [b'/usr/bin/xorriso', b'-as',       
                                            b'mkisofs', b'-r', b'-J', b'-joliet-
                                            long', b'-l', b'-iso-level', b'3',  
                                            b'-V', b'Kylin-Embedded-V10         
                                            2024.10.24', b'Media', b'current:', 
                                            b'stdio', b'file,',                 
                                            b'overwriteable', b'Media',         
                                            b'status', b':', b'is', b'written', 
                                            b',', b'is', b'appendable', b'Boot',
                                            b'record', b':', b'El', b'Torito',  
                                            b'Media', b'summary:', b'1',        
                                            b'session,', b'1753981', b'data',   
                                            b'blocks,', b'3426m', b'data,',     
                                            b'905g', b'free', b'Volume', b'id', 
                                            b':', b'Kylin-Embedded-V10', b'-V', 
                                            b'Kylin-Embedded-V10 2024.10.24',   
                                            b'-c', b'/isolinux/boot.cat', b'-b',
                                            b'/isolinux/isolinux.bin', b'-no-   
                                            emul-boot', b'-boot-load-size',     
                                            b'4', b'-boot-info-table',          
                                            b'-eltorito-alt-boot', b'-e',       
                                            b'/boot/grub/efi.img', b'-no-emul-  
                                            boot', b'-boot-load-size', b'57344',
                                            b'-o', b'/home/ubuntu/cubic-        
                                            kylin-v10/Kylin-                    
                                            Embedded-V10-General-Release-Base-  
                                            2309130515-X86_64-2024.10.24.iso',  
                                            b'.'] buffer (last 100 chars): ''   
                                            before (last 100 chars): "Media' :  
                                            No such file or directory\r\nxorriso
                                            : aborting : -abort_on 'FAILURE'    
                                            encountered 'FAILURE'\r\n" after:   
                                            <class 'pexpect.exceptions.EOF'>    
                                            match: None match_index: None       
                                            exitstatus: None flag_eof: True pid:
                                            10350 child_fd: 48 closed: False    
                                            timeout: 300 delimiter: <class      
                                            'pexpect.exceptions.EOF'> logfile:  
                                            None logfile_read: None             
                                            logfile_send: None maxread: 2000    
                                            ignorecase: False searchwindowsize: 
                                            None delaybeforesend: 0.05          
                                            delayafterclose: 0.1                
                                            delayafterterminate: 0.1 searcher:  
                                            searcher_re:     0: re.compile('[0- 
                                            9]{1,3}(\\.[0-9]{2}){0,1}%')        
                                            message: xorriso 1.5.4 : RockRidge  
                                            filesystem manipulator, libburnia   
                                            project.  Drive current: -outdev    
                                            'stdio:/home/ubuntu/cubic-          
                                            kylin-v10/Kylin-                    
                                            Embedded-V10-General-Release-Base-  
                                            2309130515-X86_64-2024.10.24.iso'   
                                            Media current: stdio file,          
                                            overwriteable Media status : is     
                                            blank Media summary: 0 sessions, 0  
                                            data blocks, 0 data,  895g free     
                                            xorriso : WARNING : -volid text     
                                            problematic as automatic mount point
                                            name xorriso : WARNING : -volid text
                                            is too long for Joliet (29 > 16)    
                                            xorriso : WARNING : -volid text does
                                            not comply to ISO 9660 / ECMA 119   
                                            rules xorriso : FAILURE : Cannot    
                                            determine attributes of source file 
                                            '/home/ubuntu/cubic-                
                                            kylin-v10/custom-disk/Media' : No   
                                            such file or directory xorriso :    
                                            aborting : -abort_on 'FAILURE'      
                                            encountered 'FAILURE'               
  • The trace back is...................... Traceback (most recent call last):  
                                            File "/usr/share/cubic/cubic/utiliti
                                            es/progressor.py", line 413, in     
                                            process_command     if not done:    
                                            raise exception   File "/usr/share/c
                                            ubic/cubic/utilities/progressor.py",
                                            line 408, in process_command        
                                            process.expect(PERCENT_PATTERN)     
                                            File "/usr/lib/python3/dist-        
                                            packages/pexpect/spawnbase.py", line
                                            343, in expect     return self.expec
                                            t_list(compiled_pattern_list,   File
                                            "/usr/lib/python3/dist-             
                                            packages/pexpect/spawnbase.py", line
                                            372, in expect_list     return      
                                            exp.expect_loop(timeout)   File     
                                            "/usr/lib/python3/dist-             
                                            packages/pexpect/expect.py", line   
                                            179, in expect_loop     return      
                                            self.eof(e)   File                  
                                            "/usr/lib/python3/dist-             
                                            packages/pexpect/expect.py", line   
                                            122, in eof     raise exc           
                                            pexpect.exceptions.EOF: End Of File 
                                            (EOF). Exception style platform.    
                                            <pexpect.pty_spawn.spawn object at  
                                            0x7cacd5359300> command:            
                                            /usr/bin/xorriso args:              
                                            [b'/usr/bin/xorriso', b'-as',       
                                            b'mkisofs', b'-r', b'-J', b'-joliet-
                                            long', b'-l', b'-iso-level', b'3',  
                                            b'-V', b'Kylin-Embedded-V10         
                                            2024.10.24', b'Media', b'current:', 
                                            b'stdio', b'file,',                 
                                            b'overwriteable', b'Media',         
                                            b'status', b':', b'is', b'written', 
                                            b',', b'is', b'appendable', b'Boot',
                                            b'record', b':', b'El', b'Torito',  
                                            b'Media', b'summary:', b'1',        
                                            b'session,', b'1753981', b'data',   
                                            b'blocks,', b'3426m', b'data,',     
                                            b'905g', b'free', b'Volume', b'id', 
                                            b':', b'Kylin-Embedded-V10', b'-V', 
                                            b'Kylin-Embedded-V10 2024.10.24',   
                                            b'-c', b'/isolinux/boot.cat', b'-b',
                                            b'/isolinux/isolinux.bin', b'-no-   
                                            emul-boot', b'-boot-load-size',     
                                            b'4', b'-boot-info-table',          
                                            b'-eltorito-alt-boot', b'-e',       
                                            b'/boot/grub/efi.img', b'-no-emul-  
                                            boot', b'-boot-load-size', b'57344',
                                            b'-o', b'/home/ubuntu/cubic-        
                                            kylin-v10/Kylin-                    
                                            Embedded-V10-General-Release-Base-  
                                            2309130515-X86_64-2024.10.24.iso',  
                                            b'.'] buffer (last 100 chars): ''   
                                            before (last 100 chars): "Media' :  
                                            No such file or directory\r\nxorriso
                                            : aborting : -abort_on 'FAILURE'    
                                            encountered 'FAILURE'\r\n" after:   
                                            <class 'pexpect.exceptions.EOF'>    
                                            match: None match_index: None       
                                            exitstatus: None flag_eof: True pid:
                                            10350 child_fd: 48 closed: False    
                                            timeout: 300 delimiter: <class      
                                            'pexpect.exceptions.EOF'> logfile:  
                                            None logfile_read: None             
                                            logfile_send: None maxread: 2000    
                                            ignorecase: False searchwindowsize: 
                                            None delaybeforesend: 0.05          
                                            delayafterclose: 0.1                
                                            delayafterterminate: 0.1 searcher:  
                                            searcher_re:     0: re.compile('[0- 
                                            9]{1,3}(\\.[0-9]{2}){0,1}%')        
  • Stopped process thread id.............. 137081250645568          
  • Raise the exception to thread id....... 137081009473088                     
  • Do not propagate exception............. _PyErr_SetObject: exception EOF('End
                                            Of File (EOF). Exception style      
                                            platform.\n<pexpect.pty_spawn.spawn 
                                            object at 0x7cacd5359300>\ncommand: 
                                            /usr/bin/xorriso\nargs:             
                                            [b\'/usr/bin/xorriso\', b\'-as\',   
                                            b\'mkisofs\', b\'-r\', b\'-J\',     
                                            b\'-joliet-long\', b\'-l\', b\'-iso-
                                            level\', b\'3\', b\'-V\', b\'Kylin- 
                                            Embedded-V10 2024.10.24\',          
                                            b\'Media\', b\'current:\',          
                                            b\'stdio\', b\'file,\',             
                                            b\'overwriteable\', b\'Media\',     
                                            b\'status\', b\':\', b\'is\',       
                                            b\'written\', b\',\', b\'is\',      
                                            b\'appendable\', b\'Boot\',         
                                            b\'record\', b\':\', b\'El\',       
                                            b\'Torito\', b\'Media\',            
                                            b\'summary:\', b\'1\',              
                                            b\'session,\', b\'1753981\',        
                                            b\'data\', b\'blocks,\', b\'3426m\',
                                            b\'data,\', b\'905g\', b\'free\',   
                                            b\'Volume\', b\'id\', b\':\',       
                                            b\'Kylin-Embedded-V10\', b\'-V\',   
                                            b\'Kylin-Embedded-V10 2024.10.24\', 
                                            b\'-c\', b\'/isolinux/boot.cat\',   
                                            b\'-b\',                            
                                            b\'/isolinux/isolinux.bin\', b\'-no-
                                            emul-boot\', b\'-boot-load-size\',  
                                            b\'4\', b\'-boot-info-table\',      
                                            b\'-eltorito-alt-boot\', b\'-e\',   
                                            b\'/boot/grub/efi.img\', b\'-no-    
                                            emul-boot\', b\'-boot-load-size\',  
                                            b\'57344\', b\'-o\',                
                                            b\'/home/ubuntu/cubic-              
                                            kylin-v10/Kylin-                    
                                            Embedded-V10-General-Release-Base-  
                                            2309130515-X86_64-2024.10.24.iso\', 
                                            b\'.\']\nbuffer (last 100 chars):   
                                            \'\'\nbefore (last 100 chars):      
                                            "Media\' : No such file or          
                                            directory\\r\\nxorriso : aborting : 
                                            -abort_on \'FAILURE\' encountered   
                                            \'FAILURE\'\\r\\n"\nafter: <class   
                                            \'pexpect.exceptions.EOF\'>\nmatch: 
                                            None\nmatch_index: None\nexitstatus:
                                            None\nflag_eof: True\npid:          
                                            10350\nchild_fd: 48\nclosed:        
                                            False\ntimeout: 300\ndelimiter:     
                                            <class \'pexpect.exceptions.EOF\'>\n
                                            logfile: None\nlogfile_read:        
                                            None\nlogfile_send: None\nmaxread:  
                                            2000\nignorecase:                   
                                            False\nsearchwindowsize:            
                                            None\ndelaybeforesend:              
                                            0.05\ndelayafterclose:              
                                            0.1\ndelayafterterminate:           
                                            0.1\nsearcher: searcher_re:\n    0: 
                                            re.compile(\'[0-9]{1,3}(\\\\.[0-    
                                            9]{2}){0,1}%\')\nmessage: xorriso   
                                            1.5.4 : RockRidge filesystem        
                                            manipulator, libburnia              
                                            project.\n\nDrive current: -outdev  
                                            \'stdio:/home/ubuntu/cubic-         
                                            kylin-v10/Kylin-                    
                                            Embedded-V10-General-Release-Base-  
                                            2309130515-X86_64-                  
                                            2024.10.24.iso\'\nMedia current:    
                                            stdio file, overwriteable\nMedia    
                                            status : is blank\nMedia summary: 0 
                                            sessions, 0 data blocks, 0 data,    
                                            895g free\nxorriso : WARNING :      
                                            -volid text problematic as automatic
                                            mount point name\nxorriso : WARNING 
                                            : -volid text is too long for Joliet
                                            (29 > 16)\nxorriso : WARNING :      
                                            -volid text does not comply to ISO  
                                            9660 / ECMA 119 rules\nxorriso :    
                                            FAILURE : Cannot determine          
                                            attributes of source file           
                                            \'/home/ubuntu/cubic-               
                                            kylin-v10/custom-disk/Media\' : No  
                                            such file or directory\nxorriso :   
                                            aborting : -abort_on \'FAILURE\'    
                                            encountered \'FAILURE\'') is not a  
                                            BaseException subclass 

Screenshots

image

image

image

moliveras commented 3 weeks ago

I am having the same exact issue...

moliveras commented 3 weeks ago

A coworker looked into how cubic runs xorriso and we were able to write the iso manually by executing the following command from the project folder:

xorriso -as mkisofs -r -J -joliet-long -l -iso-level 3 -V 'TestBuntu' -b boot/grub/i386-pc/eltorito.img -no-emul-boot -boot-load-size 4 -boot-info-table -eltorito-alt-boot -e EFI/boot/bootx64.efi -no-emul-boot -isohybrid-gpt-basdat -isohybrid-mbr /usr/lib/ISOLINUX/isohdpfx.bin -o server-1.3_usb.iso custom-disk

Hopefully this can be fixed in cubic as it is a great tool.