honeynet / beeswarm

Honeypot deployment made easy
GNU General Public License v3.0
236 stars 64 forks source link

Build fails on Ubuntu 12.04.5 #187

Closed jgedeon120 closed 10 years ago

jgedeon120 commented 10 years ago

First thanks for all the hard work that has been put into this. I wanted to test this out and tried to follow the easy instructions from the main page but I have been running into multiple issues. First the requirements.txt was reporting as missing. So from the git clone I moved them into build/beeswarm. This allowed me to get further. Then the following were attempted: pip install ez_setup apt-get install build-essential apt-get install python-dev Here is the pip.log.

/usr/bin/pip run on Tue Aug 26 18:16:30 2014
Downloading/unpacking beeswarm
  Running setup.py egg_info for package beeswarm
    running egg_info
    writing requirements to pip-egg-info/Beeswarm.egg-info/requires.txt
    writing pip-egg-info/Beeswarm.egg-info/PKG-INFO
    writing top-level names to pip-egg-info/Beeswarm.egg-info/top_level.txt
    writing dependency_links to pip-egg-info/Beeswarm.egg-info/dependency_links.txt
    writing requirements to pip-egg-info/Beeswarm.egg-info/requires.txt
    writing pip-egg-info/Beeswarm.egg-info/PKG-INFO
    writing top-level names to pip-egg-info/Beeswarm.egg-info/top_level.txt
    writing dependency_links to pip-egg-info/Beeswarm.egg-info/dependency_links.txt
    warning: manifest_maker: standard file '-c' not found

    reading manifest file 'pip-egg-info/Beeswarm.egg-info/SOURCES.txt'
    reading manifest template 'MANIFEST.in'
    writing manifest file 'pip-egg-info/Beeswarm.egg-info/SOURCES.txt'
Downloading/unpacking pyzmq>=14.1.1 (from beeswarm)
  Running setup.py egg_info for package pyzmq
    running egg_info
    writing pip-egg-info/pyzmq.egg-info/PKG-INFO
    writing top-level names to pip-egg-info/pyzmq.egg-info/top_level.txt
    writing dependency_links to pip-egg-info/pyzmq.egg-info/dependency_links.txt
    writing pip-egg-info/pyzmq.egg-info/PKG-INFO
    writing top-level names to pip-egg-info/pyzmq.egg-info/top_level.txt
    writing dependency_links to pip-egg-info/pyzmq.egg-info/dependency_links.txt
    warning: manifest_maker: standard file '-c' not found

    reading manifest file 'pip-egg-info/pyzmq.egg-info/SOURCES.txt'
    reading manifest template 'MANIFEST.in'
    no previously-included directories found matching 'docs/build'
    no previously-included directories found matching 'docs/gh-pages'
    warning: no previously-included files found matching 'bundled/zeromq/src/Makefile*'
    warning: no previously-included files found matching 'bundled/zeromq/src/platform.hpp'
    warning: no previously-included files found matching 'setup.cfg'
    warning: no previously-included files found matching 'zmq/libzmq*'
    warning: no previously-included files matching '__pycache__/*' found anywhere in distribution
    warning: no previously-included files matching '.deps/*' found anywhere in distribution
    warning: no previously-included files matching '*.so' found anywhere in distribution
    warning: no previously-included files matching '*.pyd' found anywhere in distribution
    warning: no previously-included files matching '.git*' found anywhere in distribution
    warning: no previously-included files matching '.DS_Store' found anywhere in distribution
    warning: no previously-included files matching '.mailmap' found anywhere in distribution
    warning: no previously-included files matching 'Makefile.am' found anywhere in distribution
    warning: no previously-included files matching 'Makefile.in' found anywhere in distribution
    writing manifest file 'pip-egg-info/pyzmq.egg-info/SOURCES.txt'
  Source in ./build/pyzmq has version 14.3.1, which satisfies requirement pyzmq>=14.1.1 (from beeswarm)
Downloading/unpacking fs (from beeswarm)
  Running setup.py egg_info for package fs
    running egg_info
    writing requirements to pip-egg-info/fs.egg-info/requires.txt
    writing pip-egg-info/fs.egg-info/PKG-INFO
    writing top-level names to pip-egg-info/fs.egg-info/top_level.txt
    writing dependency_links to pip-egg-info/fs.egg-info/dependency_links.txt
    writing requirements to pip-egg-info/fs.egg-info/requires.txt
    writing pip-egg-info/fs.egg-info/PKG-INFO
    writing top-level names to pip-egg-info/fs.egg-info/top_level.txt
    writing dependency_links to pip-egg-info/fs.egg-info/dependency_links.txt
    warning: manifest_maker: standard file '-c' not found

    reading manifest file 'pip-egg-info/fs.egg-info/SOURCES.txt'
    reading manifest template 'MANIFEST.in'
    writing manifest file 'pip-egg-info/fs.egg-info/SOURCES.txt'
  Source in ./build/fs has version 0.5.0, which satisfies requirement fs (from beeswarm)
Downloading/unpacking Crypto (from beeswarm)
  Running setup.py egg_info for package Crypto
    running egg_info
    writing requirements to pip-egg-info/crypto.egg-info/requires.txt
    writing pip-egg-info/crypto.egg-info/PKG-INFO
    writing top-level names to pip-egg-info/crypto.egg-info/top_level.txt
    writing dependency_links to pip-egg-info/crypto.egg-info/dependency_links.txt
    writing requirements to pip-egg-info/crypto.egg-info/requires.txt
    writing pip-egg-info/crypto.egg-info/PKG-INFO
    writing top-level names to pip-egg-info/crypto.egg-info/top_level.txt
    writing dependency_links to pip-egg-info/crypto.egg-info/dependency_links.txt
    warning: manifest_maker: standard file '-c' not found

    reading manifest file 'pip-egg-info/crypto.egg-info/SOURCES.txt'
    writing manifest file 'pip-egg-info/crypto.egg-info/SOURCES.txt'
  Source in ./build/Crypto has version 1.1.0, which satisfies requirement Crypto (from beeswarm)
Downloading/unpacking cssselect (from beeswarm)
  Running setup.py egg_info for package cssselect
    running egg_info
    writing pip-egg-info/cssselect.egg-info/PKG-INFO
    writing top-level names to pip-egg-info/cssselect.egg-info/top_level.txt
    writing dependency_links to pip-egg-info/cssselect.egg-info/dependency_links.txt
    writing pip-egg-info/cssselect.egg-info/PKG-INFO
    writing top-level names to pip-egg-info/cssselect.egg-info/top_level.txt
    writing dependency_links to pip-egg-info/cssselect.egg-info/dependency_links.txt
    warning: manifest_maker: standard file '-c' not found

    reading manifest file 'pip-egg-info/cssselect.egg-info/SOURCES.txt'
    reading manifest template 'MANIFEST.in'
    no previously-included directories found matching 'docs/_build'
    writing manifest file 'pip-egg-info/cssselect.egg-info/SOURCES.txt'
  Source in ./build/cssselect has version 0.9.1, which satisfies requirement cssselect (from beeswarm)
Downloading/unpacking nose (from beeswarm)
  Running setup.py egg_info for package nose
    running egg_info
    writing pip-egg-info/nose.egg-info/PKG-INFO
    writing top-level names to pip-egg-info/nose.egg-info/top_level.txt
    writing dependency_links to pip-egg-info/nose.egg-info/dependency_links.txt
    writing entry points to pip-egg-info/nose.egg-info/entry_points.txt
    writing pip-egg-info/nose.egg-info/PKG-INFO
    writing top-level names to pip-egg-info/nose.egg-info/top_level.txt
    writing dependency_links to pip-egg-info/nose.egg-info/dependency_links.txt
    writing entry points to pip-egg-info/nose.egg-info/entry_points.txt
    warning: manifest_maker: standard file '-c' not found

    reading manifest file 'pip-egg-info/nose.egg-info/SOURCES.txt'
    reading manifest template 'MANIFEST.in'
    no previously-included directories found matching 'doc/.build'
    writing manifest file 'pip-egg-info/nose.egg-info/SOURCES.txt'
  Source in ./build/nose has version 1.3.4, which satisfies requirement nose (from beeswarm)
Downloading/unpacking gevent>=1.0 (from beeswarm)
  Running setup.py egg_info for package gevent
    running egg_info
    writing requirements to pip-egg-info/gevent.egg-info/requires.txt
    writing pip-egg-info/gevent.egg-info/PKG-INFO
    writing top-level names to pip-egg-info/gevent.egg-info/top_level.txt
    writing dependency_links to pip-egg-info/gevent.egg-info/dependency_links.txt
    writing requirements to pip-egg-info/gevent.egg-info/requires.txt
    writing pip-egg-info/gevent.egg-info/PKG-INFO
    writing top-level names to pip-egg-info/gevent.egg-info/top_level.txt
    writing dependency_links to pip-egg-info/gevent.egg-info/dependency_links.txt
    warning: manifest_maker: standard file '-c' not found

    reading manifest file 'pip-egg-info/gevent.egg-info/SOURCES.txt'
    reading manifest template 'MANIFEST.in'
    writing manifest file 'pip-egg-info/gevent.egg-info/SOURCES.txt'
  Source in ./build/gevent has version 1.0.1, which satisfies requirement gevent>=1.0 (from beeswarm)
Downloading/unpacking requests (from beeswarm)
  Running setup.py egg_info for package requests
    running egg_info
    writing pip-egg-info/requests.egg-info/PKG-INFO
    writing top-level names to pip-egg-info/requests.egg-info/top_level.txt
    writing dependency_links to pip-egg-info/requests.egg-info/dependency_links.txt
    writing pip-egg-info/requests.egg-info/PKG-INFO
    writing top-level names to pip-egg-info/requests.egg-info/top_level.txt
    writing dependency_links to pip-egg-info/requests.egg-info/dependency_links.txt
    warning: manifest_maker: standard file '-c' not found

    reading manifest file 'pip-egg-info/requests.egg-info/SOURCES.txt'
    reading manifest template 'MANIFEST.in'
    writing manifest file 'pip-egg-info/requests.egg-info/SOURCES.txt'
  Source in ./build/requests has version 2.3.0, which satisfies requirement requests (from beeswarm)
Downloading/unpacking telnetsrv (from beeswarm)
  Running setup.py egg_info for package telnetsrv
    running egg_info
    writing pip-egg-info/telnetsrv.egg-info/PKG-INFO
    writing top-level names to pip-egg-info/telnetsrv.egg-info/top_level.txt
    writing dependency_links to pip-egg-info/telnetsrv.egg-info/dependency_links.txt
    writing pip-egg-info/telnetsrv.egg-info/PKG-INFO
    writing top-level names to pip-egg-info/telnetsrv.egg-info/top_level.txt
    writing dependency_links to pip-egg-info/telnetsrv.egg-info/dependency_links.txt
    warning: manifest_maker: standard file '-c' not found

    reading manifest file 'pip-egg-info/telnetsrv.egg-info/SOURCES.txt'
    writing manifest file 'pip-egg-info/telnetsrv.egg-info/SOURCES.txt'
  Source in ./build/telnetsrv has version 0.4, which satisfies requirement telnetsrv (from beeswarm)
Downloading/unpacking paramiko (from beeswarm)
  Running setup.py egg_info for package paramiko
    running egg_info
    writing requirements to pip-egg-info/paramiko.egg-info/requires.txt
    writing pip-egg-info/paramiko.egg-info/PKG-INFO
    writing top-level names to pip-egg-info/paramiko.egg-info/top_level.txt
    writing dependency_links to pip-egg-info/paramiko.egg-info/dependency_links.txt
    writing requirements to pip-egg-info/paramiko.egg-info/requires.txt
    writing pip-egg-info/paramiko.egg-info/PKG-INFO
    writing top-level names to pip-egg-info/paramiko.egg-info/top_level.txt
    writing dependency_links to pip-egg-info/paramiko.egg-info/dependency_links.txt
    warning: manifest_maker: standard file '-c' not found

    reading manifest file 'pip-egg-info/paramiko.egg-info/SOURCES.txt'
    reading manifest template 'MANIFEST.in'
    writing manifest file 'pip-egg-info/paramiko.egg-info/SOURCES.txt'
  Source in ./build/paramiko has version 1.14.1, which satisfies requirement paramiko (from beeswarm)
Downloading/unpacking ntplib (from beeswarm)
  Running setup.py egg_info for package ntplib
    running egg_info
    writing pip-egg-info/ntplib.egg-info/PKG-INFO
    writing top-level names to pip-egg-info/ntplib.egg-info/top_level.txt
    writing dependency_links to pip-egg-info/ntplib.egg-info/dependency_links.txt
    writing pip-egg-info/ntplib.egg-info/PKG-INFO
    writing top-level names to pip-egg-info/ntplib.egg-info/top_level.txt
    writing dependency_links to pip-egg-info/ntplib.egg-info/dependency_links.txt
    warning: manifest_maker: standard file '-c' not found

    reading manifest file 'pip-egg-info/ntplib.egg-info/SOURCES.txt'
    writing manifest file 'pip-egg-info/ntplib.egg-info/SOURCES.txt'
  Source in ./build/ntplib has version 0.3.2, which satisfies requirement ntplib (from beeswarm)
Downloading/unpacking pysendfile (from beeswarm)
  Running setup.py egg_info for package pysendfile
    running egg_info
    writing pip-egg-info/pysendfile.egg-info/PKG-INFO
    writing top-level names to pip-egg-info/pysendfile.egg-info/top_level.txt
    writing dependency_links to pip-egg-info/pysendfile.egg-info/dependency_links.txt
    writing pip-egg-info/pysendfile.egg-info/PKG-INFO
    writing top-level names to pip-egg-info/pysendfile.egg-info/top_level.txt
    writing dependency_links to pip-egg-info/pysendfile.egg-info/dependency_links.txt
    warning: manifest_maker: standard file '-c' not found

    reading manifest file 'pip-egg-info/pysendfile.egg-info/SOURCES.txt'
    reading manifest template 'MANIFEST.in'
    writing manifest file 'pip-egg-info/pysendfile.egg-info/SOURCES.txt'
  Source in ./build/pysendfile has version 2.0.1, which satisfies requirement pysendfile (from beeswarm)
Downloading/unpacking pyDes (from beeswarm)
  Running setup.py egg_info for package pyDes
    running egg_info
    writing pip-egg-info/pyDes.egg-info/PKG-INFO
    writing top-level names to pip-egg-info/pyDes.egg-info/top_level.txt
    writing dependency_links to pip-egg-info/pyDes.egg-info/dependency_links.txt
    writing pip-egg-info/pyDes.egg-info/PKG-INFO
    writing top-level names to pip-egg-info/pyDes.egg-info/top_level.txt
    writing dependency_links to pip-egg-info/pyDes.egg-info/dependency_links.txt
    warning: manifest_maker: standard file '-c' not found

    reading manifest file 'pip-egg-info/pyDes.egg-info/SOURCES.txt'
    writing manifest file 'pip-egg-info/pyDes.egg-info/SOURCES.txt'
  Source in ./build/pyDes has version 2.0.1, which satisfies requirement pyDes (from beeswarm)
Downloading/unpacking flask>=0.10.0 (from beeswarm)
  Running setup.py egg_info for package flask
    running egg_info
    writing requirements to pip-egg-info/Flask.egg-info/requires.txt
    writing pip-egg-info/Flask.egg-info/PKG-INFO
    writing top-level names to pip-egg-info/Flask.egg-info/top_level.txt
    writing dependency_links to pip-egg-info/Flask.egg-info/dependency_links.txt
    writing requirements to pip-egg-info/Flask.egg-info/requires.txt
    writing pip-egg-info/Flask.egg-info/PKG-INFO
    writing top-level names to pip-egg-info/Flask.egg-info/top_level.txt
    writing dependency_links to pip-egg-info/Flask.egg-info/dependency_links.txt
    warning: manifest_maker: standard file '-c' not found

    reading manifest file 'pip-egg-info/Flask.egg-info/SOURCES.txt'
    reading manifest template 'MANIFEST.in'
    warning: no files found matching '*' under directory 'tests'
    warning: no previously-included files matching '*.pyc' found under directory 'docs'
    warning: no previously-included files matching '*.pyo' found under directory 'docs'
    warning: no previously-included files matching '*.pyc' found under directory 'tests'
    warning: no previously-included files matching '*.pyo' found under directory 'tests'
    warning: no previously-included files matching '*.pyc' found under directory 'examples'
    warning: no previously-included files matching '*.pyo' found under directory 'examples'
    no previously-included directories found matching 'docs/_build'
    no previously-included directories found matching 'docs/_themes/.git'
    writing manifest file 'pip-egg-info/Flask.egg-info/SOURCES.txt'
  Source in ./build/flask has version 0.10.1, which satisfies requirement flask>=0.10.0 (from beeswarm)
Downloading/unpacking flask-login (from beeswarm)
  Running setup.py egg_info for package flask-login
    running egg_info
    writing requirements to pip-egg-info/Flask_Login.egg-info/requires.txt
    writing pip-egg-info/Flask_Login.egg-info/PKG-INFO
    writing top-level names to pip-egg-info/Flask_Login.egg-info/top_level.txt
    writing dependency_links to pip-egg-info/Flask_Login.egg-info/dependency_links.txt
    writing requirements to pip-egg-info/Flask_Login.egg-info/requires.txt
    writing pip-egg-info/Flask_Login.egg-info/PKG-INFO
    writing top-level names to pip-egg-info/Flask_Login.egg-info/top_level.txt
    writing dependency_links to pip-egg-info/Flask_Login.egg-info/dependency_links.txt
    warning: manifest_maker: standard file '-c' not found

    reading manifest file 'pip-egg-info/Flask_Login.egg-info/SOURCES.txt'
    reading manifest template 'MANIFEST.in'
    writing manifest file 'pip-egg-info/Flask_Login.egg-info/SOURCES.txt'
  Source in ./build/flask-login has version 0.2.11, which satisfies requirement flask-login (from beeswarm)
Downloading/unpacking sqlalchemy>=0.9.1 (from beeswarm)
  Running setup.py egg_info for package sqlalchemy
    running egg_info
    writing pip-egg-info/SQLAlchemy.egg-info/PKG-INFO
    writing top-level names to pip-egg-info/SQLAlchemy.egg-info/top_level.txt
    writing dependency_links to pip-egg-info/SQLAlchemy.egg-info/dependency_links.txt
    writing pip-egg-info/SQLAlchemy.egg-info/PKG-INFO
    writing top-level names to pip-egg-info/SQLAlchemy.egg-info/top_level.txt
    writing dependency_links to pip-egg-info/SQLAlchemy.egg-info/dependency_links.txt
    warning: manifest_maker: standard file '-c' not found

    reading manifest file 'pip-egg-info/SQLAlchemy.egg-info/SOURCES.txt'
    reading manifest template 'MANIFEST.in'
    warning: no files found matching '*.jpg' under directory 'doc'
    warning: no files found matching 'distribute_setup.py'
    warning: no files found matching 'sa2to3.py'
    warning: no files found matching 'ez_setup.py'
    no previously-included directories found matching 'doc/build/output'
    writing manifest file 'pip-egg-info/SQLAlchemy.egg-info/SOURCES.txt'
  Source in ./build/sqlalchemy has version 0.9.7, which satisfies requirement sqlalchemy>=0.9.1 (from beeswarm)
Downloading/unpacking pyOpenSSL (from beeswarm)
  Running setup.py egg_info for package pyOpenSSL
    running egg_info
    writing requirements to pip-egg-info/pyOpenSSL.egg-info/requires.txt
    writing pip-egg-info/pyOpenSSL.egg-info/PKG-INFO
    writing top-level names to pip-egg-info/pyOpenSSL.egg-info/top_level.txt
    writing dependency_links to pip-egg-info/pyOpenSSL.egg-info/dependency_links.txt
    writing requirements to pip-egg-info/pyOpenSSL.egg-info/requires.txt
    writing pip-egg-info/pyOpenSSL.egg-info/PKG-INFO
    writing top-level names to pip-egg-info/pyOpenSSL.egg-info/top_level.txt
    writing dependency_links to pip-egg-info/pyOpenSSL.egg-info/dependency_links.txt
    warning: manifest_maker: standard file '-c' not found

    reading manifest file 'pip-egg-info/pyOpenSSL.egg-info/SOURCES.txt'
    reading manifest template 'MANIFEST.in'
    warning: no previously-included files matching '*.pyc' found anywhere in distribution
    no previously-included directories found matching 'doc/_build'
    writing manifest file 'pip-egg-info/pyOpenSSL.egg-info/SOURCES.txt'
  Source in ./build/pyOpenSSL has version 0.14, which satisfies requirement pyOpenSSL (from beeswarm)
Downloading/unpacking lxml (from beeswarm)
  Running setup.py egg_info for package lxml
    /usr/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'bugtrack_url'
      warnings.warn(msg)
    Building lxml version 3.3.5.
    Building without Cython.
    ERROR: /bin/sh: 1: xslt-config: not found

    ** make sure the development packages of libxml2 and libxslt are installed **

    Using build configuration of libxslt
    running egg_info
    writing requirements to pip-egg-info/lxml.egg-info/requires.txt
    writing pip-egg-info/lxml.egg-info/PKG-INFO
    writing top-level names to pip-egg-info/lxml.egg-info/top_level.txt
    writing dependency_links to pip-egg-info/lxml.egg-info/dependency_links.txt
    writing requirements to pip-egg-info/lxml.egg-info/requires.txt
    writing pip-egg-info/lxml.egg-info/PKG-INFO
    writing top-level names to pip-egg-info/lxml.egg-info/top_level.txt
    writing dependency_links to pip-egg-info/lxml.egg-info/dependency_links.txt
    warning: manifest_maker: standard file '-c' not found

    reading manifest file 'pip-egg-info/lxml.egg-info/SOURCES.txt'
    reading manifest template 'MANIFEST.in'
    writing manifest file 'pip-egg-info/lxml.egg-info/SOURCES.txt'
  Source in ./build/lxml has version 3.3.5, which satisfies requirement lxml (from beeswarm)
Downloading/unpacking flask-wtf>=0.9.0 (from beeswarm)
  Running setup.py egg_info for package flask-wtf
    running egg_info
    writing requirements to pip-egg-info/Flask_WTF.egg-info/requires.txt
    writing pip-egg-info/Flask_WTF.egg-info/PKG-INFO
    writing top-level names to pip-egg-info/Flask_WTF.egg-info/top_level.txt
    writing dependency_links to pip-egg-info/Flask_WTF.egg-info/dependency_links.txt
    writing requirements to pip-egg-info/Flask_WTF.egg-info/requires.txt
    writing pip-egg-info/Flask_WTF.egg-info/PKG-INFO
    writing top-level names to pip-egg-info/Flask_WTF.egg-info/top_level.txt
    writing dependency_links to pip-egg-info/Flask_WTF.egg-info/dependency_links.txt
    warning: manifest_maker: standard file '-c' not found

    reading manifest file 'pip-egg-info/Flask_WTF.egg-info/SOURCES.txt'
    reading manifest template 'MANIFEST.in'
    warning: no previously-included files matching '*.pyc' found under directory 'tests'
    warning: no previously-included files matching '*.pyc' found under directory 'tests'
    warning: no previously-included files matching '*.pyc' found under directory 'docs'
    warning: no previously-included files matching '*.pyo' found under directory 'docs'
    no previously-included directories found matching 'docs/_build'
    no previously-included directories found matching 'docs/_themes/.git'
    writing manifest file 'pip-egg-info/Flask_WTF.egg-info/SOURCES.txt'
  Source in ./build/flask-wtf has version 0.10.1, which satisfies requirement flask-wtf>=0.9.0 (from beeswarm)
Downloading/unpacking mock (from beeswarm)
  Running setup.py egg_info for package mock
    running egg_info
    writing pip-egg-info/mock.egg-info/PKG-INFO
    writing top-level names to pip-egg-info/mock.egg-info/top_level.txt
    writing dependency_links to pip-egg-info/mock.egg-info/dependency_links.txt
    writing pip-egg-info/mock.egg-info/PKG-INFO
    writing top-level names to pip-egg-info/mock.egg-info/top_level.txt
    writing dependency_links to pip-egg-info/mock.egg-info/dependency_links.txt
    warning: manifest_maker: standard file '-c' not found

    reading manifest file 'pip-egg-info/mock.egg-info/SOURCES.txt'
    reading manifest template 'MANIFEST.in'
    warning: no files found matching '*.png' under directory 'docs'
    warning: no files found matching '*.css' under directory 'docs'
    warning: no files found matching '*.html' under directory 'docs'
    warning: no files found matching '*.js' under directory 'docs'
    writing manifest file 'pip-egg-info/mock.egg-info/SOURCES.txt'
  Source in ./build/mock has version 1.0.1, which satisfies requirement mock (from beeswarm)
Downloading/unpacking enum (from beeswarm)
  Running setup.py egg_info for package enum
    running egg_info
    writing requirements to pip-egg-info/enum.egg-info/requires.txt
    writing pip-egg-info/enum.egg-info/PKG-INFO
    writing top-level names to pip-egg-info/enum.egg-info/top_level.txt
    writing dependency_links to pip-egg-info/enum.egg-info/dependency_links.txt
    writing requirements to pip-egg-info/enum.egg-info/requires.txt
    writing pip-egg-info/enum.egg-info/PKG-INFO
    writing top-level names to pip-egg-info/enum.egg-info/top_level.txt
    writing dependency_links to pip-egg-info/enum.egg-info/dependency_links.txt
    warning: manifest_maker: standard file '-c' not found

    reading manifest file 'pip-egg-info/enum.egg-info/SOURCES.txt'
    reading manifest template 'MANIFEST.in'
    writing manifest file 'pip-egg-info/enum.egg-info/SOURCES.txt'
  Source in ./build/enum has version 0.4.4, which satisfies requirement enum (from beeswarm)
Downloading/unpacking netifaces (from beeswarm)
  Running setup.py egg_info for package netifaces
    running egg_info
    writing pip-egg-info/netifaces.egg-info/PKG-INFO
    writing top-level names to pip-egg-info/netifaces.egg-info/top_level.txt
    writing dependency_links to pip-egg-info/netifaces.egg-info/dependency_links.txt
    writing pip-egg-info/netifaces.egg-info/PKG-INFO
    writing top-level names to pip-egg-info/netifaces.egg-info/top_level.txt
    writing dependency_links to pip-egg-info/netifaces.egg-info/dependency_links.txt
    warning: manifest_maker: standard file '-c' not found

    reading manifest file 'pip-egg-info/netifaces.egg-info/SOURCES.txt'
    writing manifest file 'pip-egg-info/netifaces.egg-info/SOURCES.txt'
  Source in ./build/netifaces has version 0.10.4, which satisfies requirement netifaces (from beeswarm)
Requirement already satisfied (use --upgrade to upgrade): setuptools in /usr/local/lib/python2.7/dist-packages/setuptools-2.2-py2.7.egg (from fs->beeswarm)
Downloading/unpacking six (from fs->beeswarm)
  Running setup.py egg_info for package six
    running egg_info
    writing pip-egg-info/six.egg-info/PKG-INFO
    writing top-level names to pip-egg-info/six.egg-info/top_level.txt
    writing dependency_links to pip-egg-info/six.egg-info/dependency_links.txt
    writing pip-egg-info/six.egg-info/PKG-INFO
    writing top-level names to pip-egg-info/six.egg-info/top_level.txt
    writing dependency_links to pip-egg-info/six.egg-info/dependency_links.txt
    warning: manifest_maker: standard file '-c' not found

    reading manifest file 'pip-egg-info/six.egg-info/SOURCES.txt'
    reading manifest template 'MANIFEST.in'
    no previously-included directories found matching 'documentation/_build'
    writing manifest file 'pip-egg-info/six.egg-info/SOURCES.txt'
  Source in ./build/six has version 1.7.3, which satisfies requirement six (from fs->beeswarm)
Downloading/unpacking rsa (from Crypto->beeswarm)
  Running setup.py egg_info for package rsa
    running egg_info
    writing requirements to pip-egg-info/rsa.egg-info/requires.txt
    writing pip-egg-info/rsa.egg-info/PKG-INFO
    writing top-level names to pip-egg-info/rsa.egg-info/top_level.txt
    writing dependency_links to pip-egg-info/rsa.egg-info/dependency_links.txt
    writing entry points to pip-egg-info/rsa.egg-info/entry_points.txt
    writing requirements to pip-egg-info/rsa.egg-info/requires.txt
    writing pip-egg-info/rsa.egg-info/PKG-INFO
    writing top-level names to pip-egg-info/rsa.egg-info/top_level.txt
    writing dependency_links to pip-egg-info/rsa.egg-info/dependency_links.txt
    writing entry points to pip-egg-info/rsa.egg-info/entry_points.txt
    warning: manifest_maker: standard file '-c' not found

    reading manifest file 'pip-egg-info/rsa.egg-info/SOURCES.txt'
    reading manifest template 'MANIFEST.in'
    warning: no files found matching 'README'
    writing manifest file 'pip-egg-info/rsa.egg-info/SOURCES.txt'
  Source in ./build/rsa has version 3.1.4, which satisfies requirement rsa (from Crypto->beeswarm)
Downloading/unpacking greenlet (from gevent>=1.0->beeswarm)
  Running setup.py egg_info for package greenlet
    running egg_info
    writing pip-egg-info/greenlet.egg-info/PKG-INFO
    writing top-level names to pip-egg-info/greenlet.egg-info/top_level.txt
    writing dependency_links to pip-egg-info/greenlet.egg-info/dependency_links.txt
    writing pip-egg-info/greenlet.egg-info/PKG-INFO
    writing top-level names to pip-egg-info/greenlet.egg-info/top_level.txt
    writing dependency_links to pip-egg-info/greenlet.egg-info/dependency_links.txt
    warning: manifest_maker: standard file '-c' not found

    reading manifest file 'pip-egg-info/greenlet.egg-info/SOURCES.txt'
    reading manifest template 'MANIFEST.in'
    writing manifest file 'pip-egg-info/greenlet.egg-info/SOURCES.txt'
  Source in ./build/greenlet has version 0.4.3, which satisfies requirement greenlet (from gevent>=1.0->beeswarm)
Downloading/unpacking pycrypto>=2.1,!=2.4 (from paramiko->beeswarm)
  Running setup.py egg_info for package pycrypto
    running egg_info
    writing pip-egg-info/pycrypto.egg-info/PKG-INFO
    writing top-level names to pip-egg-info/pycrypto.egg-info/top_level.txt
    writing dependency_links to pip-egg-info/pycrypto.egg-info/dependency_links.txt
    writing pip-egg-info/pycrypto.egg-info/PKG-INFO
    writing top-level names to pip-egg-info/pycrypto.egg-info/top_level.txt
    writing dependency_links to pip-egg-info/pycrypto.egg-info/dependency_links.txt
    warning: manifest_maker: standard file '-c' not found

    reading manifest file 'pip-egg-info/pycrypto.egg-info/SOURCES.txt'
    reading manifest template 'MANIFEST.in'
    writing manifest file 'pip-egg-info/pycrypto.egg-info/SOURCES.txt'
  Source in ./build/pycrypto has version 2.6.1, which satisfies requirement pycrypto>=2.1,!=2.4 (from paramiko->beeswarm)
Downloading/unpacking ecdsa (from paramiko->beeswarm)
  Running setup.py egg_info for package ecdsa
    running egg_info
    writing pip-egg-info/ecdsa.egg-info/PKG-INFO
    writing top-level names to pip-egg-info/ecdsa.egg-info/top_level.txt
    writing dependency_links to pip-egg-info/ecdsa.egg-info/dependency_links.txt
    writing pip-egg-info/ecdsa.egg-info/PKG-INFO
    writing top-level names to pip-egg-info/ecdsa.egg-info/top_level.txt
    writing dependency_links to pip-egg-info/ecdsa.egg-info/dependency_links.txt
    warning: manifest_maker: standard file '-c' not found

    reading manifest file 'pip-egg-info/ecdsa.egg-info/SOURCES.txt'
    reading manifest template 'MANIFEST.in'
    writing manifest file 'pip-egg-info/ecdsa.egg-info/SOURCES.txt'
  Source in ./build/ecdsa has version 0.11, which satisfies requirement ecdsa (from paramiko->beeswarm)
Downloading/unpacking Werkzeug>=0.7 (from flask>=0.10.0->beeswarm)
  Running setup.py egg_info for package Werkzeug
    running egg_info
    writing pip-egg-info/Werkzeug.egg-info/PKG-INFO
    writing top-level names to pip-egg-info/Werkzeug.egg-info/top_level.txt
    writing dependency_links to pip-egg-info/Werkzeug.egg-info/dependency_links.txt
    writing pip-egg-info/Werkzeug.egg-info/PKG-INFO
    writing top-level names to pip-egg-info/Werkzeug.egg-info/top_level.txt
    writing dependency_links to pip-egg-info/Werkzeug.egg-info/dependency_links.txt
    warning: manifest_maker: standard file '-c' not found

    reading manifest file 'pip-egg-info/Werkzeug.egg-info/SOURCES.txt'
    reading manifest template 'MANIFEST.in'
    warning: no files found matching '*' under directory 'werkzeug/debug/templates'
    warning: no files found matching '*' under directory 'tests'
    warning: no previously-included files matching '*.pyc' found under directory 'docs'
    warning: no previously-included files matching '*.pyo' found under directory 'docs'
    warning: no previously-included files matching '*.pyc' found under directory 'tests'
    warning: no previously-included files matching '*.pyo' found under directory 'tests'
    warning: no previously-included files matching '*.pyc' found under directory 'examples'
    warning: no previously-included files matching '*.pyo' found under directory 'examples'
    no previously-included directories found matching 'docs/_build'
    writing manifest file 'pip-egg-info/Werkzeug.egg-info/SOURCES.txt'
  Source in ./build/Werkzeug has version 0.9.6, which satisfies requirement Werkzeug>=0.7 (from flask>=0.10.0->beeswarm)
Downloading/unpacking Jinja2>=2.4 (from flask>=0.10.0->beeswarm)
  Running setup.py egg_info for package Jinja2
    running egg_info
    writing requirements to pip-egg-info/Jinja2.egg-info/requires.txt
    writing pip-egg-info/Jinja2.egg-info/PKG-INFO
    writing top-level names to pip-egg-info/Jinja2.egg-info/top_level.txt
    writing dependency_links to pip-egg-info/Jinja2.egg-info/dependency_links.txt
    writing entry points to pip-egg-info/Jinja2.egg-info/entry_points.txt
    writing requirements to pip-egg-info/Jinja2.egg-info/requires.txt
    writing pip-egg-info/Jinja2.egg-info/PKG-INFO
    writing top-level names to pip-egg-info/Jinja2.egg-info/top_level.txt
    writing dependency_links to pip-egg-info/Jinja2.egg-info/dependency_links.txt
    writing entry points to pip-egg-info/Jinja2.egg-info/entry_points.txt
    warning: manifest_maker: standard file '-c' not found

    reading manifest file 'pip-egg-info/Jinja2.egg-info/SOURCES.txt'
    reading manifest template 'MANIFEST.in'
    warning: no files found matching '*' under directory 'custom_fixers'
    warning: no previously-included files matching '*' found under directory 'docs/_build'
    warning: no previously-included files matching '*.pyc' found under directory 'jinja2'
    warning: no previously-included files matching '*.pyc' found under directory 'docs'
    warning: no previously-included files matching '*.pyo' found under directory 'jinja2'
    warning: no previously-included files matching '*.pyo' found under directory 'docs'
    writing manifest file 'pip-egg-info/Jinja2.egg-info/SOURCES.txt'
  Source in ./build/Jinja2 has version 2.7.3, which satisfies requirement Jinja2>=2.4 (from flask>=0.10.0->beeswarm)
Downloading/unpacking itsdangerous>=0.21 (from flask>=0.10.0->beeswarm)
  Running setup.py egg_info for package itsdangerous
    running egg_info
    writing pip-egg-info/itsdangerous.egg-info/PKG-INFO
    writing top-level names to pip-egg-info/itsdangerous.egg-info/top_level.txt
    writing dependency_links to pip-egg-info/itsdangerous.egg-info/dependency_links.txt
    writing pip-egg-info/itsdangerous.egg-info/PKG-INFO
    writing top-level names to pip-egg-info/itsdangerous.egg-info/top_level.txt
    writing dependency_links to pip-egg-info/itsdangerous.egg-info/dependency_links.txt
    warning: manifest_maker: standard file '-c' not found

    reading manifest file 'pip-egg-info/itsdangerous.egg-info/SOURCES.txt'
    reading manifest template 'MANIFEST.in'
    warning: no previously-included files matching '*' found under directory 'docs/_build'
    writing manifest file 'pip-egg-info/itsdangerous.egg-info/SOURCES.txt'
  Source in ./build/itsdangerous has version 0.24, which satisfies requirement itsdangerous>=0.21 (from flask>=0.10.0->beeswarm)
Downloading/unpacking cryptography>=0.2.1 (from pyOpenSSL->beeswarm)
  Running setup.py egg_info for package cryptography
    c/_cffi_backend.c:13:17: fatal error: ffi.h: No such file or directory
    compilation terminated.
    Traceback (most recent call last):
      File "<string>", line 14, in <module>
      File "/root/build/cryptography/setup.py", line 174, in <module>
        "test": PyTest,
      File "/usr/lib/python2.7/distutils/core.py", line 112, in setup
        _setup_distribution = dist = klass(attrs)
      File "build/bdist.linux-x86_64/egg/setuptools/dist.py", line 239, in __init__
      File "build/bdist.linux-x86_64/egg/setuptools/dist.py", line 264, in fetch_build_eggs
      File "build/bdist.linux-x86_64/egg/pkg_resources.py", line 580, in resolve
        #raise DistributionNotFound(msg % req)
      File "build/bdist.linux-x86_64/egg/pkg_resources.py", line 818, in best_match
        for dist in self[req.key]:
      File "build/bdist.linux-x86_64/egg/pkg_resources.py", line 830, in obtain
        to attempt other ways of obtaining a distribution before falling back
      File "build/bdist.linux-x86_64/egg/setuptools/dist.py", line 314, in fetch_build_egg
      File "build/bdist.linux-x86_64/egg/setuptools/command/easy_install.py", line 593, in easy_install

      File "build/bdist.linux-x86_64/egg/setuptools/command/easy_install.py", line 623, in install_item

      File "build/bdist.linux-x86_64/egg/setuptools/command/easy_install.py", line 809, in install_eggs

      File "build/bdist.linux-x86_64/egg/setuptools/command/easy_install.py", line 1015, in build_and_install

      File "build/bdist.linux-x86_64/egg/setuptools/command/easy_install.py", line 1003, in run_setup

    distutils.errors.DistutilsError: Setup script exited with error: command 'gcc' failed with exit status 1
    Complete output from command python setup.py egg_info:
    c/_cffi_backend.c:13:17: fatal error: ffi.h: No such file or directory

compilation terminated.

Traceback (most recent call last):

  File "<string>", line 14, in <module>

  File "/root/build/cryptography/setup.py", line 174, in <module>

    "test": PyTest,

  File "/usr/lib/python2.7/distutils/core.py", line 112, in setup

    _setup_distribution = dist = klass(attrs)

  File "build/bdist.linux-x86_64/egg/setuptools/dist.py", line 239, in __init__

  File "build/bdist.linux-x86_64/egg/setuptools/dist.py", line 264, in fetch_build_eggs

  File "build/bdist.linux-x86_64/egg/pkg_resources.py", line 580, in resolve

    #raise DistributionNotFound(msg % req)

  File "build/bdist.linux-x86_64/egg/pkg_resources.py", line 818, in best_match

    for dist in self[req.key]:

  File "build/bdist.linux-x86_64/egg/pkg_resources.py", line 830, in obtain

    to attempt other ways of obtaining a distribution before falling back

  File "build/bdist.linux-x86_64/egg/setuptools/dist.py", line 314, in fetch_build_egg

  File "build/bdist.linux-x86_64/egg/setuptools/command/easy_install.py", line 593, in easy_install

  File "build/bdist.linux-x86_64/egg/setuptools/command/easy_install.py", line 623, in install_item

  File "build/bdist.linux-x86_64/egg/setuptools/command/easy_install.py", line 809, in install_eggs

  File "build/bdist.linux-x86_64/egg/setuptools/command/easy_install.py", line 1015, in build_and_install

  File "build/bdist.linux-x86_64/egg/setuptools/command/easy_install.py", line 1003, in run_setup

distutils.errors.DistutilsError: Setup script exited with error: command 'gcc' failed with exit status 1

----------------------------------------
Command python setup.py egg_info failed with error code 1
Exception information:
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/pip/basecommand.py", line 126, in main
    self.run(options, args)
  File "/usr/lib/python2.7/dist-packages/pip/commands/install.py", line 223, in run
    requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle)
  File "/usr/lib/python2.7/dist-packages/pip/req.py", line 980, in prepare_files
    req_to_install.run_egg_info()
  File "/usr/lib/python2.7/dist-packages/pip/req.py", line 216, in run_egg_info
    command_desc='python setup.py egg_info')
  File "/usr/lib/python2.7/dist-packages/pip/__init__.py", line 255, in call_subprocess
    % (command_desc, proc.returncode))
InstallationError: Command python setup.py egg_info failed with error code 1
johnnykv commented 10 years ago

Try running the following commands before installing Beeswarm:

$ sudo apt-get install libffi-dev build-essential python-dev python-pip libssl-dev libxml2-dev libxslt1-dev
$ pip install pydes --allow-external pydes --allow-unverified pydes

Just updates the install docs to clarify this.

jgedeon120 commented 10 years ago

Johnny,

The pip install pydes part fails.

pip install pydes --allow-external pydes --allow-unverified pydes

Usage: /usr/bin/pip install [OPTIONS] PACKAGE_NAMES...

/usr/bin/pip install: error: no such option: --allow-external

On Tue, Aug 26, 2014 at 10:16 PM, Johnny Vestergaard < notifications@github.com> wrote:

Try running the following commands before installing Beeswarm:

$ sudo apt-get install libffi-dev build-essential python-dev python-pip libssl-dev libxml2-dev libxslt1-dev $ pip install pydes --allow-external pydes --allow-unverified pydes

Just updates the install docs to clarify this.

— Reply to this email directly or view it on GitHub https://github.com/honeynet/beeswarm/issues/187#issuecomment-53519121.

Registered Linux User # 379282

jgedeon120 commented 10 years ago

The problem was ubuntu 12.04.5 installed pip 1.0. Upgrading, pip install --upgrade pip installed the newer version where --allow-external was a valid option.

On Wed, Aug 27, 2014 at 6:42 AM, Joe Gedeon joe.gedeon@gmail.com wrote:

Johnny,

The pip install pydes part fails.

pip install pydes --allow-external pydes --allow-unverified pydes

Usage: /usr/bin/pip install [OPTIONS] PACKAGE_NAMES...

/usr/bin/pip install: error: no such option: --allow-external

On Tue, Aug 26, 2014 at 10:16 PM, Johnny Vestergaard < notifications@github.com> wrote:

Try running the following commands before installing Beeswarm:

$ sudo apt-get install libffi-dev build-essential python-dev python-pip libssl-dev libxml2-dev libxslt1-dev $ pip install pydes --allow-external pydes --allow-unverified pydes

Just updates the install docs to clarify this.

— Reply to this email directly or view it on GitHub https://github.com/honeynet/beeswarm/issues/187#issuecomment-53519121.

Registered Linux User # 379282

Registered Linux User # 379282

johnnykv commented 10 years ago

Ok, sound good. So everything works installwise now?

jgedeon120 commented 10 years ago

Testing now.

On Wed, Aug 27, 2014 at 6:49 AM, Johnny Vestergaard < notifications@github.com> wrote:

Ok, sound good. So everything works installwise now?

— Reply to this email directly or view it on GitHub https://github.com/honeynet/beeswarm/issues/187#issuecomment-53553463.

Registered Linux User # 379282

jgedeon120 commented 10 years ago

Got the install done, now here are the errors to access the interface.

Browser: Internal Server Error

The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.

Console:

OperationalError: (OperationalError) unable to open database file None None

<Greenlet at 0x2b2ceb0: <bound method Scheduler.do_classification of <beeswarm.server.misc.scheduler.Scheduler object at 0x2b49210>>> failed with OperationalError

Traceback (most recent call last):

File "/usr/local/lib/python2.7/dist-packages/gevent/greenlet.py", line 327, in run

result = self._run(*self.args, **self.kwargs)

File "/usr/local/lib/python2.7/dist-packages/beeswarm/server/misc/scheduler.py", line 76, in do_classification

classifier.classify_bait_session(db_session=db_session)

File "/usr/local/lib/python2.7/dist-packages/beeswarm/server/misc/classifier.py", line 86, in classify_bait_session

.filter(BaitSession.timestamp < min_datetime).all()

File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/query.py", line 2300, in all

return list(self)

File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/query.py", line 2412, in iter

return self._execute_and_instances(context)

File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/query.py", line 2425, in _execute_and_instances

close_with_result=True)

File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/query.py", line 2416, in _connection_from_session

**kw)

File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/session.py", line 854, in connection

close_with_result=close_with_result)

File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/session.py", line 858, in _connection_for_bind

return self.transaction._connection_for_bind(engine)

File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/session.py", line 322, in _connection_for_bind

conn = bind.contextual_connect()

File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1799, in contextual_connect

self.pool.connect(),

File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/pool.py", line 338, in connect

return _ConnectionFairy._checkout(self)

File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/pool.py", line 641, in _checkout

fairy = _ConnectionRecord.checkout(pool)

File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/pool.py", line 440, in checkout

rec = pool._do_get()

File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/pool.py", line 1055, in _do_get

return self._create_connection()

File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/pool.py", line 285, in _create_connection

return _ConnectionRecord(self)

File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/pool.py", line 411, in init

self.connection = self.__connect()

File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/pool.py", line 537, in __connect

connection = self.__pool._creator()

File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/strategies.py", line 96, in connect

connection_invalidated=invalidated

File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/util/compat.py", line 199, in raise_from_cause

reraise(type(exception), exception, tb=exc_tb)

File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/strategies.py", line 90, in connect

return dialect.connect(*cargs, **cparams)

File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/default.py", line 377, in connect

return self.dbapi.connect(*cargs, **cparams)

OperationalError: (OperationalError) unable to open database file None None

<Greenlet at 0x4fdae10: <bound method Scheduler.do_classification of <beeswarm.server.misc.scheduler.Scheduler object at 0x2b49210>>> failed with OperationalError

Traceback (most recent call last):

File "/usr/local/lib/python2.7/dist-packages/gevent/greenlet.py", line 327, in run

result = self._run(*self.args, **self.kwargs)

File "/usr/local/lib/python2.7/dist-packages/beeswarm/server/misc/scheduler.py", line 76, in do_classification

classifier.classify_bait_session(db_session=db_session)

File "/usr/local/lib/python2.7/dist-packages/beeswarm/server/misc/classifier.py", line 86, in classify_bait_session

.filter(BaitSession.timestamp < min_datetime).all()

File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/query.py", line 2300, in all

return list(self)

File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/query.py", line 2412, in iter

return self._execute_and_instances(context)

File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/query.py", line 2425, in _execute_and_instances

close_with_result=True)

File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/query.py", line 2416, in _connection_from_session

**kw)

File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/session.py", line 854, in connection

close_with_result=close_with_result)

File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/session.py", line 858, in _connection_for_bind

return self.transaction._connection_for_bind(engine)

File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/session.py", line 322, in _connection_for_bind

conn = bind.contextual_connect()

File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1799, in contextual_connect

self.pool.connect(),

File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/pool.py", line 338, in connect

return _ConnectionFairy._checkout(self)

File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/pool.py", line 641, in _checkout

fairy = _ConnectionRecord.checkout(pool)

File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/pool.py", line 440, in checkout

rec = pool._do_get()

File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/pool.py", line 1055, in _do_get

return self._create_connection()

File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/pool.py", line 285, in _create_connection

return _ConnectionRecord(self)

File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/pool.py", line 411, in init

self.connection = self.__connect()

File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/pool.py", line 537, in __connect

connection = self.__pool._creator()

File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/strategies.py", line 96, in connect

connection_invalidated=invalidated

File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/util/compat.py", line 199, in raise_from_cause

reraise(type(exception), exception, tb=exc_tb)

File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/strategies.py", line 90, in connect

return dialect.connect(*cargs, **cparams)

File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/default.py", line 377, in connect

return self.dbapi.connect(*cargs, **cparams)

OperationalError: (OperationalError) unable to open database file None None

<Greenlet at 0x2b2ceb0: <bound method Scheduler.do_classification of <beeswarm.server.misc.scheduler.Scheduler object at 0x2b49210>>> failed with OperationalError

Registered Linux User # 379282

johnnykv commented 10 years ago

could you try the following after install:

mkdir s
cd s
beeswarm -v --server

and post the entire console output (including the initial logging) here.

jgedeon120 commented 10 years ago

root@beeswarm-1:~# mkdir s root@beeswarm-1:~# cd s root@beeswarm-1:~/s# beeswarm -v --server 2014-08-27 07:34:28,885 (root) Initializing BeeSwarm version 0.4.8 * Please answer a few configuration options * 2014-08-27 07:34:28,886 (root) Beeswarm server will be configured using default ssl parameters and network configuration, this could be used to fingerprint the beeswarm server. If you want to customize these options please use the --customize options on first startup. 2014-08-27 07:34:28,886 (beeswarm.shared.helpers) Creating SSL Certificate and Key.

On Wed, Aug 27, 2014 at 7:32 AM, Johnny Vestergaard < notifications@github.com> wrote:

could you try the following after install:

mkdir s cd s beeswarm -v --server

and post the entire console output (including the initial logging) here.

— Reply to this email directly or view it on GitHub https://github.com/honeynet/beeswarm/issues/187#issuecomment-53557067.

Registered Linux User # 379282

jgedeon120 commented 10 years ago

Here is the testing output on Ubuntu 14.04 with the install directions.

beeswarm --server
2014-08-27 19:32:52,206 (root) Initializing BeeSwarm version 0.4.10
*** Please answer a few configuration options ***
2014-08-27 19:32:52,208 (root) Beeswarm server will be configured using default ssl parameters and network configuration, this could be used to fingerprint the beeswarm server. If you want to customize these options please use the --customize options on first startup.
2014-08-27 19:32:52,210 (beeswarm.shared.helpers) Creating SSL Certificate and Key.

* Communication between drones (honeypots and clients) and server *
* Please make sure that drones can always contact the Beeswarm server using the information that you are about to enter. *
IP or hostname of server: 192.168.100.149
2014-08-27 19:32:58,462 (beeswarm.server.webapp.auth) Created default admin account for the beeswarm server.
****************************************************************************
Default password for the admin account is: twxaznpastscjw
****************************************************************************
2014-08-27 19:32:58,480 (beeswarm.server.server) Starting server listening on port 5000
2014-08-27 19:32:58,513 (beeswarm.shared.helpers) Privileges dropped, running as nobody/nogroup.
2014-08-27 19:32:58,514 (beeswarm.server.server) Server started and priviliges dropped.
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/gevent/greenlet.py", line 327, in run
    result = self._run(*self.args, **self.kwargs)
  File "/usr/local/lib/python2.7/dist-packages/beeswarm/server/misc/scheduler.py", line 76, in do_classification
    classifier.classify_bait_session(db_session=db_session)
  File "/usr/local/lib/python2.7/dist-packages/beeswarm/server/misc/classifier.py", line 86, in classify_bait_session
    .filter(BaitSession.timestamp < min_datetime).all()
  File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/query.py", line 2300, in all
    return list(self)
  File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/query.py", line 2412, in __iter__
    return self._execute_and_instances(context)
  File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/query.py", line 2425, in _execute_and_instances
    close_with_result=True)
  File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/query.py", line 2416, in _connection_from_session
    **kw)
  File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/session.py", line 854, in connection
    close_with_result=close_with_result)
  File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/session.py", line 858, in _connection_for_bind
    return self.transaction._connection_for_bind(engine)
  File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/session.py", line 322, in _connection_for_bind
    conn = bind.contextual_connect()
  File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1799, in contextual_connect
    self.pool.connect(),
  File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/pool.py", line 338, in connect
    return _ConnectionFairy._checkout(self)
  File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/pool.py", line 641, in _checkout
    fairy = _ConnectionRecord.checkout(pool)
  File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/pool.py", line 440, in checkout
    rec = pool._do_get()
  File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/pool.py", line 1055, in _do_get
    return self._create_connection()
  File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/pool.py", line 285, in _create_connection
    return _ConnectionRecord(self)
  File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/pool.py", line 411, in __init__
    self.connection = self.__connect()
  File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/pool.py", line 537, in __connect
    connection = self.__pool._creator()
  File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/strategies.py", line 96, in connect
    connection_invalidated=invalidated
  File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/util/compat.py", line 199, in raise_from_cause
    reraise(type(exception), exception, tb=exc_tb)
  File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/strategies.py", line 90, in connect
    return dialect.connect(*cargs, **cparams)
  File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/default.py", line 377, in connect
    return self.dbapi.connect(*cargs, **cparams)
OperationalError: (OperationalError) unable to open database file None None
<Greenlet at 0x7fcee4dd7cd0: <bound method Scheduler.do_classification of <beeswarm.server.misc.scheduler.Scheduler object at 0x7fcec806d790>>> failed with OperationalError

Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/gevent/greenlet.py", line 327, in run
    result = self._run(*self.args, **self.kwargs)
  File "/usr/local/lib/python2.7/dist-packages/beeswarm/server/misc/scheduler.py", line 76, in do_classification
    classifier.classify_bait_session(db_session=db_session)
  File "/usr/local/lib/python2.7/dist-packages/beeswarm/server/misc/classifier.py", line 86, in classify_bait_session
    .filter(BaitSession.timestamp < min_datetime).all()
  File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/query.py", line 2300, in all
    return list(self)
  File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/query.py", line 2412, in __iter__
    return self._execute_and_instances(context)
  File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/query.py", line 2425, in _execute_and_instances
    close_with_result=True)
  File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/query.py", line 2416, in _connection_from_session
    **kw)
  File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/session.py", line 854, in connection
    close_with_result=close_with_result)
  File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/session.py", line 858, in _connection_for_bind
    return self.transaction._connection_for_bind(engine)
  File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/session.py", line 322, in _connection_for_bind
    conn = bind.contextual_connect()
  File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1799, in contextual_connect
    self.pool.connect(),
  File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/pool.py", line 338, in connect
    return _ConnectionFairy._checkout(self)
  File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/pool.py", line 641, in _checkout
    fairy = _ConnectionRecord.checkout(pool)
  File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/pool.py", line 440, in checkout
    rec = pool._do_get()
  File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/pool.py", line 1055, in _do_get
    return self._create_connection()
  File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/pool.py", line 285, in _create_connection
    return _ConnectionRecord(self)
  File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/pool.py", line 411, in __init__
    self.connection = self.__connect()
  File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/pool.py", line 537, in __connect
    connection = self.__pool._creator()
  File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/strategies.py", line 96, in connect
    connection_invalidated=invalidated
  File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/util/compat.py", line 199, in raise_from_cause
    reraise(type(exception), exception, tb=exc_tb)
  File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/strategies.py", line 90, in connect
    return dialect.connect(*cargs, **cparams)
  File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/default.py", line 377, in connect
    return self.dbapi.connect(*cargs, **cparams)
OperationalError: (OperationalError) unable to open database file None None
<Greenlet at 0x7fcee4dd7eb0: <bound method Scheduler.do_classification of <beeswarm.server.misc.scheduler.Scheduler object at 0x7fcec806d790>>> failed with OperationalError

Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/gevent/greenlet.py", line 327, in run
    result = self._run(*self.args, **self.kwargs)
  File "/usr/local/lib/python2.7/dist-packages/beeswarm/server/misc/scheduler.py", line 76, in do_classification
    classifier.classify_bait_session(db_session=db_session)
  File "/usr/local/lib/python2.7/dist-packages/beeswarm/server/misc/classifier.py", line 86, in classify_bait_session
    .filter(BaitSession.timestamp < min_datetime).all()
  File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/query.py", line 2300, in all
    return list(self)
  File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/query.py", line 2412, in __iter__
    return self._execute_and_instances(context)
  File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/query.py", line 2425, in _execute_and_instances
    close_with_result=True)
  File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/query.py", line 2416, in _connection_from_session
    **kw)
  File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/session.py", line 854, in connection
    close_with_result=close_with_result)
  File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/session.py", line 858, in _connection_for_bind
    return self.transaction._connection_for_bind(engine)
  File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/session.py", line 322, in _connection_for_bind
    conn = bind.contextual_connect()
  File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1799, in contextual_connect
    self.pool.connect(),
  File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/pool.py", line 338, in connect
    return _ConnectionFairy._checkout(self)
  File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/pool.py", line 641, in _checkout
    fairy = _ConnectionRecord.checkout(pool)
  File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/pool.py", line 440, in checkout
    rec = pool._do_get()
  File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/pool.py", line 1055, in _do_get
    return self._create_connection()
  File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/pool.py", line 285, in _create_connection
    return _ConnectionRecord(self)
  File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/pool.py", line 411, in __init__
    self.connection = self.__connect()
  File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/pool.py", line 537, in __connect
    connection = self.__pool._creator()
  File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/strategies.py", line 96, in connect
    connection_invalidated=invalidated
  File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/util/compat.py", line 199, in raise_from_cause
    reraise(type(exception), exception, tb=exc_tb)
  File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/strategies.py", line 90, in connect
    return dialect.connect(*cargs, **cparams)
  File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/default.py", line 377, in connect
    return self.dbapi.connect(*cargs, **cparams)
OperationalError: (OperationalError) unable to open database file None None
<Greenlet at 0x7fcee4dd7cd0: <bound method Scheduler.do_classification of <beeswarm.server.misc.scheduler.Scheduler object at 0x7fcec806d790>>> failed with OperationalError

192.168.100.69 - - [2014-08-27 19:33:37] "GET / HTTP/1.1" 302 675 0.029706
192.168.100.69 - - [2014-08-27 19:33:37] "GET /login?next=%2F HTTP/1.1" 200 2595 0.084788
192.168.100.69 - - [2014-08-27 19:33:37] "GET /static/css/bootstrap.min.css HTTP/1.1" 200 106636 0.012465
192.168.100.69 - - [2014-08-27 19:33:37] "GET /static/js/jquery-1.9.1.min.js HTTP/1.1" 200 93246 0.006389
192.168.100.69 - - [2014-08-27 19:33:37] "GET /static/thirdparty/fuelux/css/fuelux-responsive.css HTTP/1.1" 200 25153 0.004803
192.168.100.69 - - [2014-08-27 19:33:37] "GET /static/js/main.js HTTP/1.1" 200 1934 0.006585
192.168.100.69 - - [2014-08-27 19:33:37] "GET /static/thirdparty/fuelux/loader.min.js HTTP/1.1" 200 98200 0.005796
192.168.100.69 - - [2014-08-27 19:33:37] "GET /static/css/bootstrap-responsive.min.css HTTP/1.1" 200 17468 0.006509
192.168.100.69 - - [2014-08-27 19:33:37] "GET /static/thirdparty/fuelux/css/fuelux.css HTTP/1.1" 200 174920 0.039038
192.168.100.69 - - [2014-08-27 19:33:37] "GET /static/css/font-awesome.min.css HTTP/1.1" 200 18399 0.003895
192.168.100.69 - - [2014-08-27 19:33:38] "GET /favicon.ico HTTP/1.1" 404 674 0.004481
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/gevent/greenlet.py", line 327, in run
    result = self._run(*self.args, **self.kwargs)
  File "/usr/local/lib/python2.7/dist-packages/beeswarm/server/misc/scheduler.py", line 76, in do_classification
    classifier.classify_bait_session(db_session=db_session)
  File "/usr/local/lib/python2.7/dist-packages/beeswarm/server/misc/classifier.py", line 86, in classify_bait_session
    .filter(BaitSession.timestamp < min_datetime).all()
  File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/query.py", line 2300, in all
    return list(self)
  File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/query.py", line 2412, in __iter__
    return self._execute_and_instances(context)
  File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/query.py", line 2425, in _execute_and_instances
    close_with_result=True)
  File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/query.py", line 2416, in _connection_from_session
    **kw)
  File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/session.py", line 854, in connection
    close_with_result=close_with_result)
  File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/session.py", line 858, in _connection_for_bind
    return self.transaction._connection_for_bind(engine)
  File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/session.py", line 322, in _connection_for_bind
    conn = bind.contextual_connect()
  File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1799, in contextual_connect
    self.pool.connect(),
  File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/pool.py", line 338, in connect
    return _ConnectionFairy._checkout(self)
  File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/pool.py", line 641, in _checkout
    fairy = _ConnectionRecord.checkout(pool)
  File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/pool.py", line 440, in checkout
    rec = pool._do_get()
  File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/pool.py", line 1055, in _do_get
    return self._create_connection()
  File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/pool.py", line 285, in _create_connection
    return _ConnectionRecord(self)
  File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/pool.py", line 411, in __init__
    self.connection = self.__connect()
  File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/pool.py", line 537, in __connect
    connection = self.__pool._creator()
  File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/strategies.py", line 96, in connect
    connection_invalidated=invalidated
  File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/util/compat.py", line 199, in raise_from_cause
    reraise(type(exception), exception, tb=exc_tb)
  File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/strategies.py", line 90, in connect
    return dialect.connect(*cargs, **cparams)
  File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/default.py", line 377, in connect
    return self.dbapi.connect(*cargs, **cparams)
OperationalError: (OperationalError) unable to open database file None None
<Greenlet at 0x7fcee4dd7eb0: <bound method Scheduler.do_classification of <beeswarm.server.misc.scheduler.Scheduler object at 0x7fcec806d790>>> failed with OperationalError

2014-08-27 19:33:42,363 (beeswarm.server.webapp.app) Exception on /login [POST]
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1817, in wsgi_app
    response = self.full_dispatch_request()
  File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1477, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1381, in handle_user_exception
    reraise(exc_type, exc_value, tb)
  File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1475, in full_dispatch_request
    rv = self.dispatch_request()
  File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1461, in dispatch_request
    return self.view_functions[rule.endpoint](**req.view_args)
  File "/usr/local/lib/python2.7/dist-packages/beeswarm/server/webapp/app.py", line 575, in login
    user = db_session.query(User).filter(User.id == form.username.data).one()
  File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/query.py", line 2369, in one
    ret = list(self)
  File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/query.py", line 2412, in __iter__
    return self._execute_and_instances(context)
  File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/query.py", line 2425, in _execute_and_instances
    close_with_result=True)
  File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/query.py", line 2416, in _connection_from_session
    **kw)
  File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/session.py", line 854, in connection
    close_with_result=close_with_result)
  File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/session.py", line 858, in _connection_for_bind
    return self.transaction._connection_for_bind(engine)
  File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/session.py", line 322, in _connection_for_bind
    conn = bind.contextual_connect()
  File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1799, in contextual_connect
    self.pool.connect(),
  File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/pool.py", line 338, in connect
    return _ConnectionFairy._checkout(self)
  File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/pool.py", line 641, in _checkout
    fairy = _ConnectionRecord.checkout(pool)
  File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/pool.py", line 440, in checkout
    rec = pool._do_get()
  File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/pool.py", line 1055, in _do_get
    return self._create_connection()
  File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/pool.py", line 285, in _create_connection
    return _ConnectionRecord(self)
  File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/pool.py", line 411, in __init__
    self.connection = self.__connect()
  File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/pool.py", line 537, in __connect
    connection = self.__pool._creator()
  File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/strategies.py", line 96, in connect
    connection_invalidated=invalidated
  File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/util/compat.py", line 199, in raise_from_cause
    reraise(type(exception), exception, tb=exc_tb)
  File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/strategies.py", line 90, in connect
    return dialect.connect(*cargs, **cparams)
  File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/default.py", line 377, in connect
    return self.dbapi.connect(*cargs, **cparams)
OperationalError: (OperationalError) unable to open database file None None
192.168.100.69 - - [2014-08-27 19:33:42] "POST /login?next=%2F HTTP/1.1" 500 412 0.011884
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/gevent/greenlet.py", line 327, in run
    result = self._run(*self.args, **self.kwargs)
  File "/usr/local/lib/python2.7/dist-packages/beeswarm/server/misc/scheduler.py", line 76, in do_classification
    classifier.classify_bait_session(db_session=db_session)
  File "/usr/local/lib/python2.7/dist-packages/beeswarm/server/misc/classifier.py", line 86, in classify_bait_session
    .filter(BaitSession.timestamp < min_datetime).all()
  File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/query.py", line 2300, in all
    return list(self)
  File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/query.py", line 2412, in __iter__
    return self._execute_and_instances(context)
  File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/query.py", line 2425, in _execute_and_instances
    close_with_result=True)
  File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/query.py", line 2416, in _connection_from_session
    **kw)
  File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/session.py", line 854, in connection
    close_with_result=close_with_result)
  File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/session.py", line 858, in _connection_for_bind
    return self.transaction._connection_for_bind(engine)
  File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/session.py", line 322, in _connection_for_bind
    conn = bind.contextual_connect()
  File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1799, in contextual_connect
    self.pool.connect(),
  File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/pool.py", line 338, in connect
    return _ConnectionFairy._checkout(self)
  File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/pool.py", line 641, in _checkout
    fairy = _ConnectionRecord.checkout(pool)
  File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/pool.py", line 440, in checkout
    rec = pool._do_get()
  File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/pool.py", line 1055, in _do_get
    return self._create_connection()
  File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/pool.py", line 285, in _create_connection
    return _ConnectionRecord(self)
  File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/pool.py", line 411, in __init__
    self.connection = self.__connect()
  File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/pool.py", line 537, in __connect
    connection = self.__pool._creator()
  File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/strategies.py", line 96, in connect
    connection_invalidated=invalidated
  File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/util/compat.py", line 199, in raise_from_cause
    reraise(type(exception), exception, tb=exc_tb)
  File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/strategies.py", line 90, in connect
    return dialect.connect(*cargs, **cparams)
  File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/default.py", line 377, in connect
    return self.dbapi.connect(*cargs, **cparams)
OperationalError: (OperationalError) unable to open database file None None
<Greenlet at 0x7fcec132ae10: <bound method Scheduler.do_classification of <beeswarm.server.misc.scheduler.Scheduler object at 0x7fcec806d790>>> failed with OperationalError

Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/gevent/greenlet.py", line 327, in run
    result = self._run(*self.args, **self.kwargs)
  File "/usr/local/lib/python2.7/dist-packages/beeswarm/server/misc/scheduler.py", line 76, in do_classification
    classifier.classify_bait_session(db_session=db_session)
  File "/usr/local/lib/python2.7/dist-packages/beeswarm/server/misc/classifier.py", line 86, in classify_bait_session
    .filter(BaitSession.timestamp < min_datetime).all()
  File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/query.py", line 2300, in all
    return list(self)
  File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/query.py", line 2412, in __iter__
    return self._execute_and_instances(context)
  File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/query.py", line 2425, in _execute_and_instances
    close_with_result=True)
  File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/query.py", line 2416, in _connection_from_session
    **kw)
  File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/session.py", line 854, in connection
    close_with_result=close_with_result)
  File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/session.py", line 858, in _connection_for_bind
    return self.transaction._connection_for_bind(engine)
  File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/session.py", line 322, in _connection_for_bind
    conn = bind.contextual_connect()
  File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1799, in contextual_connect
    self.pool.connect(),
  File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/pool.py", line 338, in connect
    return _ConnectionFairy._checkout(self)
  File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/pool.py", line 641, in _checkout
    fairy = _ConnectionRecord.checkout(pool)
  File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/pool.py", line 440, in checkout
    rec = pool._do_get()
  File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/pool.py", line 1055, in _do_get
    return self._create_connection()
  File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/pool.py", line 285, in _create_connection
    return _ConnectionRecord(self)
  File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/pool.py", line 411, in __init__
    self.connection = self.__connect()
  File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/pool.py", line 537, in __connect
    connection = self.__pool._creator()
  File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/strategies.py", line 96, in connect
    connection_invalidated=invalidated
  File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/util/compat.py", line 199, in raise_from_cause
    reraise(type(exception), exception, tb=exc_tb)
  File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/strategies.py", line 90, in connect
    return dialect.connect(*cargs, **cparams)
  File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/default.py", line 377, in connect
    return self.dbapi.connect(*cargs, **cparams)
OperationalError: (OperationalError) unable to open database file None None
<Greenlet at 0x7fcec132a230: <bound method Scheduler.do_classification of <beeswarm.server.misc.scheduler.Scheduler object at 0x7fcec806d790>>> failed with OperationalError

^CKeyboardInterrupt
2014-08-27 19:34:04,254 (root) Stopping server.
jgedeon120 commented 10 years ago

Finally got it running on 14.04 passing the --customize flag. Here is the errors that I did come up.

2014-08-27 19:44:24,834 (beeswarm.shared.helpers) Creating SSL Certificate and Key.

* Communication between drones (honeypots and clients) and server *
* Please make sure that drones can always contact the Beeswarm server using the information that you are about to enter. *
IP or hostname of server: 192.168.100.149
TCP port for session data (default: 5712) :
TCP port for drone commands(default: 5713) :
2014-08-27 19:44:38,466 (beeswarm.server.webapp.auth) Created default admin account for the beeswarm server.
****************************************************************************
Default password for the admin account is: qhbgqxxopblifi
****************************************************************************
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/gevent/greenlet.py", line 327, in run
    result = self._run(*self.args, **self.kwargs)
  File "/usr/local/lib/python2.7/dist-packages/beeswarm/server/server.py", line 115, in message_proxy
    drone_data_inbound.bind('tcp://*:{0}'.format(self.config['network']['zmq_port']))
  File "socket.pyx", line 444, in zmq.backend.cython.socket.Socket.bind (zmq/backend/cython/socket.c:4076)
  File "checkrc.pxd", line 21, in zmq.backend.cython.checkrc._check_rc (zmq/backend/cython/socket.c:6032)
ZMQError: Invalid argument
<Greenlet at 0x7fd944c2e870: <bound method Server.message_proxy of <beeswarm.server.server.Server object at 0x7fd94398f210>>('/home/hurricane/server_workdir')> failed with ZMQError
johnnykv commented 10 years ago

can you confirm that the issue involving

OperationalError: (OperationalError) unable to open database file None None

does not happen when starting Beeswarm as a non-root user (and without sudo)?

jgedeon120 commented 10 years ago

/me hangs head low and mumbles:

Yes it does not happen as a normal user. :/

On Thu, Aug 28, 2014 at 4:30 PM, Johnny Vestergaard < notifications@github.com> wrote:

can you confirm that the issue involving

OperationalError: (OperationalError) unable to open database file None None

does not happen when starting Beeswarm as a non-root user (and without sudo)?

— Reply to this email directly or view it on GitHub https://github.com/honeynet/beeswarm/issues/187#issuecomment-53792739.

Registered Linux User # 379282

johnnykv commented 10 years ago

Ok, I think i have identified the problem...We are using zmq pipes for internal messaging, these pipes are created before privs are dropped:

srwxr-xr-x   1 root  staff       0 Aug 31 21:09 configCommands
srwxr-xr-x   1 root  staff       0 Aug 31 21:09 configPublisher
srwxr-xr-x   1 root staff       0 Aug 31 21:09 droneCommandReceiver

Which means that after dropping privs to "Nobody" we can only read the socket - not write. The solution is to convert to inprocess pipes instead of ipc. I will keep this bug open until we have implemented the change to ipc.

johnnykv commented 10 years ago

AFAIK this was fixed with 54e77853a67cc9047bcb76748585fa891a19ebdf, please reopen if that is not correct. You can upgrade using pip.