Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
✪ vi4m Marcin Kliks
@vi4m
just apt-get install ralph-core as our guidline says
or just wait for @ar4s till the next day, he maintains this docker-compose configuration
to me looks like some sort of npm repo bug, they're sorta unstable these times
Arkadiusz Adamski
@ar4s
@brylor I will check that today :smile:
Bryan Taylor
@brylor
No luck with the npm problem? :(
Hahaha I think I fixed it! added -g to npm install in docker/provision_js.sh
and the next one :(
/root/init_js.sh: line 5: /opt/ralph/node_modules/.bin/gulp: No such file or directory
ERROR: Service 'web' failed to build: The command '/bin/sh -c $SCRIPTS_PATH/init_js.sh' returned a non-zero code: 1
ah cause gulp was prob installed globally
Bryan Taylor
@brylor
idk whats going on, have no idea about node
Bryan Taylor
@brylor
from the nodejs chan: "@brylor you're using an ANCIENT node and npm
if you installed node with apt, don't do that. install from source or with http://nvm.sh
you need to be on node 4 or 6, and npm 2 or 3.
Bryan Taylor
@brylor
11:24
ok ty
@brylor shakes fist at apt "
✪ vi4m Marcin Kliks
@vi4m
ekhm.
good to know.
Bryan Taylor
@brylor
I've commited the docker image at the failed build stage, so I'm able to work with it... ill keep you updated
✪ vi4m Marcin Kliks
@vi4m
ok
Bryan Taylor
@brylor
I managed to update the Docker scripts to install node via nvm, the error is gone and it appears I have fixed the node prob of course now:
 web_1    | [2016-08-18 11:19:08 +0000] [1] [INFO] Listening at: http://0.0.0.0:8000 (1)
web_1    | [2016-08-18 11:19:08 +0000] [1] [INFO] Using worker: sync
web_1    | [2016-08-18 11:19:08 +0000] [9] [INFO] Booting worker with pid: 9
web_1    | [2016-08-18 11:19:08 +0000] [9] [ERROR] Exception in worker process
web_1    | Traceback (most recent call last):
web_1    |   File "/usr/local/lib/python3.4/dist-packages/gunicorn/arbiter.py", line 557, in spawn_worker
web_1    |     worker.init_process()
web_1    |   File "/usr/local/lib/python3.4/dist-packages/gunicorn/workers/base.py", line 126, in init_process
web_1    |     self.load_wsgi()
web_1    |   File "/usr/local/lib/python3.4/dist-packages/gunicorn/workers/base.py", line 136, in load_wsgi
web_1    |     self.wsgi = self.app.wsgi()
web_1    |   File "/usr/local/lib/python3.4/dist-packages/gunicorn/app/base.py", line 67, in wsgi
web_1    |     self.callable = self.load()
web_1    |   File "/usr/local/lib/python3.4/dist-packages/gunicorn/app/wsgiapp.py", line 65, in load
web_1    |     return self.load_wsgiapp()
web_1    |   File "/usr/local/lib/python3.4/dist-packages/gunicorn/app/wsgiapp.py", line 52, in load_wsgiapp
web_1    |     return util.import_app(self.app_uri)
web_1    |   File "/usr/local/lib/python3.4/dist-packages/gunicorn/util.py", line 357, in import_app
web_1    |     __import__(module)
web_1    | ImportError: No module named 'ralph.wsgi'
web_1    | [2016-08-18 11:19:08 +0000] [9] [INFO] Worker exiting (pid: 9)
web_1    | [2016-08-18 11:19:08 +0000] [1] [INFO] Shutting down: Master
I have to cd src...
Bryan Taylor
@brylor
Ok this is what I have so far: brylor/ralph@e6822c3
But I still get the above ralph.wsgi error because docker compose has command: gunicorn -w 4 -b 0.0.0.0:8000 -t 300 ralph.wsgi ... but that is executed in /opt/ralph, it should be /opt/ralph/src but I can't make the paths/environments happy ...
btw my github accounts are messed up :(
Bryan Taylor
@brylor
actually: brylor/ralph@f16660b
Bryan Taylor
@brylor
still trying to get docker working this is where i'm at:
[root@yp-personal ralph-docker]# docker-compose  up
Starting ralphdocker_redis_1
Creating ralphdocker_data_1
Starting ralphdocker_inkpy_1
Recreating ralphdocker_db_1
Creating ralphdocker_web_1

ERROR: for web  Cannot start service web: oci runtime error: no such file or directory
ERROR: Encountered errors while bringing up the project.

[root@yp-personal ralph-docker]# grep working_dir docker-compose.yml
  working_dir: /opt/ralph/src

[root@yp-personal ralph-docker]# docker run -ti ralphdocker_web ls /opt/ralph/src
ralph  ralph.egg-info
this is crazy no sense
Bryan Taylor
@brylor
Got docker working :) I'm a few commits back though allegro/ralph#2748
Arkadiusz Adamski
@ar4s
@brylor thanks for investigation but we don't need nvm to install other version of nodejs.. Please test this solution #2751 and give me a feedback
Bryan Taylor
@brylor
yeah, i tried :D.... cool thanks! I'll check it
rebeccakandiah
@rebeccakandiah
Is there anyone that can provide training on Ralph for my company? I am trying to go through Ralph but I want to see if there is anyone of the developers of Ralph who can provide us a full run through of the tool just to see if the tool can meet our needs.
heidsoft
@heidsoft
I encountered a problem,env is max os
Traceback (most recent call last):
File "/usr/local/lib/python3.5/site-packages/django/db/backends/utils.py", line 64, in execute
return self.cursor.execute(sql, params)
File "/usr/local/lib/python3.5/site-packages/django/db/backends/mysql/base.py", line 124, in execute
return self.cursor.execute(query, args)
File "/usr/local/lib/python3.5/site-packages/MySQLdb/cursors.py", line 220, in execute
self.errorhandler(self, exc, value)
File "/usr/local/lib/python3.5/site-packages/MySQLdb/connections.py", line 36, in defaulterrorhandler
raise errorvalue
File "/usr/local/lib/python3.5/site-packages/MySQLdb/cursors.py", line 209, in execute
r = self._query(query)
File "/usr/local/lib/python3.5/site-packages/MySQLdb/cursors.py", line 371, in _query
rowcount = self._do_query(q)
File "/usr/local/lib/python3.5/site-packages/MySQLdb/cursors.py", line 335, in _do_query
db.query(q)
File "/usr/local/lib/python3.5/site-packages/MySQLdb/connections.py", line 280, in query
_mysql.connection.query(self, query)
_mysql_exceptions.ProgrammingError: (1146, "Table 'ralph_ng.transitions_transitionmodel' doesn't exist")
✪ vi4m Marcin Kliks
@vi4m
@brylor thanks for the docker fix ! :)
Bryan Taylor
@brylor
@vi4m You're welcome, thank you! Latest pull is working fine
Observation though: When creating a 'blade enclosure/parent' object I can't really see the 'blades/children' on the basic info page
I know someone is going to squawk about that :/
Bryan Taylor
@brylor
Also, it seems it would be useful to have generic objects attached to a component model?
Since I generally have the same spec stuff...
Bryan Taylor
@brylor
It seems I can assign back office assets and they show up in My Equipment but I can't do this with Data Center hardware :(
brylor @brylor sighs
Mateusz Kurek
@mkurek
@brylor about parent/children relation - we have this in mind and we'll work on this soon. And DataCenter hardware doesn't have user assigned (directly), that's why it's not visible in my equipment tab
✪ vi4m Marcin Kliks
@vi4m
@brylor you can see similar view as "my equipment", but from "Service" view
it would be nice to have "My Services" somewhere, anyway
Bryan Taylor
@brylor
Throwing this out there... http://kea.isc.org/wiki
host reservations can be stored in the JSON configuration file or MySQL (DHCPv4)
mysql ...
Bryan Taylor
@brylor
How can I get a data center object to span from front to back? I don't want to give the impression that is empty...
gatvo
@gatvo
Is there a way to hide/disable pages from the admin portal such as removing the back office tab from the menu or the business segment page from the settings tab?
✪ vi4m Marcin Kliks
@vi4m
Yes, through the permissions settings
Pete
@kasim1r
hy, anyone here?
✪ vi4m Marcin Kliks
@vi4m
yes
Pete
@kasim1r
great
i have an API question