checkbox won't run because of authentication issues when X unavailable

Bug #1277540 reported by Rod Smith
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Checkbox
Incomplete
Undecided
Unassigned

Bug Description

I tried running checkbox on a system via an SSH login without X access. The result was a failure to authenticate with the message "Error executing command as another user: Not authorized". (See attached text output, which verifies X is not running and the fact that the account does have sudo access.)

Revision history for this message
Rod Smith (rodsmith) wrote :
Revision history for this message
Zygmunt Krynicki (zyga) wrote :

c-c-s has no debugging features (which should be a separate task to get all the small tools to behave correctly) but for the moment, please reproduce that with:

 plainbox --trace plainbox.ctrl run -w /path/to/whitelist

And attach ~/.cache/plainbox/logs/debug.log

Also add the output of `id`

Thanks

I suspect the solution will include a way for the execution controllers to say "I failed, try the next one in the list".

Changed in checkbox:
status: New → Incomplete
Revision history for this message
Rod Smith (rodsmith) wrote :

Typing "plainbox" results in a "command not found" error. After installing the "plainbox" package the command became available, but I got the following:

$ plainbox --trace plainbox.ctrl run -w /usr/share/checkbox/data/whitelists/hwsubmit.whitelist
===============================[ Analyzing Jobs ]===============================
Do you want to resume the previous session? [y, n] n
Estimated duration is 17.35 for automated jobs.
Estimated duration cannot be determined for manual jobs.
===============================[ Authentication ]===============================
Error executing command as another user: Not authorized

If I should be passing a specific whitelist file, please clarify.

The ~/.cache/plainbox/logs directory was empty. (I cleaned out ~/.cache/plainbox prior to making this attempt, so if you meant to get the log from my earlier run, it's gone.)

I did find that the following appeared in /var/log/auth.log when the authentication error occurred:

Feb 7 10:31:02 u1404d pkexec[6804]: rodsmith: Error executing command as another user: Not authorized [USER=root] [TTY=/dev/pts/20] [CWD=/home/rodsmith] [COMMAND=/usr/bin/plainbox-trusted-launcher-1 --warmup]

Revision history for this message
Rod Smith (rodsmith) wrote :

I've now tested with both the desktop and server versions of trusty and I get the same behavior with both. In other words, my initial description ("when X unavailable") is inaccurate; this seems to relate to remote (SSH) logins vs. local logins. Doing an "ssh localhost" from a console is sufficient to reproduce the problem, assuming the SSH server is installed.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.