Cobbler Error: MAAS on VirtualBox
I am trying to test MAAS using VirtualBOX.
I am following the tutorial at https:/
ERROR: exception.TypeError . For more information look in server logs.
Looking in cobbler.log, I see:
a stacktrace of python error relating to checking of dnsmasq service.
Any ideas, what might be causing this ?
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- MAAS Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Revision history for this message
|
#1 |
Could you paste the full stack trace of the error you're seeing?
Revision history for this message
|
#2 |
@Gavin: Actually, I am testing on another location ( physical ) and I can't ssh to that. I will be able to give the stacktrace by Monday ( 9th July 2012 ), morning. Hope thats OK ? [ However, in the mean time, I'll try it on my system as well. See, if I can trigger the same error. If yes, I'll post the stacktrace immediately ]
Revision history for this message
|
#3 |
Below is the stacktrace of the error from cobbler.log, which I get when I run $sudo cobbler check.
Mon Jul 9 11:41:07 2012 - DEBUG | REMOTE CLI Authorized; user(?)
Mon Jul 9 11:41:07 2012 - INFO | check
Mon Jul 9 11:41:07 2012 - INFO | running: dnsmasq --help
Mon Jul 9 11:41:07 2012 - INFO | received on stdout:
Mon Jul 9 11:41:07 2012 - DEBUG | received on stderr: /bin/sh: 1: dnsmasq: Permission denied
Mon Jul 9 11:41:07 2012 - INFO | running: /etc/init.d/dnsmasq status /dev/null 2>/dev/null
Mon Jul 9 11:41:07 2012 - INFO | received on stdout:
Mon Jul 9 11:41:07 2012 - DEBUG | received on stderr:
Mon Jul 9 11:41:07 2012 - INFO | Exception occured: <type 'exceptions.
Mon Jul 9 11:41:07 2012 - INFO | Exception value: not enough arguments for format string
Mon Jul 9 11:41:07 2012 - INFO | Exception Info:
File "/usr/lib/
return method_
File "/usr/lib/
return self.api.
File "/usr/lib/
return check.run()
File "/usr/lib/
self.
File "/usr/lib/
status.
Looks like a permission issue. But why, I am running with sudo ?
Revision history for this message
|
#4 |
Very odd. Can you try doing `dnsmasq --help` in the shell? If that fails, please paste the output of `ls -l /usr/sbin/dnsmasq`.
Revision history for this message
|
#5 |
By the way, are you using https:/
Revision history for this message
|
#6 |
@Gavin: Sorry for the delay in the reply.
No, I am not testing MAAS security. My objective is only to use MAAS on Virtual machines, so that I can try out a few things before I go to production. I have a few juju charms that I want to test.
----------------
$ dnsmasq --help prints usage options for dnsmasq. [ It is installed, if thats what you wanted to check ]
I can provide the exact output, but I guess its the standard help message for dnsmasq, so won't help you. If not, let me know.
$ ls -l /usr/sbin/dnsmasq gives the output:
-rwxr-xr-x 1 root root 199984 Dec 12 2011 /usr/sbin/dnsmasq
Let me know, if you require any more info.
Revision history for this message
|
#7 |
I'm installing MAAS on real machines and having the same response for "cobbler check" in the log I get
Thu Jul 19 17:40:44 2012 - INFO | running: dnsmasq --help
Thu Jul 19 17:40:44 2012 - INFO | received on stdout:
Thu Jul 19 17:40:44 2012 - DEBUG | received on stderr: /bin/sh: 1: dnsmasq: Permission denied
Thu Jul 19 17:40:44 2012 - INFO | running: /etc/init.d/dnsmasq status /dev/null 2>/dev/null
Thu Jul 19 17:40:44 2012 - INFO | received on stdout:
Thu Jul 19 17:40:44 2012 - DEBUG | received on stderr:
Thu Jul 19 17:40:44 2012 - INFO | Exception occured: <type 'exceptions.
Thu Jul 19 17:40:44 2012 - INFO | Exception value: not enough arguments for format string
Thu Jul 19 17:40:44 2012 - INFO | Exception Info:
File "/usr/lib/
return method_
File "/usr/lib/
return self.api.
File "/usr/lib/
return check.run()
File "/usr/lib/
self.
File "/usr/lib/
status.
Revision history for this message
|
#8 |
You need to run cobbler with sudo permissions.
So, sudo cobbler check.
Revision history for this message
|
#9 |
I did it with sudo.
root@m1:~# sudo cobbler check
### ERROR ###
Unexpected remote error, check the server side logs for further info
<type 'exceptions.
and in the log
Thu Jul 19 18:39:22 2012 - INFO | check
Thu Jul 19 18:39:22 2012 - INFO | running: dnsmasq --help
Thu Jul 19 18:39:22 2012 - INFO | received on stdout:
Thu Jul 19 18:39:22 2012 - DEBUG | received on stderr: /bin/sh: 1: dnsmasq: Permission denied
Thu Jul 19 18:39:22 2012 - INFO | running: /etc/init.d/dnsmasq status /dev/null 2>/dev/null
Thu Jul 19 18:39:22 2012 - INFO | received on stdout:
Thu Jul 19 18:39:22 2012 - DEBUG | received on stderr:
Thu Jul 19 18:39:22 2012 - INFO | Exception occured: <type 'exceptions.
Thu Jul 19 18:39:22 2012 - INFO | Exception value: not enough arguments for format string
Thu Jul 19 18:39:22 2012 - INFO | Exception Info:
File "/usr/lib/
return method_
File "/usr/lib/
return self.api.
File "/usr/lib/
return check.run()
File "/usr/lib/
self.
File "/usr/lib/
status.
Revision history for this message
|
#10 |
So Cobbler is trying to report that service “which” is not running “notes,” but breaking at that point because the authors forgot to parenthesize (which, notes). :/
That's not the core problem though, just a distraction. Might it be worth it to edit /usr/lib/
Revision history for this message
|
#11 |
Well, the error seems to be:
Thu Jul 19 18:39:22 2012 - DEBUG | received on stderr: /bin/sh: 1: dnsmasq:
Permission denied
ie you don't have permission to run dnsmasq. What permissions does it have?
Can you run it manually?
Revision history for this message
|
#12 |
I'm running it with root through the sudo. It should be more than suffusion.
Revision history for this message
|
#13 |
Do you have apparmour installed? Did you run dnsmasq manually like I asked?
Revision history for this message
|
#14 |
If you talk about post #4, you didn't addressed to me, any way I did it with the same result:
root@m1:~# dnsmasq --help
Usage: dnsmasq [options]
Valid options are:
-a, --listen-
-A, --address=
-b, --bogus-priv Fake reverse lookups for RFC1918 private address ranges.
-B, --bogus-
-c, --cache-
-C, --conf-file=path Specify configuration file (defaults to /etc/dnsmasq.conf).
-d, --no-daemon Do NOT fork into the background: run in debug mode.
-D, --domain-needed Do NOT forward queries with no domain part.
-e, --selfmx Return self-pointing MX records for local hosts.
-E, --expand-hosts Expand simple names in /etc/hosts with domain-suffix.
-f, --filterwin2k Don't forward spurious DNS requests from Windows hosts.
-F, --dhcp-
-g, --group=groupname Change to this group after startup (defaults to dip).
-G, --dhcp-
--dhcp-
--dhcp-
--tag-
-h, --no-hosts Do NOT load /etc/hosts file.
-H, --addn-hosts=path Specify a hosts file to be read in addition to /etc/hosts.
-i, --interface=
-I, --except-
-j, --dhcp-
--dhcp-
--dhcp-
--dhcp-
-J, --dhcp-
--dhcp-
-k, --keep-
-K, --dhcp-
-l, --dhcp-
-L, --localmx Return MX records for local hosts.
-m, --mx-host=
-M, --dhcp-boot=<bootp opts> Specify BOOTP options to DHCP server.
-n, --no-poll Do NOT poll /etc/resolv.conf file, reload only on SIGHUP.
-N, --no-negcache Do NOT cache failed search results.
-o, --strict-order Use nameservers strictly in the order given in /etc/resolv.conf.
-O, --dhcp-
--dhcp-
-p, --port=number Specify port to listen for DNS requests on (defaults to 53).
-P, --edns-
-q, --log-queries Log DNS queries.
-Q, --query-port=number Force the originating port for upstream DNS queries.
-R, --no-resolv Do NOT read resolv.conf.
-r, --resolv-file=path Specify path to resolv.conf (defaults to /etc/resolv.conf).
-S, --server=
--local=
-s, --domain=
-t, --mx-target=
-T, --local-ttl=time Specify time-to-live in seconds for replies from /etc/hosts.
--neg-ttl=time Specify time-to-live in seconds for negative caching.
--max-ttl=time Specify time-to-live in seconds for maximum TTL to send to clients.
-u, --user=username Change to this user after startup. (defaults to nobody).
-------
root@m1:~# ls -l /usr/sbin/dnsmasq
-rwxr-xr-x 1 root root 199984 Dec 12 2011 /usr/sbin/dnsmasq
-------
root@m1:~# sudo cobbler check
### ERROR ###
Unexpected remote error, check the server side logs for further info
<type 'exceptions.
-------
root@m1:~# tail -n 23 /var/log/
Wed Jul 25 16:46:16 2012 - DEBUG | REMOTE CLI Authorized; user(?)
Wed Jul 25 16:46:16 2012 - INFO | check
Wed Jul 25 16:46:16 2012 - INFO | running: dnsmasq --help
Wed Jul 25 16:46:16 2012 - INFO | received on stdout:
Wed Jul 25 16:46:16 2012 - DEBUG | received on stderr: /bin/sh: 1: dnsmasq: Permission denied
Wed Jul 25 16:46:16 2012 - INFO | running: /etc/init.d/dnsmasq status /dev/null 2>/dev/null
Wed Jul 25 16:46:16 2012 - INFO | received on stdout:
Wed Jul 25 16:46:16 2012 - DEBUG | received on stderr:
Wed Jul 25 16:46:16 2012 - INFO | Exception occured: <type 'exceptions.
Wed Jul 25 16:46:16 2012 - INFO | Exception value: not enough arguments for format string
Wed Jul 25 16:46:16 2012 - INFO | Exception Info:
File "/usr/lib/
return method_
File "/usr/lib/
return self.api.
File "/usr/lib/
return check.run()
File "/usr/lib/
self.
File "/usr/lib/
status.
Revision history for this message
|
#15 |
I don't have apparmour installed ether.
Revision history for this message
|
#17 |
What happens if you run:
sudo service dnsmasq restart
Revision history for this message
|
#18 |
i am trying to install MAAS on VirtuallBox and getting exatcly the same problem.
I tried to run:
sudo service dnsmasq restart
and then
sudo cobbler check
i get the same error wie befor
### ERROR ###
Unexpected remote error, check the server side logs for further info
Have the problem been solved?
What causing this ?
Thanks
Can you help with this problem?
Provide an answer of your own, or ask Software Developer for more information if necessary.