Discussion:
FreeBSD 8.2 *** Error code 126
Nikolai Dimitrov
2011-12-27 03:24:03 UTC
Permalink
Nikolai Dimitrov [http://community.zenoss.org/people/mrowcp] created the discussion

"FreeBSD 8.2 *** Error code 126"

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

--------------------------------------------------------------
Hello again :)
I have chance to install new FreeBSD and new zenoss version ( +3.1+ ) from ports (+/usr/ports/net-mgmt/zenoss+), but... I have a small problem, *again :(*
My log:

+make install clean+
+===>  Installing for zenoss-3.1.0+
+===>   zenoss-3.1.0 depends on package: bash>=4.1 - found+
+===>   zenoss-3.1.0 depends on package: net-snmp>=5.5 - found+
+===>   zenoss-3.1.0 depends on package: liberation-fonts-ttf>=1.05 - found+
+===>   zenoss-3.1.0 depends on shared library: mysqlclient.18 - found+
+===>   Generating temporary packing list+
+===>  Checking if net-mgmt/zenoss already installed+
+===> Creating users and/or groups.+
+Using existing group `zenoss'.+
+Using existing user `zenoss'.+
+*** Error code 126+

User zenoss is added:

cat /etc/passwd |grep zenoss
zenoss:*:949:949:& user:/usr/local/zenoss:/bin/sh

What to do now... ?
Thanks
--------------------------------------------------------------

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

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
2011-12-28 17:18:01 UTC
Permalink
Shane Scott [http://community.zenoss.org/people/hackman238] created the discussion

"Re: FreeBSD 8.2 *** Error code 126"

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

--------------------------------------------------------------
Nikolai:

Any luck?

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

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

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]
Brian Seklecki
2011-12-30 13:53:46 UTC
Permalink
Brian Seklecki [http://community.zenoss.org/people/bseklecki] created the discussion

"Re: FreeBSD 8.2 *** Error code 126"

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

--------------------------------------------------------------
This is an error being omiited by FreeBSD ports, not ZenOSS.

Ask on mailto:freebsd-***@freebsd.org freebsd-***@freebsd.org or mailto:freebsd-***@freebsd.org freebsd-***@freebsd.org if you figure it out

CC MAINTAINER=      mailto:***@experts-exchange.com ***@experts-exchange.com on the msg

Also, try:

% sudo make -dt clean && sudo make -dt install 2>&1 | tee -a ~/zenoss_fbsd_borked.log

To reference the breakage.

Happy new years, all.
--------------------------------------------------------------

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

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]
Nikolai Dimitrov
2011-12-31 08:45:01 UTC
Permalink
Nikolai Dimitrov [http://community.zenoss.org/people/mrowcp] created the discussion

"Re: FreeBSD 8.2 *** Error code 126"

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

--------------------------------------------------------------
*Yea I know that the problem is in FreeBSD port.I'll send e-mail to pphilips after holidays.*

+% sudo make -dt clean && sudo make -dt install 2>&1 | tee -a ~/zenoss_fbsd_borked.log+

*Same like my 1st post:*

+cat /root/zenoss_fbsd_borked.log+
+===>  Vulnerability check disabled, database not found+
+===>  License GPLv2 accepted by the user+
+===>  Extracting for zenoss-3.1.0+
+=> SHA256 Checksum OK for zenoss-3.1.0.tar.gz.+
+=> SHA256 Checksum OK for JSBuilder2.zip.+
+===>  Patching for zenoss-3.1.0+
+===>  Applying FreeBSD patches for zenoss-3.1.0+
+===>   zenoss-3.1.0 depends on package: swig>=1.3 - found+
+===>   zenoss-3.1.0 depends on file: /usr/local/bin/unzip - found+
+===>   zenoss-3.1.0 depends on file: /usr/local/jdk1.6.0/bin/java - found+
+===>   zenoss-3.1.0 depends on executable: gmake - found+
+===>   zenoss-3.1.0 depends on file: /usr/local/bin/autoconf-2.68 - found+
+===>   zenoss-3.1.0 depends on shared library: mysqlclient.18 - found+
+===>  Configuring for zenoss-3.1.0+
+===>  Building for zenoss-3.1.0+
+===>  Installing for zenoss-3.1.0+
+===>   zenoss-3.1.0 depends on package: bash>=4.1 - found+
+===>   zenoss-3.1.0 depends on package: net-snmp>=5.5 - found+
+===>   zenoss-3.1.0 depends on package: liberation-fonts-ttf>=1.05 - found+
+===>   Generating temporary packing list+
+===>  Checking if net-mgmt/zenoss already installed+
+===> Creating users and/or groups.+
+Using existing group `zenoss'.+
+Using existing user `zenoss'.+
+*** Error code 126+

+Stop in /usr/ports/net-mgmt/zenoss.+

*P.S. I found that there is some bugs in this port, fixed by Phillip and phyton need patch ( http://bugs.python.org/file14047/python-2.6.2-svnversion.patch http://bugs.python.org/file14047/python-2.6.2-svnversion.patch) too* :)

*With this +sites.google.com/site/philsplacepublic/files2/zenoss31.shar.txt+ I successfully install v3.1 but...  :) the problem is the same as when its installed from SVN:*

+$ /usr/local/zenoss/bin/zenoss start+
+Traceback (most recent call last):+
+  File "/usr/local/zenoss/Products/ZenUtils/ZenPackDaemons.py", line 20, in <mod                                                  ule>+
+    import Globals+
+ImportError: No module named Globals+
+Daemon: zeoctl Error: no program specified; use -p or -C+
+For help, use /usr/local/zenoss/bin/zeoctl -h+
+Daemon: zopectl /usr/local/zenoss/bin/zenoss: line 130: /usr/local/zenoss/bin/zo                                                  pectl: No such file or directory+
+Daemon: zenhub starting...+
+Traceback (most recent call last):+
+  File "/usr/local/zenoss/Products/ZenHub/zenhub.py", line 21, in <module>+
+    import Globals+

*and with user root:*

+# /usr/local/zenoss/bin/zenoss start+
+ls: /usr/local/zenoss/var/Data.fs: No such file or directory+
+Unable to determine the right user to run zenoss+
--------------------------------------------------------------

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

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]
Nikolai Dimitrov
2012-01-03 09:29:45 UTC
Permalink
Nikolai Dimitrov [http://community.zenoss.org/people/mrowcp] created the discussion

"Re: FreeBSD 8.2 *** Error code 126"

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

--------------------------------------------------------------
*Today I remove all sh*ts and download zenoss-3.2.1 from here (http://downloads.sourceforge.net/zenoss/zenoss-3.2.1.tar.gz)*
*I thing error 126 come from here:*

+mkdir: /usr/ports/net-mgmt/zenoss/zenoss-3.2.1/build: Permission denied+
+./genpatchdeps.sh >.patchdeps+
+/bin/bash: .patchdeps: Permission denied+
+gmake: *** No rule to make target `.patchdeps', needed by `default'.  Stop.+
+unable to build zenoss and prerequisites, see zenbuild.log+
+
+
*so I chown* +zenoss-3.2.1+ *folder to be owned by zenoss user  (def. is* UID 500 *).*
*The next problem was in:*

+mkdir: //usr/local/zenoss/lib/python: Permission denied+
+gmake: *** [//usr/local/zenoss/lib/python/sitecustomize.py] Error 1+

+ls -al /usr/local/zenoss/+
+.....+
+.....+
+drwxr-xr-x   2 root zenoss 512 Jan  3 10:26 lib+

*so I chown it too*
*The 3th problem was in:*

+configuring: /usr/ports/net-mgmt/zenoss/zenoss-3.2.1/build/Python-2.6.2/Makefile+
+   building: /usr/ports/net-mgmt/zenoss/zenoss-3.2.1/build/Python-2.6.2+
+gmake: *** [/usr/ports/net-mgmt/zenoss/zenoss-3.2.1/build/Python-2.6.2/python] Error 2+
+unable to build zenoss and prerequisites, see zenbuild.log+

*and its came from python bugs (* http://bugs.python.org/file14047/python-2.6.2-svnversion.patch http://bugs.python.org/file14047/python-2.6.2-svnversion.patch *)*



*And now Im stuck at:*

+Copying src/zope.app.container.egg-info to /usr/local/zenoss/lib/python/zope.app.container-3.8.0-py2.6.egg-info+
+Installing /usr/local/zenoss/lib/python/zope.app.container-3.8.0-py2.6-nspkg.pth+
+running install_scripts+
+//usr/local/zenoss/bin/python: can't open file 'setup.py': [Errno 2] No such file or directory+
--------------------------------------------------------------

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

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]
Phil Phillips
2012-01-10 17:58:50 UTC
Permalink
Phil Phillips [http://community.zenoss.org/people/Decorum] created the discussion

"Re: FreeBSD 8.2 *** Error code 126"

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

--------------------------------------------------------------
That's a bit strange... One thing you could try is chown the entire /usr/local/zenoss directory (maybe there's a setup.py file that the installer cannot read??):
chown -R zenoss:zenoss /usr/local/zenoss

I'm working on getting 3.2 into the portstree... hopefully I can get that working soon.  If all else fails, you could also always try the package version:
pkg_add -r http://pointyhat.freebsd.org/errorlogs/amd64-8-packages-latest/net-mgmt/zenoss-3.1.0.tbz http://pointyhat.freebsd.org/errorlogs/amd64-8-packages-latest/net-mgmt/zenoss-3.1.0.tbz
--------------------------------------------------------------

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

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...