[Spacewalk-list] Error 500 when using rhnpush
Pierre Casenove
pedro109 at hotmail.com
Fri Jul 22 12:26:11 UTC 2011
Hello,I found the problem!0xa9 is indeed an incorrect UTF8 encoding. This is the copyright logo.Which put on the path to the resolution:In spacewalk 1.5, the file path are checked against incorrect encoding... put not the license field.So the issue is in file /usr/lib/python2.4/site-packages/spacewalk/server/importlib/packageImport.py, line 218
# Change copyright to license 219 # XXX 220 license_fixed = self._fix_encoding(package['license']) 221 package['copyright'] = license_fixed 222 #package['copyright'] = package['license']
I know this is not the right mailing list for this kind of topic.I'm not a developper, so sorry for the quality of the code!
I'm completing bug 658296 with these information
Pierre
From: pedro109 at hotmail.com
To: spacewalk-list at redhat.com
Date: Fri, 22 Jul 2011 10:30:55 +0000
Subject: Re: [Spacewalk-list] Error 500 when using rhnpush
I continued to dig around this problem.So I found bug 658296 on bugzilla, for the same error, but with package aspell-is.With spacewalk 1.5, I can rhnpush this package correctly.But I still fail to import package redhat-logos.
But I wonder if the problem is really the same:In bug 658296, the error is : DataError: invalid byte sequence for encoding "UTF8": 0xed736cThis is an encoding error.
On redhat-logos, I get : DataError: invalid byte sequence for encoding "UTF8": 0xa90xa9 is a correct UTF-8 encoding.
Could someone try to push redhat-logos-4.9.16-1.noarch.rpm from RHEL 5.6 DVD ISO, please?
By the way, I think you can close bug 658296
Thanks,
From: pedro109 at hotmail.com
To: spacewalk-list at redhat.com
Date: Fri, 22 Jul 2011 05:43:15 +0000
Subject: Re: [Spacewalk-list] Error 500 when using rhnpush
Hello,I've upgraded to spacewalk 1.5 last night... and I still have the same issue:Exception Handler InformationTraceback (most recent call last): File "/usr/lib/python2.4/site-packages/spacewalk/server/apacheUploadServer.py", line 100, in _wrapper ret = function(req) File "/usr/share/rhn/upload_server/handlers/package_push/package_push.py", line 136, in handler relative_path=self.rel_package_path, org_id=self.org_id) File "/usr/lib/python2.4/site-packages/spacewalk/server/rhnPackageUpload.py", line 166, in push_package importer.run() File "/usr/lib/python2.4/site-packages/spacewalk/server/importlib/importLib.py", line 625, in run self.submit() File "/usr/lib/python2.4/site-packages/spacewalk/server/importlib/packageImport.py", line 309, in submit transactional=self.transactional) File "/usr/lib/python2.4/site-packages/spacewalk/server/importlib/backend.py", line 667, in processPackages transactional=transactional) File "/usr/lib/python2.4/site-packages/spacewalk/server/importlib/backend.py", line 1515, in __processObjectCollection__ return self.__doDML(dml) File "/usr/lib/python2.4/site-packages/spacewalk/server/importlib/backend.py", line 1623, in __doDML self.__doInsert(dml.insert, dml.tables) File "/usr/lib/python2.4/site-packages/spacewalk/server/importlib/backend.py", line 1630, in __doInsert self.__doInsertTable(tname, dict) File "/usr/lib/python2.4/site-packages/spacewalk/server/importlib/backend.py", line 1644, in __doInsertTable insertObj.query(hash) File "/usr/lib/python2.4/site-packages/spacewalk/server/importlib/backendLib.py", line 433, in query executeStatement(statement, values, self.count) File "/usr/lib/python2.4/site-packages/spacewalk/server/importlib/backendLib.py", line 463, in executeStatement count = count + apply(statement.executemany, (), tempdict) File "/usr/lib/python2.4/site-packages/spacewalk/server/rhnSQL/sql_base.py", line 172, in executemany return apply(self._execute_wrapper, (self._executemany, ) + p, kw) File "/usr/lib/python2.4/site-packages/spacewalk/server/rhnSQL/driver_postgresql.py", line 264, in _execute_wrapper retval = apply(function, p, kw) File "/usr/lib/python2.4/site-packages/spacewalk/server/rhnSQL/driver_postgresql.py", line 300, in _executemany self._real_cursor.executemany(self.sql, all_kwargs)DataError: invalid byte sequence for encoding "UTF8": 0xa9HINT: This error can also happen if the byte sequence does not match the encoding expected by the server, which is controlled by "client_encoding".
Maybe my postgresql installation is incorrect?
Thanks in advance for your help
From: pedro109 at hotmail.com
To: spacewalk-list at redhat.com
Date: Tue, 19 Jul 2011 06:24:18 +0000
Subject: Re: [Spacewalk-list] Error 500 when using rhnpush
Hello,I've just applied the patch on file /usr/lib/python2.4/site-packages/spacewalk/server/importlib/packageImport.py and recompiled it this way:python -O -mpy_compile /usr/lib/python2.4/site-packages/spacewalk/server/importlib/packageImport.py
Then, I restarted the spacewalk server.
But rhnpush of redhat-logos rpm still fails with the same exception (except that the line number changes in the traceback in file packageImport.py)
Is there something else to do to have the patch applied?
Thanks,
> Date: Wed, 13 Jul 2011 16:33:04 +0200
> From: jpazdziora at redhat.com
> To: spacewalk-list at redhat.com
> Subject: Re: [Spacewalk-list] Error 500 when using rhnpush
>
> On Wed, Jul 13, 2011 at 01:13:25PM +0000, Pierre Casenove wrote:
> >
> > Hello,Before executing yum pugrade on the latest nightly build, I want to be quite sure I won't break everything.Do I need to follow https://fedorahosted.org/spacewalk/wiki/HowToUpgrade instructions? As these instruction are for 1.4, I prefer to ask.
>
> You only want to move to nightly if you know what you are doing, while
> understanding that we do not provide a way to upgrade *from* nightly
> to any newer release, nor among nightlies.
>
> If all you want is fix the rhnpush issue, I recommend you just patch
> your 1.4 installation with the patch Michael has indicated.
>
> --
> Jan Pazdziora
> Principal Software Engineer, Satellite Engineering, Red Hat
>
> _______________________________________________
> Spacewalk-list mailing list
> Spacewalk-list at redhat.com
> https://www.redhat.com/mailman/listinfo/spacewalk-list
_______________________________________________
Spacewalk-list mailing list
Spacewalk-list at redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-list
_______________________________________________
Spacewalk-list mailing list
Spacewalk-list at redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-list
_______________________________________________
Spacewalk-list mailing list
Spacewalk-list at redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-list
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/spacewalk-list/attachments/20110722/7e484252/attachment.htm>
More information about the Spacewalk-list
mailing list