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

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