Comments (4)
Thanks for the info!
from scirius.
@grantstavely Could you say what errors did you have and what was the version installed by pip ?
from scirius.
@regit, Sure, sorry for not including it in the original report.
I get this error when trying to update a ruleset for the first time:
Environment:
Request Method: GET
Request URL: https://hostname.tld/rules/source/1/update
Django Version: 1.6.5
Python Version: 2.7.3
Installed Applications:
('django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'south',
'django_tables2',
'rules',
'suricata')
Installed Middleware:
('django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.common.CommonMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware')
Traceback:
File "/nsm/var/www/scirius/lib/python2.7/site-packages/django/core/handlers/base.py" in get_response
112. response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/nsm/var/www/scirius/lib/python2.7/site-packages/rules/views.py" in update_source
137. src.update()
File "/nsm/var/www/scirius/lib/python2.7/site-packages/rules/models.py" in update
258. self.handle_rules_in_tar(f)
File "/nsm/var/www/scirius/lib/python2.7/site-packages/rules/models.py" in handle_rules_in_tar
159. repo = self.get_git_repo(delete = True)
File "/nsm/var/www/scirius/lib/python2.7/site-packages/rules/models.py" in get_git_repo
123. repo = git.Repo.init(source_git_dir)
Exception Type: AttributeError at /rules/source/1/update
Exception Value: type object 'Repo' has no attribute 'init'
Installed modules:
(scirius)gstavely@hostname:/nsm/var/www/scirius/lib/python2.7/site-packages$ pip list
argparse (1.2.1)
daemon (1.1)
Django (1.6.5)
django-tables2 (0.15.0)
GitPython (0.1.7)
pip (1.5.6)
pyinotify (0.9.4)
setuptools (3.6)
six (1.7.3)
South (1.0)
wsgiref (0.1.2)
I don't think these details matter much but, this is running as under Apache with wsgi.py modified to be aware of scirirus's settings environment. I mostly cribbed from https://github.com/grigorescu/Brownian's install guide. And I've checked out Scirius into my virutalenv's ./lib/python2.7/site-packages/.
SCIRIUS_PATH = '/nsm/var/www/scirius'
import sys
version = sys.version_info
PYTHON_VER = "%d.%d" % (version[0], version[1])
sys.path.insert(0, SCIRIUS_PATH + '/lib/python' + PYTHON_VER + '/site-packages')
import site, os
site.addsitedir(SCIRIUS_PATH + '/lib/python' + PYTHON_VER + '/site-packages')
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "scirius.settings")
from django.core.wsgi import get_wsgi_application
application = get_wsgi_application()
from scirius.
Thanks, I've updated the README.
from scirius.
Related Issues (20)
- No Capture stats, Memory usage and problem indicators statisctics using the new scirius version HOT 8
- Error add public source HOT 7
- KeyError on Hunt whith latest django-webpack-loader (v1.0.0)
- First start issue HOT 5
- Python 2.7???? HOT 5
- does scirius fetch dashboard from kibana? HOT 1
- Scirius CE v3.7.0 GUI problem in safari 15 HOT 2
- docker: Get cyberchef pre-installed in the docker image HOT 2
- Failed to minify the code from this file: ./node_modules/patternfly-react/dist/esm/common/helpers.js:14 HOT 1
- Logging with python requests library error: Forbidden(403) CSRF verification failed HOT 1
- USE_KIBANA/ELASTICSEARCH=0 ignored, still tries to connect HOT 2
- Set python_requires and clarify Python support
- Number of rules on the source page never increments during updates in Scirius
- How to show more than 20 last rules activity in scirius?
- Batch activate commented rules
- Unable to Build Docker Image
- Fails on sources updating HOT 3
- Suricata won't restart after build & push ruleset HOT 3
- Install issues
- Error reading webpack-stats.prod.json
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from scirius.