Discussion:
Unable to create the initial Zenoss object database in FreeBSD
makros
2012-03-25 18:43:11 UTC
Permalink
makros [http://community.zenoss.org/people/makros] created the discussion

"Unable to create the initial Zenoss object database in FreeBSD"

To view the discussion, visit: http://community.zenoss.org/message/65452#65452

--------------------------------------------------------------
Hi!
I tryed installing Zenoss Core 3.1.0 on FreeBSD 8.2 from ports in VMware.
FreeBSD was fresh, had no ports before the trail.
The installation passed fine.
mysql server was started.

Than:

rehash
service zenoss init

I got a problem:

mv: /usr/local/zenoss/etc/zope.conf: set owner/group (was: 949/0): Operation not permitted
mv: /usr/local/zenoss/etc/zope.conf: set owner/group (was: 949/0): Operation not permitted
Wrote file /usr/local/zenoss/etc/zeo.conf
Wrote file /usr/local/zenoss/bin/zeoctl
Changed mode for /usr/local/zenoss/bin/zeoctl to 755
Wrote file /usr/local/zenoss/bin/runzeo
Changed mode for /usr/local/zenoss/bin/runzeo to 755
mv: /usr/local/zenoss/etc/zeo.conf: set owner/group (was: 949/0): Operation not permitted
Starting Zope Object Database
.
daemon process started, pid=20126
Loading initial Zenoss objects into the Zeo database
(this can take a few minutes)
Unable to create the initial Zenoss object database

I spent some hours to solve the problem.
At last I did that:

zentest# cp /usr/local/zenoss/etc/zope.conf.in /usr/local/zenoss/etc/zope.conf
zentest# chown zenoss:zenoss /usr/local/zenoss/etc/zope.conf

With new "zope.conf" the initialization had been completed.

Previous "zope.conf" was wrong. It was copied from /usr/local/zenoss/lib/python/Zope2/utilities/skel/zope.conf.in

I think it can help somebody.

But if you think the program will work wrong in the future, please tell me.
Thanks.
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/65452#65452]

Start a new discussion in zenoss-users by email
[discussions-community-forums-zenoss--***@community.zenoss.org] -or- at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
Shane Scott
2012-03-27 03:49:59 UTC
Permalink
Shane Scott [http://community.zenoss.org/people/hackman238] created the discussion

"Re: Unable to create the initial Zenoss object database in FreeBSD"

To view the discussion, visit: http://community.zenoss.org/message/65514#65514

--------------------------------------------------------------
makros:

As root run $ZENHOME/bin/zenoss_init_pre

Post the result.

Best,
--Shane (Hackman238)
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/65514#65514]

Start a new discussion in zenoss-users by email
[discussions-community-forums-zenoss--***@community.zenoss.org] -or- at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
makros
2012-03-28 08:10:22 UTC
Permalink
makros [http://community.zenoss.org/people/makros] created the discussion

"Re: Unable to create the initial Zenoss object database in FreeBSD"

To view the discussion, visit: http://community.zenoss.org/message/65551#65551

--------------------------------------------------------------
Post by Shane Scott
As root run $ZENHOME/bin/zenoss_init_pre
Thanks, Shane!
Should I revert to the snapshot I made before manual changes and "service zenoss init" ?
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/65551#65551]

Start a new discussion in zenoss-users by email
[discussions-community-forums-zenoss--***@community.zenoss.org] -or- at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
Shane Scott
2012-03-28 14:29:42 UTC
Permalink
Shane Scott [http://community.zenoss.org/people/hackman238] created the discussion

"Re: Unable to create the initial Zenoss object database in FreeBSD"

To view the discussion, visit: http://community.zenoss.org/message/65559#65559

--------------------------------------------------------------
makros:

Yes please.

--Shane
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/65559#65559]

Start a new discussion in zenoss-users by email
[discussions-community-forums-zenoss--***@community.zenoss.org] -or- at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
makros
2012-03-29 19:13:30 UTC
Permalink
makros [http://community.zenoss.org/people/makros] created the discussion

"Re: Unable to create the initial Zenoss object database in FreeBSD"

To view the discussion, visit: http://community.zenoss.org/message/65630#65630

--------------------------------------------------------------
Shane:

zentest# cd /usr/local/zenoss/bin
zentest# ./zenoss_init_pre
./zenoss_init_pre: line 38: **ZENHOME**/bin/shared-functions.sh: No such file or directory
./zenoss_init_pre: line 39: **ZENHOME**/bin/install-functions.sh: No such file or directory
./zenoss_init_pre: line 42: shebang: command not found
./zenoss_init_pre: line 48: restart_snmpd: command not found
./zenoss_init_pre: line 49: restart_mysql: command not found
./zenoss_init_pre: line 53: update_conf_files: command not found
./zenoss_init_pre: line 56: create_database: command not found
./zenoss_init_pre: line 59: run_zeneventbuild: command not found
./zenoss_init_pre: line 62: run_mkzopeinstance: command not found
./zenoss_init_pre: line 65: run_mkzeoinstance: command not found
./zenoss_init_pre: line 68: /usr/bin/replace: No such file or directory
./zenoss_init_pre: line 72: start_zeodb: command not found
./zenoss_init_pre: line 74: fix_zenhome_owner_and_group: command not found
./zenoss_init_pre: line 75: run_zenbuild: command not found
./zenoss_init_pre: line 76: stop_zeodb: command not found

Script doesn't work in FreeBSD port because:

1)shared-functions.sh & install-functions.sh are in $ZENHOME/init

2)All variables and functions aren't defined:

# environment variable
export OS_USERNAME="**OS_USERNAME**"
export OS_UID="**OS_UID**"
export ZENHOME="**ZENHOME**"
export MYSQLHOST="**MYSQL_HOST**"

....etc

# set the python shebang line
shebang

# create the log directory
mkdir -p ${ZENHOME}/log

# restart external server daemons
restart_snmpd
restart_mysql

# copy the etc/*.conf.example files to etc/*.conf if etc/*.conf don't
# already exist (we don't want to clobber people's configs)
update_conf_files

....etc
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/65630#65630]

Start a new discussion in zenoss-users by email
[discussions-community-forums-zenoss--***@community.zenoss.org] -or- at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
Shane Scott
2012-03-31 00:45:47 UTC
Permalink
Shane Scott [http://community.zenoss.org/people/hackman238] created the discussion

"Re: Unable to create the initial Zenoss object database in FreeBSD"

To view the discussion, visit: http://community.zenoss.org/message/65662#65662

--------------------------------------------------------------
makros:

Oh wow, a lot of things ended up off base. Did your tweaking fix that init_pre script?

--Shane
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/65662#65662]

Start a new discussion in zenoss-users by email
[discussions-community-forums-zenoss--***@community.zenoss.org] -or- at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
Loading...