[Spacewalk-list] After upgrading java and python, python finds syntax errors

Thomas Schweikle tschweikle at gmail.com
Wed May 24 07:17:49 UTC 2017


After upgrading java and python, python finds syntax errors in some files:

2017/05/24 08:52:04 +02:00 14503 134.92.16.12:
server/apacheRequest.call_function('ERROR', 'rhnSQL.SQLError caught',
SQLStatementPrepareError('FEHLER:  Syntaxfehler bei
\xc2\xbbmethod\xc2\xab\nLINE 3: ...
sa.remaining_tries, at.label method,\n
                               ^\n', <connection object at
0x5566bdf82700; dsn: 'password=xxxxx dbname=rhnschema user=rhnuser',
closed: 0>, '\n                    select sa.action_id id,
a.version,\n                           sa.remaining_tries, at.label
method,\n                           at.unlocked_only,\n
           a.prerequisite\n                      from rhnServerAction
sa,\n                           rhnAction a,\n
  rhnActionType at\n                     where sa.server_id =
%(server_id)s\n                       and sa.action_id = a.id\n
               and a.action_type = at.id\n                       and
sa.status in (0, 1) -- Queued or picked up\n                       and
a.earliest_action <= current_timestamp -- Check earliest_action\n
                 and not exists (\n                           select
1\n                             from rhnServerAction sap\n
               where sap.server_id = %(server_id)s\n
           and sap.action_id = a.prerequisite\n
      and sap.status != 2 -- completed\n                           )\n
                     order by a.earliest_action, a.prerequisite nulls
first, a.id\n    '))

packges involved:
# rpm -qa | grep 'python\|jdk\|java\|xml' | sort
audit-libs-python-2.4.5-6.el6.x86_64
dbus-python-0.83.0-6.1.el6.x86_64
gnome-python2-2.28.0-3.el6.x86_64
gnome-python2-bonobo-2.28.0-3.el6.x86_64
gnome-python2-canvas-2.28.0-3.el6.x86_64
gnome-python2-gnome-2.28.0-3.el6.x86_64
gnome-python2-gnomevfs-2.28.0-3.el6.x86_64
java-1.5.0-gcj-1.5.0.0-29.1.el6.x86_64
java-1.6.0-openjdk-1.6.0.41-1.13.13.1.el6_8.x86_64
java-1.6.0-openjdk-devel-1.6.0.41-1.13.13.1.el6_8.x86_64
java-1.7.0-openjdk-1.7.0.141-2.6.10.1.0.1.el6_9.x86_64
java-1.7.0-openjdk-devel-1.7.0.141-2.6.10.1.0.1.el6_9.x86_64
java-1.8.0-openjdk-headless-1.8.0.131-0.b11.el6_9.x86_64
java-cup-0.11-0.a.2.jpp5.noarch
javassist-3.9.0-6.el6.noarch
libproxy-python-0.3.0-10.el6.x86_64
libreadline-java-0.8.0-24.3.el6.x86_64
libreport-python-2.0.9-33.0.1.el6.x86_64
libselinux-python-2.0.94-7.el6.x86_64
libsemanage-python-2.0.43-5.1.el6.x86_64
libxml2-2.7.6-21.0.1.el6_8.1.x86_64
libxml2-python-2.7.6-21.0.1.el6_8.1.x86_64
mysql-connector-java-5.1.17-6.el6.noarch
newt-python-0.52.11-4.el6.x86_64
policycoreutils-python-2.0.83-30.1.0.1.el6_8.x86_64
postgresql96-plpython-9.6.3-1PGDG.rhel6.x86_64
python-2.6.6-66.0.1.el6_8.x86_64
python-argparse-1.2.1-3.rhel6.noarch
python-backports-1.0-5.el6.x86_64
python-backports-ssl_match_hostname-3.4.0.2-5.el6.noarch
python-chardet-2.2.1-1.el6.noarch
python-cheetah-2.4.1-1.el6.x86_64
python-debian-0.1.27-3.el6.noarch
python-deltarpm-3.5-0.5.20090913git.el6.x86_64
python-devel-2.6.6-66.0.1.el6_8.x86_64
python-dmidecode-3.10.15-1.el6.x86_64
python-ethtool-0.6-6.el6.x86_64
python-gudev-147.1-4.el6_0.1.x86_64
python-gzipstream-2.3.3-1.el6.noarch
python-hwdata-1.7.3-1.el6.noarch
python-iniparse-0.3.1-2.1.el6.noarch
python-iwlib-0.1-1.2.el6.x86_64
python-libs-2.6.6-66.0.1.el6_8.x86_64
python-markdown-2.0.1-4.el6.noarch
python-netaddr-0.7.5-4.el6.noarch
python-psycopg2-2.7.1-1.rhel6.x86_64
python-pycurl-7.19.0-9.el6.x86_64
python-pygments-1.1.1-2.el6.noarch
python-requests-2.6.0-4.el6.noarch
python-setuptools-0.6.10-3.el6.noarch
python-simplejson-3.8.2-1.rhel6.x86_64
python-six-1.9.0-2.el6.noarch
python-sss-1.13.3-56.el6.x86_64
python-sssdconfig-1.13.3-56.el6.noarch
python-urlgrabber-3.9.1-11.0.1.el6.noarch
python-urllib3-1.10.2-3.el6.noarch
redstone-xmlrpc-1.1_20071120-16.el6.noarch
rpm-python-4.8.0-55.el6.x86_64
setools-libs-python-3.3.7-4.el6.x86_64
simple-xml-2.6.7-4.el6.noarch
spacewalk-backend-xml-export-libs-2.6.78-1.el6.noarch
spacewalk-backend-xmlrpc-2.6.78-1.el6.noarch
spacewalk-java-2.6.49-1.el6.noarch
spacewalk-java-config-2.6.49-1.el6.noarch
spacewalk-java-lib-2.6.49-1.el6.noarch
spacewalk-java-postgresql-2.6.49-1.el6.noarch
susestudio-java-client-0.1.4-4.el6.noarch
tzdata-java-2017b-1.el6.noarch
xmlbeans-2.3.0-2.jpp5.noarch
xml-common-0.6.3-33.el6.noarch
xml-commons-1.3.04-5.jpp5.noarch
xml-commons-apis-1.3.04-3.6.el6.x86_64
xml-commons-jaxp-1.2-apis-1.3.04-5.jpp5.noarch
xml-commons-resolver-1.1-4.18.el6.x86_64
xmlrpc-c-1.16.24-1210.1840.el6.x86_64
xmlrpc-c-client-1.16.24-1210.1840.el6.x86_64

Any idea what causes these syntax errors? I found
https://github.com/spacewalkproject/spacewalk/pull/465 Seems it is
related. Might be a good idea to release this patch early.

-- 
Thomas




More information about the Spacewalk-list mailing list