Forum OpenACS Q&A: Re: server error in a new install

Collapse
Posted by Héctor Romojaro on
Hi James,

No, the file /var/run/aolserver/aolserver.pid is created by the main (default) aolserver instance. The one created by the openacs instance is /var/run/aolserver4/openacs.pid

Cheers, Héctor

Collapse
Posted by James Godrej on
Well in the log I see a line at many places

/var/log/aolserver4/aolserver4.log
I see

at many places

[24/Feb/2011:22:46:36][2402.18446744071776978688][-shutdown-] Notice: nslog: closing '/var/log/aolserver4/aolserver4.log'
[24/Feb/2011:22:46:36][2402.18446744071777384192][-main-] Error: pidfile: failed to remove '/var/run/aolserver4/aolserver4.pid': 'No such file or directory'
[24/Feb/2011:22:46:36][2402.18446744071777384192][-main-] Notice: nsmain: AOLserver/4.5.1 exiting

also /var/log/aolserver4/openacs/error.log

shows

[24/Feb/2011:23:27:23][6871.496690944][-default:1-] Notice: location "http://openacs.openitup.in:8000/*"; url http://192.168.1.5:8000/?= match 0
[24/Feb/2011:23:27:23][6871.496690944][-default:1-] Notice: location "http://openacs.openitup.in/*"; url http://192.168.1.5:8000/?= match 0
[24/Feb/2011:23:27:23][6871.505095936][-default:2-] Warning: security::locations hostname '192.168.1.5' from config.tcl does not match from util_current_location: openacs.openitup.in
[24/Feb/2011:23:27:23][6871.505095936][-default:2-] Notice: location "http://openacs.openitup.in:8000/*"; url http://192.168.1.5:8000/?= match 0
[24/Feb/2011:23:27:23][6871.505095936][-default:2-] Notice: location "http://openacs.openitup.in/*"; url http://192.168.1.5:8000/?= match 0
[24/Feb/2011:23:27:23][6871.509298432][-default:3-] Warning: security::locations hostname '192.168.1.5' from config.tcl does not match from util_current_location: openacs.openitup.in
[24/Feb/2011:23:27:23][6871.509298432][-default:3-] Notice: location "http://openacs.openitup.in:8000/*"; url http://192.168.1.5:8000/?= match 0
[24/Feb/2011:23:27:23][6871.509298432][-default:3-] Notice: location "http://openacs.openitup.in/*"; url http://192.168.1.5:8000/?= match 0
[24/Feb/2011:23:31:39][6871.500893440][-default:0-] Error: return: failed to redirect 'GET /global/file-not-found.html': exceeded recursion limit of 3

here I would like to mention that I had done ProxyPass things yesterday and have deleted it.

This is a fresh install which when I open in browser as

http://localhost:8000
is automatically getting redirected

http://localhost:8000/openacs.openitup.in

which should not happen at least when installing on local machine (I am not interested to bring it on internet at this moment)

and in /var/log/aolserver4/openacs

I see

122.167.133.208 - - [24/Feb/2011:23:27:23 +0530] "GET /?= HTTP/1.1" 302 309 "" "Mozilla/5.0 (X11; U; Linux x86_64; en-US) AppleWebKit/534.13 (KHTML, like Gecko) Ubuntu/10.04 Chromium/9.0.597.94 Chrome/9.0.597.94 Safari/534.13" 0.001909 -
122.167.133.208 - - [24/Feb/2011:23:27:23 +0530] "GET /?= HTTP/1.1" 302 309 "" "Mozilla/5.0 (X11; U; Linux x86_64; en-US) AppleWebKit/534.13 (KHTML, like Gecko) Ubuntu/10.04 Chromium/9.0.597.94 Chrome/9.0.597.94 Safari/534.13" 0.001905 -
122.167.133.208 - - [24/Feb/2011:23:27:23 +0530] "GET /?= HTTP/1.1" 302 309 "" "Mozilla/5.0 (X11; U; Linux x86_64; en-US) AppleWebKit/534.13 (KHTML, like Gecko) Ubuntu/10.04 Chromium/9.0.597.94 Chrome/9.0.597.94 Safari/534.13" 0.001945 -
122.167.133.208 - - [24/Feb/2011:23:27:23 +0530] "GET /?= HTTP/1.1" 302 309 "" "Mozilla/5.0 (X11; U; Linux x86_64; en-US) AppleWebKit/534.13 (KHTML, like Gecko) Ubuntu/10.04 Chromium/9.0.597.94 Chrome/9.0.597.94 Safari/534.13" 0.001999 -

I think when I removed the openacs before doing a fresh install some config file has been left there which is creating problem.

I checked this thread
https://openacs.org/forums/message-view?message_id=1855040
and
before doing a fresh install had done
dpkg --purge openacs
dpkg --purge postgresql

then aptitude install postgresql
and then aptitude install openacs so now when I am just trying to install then this problem of redirection should be happening at all.
I have disabled the site openacs.openitup.in for now and want this to get up and running on computer on LAN where I am trying to install it and accessing as
http://localhost:8000

but here also it is having problem.

Collapse
Posted by Héctor Romojaro on
Hi James,

- /var/log/aolserver4/aolserver4.log -> Log from the main aolserver instance.
- /var/log/aolserver4/openacs/error.log -> Log from the openacs instance.

I think when I removed the openacs before doing a fresh install some config file has been left there which is creating problem.

Just purge the package, have a look at /etc/openacs/ and /etc/aolserver4/conf.d/ to see if there are still any config file, check if the openacs database still exists and check if your previous apache proxy config is doing bad things.

And then, reinstall.

Cheers, Héctor

Collapse
Posted by James Godrej on
Well yes the openacs database was there as you mentioned in other thread also to delete I deleted.
Now I did
aptitude purge openacs
but I still see config files in /etc/aolserver4
/etc/init.d/aloserver4
and /etc/default/aolserver just removing these files and installing again will be fine or I need to do
find / -name 'openacs*'
and remove what ever comes
and same with
find / -name 'aolserver4*'

and remove what ever comes

then install.Is this what you mean.

Collapse
Posted by Héctor Romojaro on
Don't remove /etc/init.d/aloserver4 or any other files, they are part of aolserver package.

It looks like your problem was that you didn't drop the openacs database. Now that you've done it, just reinstall the package. That's all, it should work.

Collapse
Posted by James Godrej on
Ok I had done a re install and now this time things really worked smoothly.
I can see http://localhost:8000

Here is now where my doubts begin.
The LAN IP of machine where OpenACS is installed is
192.168.1.5

so I previously to make this accessible to any one on LAN had
done in /etc/aolserver4/conf.d/openacs.sh

changed

AOL_USER=www-data
AOL_GROUP=www-data
AOL_ADDRESS=127.0.0.1
AOL_PORT=8000
RUN_DAEMON=yes

to

AOL_USER=www-data
AOL_GROUP=www-data
AOL_ADDRESS=192.168.1.5
AOL_PORT=8000
RUN_DAEMON=yes

is this right?
and during installation it asked to enter Canonical URL name for server
I have entered there
http://openacs.openitup.in

I dropped the :8000 part.

Is this correct?

Because now I will configure Apache Reverse proxy which is at a machine physically different location than where OpenACS runs.

Collapse
Posted by Héctor Romojaro on
It looks correct, yes.

Try it with the proxy and the parameters Torben told you, and see if it works properly.

Anyway, if it doesn't, don't reinstall again!! It can be probably fixed just editing some file or changing a single parameter.

Collapse
Posted by James Godrej on
I think upto here we have been able to correctly bring thing on track.

You can check http://openacs.openitup.in

is accessible on internet.
Now comes the real problem because of which all the hotch potch had happened.
When I login with the account which I had created during installation from internet on

http://openacs.openitup.in

then I see after some time the connection breaks

and I see the URL
http://openacs.openitup.in:8000/

now port 8000 is not opened on the Gateway which faces internet (that is the reason I am using Apache Reverse Proxy)
So how can I avoid when some one logs in to the site this port to come in URL.

Collapse
Posted by Michael Aram on
Check the value of SystemURL in /acs-admin/ -> Kernel -> Parameters

is it http://openacs.openitup.in:8000/ ?

Collapse
Posted by James Godrej on