Bug 8669

Summary: Wrong password encoding syntax error in "bash -c"
Product: [Build System, Metadata & Runtime] Toaster Reporter: Michał Ciołek <michalciolek>
Component: toasterAssignee: Michael Wood <michael.g.wood>
Status: VERIFIED FIXED QA Contact: Alexandru Roman <alexandru.costinx.roman>
Severity: major    
Priority: High CC: alexandru.costinx.roman, belen.barros.pena, jessica.zhang, poky.bs.watcher, poky.watcher, stanciux.mihail
Version: unspecified   
Target Milestone: 2.1 M1   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: New (Never tested)
Verified: Documentation change: No (bug/feature does not impact docs)

Description Michał Ciołek 2015-11-09 17:36:35 UTC
Preconditions/Environment
-------------------------
Toaster/Poky from jethro brench,
Ubuntu 14
MySqL database with:
username: toaster
password: vz)2bed]3kCE(M_8
IMPORTANT! The password contains special characters, eg. '('

Triggering Action/Cause
-----------------------
Start build whatever recipe from Toaster


Actual Result
-------------

(...)
2015-11-09 13:01:45,564 DEBUG localhostbecontroller: Waiting bitbake server to start
2015-11-09 13:01:46,065 DEBUG localhostbecontroller: Waiting bitbake server to start
Traceback (most recent call last):
  File "/var/www/html/toaster/poky/bitbake/lib/toaster/bldcontrol/management/commands/runbuilds.py", line 59, in schedule
    bec.triggerBuild(br.brbitbake_set.all(), br.brlayer_set.all(), br.brvariable_set.all(), br.brtarget_set.all())
  File "/var/www/html/toaster/poky/bitbake/lib/toaster/bldcontrol/localhostbecontroller.py", line 369, in triggerBuild
    bbctrl = self.getBBController()
  File "/var/www/html/toaster/poky/bitbake/lib/toaster/bldcontrol/bbcontroller.py", line 166, in getBBController
    self.startBBServer()
  File "/var/www/html/toaster/poky/bitbake/lib/toaster/bldcontrol/localhostbecontroller.py", line 155, in startBBServer
    raise BuildSetupException("localhostbecontroller: Bitbake server did not start in 25 seconds, aborting (Error: '%s' '%s')" % (toaster_ui_log, toaster_server_log))
BuildSetupException: localhostbecontroller: Bitbake server did not start in 25 seconds, aborting (Error: 'bash: -c: line 0: syntax error: unexpected `)'
bash: -c: line 0: `source /var/www/html/toaster/poky/_toaster_clones/_git___git.yoctoproject.org_poky_fido/oe-init-build-env-memres -1 /var/www/html/toaster/poky/build && DATABASE_URL=mysql://toaster:vz)2bed]3kCE(M_8@127.0.0.1:3306/toaster /var/www/html/toaster/poky/bitbake/bin/bitbake --observe-only -u toasterui --remote-server=0.0.0.0:-1 -t xmlrpc'
Comment 1 Michael Wood 2015-11-13 10:23:10 UTC
Thanks for your bug report, I've posted a patch to fix this issue here 

https://lists.yoctoproject.org/pipermail/toaster/2015-November/003339.html
Comment 3 Alexandru Roman 2016-02-08 12:29:49 UTC
Verified on master.