[cobbler] yaml.parser.ParserError after upgrade to 2.4.7

Greg Chavez greg.chavez at gmail.com
Mon Aug 18 20:11:31 UTC 2014


I pulled down a backup of the version file from a few days ago and solved
the issue:

root at io-ns-03:~> cat /etc/cobbler/version
builddate: Tue Apr 22 15:30:11 2014
gitdate: '?'
gitstamp: '?'
version: 2.4.4
version_tuple: [2, 4, 4]

So like the 2.6 version file snuck into the 2.4.7 package?


On Mon, Aug 18, 2014 at 3:56 PM, Jörgen Maas <jorgen.maas at gmail.com> wrote:

> The format of the version file changed in 2.6.x (it's now basically ini
> format using python ConfigParser)
>
>
> On Mon, Aug 18, 2014 at 5:14 PM, Greg Chavez <greg.chavez at gmail.com>
> wrote:
>
>> Thanks for your reply, Alan.
>>
>> I didn't do a find/xargs/grep for version_tuple!  Drat, bad
>> troubleshooting. But in any case, even converting that file to YAML doesn't
>> seem to help, I just get more errors.
>>
>> Another interesting thing, the format of /etc/cobbler/version in 2.6.3 is
>> not in YAML either.
>>
>> Whatever. This is only affecting the Web console, so I can stay in
>> business while I stand up 2.6 on a new server and replicate.
>>
>> --Greg
>>
>>
>> On Mon, Aug 18, 2014 at 10:49 AM, Alan Evangelista <
>> alanoe at linux.vnet.ibm.com> wrote:
>>
>>> On 08/18/2014 11:27 AM, Greg Chavez wrote:
>>>
>>>> So I upgraded the cobbler and cobbler-web yum packages from 2.4.4 to
>>>> 2.4.7, in preparation for upgrading to 2.6 (this is a RedHat 5.6 system).
>>>> Cobbler works fine from the command line, but I get an error when I attempt
>>>> to login to the Web console.  In /var/log/cobbler, I get this every time I
>>>> access:
>>>>
>>>>
>>>>     Fri Aug 15 14:59:08 2014 - INFO | Exception occured:
>>>>     yaml.parser.ParserError
>>>>     Fri Aug 15 14:59:08 2014 - INFO | Exception value: expected
>>>>     '<document start>', but found '<scalar>'
>>>>       in "<string>", line 2, column 1:
>>>>         version_tuple = [2, 4, 7]
>>>>         ^
>>>>
>>>>
>>> /etc/cobbler/version has incorrect format, it should be in YAML..
>>> Example:
>>>
>>> builddate: Thu Jan 30 21:42:10 2014
>>> gitdate: Mon Dec 9 11:08:16 2013 -0800
>>> gitstamp: 2181fa3
>>> version: 2.5.0
>>> version_tuple: [2, 5, 0]
>>>
>>> It is possible you'll have conflicts with other files. I'd recommend
>>> backing up important data and making a a clean installation.
>>>
>>>
>>> Regards,
>>> Alan Evangelista
>>>
>>> _______________________________________________
>>> cobbler mailing list
>>> cobbler at lists.fedorahosted.org
>>> https://lists.fedorahosted.org/mailman/listinfo/cobbler
>>>
>>
>>
>>
>> --
>> \*..+.-
>> --Greg Chavez
>> +//..;};
>>
>> _______________________________________________
>> cobbler mailing list
>> cobbler at lists.fedorahosted.org
>> https://lists.fedorahosted.org/mailman/listinfo/cobbler
>>
>>
>
>
> --
> Grtz,
> Jörgen Maas
>
> _______________________________________________
> cobbler mailing list
> cobbler at lists.fedorahosted.org
> https://lists.fedorahosted.org/mailman/listinfo/cobbler
>
>


-- 
\*..+.-
--Greg Chavez
+//..;};
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.fedorahosted.org/pipermail/cobbler/attachments/20140818/70c12b55/attachment.html>


More information about the cobbler mailing list