Discussion:
How do you install Zenpacks from Github when Zenoss server has no internet access?
jwilda
2012-02-22 20:18:35 UTC
Permalink
jwilda [http://community.zenoss.org/people/jwilda] created the discussion

"How do you install Zenpacks from Github when Zenoss server has no internet access?"

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

--------------------------------------------------------------
What is the process of installing ZenPacks from github?  Also what is the process of installing ZenPacks from github when the Zenoss server has no internet access?
--------------------------------------------------------------

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

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]
jmp242
2012-02-22 20:30:40 UTC
Permalink
jmp242 [http://community.zenoss.org/people/jmp242] created the discussion

"Re: How do you install Zenpacks from Github when Zenoss server has no internet access?"

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

--------------------------------------------------------------
You can just download the zip file somewhere else, get it to the zenoss server, extract the file and either turn it into an egg, or do a zenpack --link --install /path/to/zenpack/folder

--
James Pulver
ZCA Member
LEPP Computer Group
Cornell University
--------------------------------------------------------------

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

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]
jwilda
2012-02-23 19:57:54 UTC
Permalink
jwilda [http://community.zenoss.org/people/jwilda] created the discussion

"Re: How do you install Zenpacks from Github when Zenoss server has no internet access?"

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

--------------------------------------------------------------
So the only answer is to find the zip file from somewhere else?  Which would mean that the answer is that there isn't a way to install Zenpacks from Github if the Zenoss server has no internet access.  Is that correct?
--------------------------------------------------------------

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

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]
jmp242
2012-02-23 20:11:02 UTC
Permalink
jmp242 [http://community.zenoss.org/people/jmp242] created the discussion

"Re: How do you install Zenpacks from Github when Zenoss server has no internet access?"

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

--------------------------------------------------------------
Sorry, I mean you need a computer with internet access to get *anything* from github... How else would it work? That computer doesn't have to be the Zenoss server. You can download the files from github, and then you must *somehow* get it to the zenoss server. Then you install it... I mean, files don't transfer by magic?

--
James Pulver
ZCA Member
LEPP Computer Group
Cornell University
--------------------------------------------------------------

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

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]
jwilda
2012-02-23 20:16:20 UTC
Permalink
jwilda [http://community.zenoss.org/people/jwilda] created the discussion

"Re: How do you install Zenpacks from Github when Zenoss server has no internet access?"

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

--------------------------------------------------------------
Oh my bad I took your statement +"You can just download the zip file somewhere else"+ to mean I had to find the code somewhere else other then github.  Sorry for the confusion and thank you for your answer.
--------------------------------------------------------------

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

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]
jwilda
2012-02-23 20:42:07 UTC
Permalink
jwilda [http://community.zenoss.org/people/jwilda] created the discussion

"Re: How do you install Zenpacks from Github when Zenoss server has no internet access?"

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

--------------------------------------------------------------
Since I have your ear do you see why the below is failing?  I pulled the ZIP(zenoss-ZenPacks.ShaneScott.DeviceSearch-a5b9eae.zip) from github and unzipped it and then issued the below command.  Thanks again :-)

$ zenpack --link --install /home/zenoss/zenoss-ZenPacks.ShaneScott.DeviceSearch-a5b9eae
2012-02-23 15:37:58,161 INFO zen.HookReportLoader: loading reports from:/opt/zenoss/Products/zenoss-ZenPacks.ShaneScott.DeviceSearch-a5b9eae/reports
2012-02-23 15:37:58,199 ERROR zen.ZenPackCmd: zenpack command failed
Traceback (most recent call last):
  File "/opt/zenoss/Products/ZenUtils/zenpack.py", line 406, in <module>
    zp.run()
  File "/opt/zenoss/Products/ZenUtils/zenpack.py", line 155, in run
    self.install(packName)
  File "/opt/zenoss/Products/ZenUtils/zenpack.py", line 249, in install
    zp.install(self.app)
  File "/opt/zenoss/Products/ZenModel/ZenPack.py", line 251, in install
    loader.load(self, app)
  File "/opt/zenoss/Products/ZenModel/ZenPackLoader.py", line 287, in load
    registerSkin(app.zport.dmd, skinsDir)
  File "/opt/zenoss/Products/ZenUtils/Skins.py", line 59, in registerSkin
    addDirectoryViews(skinstool, path, dict(__name__=root))
  File "/opt/zenoss/lib/python/Products/CMFCore/DirectoryView.py", line 612, in addDirectoryViews
    package = getPackageName(_prefix)
  File "/opt/zenoss/lib/python/Products/CMFCore/utils.py", line 870, in getPackageName
    return getContainingPackage(module)
  File "/opt/zenoss/lib/python/Products/CMFCore/utils.py", line 850, in getContainingPackage
    mod = sys.modules[name]
KeyError: 'zenoss-ZenPacks.ShaneScott.DeviceSearch-a5b9eae'
--------------------------------------------------------------

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

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]
dpetzel
2012-02-24 00:19:29 UTC
Permalink
dpetzel [http://community.zenoss.org/people/dpetzel] created the discussion

"Re: How do you install Zenpacks from Github when Zenoss server has no internet access?"

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

--------------------------------------------------------------
Based on that file name, I think I know whats up. Did you happen to navigate to https://github.com/zenoss/ZenPacks.ShaneScott.DeviceSearch https://github.com/zenoss/ZenPacks.ShaneScott.DeviceSearch, followed by clicking the Zip button toward the upper left?

If so what happened, is that you actually downloaded a ZIP file of the latest commit in version control (GitHub). So technically you have the Zenpack, but not in egg format. Ideally the GitHub repo owners will make the eggs available in the "Downloads" section of their repos. A more immediate course of action would be to follow the links here: http://community.zenoss.org/message/61949#61949 http://community.zenoss.org/message/61949#61949 and download the egg file, rather than source code.

If your dead set on installing from the source ZIP, let me know and I'll write up some instructions.
--------------------------------------------------------------

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

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]
jwilda
2012-02-24 02:03:06 UTC
Permalink
jwilda [http://community.zenoss.org/people/jwilda] created the discussion

"Re: How do you install Zenpacks from Github when Zenoss server has no internet access?"

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

--------------------------------------------------------------
You assessment of what I did was exactly right.  Thank you for the link to the .egg file.  An .egg file is definitely prefered :-).  Thanks for the offer on hooking me up with some instructions.  I don't need them but I'm sure others would find them usefull since going through the zenpacks on github ( https://github.com/zenoss https://github.com/zenoss) reveals that a few of them do not provide .egg files.  Or how to generate an .egg file from the source ZIP.  In anycase I'm all set and thank you very much.
--------------------------------------------------------------

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

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