[opensuse-factory] smart behind proxy: out of luck?
I'm trying to come up with a recipe for a working suse install, in order to help effect a greater prorogation of fully functional suse boxes. One of the main fixes needed is to the package management system, and I was hoping I had found the answer in smart. However, while smart has worked fine for me at home, it's failing here at the office, where we are behind an http proxy which requires authentication. In short, all http requests fail. There is no place to set the proxy credentials, and I try to set the auth parameters in the URL: smart config --set http-proxy=http://username:password@10.48.112.6 then it either fails, saying it can't resolve the malformed URL So, is this the end of the road for smart? What other package managers might do the job? The old yast worked fine, as did apt (since all the repos could be reached via ftp, which is wide open here) Suggestions? Joe --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org
J Sloan schrieb:
In short, all http requests fail. There is no place to set the proxy credentials, and I try to set the auth parameters in the URL:
smart config --set http-proxy=http://username:password@10.48.112.6
then it either fails, saying it can't resolve the malformed URL
So, is this the end of the road for smart?
No, it is not. But you need the package "python-curl" for smart to support proxies. Verify that you have this installed. It's not in the 10.1 installation repository, 10.2 will have it. For 10.1, you can find unofficial packages here: http://software.opensuse.org/download/home:/cthiel1/SL-10.1
The old yast worked fine
In which way doesn't YaST work for you?
since all the repos could be reached via ftp, which is wide open here
You can reach YaST and smart repos via FTP as well. Just look at the mirror lists in the opensuse.org wiki, there are many FTP mirrors available and you can also try just replacing http:// with ftp:// for your favourite mirror. Andreas Hanke --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org
Andreas Hanke wrote:
J Sloan schrieb:
In short, all http requests fail. There is no place to set the proxy credentials, and I try to set the auth parameters in the URL:
smart config --set http-proxy=http://username:password@10.48.112.6
then it either fails, saying it can't resolve the malformed URL
So, is this the end of the road for smart?
No, it is not. But you need the package "python-curl" for smart to support proxies. Verify that you have this installed. It's not in the 10.1 installation repository, 10.2 will have it. For 10.1, you can find unofficial packages here:
OK, that fixes it, smart now works as advertised... Thanks for the tip, I'll file this one away... Joe --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org
After seeing success with smart on my workstation after adding python-curl, I was asked by a cow-orker to look at a problem he was having with smart. Even though we are running 10.1 on identical hardware, my smart works fine, while his crashes every time it is invoked, with the following error: root@D6008985:~> smart update Traceback (most recent call last): ############################################## ( 98%) File "/usr/bin/smart", line 194, in ? main(sys.argv[1:]) File "/usr/bin/smart", line 167, in main exitcode = iface.run(opts.command, opts.argv) File "/usr/lib/python2.4/site-packages/smart/interface.py", line 53, in run result = _command.main(self._ctrl, opts) File "/usr/lib/python2.4/site-packages/smart/commands/update.py", line 77, in main ctrl.reloadChannels() File "/usr/lib/python2.4/site-packages/smart/control.py", line 375, in reloadChannels self._cache.load() File "/usr/lib/python2.4/site-packages/smart/backends/rpm/metadata.py", line 321, in loadFileProvides self.parseFilesList(fndict) File "/usr/lib/python2.4/site-packages/smart/backends/rpm/metadata.py", line 346, in parseFilesList for event, elem in cElementTree.iterparse(file, ("start", "end")): File "<string>", line 64, in __iter__ SyntaxError: not well-formed (invalid token): line 479344, column 58 root@D6008985:~> --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org
J Sloan schrieb:
After seeing success with smart on my workstation after adding python-curl, I was asked by a cow-orker to look at a problem he was having with smart.
Even though we are running 10.1 on identical hardware, my smart works fine, while his crashes every time it is invoked, with the following error:
Your co-worker is running into the problem with the broken XML file in the update repository and you are not, maybe you didn't touch smart in the short timeframe where the broken XML file was on the server? Try this: rm -f /var/lib/smart/cache rm -f /var/lib/smart/channels/* smart update Does it work then? Andreas Hanke --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org
Andreas Hanke wrote:
J Sloan schrieb:
After seeing success with smart on my workstation after adding python-curl, I was asked by a cow-orker to look at a problem he was having with smart.
Even though we are running 10.1 on identical hardware, my smart works fine, while his crashes every time it is invoked, with the following error:
Your co-worker is running into the problem with the broken XML file in the update repository and you are not, maybe you didn't touch smart in the short timeframe where the broken XML file was on the server?
Try this:
rm -f /var/lib/smart/cache rm -f /var/lib/smart/channels/* smart update
Does it work then?
Ah, that does indeed work. Thanks for your quick, concise instructions. Joe --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org
Hi, On Thu, 21 Sep 2006, J Sloan wrote:
Andreas Hanke wrote:
J Sloan schrieb:
After seeing success with smart on my workstation after adding python-curl, I was asked by a cow-orker to look at a problem he was having with smart.
Even though we are running 10.1 on identical hardware, my smart works fine, while his crashes every time it is invoked, with the following error:
Your co-worker is running into the problem with the broken XML file in the update repository and you are not, maybe you didn't touch smart in the short timeframe where the broken XML file was on the server?
Try this:
rm -f /var/lib/smart/cache rm -f /var/lib/smart/channels/* smart update
Does it work then?
Ah, that does indeed work. Thanks for your quick, concise instructions.
But it was necessary only because smart is too stupid for the real world. After "rm -rf", it worked again because the repository error got fixed in the meantime. So a full-brained human would expect smart would work again without such a dirty trick. Cheers -e -- Eberhard Moenkeberg (emoenke@gwdg.de, em@kki.org) --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org
On 2006-09-22 01:49:40 +0200, Eberhard Moenkeberg wrote:
But it was necessary only because smart is too stupid for the real world.
After "rm -rf", it worked again because the repository error got fixed in the meantime. So a full-brained human would expect smart would work again without such a dirty trick.
Just for the record: https://bugzilla.novell.com/show_bug.cgi?id=207291 The severity was the decision of the maintainer. darix -- openSUSE - SUSE Linux is my linux openSUSE is good for you www.opensuse.org --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org
participants (4)
-
Andreas Hanke
-
Eberhard Moenkeberg
-
J Sloan
-
Marcus Rueckert