Forum OpenACS Q&A: Virtual IP addresses
pages. I get one primary IP address, and 4 virtual addresses that
have been linked to my ethernet card already. I have checked in
netstat -i for the interfaces, and there are 4 virtual IP addresses
configured against my ethernet card
I have installed Postgres, AOLserver, and the openACS. I believe
everything is correctly set up with these. At least I can start
AOLserver without any errors. When AOLserver starts, I can read
through the server log and see that it initialized the openACS stuff
without any errors as well.
My problem is that AOLserver won't serve any pages.
I believe my Linux configuration is correct, because when I try and
access the site, the access log contains an entry for the attempt.
However, I get the error that the server has refused my connection.
I did change the directory /usr/local/etc/httpd to
/usr/local/etc/httpd.hide. As far as I can see, this is only used
with Apache. I also killed the Apache processes that had those ports
I believe AOLserver is talking correctly to postgres because it has
many instances in the initialization of the openACs of querying the
database. Again, there are no errors from those processes.
I believe the issue isn't tcl, because it won't serve index.html or
index.tcl. It does log both attempts in the access log. index.html
is a very simple, legal html document.
So, that leaves me with one suspsect. Possibly something's not jiving
in my nsd.tcl file. I set the following two lines:
set address 220.127.116.11
#set address [ns_info address]
I'm not really sure what I could've messed up with that one. It was a
gues in the first place. All I know is that I can't have
18.104.22.168, which is the actual IP address of the server. That's
why I guessed with the above correction to nsd.tcl.
So, did I do something wrong with this configuration? Has anyone had
any experience with this. Do you need any more information?
roberto@brasileiro:~$ telnet 22.214.171.124 80 Trying 126.96.36.199... Connected to 188.8.131.52. Escape character is '^]'. GET / HTTP/1.0 HTTP/1.0 200 OK MIME-Version: 1.0 Content-Type: text/html Set-Cookie: ad_browser_id=3; Path=/; Expires=Fri, 01-Jan-2010 01:00:00 GMT Set-Cookie: ad_session_id=4,0,v1F8hkwFlMHNM49PnwqVRusZKtUcS/8N,961471934; Path=/; Max-Age=86400 ...
But when I tried accessing davecubed.com (to which that IP resolves) I got a "We registered our domain with VERIO" page. Trying to access the IP returned a "connection refused by linux1162.dn.net" error, which could indicate DNS problems.
As for the davecubed stuff, Verio's being a dog at getting my name out of their DNS. I requested it to be done last Thursday, but they didn't get it right. They're trying to bill me for supporting a domain name. Isn't that crazy?
However, all my tests are directly to the IP address, (e.g. 184.108.40.206/index.html). Since the request does log in the AOL access log, I figured that the Linux box got the request to the right process. That's why I concluded that Linux and the DNS aren't the problem (even though I could ring Verio's necks for not getting something so simple right.)
I guess a more productive question might be what exactly does the tcl command "set address [ns_info address]" mean?
And, please know Roberto, that I'm terribly grateful to you for looking into that. In reading my response, I'm afraid that the tone is a bit brusk. I'm actually elated that you would take a few minutes to look into this problem.
I put the set address [ns_info address] back in the nsd.tcl. The virtual IP address wouldn't work, but the primary one does. It redirects me to Linux1162.dn.net. So, that's where I'm at, until I get Verio to act with my DNS entry.
For now, that's going to be fine. I can get things done, and move forward. Anyone have any ideas how to get things working on the alternate IP address? Thanks,
To some extent, you may be the victim of getting service rather than a bare box. At least with a bare box, you know you can configure it right (even if it takes our help!) Don't get me wrong, folks like Verio ought to be able to deliver meaningful service, but you're already seeing one snafu on their part. They wouldn't charge you less for less service, so they probably don't have any real motivation to help you fix your problems...
If I were to rebuild, I'm assuming I'd ifdown and ifconfig the ip address. Can you give me more advice than that?
Then ifconfig eth0 down, ifconfig eth0 up and you should be set. The ifup-aliases script does all the work of setting up the routes etc that are needed to make multiple IPs on a single NIC work. If you do an ifconfig eth0 you'll see eth0:1 eth0:2 etc in addition to eth0, with the proper IPs, if ifconfig up worked properly.
set selection [ns_db 0or1row $db "select user_id, user_state, converted_p from users where upper(email)=upper('$QQemail')"]This query is returning more than one row, which errors out. I'm trying to figure out how configuring my box with a virtual IP address effects this, and I can't. But, it was the only thing I changed since I broke everything. I've gone out to the users table to see if it was corrupt. It looks fine--just one row per email address. I messed with the syntax, and looked at original beta 3 code to make sure I haven't broken anything. I can't find anything there. I'm stumped. Any ideas?