These are chat archives for allegro/ralph

26th
Mar 2015
whoisearth
@whoisearth
Mar 26 2015 02:07
@vi4m yes I code
before I dig into trying postgres I'm attempting to get a successful scan. seems the screenshots are from an older version? I try to scan a linux server and I've put the user/password (root) in settings.py for ssh_user and it's failing with "ralph.scan.plugins.ssh_linux: Exception occured in plugin ssh_linux and address 10.77.1.50" seems all that works in a scan is software and dns_hostname"
Mateusz Kurek
@mkurek
Mar 26 2015 06:51
@whoisearth if you are running ralph in docker then it's probably failing because ralph rqworker is running on ralph account and ssh_linux (and snmp/autoscan and other plugins) requires ping to work properly - but on ralph account ping in python is not working because setuid rights for python executable were not configured. we're currently improving our docker configuration to work with ssh_linux and snmp out of the box.
✪ vi4m Marcin Kliks
@vi4m
Mar 26 2015 07:49
@whoisearth we have solution for this issue and will push new docker version
flashput
@flashput
Mar 26 2015 09:35
hello guys, I install docker version of ralph, where is the "autoscan" button, only quick scan founded
And ,@vi4m, when can I pull the new docker version?
✪ vi4m Marcin Kliks
@vi4m
Mar 26 2015 10:09
@flashput today/tommorow
@flashput do you own Data Center ?
;-)
flashput
@flashput
Mar 26 2015 11:04
yes , I install in a Data Center
Now I try another way , Install manually on my CentOS 6.6
but got a problem when ran "ralph makeconf"
pkg_resources.ContextualVersionConflict: (pytz 2013b0 (/home/ralph/lib/python2.7/site-packages), Requirement.parse('pytz>=2013.6')
flashput
@flashput
Mar 26 2015 11:14
I modify file /home/ralph/lib/python2.7/site-packages/ralph-2.1.0-py2.7.egg-info/requires.txt , change line pytz==2013b to pytz==2013.6,
ralph makeconf passed
✪ vi4m Marcin Kliks
@vi4m
Mar 26 2015 11:29
jest, it is the pytz requirement changed
flashput
@flashput
Mar 26 2015 11:31
manual installed version seems a little different from docker version
✪ vi4m Marcin Kliks
@vi4m
Mar 26 2015 11:31
yes, it is 6 months old, but if you clone repositories from develop you will get the never version
i will show you how to manually install all from sources
to get the fresh version
flashput
@flashput
Mar 26 2015 11:35
current version running OK
I will try develop version , I think
✪ vi4m Marcin Kliks
@vi4m
Mar 26 2015 11:36
flashput
@flashput
Mar 26 2015 11:38
OK, thanks
✪ vi4m Marcin Kliks
@vi4m
Mar 26 2015 11:38
and here is how to clone all sources from develop branch https://github.com/szok/ralph-docker/blob/feature/docker-config/os/build.sh
hope that helps
flashput
@flashput
Mar 26 2015 11:44
I will get familiar with current version firstly, and try develop version later
Asset module is not installed by default?
✪ vi4m Marcin Kliks
@vi4m
Mar 26 2015 11:51
docker = ralph + assets + scrooge
pip install ralph doesn't install assets from pypi
you will want to install 3 packages
because it makes sense to have all features
flashput
@flashput
Mar 26 2015 11:56
asset module is which I need most
✪ vi4m Marcin Kliks
@vi4m
Mar 26 2015 11:56
just install these 3 modules - no addition effort needed
flashput
@flashput
Mar 26 2015 12:03
after I installed ralph-beast , ralph stop working again.
✪ vi4m Marcin Kliks
@vi4m
Mar 26 2015 12:03
remove ralph-beast, it is something different
  1. Clone only these repositories from develop branch
install it in the proper order
for i in ralph_assets bob-ajax-selects django_bob ralph ralph_pricing ; do \
  • echo "$$i"; \
  • cd /home/ralph/sources/$$i; \
  • make install; \
  • done \
and remember to do everything in virtualenv environment created earlier
flashput
@flashput
Mar 26 2015 12:05
should I clean my virtualenv first?
✪ vi4m Marcin Kliks
@vi4m
Mar 26 2015 12:05
yes
flashput
@flashput
Mar 26 2015 12:07
how about the database, drop and recreate?
✪ vi4m Marcin Kliks
@vi4m
Mar 26 2015 12:08
yes
after install ralph you will need to run these commands
some of them (assume mysql is running)
flashput
@flashput
Mar 26 2015 12:11
flashput
@flashput
Mar 26 2015 12:17
pre-required packages will be downloaded automaticly?
✪ vi4m Marcin Kliks
@vi4m
Mar 26 2015 12:17
yes
after making make install it will download them
it is important to run make install in all repositories in the proper order
flashput
@flashput
Mar 26 2015 12:18
I will run your shell code
✪ vi4m Marcin Kliks
@vi4m
Mar 26 2015 12:19
yeah, just change the sources path if needed.
flashput
@flashput
Mar 26 2015 12:21
$$i? or $i
django-bob , not django_bob
flashput
@flashput
Mar 26 2015 12:45
django.db.utils.DatabaseError: (1071, 'Specified key was too long; max key length is 1000 bytes')
✪ vi4m Marcin Kliks
@vi4m
Mar 26 2015 12:45
just ignore it
flashput
@flashput
Mar 26 2015 12:45
error raised , program exited
✪ vi4m Marcin Kliks
@vi4m
Mar 26 2015 12:46
mysql?
flashput
@flashput
Mar 26 2015 12:46
yes
✪ vi4m Marcin Kliks
@vi4m
Mar 26 2015 12:46
could you paste the complete output?
flashput
@flashput
Mar 26 2015 12:46
Creating table records
Traceback (most recent call last):
File "/home/ralph/bin/ralph", line 9, in <module>
load_entry_point('ralph==2.2.0', 'console_scripts', 'ralph')()
File "/home/ralph/sources/ralph/src/ralph/main.py", line 56, in main
execute_from_command_line(sys.argv)
File "/home/ralph/lib/python2.7/site-packages/django/core/management/init.py", line 443, in execute_from_command_line
utility.execute()
File "/home/ralph/lib/python2.7/site-packages/django/core/management/init.py", line 382, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/home/ralph/lib/python2.7/site-packages/django/core/management/base.py", line 196, in run_from_argv
self.execute(args, **options.dict)
File "/home/ralph/lib/python2.7/site-packages/django/core/management/base.py", line 232, in execute
output = self.handle(
args, options)
File "/home/ralph/lib/python2.7/site-packages/django/core/management/base.py", line 371, in handle
return self.handle_noargs(
options)
File "/home/ralph/lib/python2.7/site-packages/south/management/commands/syncdb.py", line 90, in handle_noargs
syncdb.Command().execute(options)
File "/home/ralph/lib/python2.7/site-packages/django/core/management/base.py", line 232, in execute
output = self.handle(*args,
options)
File "/home/ralph/lib/python2.7/site-packages/django/core/management/base.py", line 371, in handle
return self.handle_noargs(**options)
File "/home/ralph/lib/python2.7/site-packages/django/core/management/commands/syncdb.py", line 102, in handle_noargs
cursor.execute(statement)
File "/home/ralph/lib/python2.7/site-packages/django/db/backends/mysql/base.py", line 114, in execute
return self.cursor.execute(query, args)
File "/home/ralph/lib/python2.7/site-packages/MySQLdb/cursors.py", line 174, in execute
self.errorhandler(self, exc, value)
File "/home/ralph/lib/python2.7/site-packages/MySQLdb/connections.py", line 36, in defaulterrorhandler
raise errorclass, errorvalue
django.db.utils.DatabaseError: (1071, 'Specified key was too long; max key length is 1000 bytes')
✪ vi4m Marcin Kliks
@vi4m
Mar 26 2015 12:47
which version of mysql ?
flashput
@flashput
Mar 26 2015 12:47
Server version: 5.1.73 Source distribution
✪ vi4m Marcin Kliks
@vi4m
Mar 26 2015 12:48
@mkurek knows something about that
flashput
@flashput
Mar 26 2015 12:48
mysql must be 5.5 ?
✪ vi4m Marcin Kliks
@vi4m
Mar 26 2015 12:48
as in docker
whoisearth
@whoisearth
Mar 26 2015 16:33
@vi4m thanks for the update! You guys work fast. Noticed that the docker install is using .deb packages from v10 of ubuntu is that the case? I'm working on loading in the postgres libraries so I can try it out.
flashput
@flashput
Mar 26 2015 17:13
when I ran init.sh, /home/ralph/additional-settings.py, /home/ralph/createsuperuser.py, /home/ralph/fixtures.py, these files did not exist
whoisearth
@whoisearth
Mar 26 2015 17:44
@vi4m same issue when running a scan with the docker install. I've updated settings with my root username/password for linux into SSH_USER and SSH_PASSWORD. when trying a scan on a linux server get the same error - ralph.scan.plugins.ssh_linux: Exception occured in plugin ssh_linux and address 10.77.1.51
whoisearth
@whoisearth
Mar 26 2015 18:35
trying an advanced setup so I can get deeper into the code but issues there too. I kept it like to like so it's an ubuntu 12.04 system. docs say pip 1.3/1.4 or 1.5 not mentioning that standard on 12.04 is 1.1 so I upgraded to newest (6). install went smoothly but trying to run "ralph makeconf" returns a traceback of Traceback (most recent call last):
File "/home/ralph/bin/ralph", line 5, in <module>
from pkg_resources import load_entry_point
File "/home/ralph/local/lib/python2.7/site-packages/pkgresources/_init.py", line 3038, in <module>
working_set = WorkingSet._build_master()
File "/home/ralph/local/lib/python2.7/site-packages/pkgresources/_init.py", line 615, in _build_master
ws.require(requires)
File "/home/ralph/local/lib/python2.7/site-packages/pkgresources/_init.py", line 921, in require
needed = self.resolve(parse_requirements(requirements))
File "/home/ralph/local/lib/python2.7/site-packages/pkgresources/_init.py", line 808, in resolve
raise DistributionNotFound(req)
pkg_resources.DistributionNotFound: distribute
whoisearth
@whoisearth
Mar 26 2015 19:04
currently trying a docker install on ubuntu 12.04 so it should be identical to how you guys are setting up will let you know if that brings success
whoisearth
@whoisearth
Mar 26 2015 19:16
no luck. docker install on ubuntu 12.04 gives same issue. can't quickscan another linux server