Bug 420320

Summary: Yast2-Product-Creator: unexpected EOF while looking for matching `''
Product: [openSUSE] openSUSE 11.0 Reporter: Vladimir Botka <vbotka>
Component: YaST2Assignee: Marcus Schaefer <ms>
Status: RESOLVED FIXED QA Contact: Jiri Srain <jsrain>
Severity: Normal    
Priority: P5 - None CC: jsuchome
Version: Final   
Target Milestone: ---   
Hardware: i686   
OS: openSUSE 11.0   
Whiteboard:
Found By: Development Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: yast2 log files

Description Vladimir Botka 2008-08-26 10:08:30 UTC
Hallo,

trying to create the bootable usb stick I found the following error message:

sh: -c: line 0: unexpected EOF while looking for matching `''
sh: -c: line 1: syntax error: unexpected end of file

here is the log from the upper window:

Aug-26 11:21:21 <1> : Switching off colored output
Aug-26 11:21:21 <1> : Setting log file to: terminal
Aug-26 11:21:21 <1> : Reading image description...   done
Aug-26 11:21:22 <2> : Description provides no MD5 hash, check   skipped
Aug-26 11:21:22 <1> : Checking for default baseroot in XML data...   notset
Aug-26 11:21:23 <1> : Setting up package manager: zypper   done
Aug-26 11:21:23 <1> : Creating default template files for new root system   done
Aug-26 11:21:23 <1> : Adding local zypper service: kiwi12-4439   done
Aug-26 11:21:24 <1> : Adding local zypper service: kiwi6-4439   done
Aug-26 11:21:24 <1> : Adding local zypper service: kiwi5-4439   done
Aug-26 11:21:24 <1> : Adding local zypper service: kiwi27-4439   done
Aug-26 11:21:24 <1> : Adding local zypper service: kiwi11-4439   done
Aug-26 11:21:25 <1> : Adding local zypper service: kiwi19-4439   done
Aug-26 11:21:25 <1> : Adding local zypper service: kiwi4-4439   done
Aug-26 11:21:25 <1> : Adding local zypper service: kiwi16-4439   done
Aug-26 11:21:25 <1> : Adding local zypper service: kiwi24-4439   done
Aug-26 11:21:25 <1> : Adding local zypper service: kiwi7-4439   done
Aug-26 11:21:26 <1> : Adding local zypper service: kiwi28-4439   done
Aug-26 11:21:26 <1> : Adding local zypper service: kiwi2-4439   done
Aug-26 11:21:26 <1> : Adding local zypper service: kiwi8-4439   done
Aug-26 11:21:27 <1> : Adding local zypper service: kiwi3-4439   done
Aug-26 11:21:27 <1> : Adding local zypper service: kiwi22-4439   failed
Aug-26 11:21:27 <3> : 
Aug-26 11:21:27 <3> : Base initialization failed   failed
Aug-26 11:21:27 <3> : KIWI exited with error(s)   done

Ciao,

-vlado
Vladimir Botka
Comment 1 Vladimir Botka 2008-08-26 10:13:52 UTC
Created attachment 235440 [details]
yast2 log files
Comment 2 Ladislav Slezák 2008-09-04 13:01:31 UTC
Jiri, bug in yast2-product-creator or in kiwi?
Comment 3 Jiří Suchomel 2008-09-04 13:08:49 UTC
Please, attach your config.xml. It should be located in /var/lib/YaST2/product-creator/images/suse-live-stick.
Comment 4 Jiří Suchomel 2008-09-09 09:00:35 UTC
Ping.

(BTW, I assume the problem is that you are using cd/dvd package repository in the configuration)
Comment 5 Jiří Suchomel 2008-09-16 14:21:00 UTC
Ping!
Comment 6 Vladimir Botka 2008-09-17 06:52:39 UTC
[SOLVED]

After disabling CD/DVD from sources the build is running as expected.
Thank you and sorry for the delay. 
Comment 7 Jiří Suchomel 2008-09-17 07:14:05 UTC
Marcus, please add a better error handling for CD/DVD sources. See the one in initial comment, it is not helpful at all.
Comment 8 Marcus Schaefer 2008-09-17 09:45:53 UTC
I already added the zypper error message to be displayed in such a
case. Additionally I now added a log excerpt for any error happening
at that stage

I also found that zypper handles errors not easy to the user.
If you pass 100 packages to zypper to become installed and one doesn't
exist zypper complains about that at the beginning but proceeds installing
99 packages before it exits with an error code != 0. All in all it does
things correctly but a user has no clue why it exits unsuccessful because
100 lines or more above one line of an error was printed. This also
should be changed if you complain about kiwi not providing good error
messages :-)

fixes in 2.77

Thanks
Comment 9 Jan Kupec 2008-09-17 09:53:58 UTC
Ad zypper: i agree, but what should be changed? Should zypper print an error summary at the end of the process? Or should it not continue in case of missing packages when in non-interactive mode?
Comment 10 Marcus Schaefer 2008-09-17 10:11:05 UTC
I think it should not continue in case of missing packages when in 
non-interactive mode. This immediately gives the user an impression
what was wrong and according to the package count it reduces the time
a user "waits for an error"

Thanks for taking care of this
Comment 11 Jan Kupec 2008-10-02 13:01:07 UTC
I remember we fixed this also for code10 some time ago. Zypper > 0.12.7 will have the fix, too. It did report not found packages, but did not exit. Now it exits in non-interactive mode.