Installation on proxy internet connection

3 posts / 0 new
Last post
#1 Sat, 08/28/2010 - 03:40
eustachy

Installation on proxy internet connection

Hello

I'm trying to install Virtualmin GPL on Ubuntu 10.04. My provider tell me that I don't need to use their proxy server, but it will be better to use it. In affect, I can use Polish sites without proxy (but not all), but if I try to connect to server in another country, I have time out connection. So I use it. I configure wgetrc and environment variables to use proxy. Now on I installed allmost all of the installation script of Virtualmin, but it stops on

INFO - Updating SpamAssassin rules...
...in progress, please wait...
.
sa-update failed.  Error (if any): 0

Displaying the last 15 lines of /root/virtualmin-install.log to help troubleshoot this problem:
Reading state information...
postfix is already the newest version.
postfix-pcre is already the newest version.
webmin is already the newest version.
usermin is already the newest version.
ruby is already the newest version.
libapache2-mod-ruby is already the newest version.
libxml-simple-perl is already the newest version.
libcrypt-ssleay-perl is already the newest version.
unzip is already the newest version.
zip is already the newest version.
quota is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.
INFO - 2010-08-28 10:04:35 - /usr/bin/apt-get --config-file apt.conf.noninteractive -y --force-yes install postfix postfix-pcre webmin usermin ruby libapache2-mod-ruby libxml-simple-perl libcrypt-ssleay-perl unzip zip quota: Succeeded.
INFO - 2010-08-28 10:04:35 - Updating SpamAssassin rules...
INFO - Rule updates failed

I read here http://wiki.apache.org/spamassassin/RuleUpdates that I need to edit environment variables: "What if I need update requests to go through a proxy server? sa-update uses the LWP::UserAgent module, which allows certain environment variables to be set so that requests use defined proxy servers. The main one of interest is "http_proxy", which should be set to an URL defining the proxy. ie: export http_proxy='http://proxy.example.com:8080/'"

So I try to reaserch where are this variables in Ubuntu and change it also in profile file, and bash rc file. Nothing changed. I think so the last thing I can do is to setup transparent proxy on my gate. Now I have a stupid situation. Virtualmin installation stops like above, but command sa-update -D shows:

# sa-update -D
sie 28 10:35:44.538 [22656] dbg: logger: adding facilities: all
sie 28 10:35:44.538 [22656] dbg: logger: logging level is DBG
sie 28 10:35:44.538 [22656] dbg: generic: SpamAssassin version 3.3.1
sie 28 10:35:44.538 [22656] dbg: generic: Perl 5.010001, PREFIX=/usr, DEF_RULES_DIR=/usr/share/spamassassin, LOCAL_RULES_DIR=/etc/spamassassin, LOCAL_STATE_DIR=/var/lib/spamassassin
sie 28 10:35:44.538 [22656] dbg: config: timing enabled
sie 28 10:35:44.539 [22656] dbg: config: score set 0 chosen.
sie 28 10:35:44.550 [22656] dbg: dns: is Net::DNS::Resolver available? yes
sie 28 10:35:44.550 [22656] dbg: dns: Net::DNS version: 0.65
sie 28 10:35:44.550 [22656] dbg: generic: sa-update version svn917659
sie 28 10:35:44.550 [22656] dbg: generic: using update directory: /var/lib/spamassassin/3.003001
sie 28 10:35:44.643 [22656] dbg: diag: perl platform: 5.010001 linux
sie 28 10:35:44.643 [22656] dbg: diag: [...] module installed: Digest::SHA1, version 2.12
sie 28 10:35:44.643 [22656] dbg: diag: [...] module installed: HTML::Parser, version 3.64
sie 28 10:35:44.643 [22656] dbg: diag: [...] module installed: Net::DNS, version 0.65
sie 28 10:35:44.643 [22656] dbg: diag: [...] module installed: NetAddr::IP, version 4.024
sie 28 10:35:44.643 [22656] dbg: diag: [...] module installed: Time::HiRes, version 1.9719
sie 28 10:35:44.643 [22656] dbg: diag: [...] module installed: Archive::Tar, version 1.52
sie 28 10:35:44.644 [22656] dbg: diag: [...] module installed: IO::Zlib, version 1.09
sie 28 10:35:44.644 [22656] dbg: diag: [...] module installed: Digest::SHA1, version 2.12
sie 28 10:35:44.644 [22656] dbg: diag: [...] module installed: MIME::Base64, version 3.08
sie 28 10:35:44.644 [22656] dbg: diag: [...] module installed: DB_File, version 1.82
sie 28 10:35:44.644 [22656] dbg: diag: [...] module installed: Net::SMTP, version 2.31
sie 28 10:35:44.644 [22656] dbg: diag: [...] module installed: Mail::SPF, version v2.007
sie 28 10:35:44.644 [22656] dbg: diag: [...] module not installed: IP::Country::Fast ('require' failed)
sie 28 10:35:44.644 [22656] dbg: diag: [...] module not installed: Razor2::Client::Agent ('require' failed)
sie 28 10:35:44.644 [22656] dbg: diag: [...] module not installed: Net::Ident ('require' failed)
sie 28 10:35:44.644 [22656] dbg: diag: [...] module installed: IO::Socket::INET6, version 2.54
sie 28 10:35:44.645 [22656] dbg: diag: [...] module not installed: IO::Socket::SSL ('require' failed)
sie 28 10:35:44.645 [22656] dbg: diag: [...] module installed: Compress::Zlib, version 2.02
sie 28 10:35:44.645 [22656] dbg: diag: [...] module not installed: Mail::DKIM ('require' failed)
sie 28 10:35:44.645 [22656] dbg: diag: [...] module installed: DBI, version 1.609
sie 28 10:35:44.645 [22656] dbg: diag: [...] module installed: Getopt::Long, version 2.38
sie 28 10:35:44.645 [22656] dbg: diag: [...] module installed: LWP::UserAgent, version 5.834
sie 28 10:35:44.645 [22656] dbg: diag: [...] module installed: HTTP::Date, version 5.831
sie 28 10:35:44.645 [22656] dbg: diag: [...] module not installed: Encode::Detect ('require' failed)
sie 28 10:35:44.646 [22656] dbg: gpg: Searching for 'gpg'
sie 28 10:35:44.646 [22656] dbg: util: current PATH is: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
sie 28 10:35:44.646 [22656] dbg: util: executable for gpg was found at /usr/bin/gpg
sie 28 10:35:44.646 [22656] dbg: gpg: found /usr/bin/gpg
sie 28 10:35:44.647 [22656] dbg: gpg: release trusted key id list: 5E541DC959CB8BAC7C78DFDC4056A61A5244EC45 26C900A46DD40CD5AD24F6D7DEE01987265FA05B 0C2B1D7175B852C64B3CDC716C55397824F434CE
sie 28 10:35:44.661 [22656] dbg: channel: attempting channel updates.spamassassin.org
sie 28 10:35:44.661 [22656] dbg: channel: update directory /var/lib/spamassassin/3.003001/updates_spamassassin_org
sie 28 10:35:44.661 [22656] dbg: channel: channel cf file /var/lib/spamassassin/3.003001/updates_spamassassin_org.cf
sie 28 10:35:44.661 [22656] dbg: channel: channel pre file /var/lib/spamassassin/3.003001/updates_spamassassin_org.pre
sie 28 10:35:44.661 [22656] dbg: channel: metadata version = 960172
sie 28 10:35:44.705 [22656] dbg: dns: 1.3.3.updates.spamassassin.org => 960172, parsed as 960172
sie 28 10:35:44.705 [22656] dbg: channel: current version is 960172, new version is 960172, skipping channel
sie 28 10:35:44.705 [22656] dbg: diag: updates complete, exiting with code 1

Now I'm stupid.. I don't know how to resolve this.

Thanks for any help Rafal

Sat, 08/28/2010 - 09:11
andreychek

Howdy,

Ttrying to get all the components on a server to go through a proxy may end up being, well, tricky :-)

That may also suggest that other folks out there on the Internet from outside your country may not be able to initiate requests to your server.

That said, I'm not sure why the install script above is failing. You might try running "export http_proxy='http://proxy.example.com:8080/" on the command line right before running the Virtualmin install script.

However, if that doesn't work, you might be able to just comment out that line in the install.sh script. Open it up in a text editor, search for "sa-update", and comment out the block of lines that runs that command (it should be near the end of the script).

-Eric

Sat, 08/28/2010 - 09:29
eustachy

I comment out, but I'm affraid I will have some troubles in fututre.. For now, it works - Thanks :)

Topic locked