Fresh install doesn't work

I was having problems integrating coolstack 1.1 with the latest 02/07 build of solaris 10, so I was told I should think about removing all of the older programs that coolstack is replacing in case of conflicts ... so I did. Once I reinstalled all of the coolstack programs SAMP-related none of the programs will start up. Can anybody clue me in?

[352 byte] By [imana] at [2007-11-26 22:38:19]
# 1

> I was having problems integrating coolstack 1.1 with

> the latest 02/07 build of solaris 10, so I was told I

> should think about removing all of the older programs

> that coolstack is replacing in case of conflicts ...

Who told you that ? There is no necessity to remove anything.

> so I did. Once I reinstalled all of the coolstack

> programs SAMP-related none of the programs will start

> up. Can anybody clue me in?

What exactly is the problem ? Do you get an error ? Does it dump core ?

If you want help, you need to be very specific about the issue you are running into.

Shanti

shantiSa at 2007-7-10 11:50:07 > top of Java-index,Open Source Technologies,OpenSPARC...
# 2

Here is the issue I am working on at the moment. Mysql isn't starting and after spending several days on this issue I have discovered that I have to manually build a mysql.xml file and enter it into the smf repository to get it to start. Once that was done I tried to start msyql and got the following messages:

# Mar 23 14:13:08 si10.com svc.startd[7]: network/mysql:default misconfigured: transitioned to maint

enance (see 'svcs -xv' for details)

# svcs -xv

svc:/application/print/server:default (LP print server)

State: disabled since Fri Mar 23 13:49:01 2007

Reason: Disabled by an administrator.

See: http://sun.com/msg/SMF-8000-05

See: man -M /usr/share/man -s 1M lpsched

Impact: 1 dependent service is not running:

svc:/application/print/rfc1179:default

svc:/network/mysql:default (?)

State: maintenance since Fri Mar 23 14:13:32 2007

Reason: Start method exited with $SMF_EXIT_ERR_CONFIG.

See: http://sun.com/msg/SMF-8000-KS

See: /var/svc/log/network-mysql:default.log

Impact: This service is not running.

The logs indicate:

[ Mar 23 14:13:32 Executing start method ("/etc/init.d/mysql start") ]

svc.startd could not set context for method: chdir: No such file or directory

[ Mar 23 14:13:32 Method "start" exited with status 96 ]

I have the xml file executing a link to /opt/coolstack/mysql/share/mysql/mysql.server from /etc/init.d/mysql

The command looks like this '/etc/init.d/mysql start'

If I try it from the command line I get this:

/etc/init.d/mysql start

Starting MySQL

. SUCCESS!

I sure hope you can help because I then have to move on to the apache2 and perl modules.

imana at 2007-7-10 11:50:07 > top of Java-index,Open Source Technologies,OpenSPARC...
# 3

Well I finally got the mysql module working after having to modify all of the /etc/rc* entries, then modifying all of the /lib/svc/method entries and changing where everything was being directed. Wish somebody could have given me a *hmmm try this *. Oh well. Now on to the others.

Since apache was removed before reinstalling coolstack now there is no smf entry for httpd / apache so I will start there. Not sure why the coolstack install wouldn't make that entry...

imana at 2007-7-10 11:50:07 > top of Java-index,Open Source Technologies,OpenSPARC...
# 4

Cool Stack does support SMF currently. I'll warn you in advance that trying to modify the existing Solaris httpd entries may be a little painful, since the paths for Cool Stack apache are quite different. Please see an earlier post in this forum where someone had posted their script for SMF support of Cool Stack apache. This was for the earlier CSQ package, but it's trivial to change the /usr/local to /opt/coolstack paths. See :

http://forum.java.sun.com/thread.jspa?threadID=5139550&tstart=20

Shanti

shantiSa at 2007-7-10 11:50:07 > top of Java-index,Open Source Technologies,OpenSPARC...
# 5

Thanks for the info but I had to find out the hard way and do it myself. I pretty much did the same thing that the person in your link did except I didn't start it as a new service (wished I had). Not sure why the coolstack developers didn't do it this way and create a new service for MySQL5 and Apache2.2 and just include in the install docs to disable the old services once everything is confirmed working?

So now I have completed this intensive work-around to get apache and mysql up and running; php and perl came up with little or no problems.

imana at 2007-7-10 11:50:07 > top of Java-index,Open Source Technologies,OpenSPARC...