Forum OpenACS Q&A: OpenACS OS suggestions

Collapse
Posted by Chris Edwards on
I am a beginner when its comes to this so pardon my lack of knowledge. I have been trying for the past few days to get openacs running on Ubuntu 12.04 LTS. Even when walking through the Admin Guide it fails on certain parts like the postgres linking of usr/include and /usr/local. I was wondering if there was a better OS to use like CentOS? Or if anyone has any suggestions as to which OS had a smoother install that would help a beginner like me.
Collapse
2: Re: OpenACS OS suggestions (response to 1)
Posted by Chris Edwards on
To help judge as to what my main goal is I wanted to add that I am trying to get this working as a TR-69 server.
Collapse
3: Re: OpenACS OS suggestions (response to 1)
Posted by Jim Lynch on
Hi,

Could you tell us what happened? Maybe we can get you going but right now there is no definitive information, like:

- were you able to start the server?
- to load the data model?
- have you read the error log of your openacs instance?

I don't know what else to ask, until you supply some information.

-Jim

PS, what's the content of your $server/etc/config.tcl and if you use daemontools, what's in your $server/etc/daemontools/run?

Collapse
4: Re: OpenACS OS suggestions (response to 1)
Posted by Chris Edwards on
This is an error on some permissions while running through the Xowiki for Ubuntu. Also looks like I may be missing some things since what you requested came back with nothing being found or shortcuts are not mapped to my user. This is a fresh install with synaptic for easy package handling and build-essentials, nothing else has been isntalled.

[06/Jun/2013:22:17:12][4755.1550354176][-main-] Error: log: failed to re-open log file '/var/log/aolserver4/aolserver4.log': 'Permission denied'
[06/Jun/2013:22:17:12][4755.1550354176][-main-] Fatal: log: failed to open server log '/var/log/aolserver4/aolserver4.log': 'Permission denied'

cedwards@TR69:~$ $server/etc/config.tcl
bash: /etc/config.tcl: No such file or directory
cedwards@TR69:~$ $server/etc/daemontools/run
bash: /etc/daemontools/run: No such file or directory
cedwards@TR69:~$

I am not 100% certain on how to verify if the server is running, but looking at the ps ax I see some signs of postgresql and a deamons running. This is just a snip of what I saw.

989 ? S 0:00 avahi-daemon: running [TR69.local]
31956 ? S 0:00 /usr/lib/postgresql/9.1/bin/postgres -D /var/lib/postgresql/9.1/main -c con

I dont see anything else running that pertains to openacs, aolserver4 or postgresql.

Like I said before I am a beginner, my background is access and I know my way around a solaris machine (dont judge me). But I am willing to bang on this until it works and learn on the way, with support from willing people.

Collapse
5: Re: OpenACS OS suggestions (response to 1)
Posted by Chris Edwards on
This is everything from the openacs error.log

cedwards@TR69:/var/log/aolserver4/openacs$ cat error.log
[06/Jun/2013:22:17:34][5403.18446744072834799360][-main-] Notice: nsmain: AOLserver/4.5.1 starting
[06/Jun/2013:22:17:34][5403.18446744072834799360][-main-] Notice: nsmain: security info: uid=33, euid=33, gid=33, egid=33
[06/Jun/2013:22:17:34][5403.18446744072834799360][-main-] Notice: nsmain: max files: FD_SETSIZE = 1024, rl_cur = 4096, rl_max = 4096
[06/Jun/2013:22:17:34][5403.18446744072834799360][-main-] Warning: nsmain: rl_max > FD_SETSIZE
[06/Jun/2013:22:17:34][5403.18446744072834799360][-main-] Notice: encoding: loaded: utf-8
[06/Jun/2013:22:17:34][5403.18446744072834799360][-main-] Notice: fastpath[openacs]: mapped GET /
[06/Jun/2013:22:17:34][5403.18446744072834799360][-main-] Notice: fastpath[openacs]: mapped HEAD /
[06/Jun/2013:22:17:34][5403.18446744072834799360][-main-] Notice: fastpath[openacs]: mapped POST /
[06/Jun/2013:22:17:34][5403.18446744072834799360][-main-] Notice: adp[openacs]: mapped GET /*.adp
[06/Jun/2013:22:17:34][5403.18446744072834799360][-main-] Notice: adp[openacs]: mapped HEAD /*.adp
[06/Jun/2013:22:17:34][5403.18446744072834799360][-main-] Notice: adp[openacs]: mapped POST /*.adp
[06/Jun/2013:22:17:34][5403.18446744072834799360][-main-] Notice: modload: loading '/usr/lib/aolserver4/bin/nssock.so'
[06/Jun/2013:22:17:34][5403.18446744072834799360][-main-] Notice: modload: loading '/usr/lib/aolserver4/bin/nslog.so'
[06/Jun/2013:22:17:34][5403.18446744072834799360][-main-] Notice: nslog: opened '/usr/share/openacs/log/openacs.log'
[06/Jun/2013:22:17:34][5403.18446744072834799360][-main-] Notice: modload: loading '/usr/lib/aolserver4/bin/nssha1.so'
[06/Jun/2013:22:17:34][5403.18446744072834799360][-main-] Warning: modload: could not find Ns_ModuleInit in /usr/lib/aolserver4/bin/nssha1.so
[06/Jun/2013:22:17:34][5403.18446744072834799360][-main-] Fatal: modload: failed to load module '/usr/lib/aolserver4/bin/nssha1.so'
cedwards@TR69:/var/log/aolserver4/openacs$

AOLserver4 log:

cedwards@TR69:/var/log/aolserver4$ cat aolserver4.log
[06/Jun/2013:22:17:34][5387.1464837888][-main-] Notice: nsmain: AOLserver/4.5.1 starting
[06/Jun/2013:22:17:34][5387.1464837888][-main-] Notice: nsmain: security info: uid=33, euid=33, gid=33, egid=33
[06/Jun/2013:22:17:34][5387.1464837888][-main-] Notice: nsmain: max files: FD_SETSIZE = 1024, rl_cur = 4096, rl_max = 4096
[06/Jun/2013:22:17:34][5387.1464837888][-main-] Warning: nsmain: rl_max > FD_SETSIZE
[06/Jun/2013:22:17:34][5387.1464837888][-main-] Notice: fastpath[main]: mapped GET /
[06/Jun/2013:22:17:34][5387.1464837888][-main-] Notice: fastpath[main]: mapped HEAD /
[06/Jun/2013:22:17:34][5387.1464837888][-main-] Notice: fastpath[main]: mapped POST /
[06/Jun/2013:22:17:34][5387.1464837888][-main-] Notice: adp[main]: mapped GET /*.adp
[06/Jun/2013:22:17:34][5387.1464837888][-main-] Notice: adp[main]: mapped HEAD /*.adp
[06/Jun/2013:22:17:34][5387.1464837888][-main-] Notice: adp[main]: mapped POST /*.adp
[06/Jun/2013:22:17:34][5387.1464837888][-main-] Notice: adp[main]: mapped GET /*.html
[06/Jun/2013:22:17:34][5387.1464837888][-main-] Notice: adp[main]: mapped HEAD /*.html
[06/Jun/2013:22:17:34][5387.1464837888][-main-] Notice: adp[main]: mapped POST /*.html
[06/Jun/2013:22:17:34][5387.1464837888][-main-] Notice: modload: loading '/usr/lib/aolserver4/bin/nssock.so'
[06/Jun/2013:22:17:34][5387.1464837888][-main-] Notice: modload: loading '/usr/lib/aolserver4/bin/nslog.so'
[06/Jun/2013:22:17:34][5387.1464837888][-main-] Notice: nslog: opened '/var/log/aolserver4/aolserver4.log'
[06/Jun/2013:22:17:34][5387.1464837888][-main-] Notice: modload: loading '/usr/lib/aolserver4/bin/nscgi.so'
[06/Jun/2013:22:17:34][5387.1464837888][-main-] Warning: nscgi: no such interps section: ns/interps/cgiinterps
[06/Jun/2013:22:17:34][5387.1464837888][-main-] Error: nscgi: invalid directory: /usr/lib/cgi-bin
[06/Jun/2013:22:17:34][5387.1464837888][-main-] Error: nscgi: invalid directory: /usr/lib/cgi-bin
[06/Jun/2013:22:17:34][5387.1464837888][-main-] Notice: nscgi: GET /*.py
[06/Jun/2013:22:17:34][5387.1464837888][-main-] Notice: nscgi: POST /*.pl
[06/Jun/2013:22:17:34][5387.1464837888][-main-] Notice: nscgi: POST /*.py
[06/Jun/2013:22:17:34][5387.1464837888][-main-] Notice: modload: loading '/usr/lib/aolserver4/bin/nsperm.so'
[06/Jun/2013:22:17:34][5387.1464837888][-main-] Notice: conf: [ns/server/main]enabletclpages = 0
[06/Jun/2013:22:17:34][5387.1464837888][-main-] Notice: default thread pool: minthreads 0 maxthreads 20 idle 0 current 0 maxconns 100 queued 0 timeout 120 spread 20
[06/Jun/2013:22:17:34][5387.1464837888][-main-] Notice: XOTcl version 1.6.7 loaded
[06/Jun/2013:22:17:34][5387.1464837888][-main-] Notice: nsmain: AOLserver/4.5.1 running
[06/Jun/2013:22:17:34][5387.1464837888][-main-] Notice: nsmain: security info: uid=33, euid=33, gid=33, egid=33
[06/Jun/2013:22:17:34][5387.1464837888][-main-] Notice: driver: starting: nssock
[06/Jun/2013:22:17:34][5387.1464829696][-sched-] Notice: sched: starting
[06/Jun/2013:22:17:34][5387.1464690432][-nssock:driver-] Notice: starting
[06/Jun/2013:22:17:34][5387.1464690432][-nssock:driver-] Notice: nssock: listening on 127.0.0.1:80
cedwards@TR69:/var/log/aolserver4$

Collapse
6: Re: OpenACS OS suggestions (response to 1)
Posted by Chris Edwards on
Postgresql logs:

cedwards@TR69:/var/log/postgresql$ cat postgresql-9.1-main.log
2013-06-06 22:14:48 EDT LOG: database system was shut down at 2013-06-06 22:14:46 EDT
2013-06-06 22:14:48 EDT LOG: autovacuum launcher started
2013-06-06 22:14:48 EDT LOG: database system is ready to accept connections
2013-06-06 22:14:48 EDT LOG: incomplete startup packet
2013-06-06 22:17:30 EDT FATAL: database "openacs" does not exist
2013-06-06 22:17:32 EDT LOG: received SIGHUP, reloading configuration files
2013-06-06 22:17:32 EDT ERROR: language "plpgsql" already exists
2013-06-06 22:17:32 EDT STATEMENT: CREATE LANGUAGE plpgsql;
2013-06-06 22:17:32 EDT ERROR: unrecognized configuration parameter "add_missing_from"
2013-06-06 22:17:32 EDT STATEMENT: ALTER DATABASE openacs SET add_missing_from = on;
2013-06-06 22:17:32 EDT ERROR: unrecognized configuration parameter "regex_flavor"
2013-06-06 22:17:32 EDT STATEMENT: ALTER DATABASE openacs SET regex_flavor = extended;
cedwards@TR69:/var/log/postgresql$

Collapse
7: Re: OpenACS OS suggestions (response to 1)
Posted by Torben Brosten on
Hi Chris,

Here is another thread regarding installation issues on ubuntu 12.04: https://openacs.org/forums/message-view?message_id=4046879

ubuntu's is apparently based on debian's. Subsequently, Debian's is apparently more reliable or tested.

If you've used a BSD os, consider trying the freebsd installation.

cheers

Collapse
8: Re: OpenACS OS suggestions (response to 1)
Posted by Torben Brosten on
LOL, actually,

"this is not the OpenACS you are looking for.. move along"

TR-69 refers to diffrent project recently called OpenACS and hosted on sourceforge http://sourceforge.net/p/openacs/

"These aren't the droids you're looking for."-- Obi-Wan Kenobi

Collapse
9: Re: OpenACS OS suggestions (response to 4)
Posted by Steve Manning on
The "permission denied" error for the logs is exactly that, the user you are running the servers as does not have permission to write to the /var/log/aolserver4 directory.

The server runs as 'nsd' so you need to look for that in ps ax. You can see if its listening on port 80 (&443) by using netstat -lpnt this will also show you if Postgresql is listening on 5432.

- Steve

Collapse
Posted by Chris Edwards on
Maybe Torben is correct, I don't want to waste any ones time if I am looking for a product that used the same name. When I get home Steve I will verify what you are asking.