Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build fails from master 2014-09-04 #9

Closed
sommarnatt opened this issue Sep 4, 2014 · 6 comments
Closed

Build fails from master 2014-09-04 #9

sommarnatt opened this issue Sep 4, 2014 · 6 comments

Comments

@sommarnatt
Copy link

Errors and tracebacks from master. Built on Wheezy. Need a full build log?

Setting up scirius (0.8-1) ...^M
dbconfig-common: writing config to /etc/dbconfig-common/scirius.conf^M
^M
Creating config file /etc/dbconfig-common/scirius.conf with new version^M
creating database db.sqlite3: success.^M
verifying database db.sqlite3 exists: success.^M
populating database via scriptfile... Syncing...^M
Traceback (most recent call last):^M
File "manage.py", line 10, in ^M
execute_from_command_line(sys.argv)^M
File "/usr/local/lib/python2.7/dist-packages/django/core/management/init.py", line 385, in execute_from_command_line^M
utility.execute()^M
File "/usr/local/lib/python2.7/dist-packages/django/core/management/init.py", line 377, in execute^M
self.fetch_command(subcommand).run_from_argv(self.argv)^M
File "/usr/local/lib/python2.7/dist-packages/django/core/management/base.py", line 288, in run_from_argv^M
self.execute(_args, *_options.dict)^M
File "/usr/local/lib/python2.7/dist-packages/django/core/management/base.py", line 338, in execute^M
output = self.handle(_args, _options)^M
File "/usr/local/lib/python2.7/dist-packages/django/core/management/base.py", line 533, in handle^M
return self.handle_noargs(
_options)^M
File "/usr/local/lib/python2.7/dist-packages/south/management/commands/syncdb.py", line 82, in handle_noargs^M
old_app_store, cache.app_store = cache.app_store, SortedDict([^M
AttributeError: 'Apps' object has no attribute 'app_store'^M
Traceback (most recent call last):^M
File "manage.py", line 10, in ^M
execute_from_command_line(sys.argv)^M
File "/usr/local/lib/python2.7/dist-packages/django/core/management/init.py", line 385, in execute_from_command_line^M
utility.execute()^M
File "/usr/local/lib/python2.7/dist-packages/django/core/management/init.py", line 377, in execute^M
self.fetch_command(subcommand).run_from_argv(self.argv)^M
File "/usr/local/lib/python2.7/dist-packages/django/core/management/base.py", line 288, in run_from_argv^M
self.execute(_args, *_options.dict)^M
File "/usr/local/lib/python2.7/dist-packages/django/core/management/base.py", line 338, in execute^M
output = self.handle(_args, **options)^M
File "/usr/local/lib/python2.7/dist-packages/south/management/commands/migrate.py", line 111, in handle^M
ignore_ghosts = ignore_ghosts,^M
File "/usr/local/lib/python2.7/dist-packages/south/migration/init.py", line 200, in migrate_app^M
applied_all = check_migration_histories(applied_all, delete_ghosts, ignore_ghosts)^M
File "/usr/local/lib/python2.7/dist-packages/south/migration/init.py", line 79, in check_migration_histories^M
for h in histories:^M
File "/usr/local/lib/python2.7/dist-packages/django/db/models/query.py", line 141, in iter^M
self._fetch_all()^M
File "/usr/local/lib/python2.7/dist-packages/django/db/models/query.py", line 966, in _fetch_all^M
self._result_cache = list(self.iterator())^M
File "/usr/local/lib/python2.7/dist-packages/django/db/models/query.py", line 265, in iterator^M
for row in compiler.results_iter():^M
File "/usr/local/lib/python2.7/dist-packages/django/db/models/sql/compiler.py", line 700, in results_iter^M
for rows in self.execute_sql(MULTI):^M
File "/usr/local/lib/python2.7/dist-packages/django/db/models/sql/compiler.py", line 786, in execute_sql^M
cursor.execute(sql, params)^M
File "/usr/local/lib/python2.7/dist-packages/django/db/backends/utils.py", line 81, in execute^M
return super(CursorDebugWrapper, self).execute(sql, params)^M
File "/usr/local/lib/python2.7/dist-packages/django/db/backends/utils.py", line 65, in execute^M
return self.cursor.execute(sql, params)^M
File "/usr/local/lib/python2.7/dist-packages/django/db/utils.py", line 94, in exit^M
six.reraise(dj_exc_type, dj_exc_value, traceback)^M
File "/usr/local/lib/python2.7/dist-packages/django/db/backends/utils.py", line 65, in execute^M
return self.cursor.execute(sql, params)^M
File "/usr/local/lib/python2.7/dist-packages/django/db/backends/sqlite3/base.py", line 485, in execute^M
return Database.Cursor.execute(self, query, params)^M

django.db.utils.OperationalError: no such table: south_migrationhistory^M
Traceback (most recent call last):^M
File "manage.py", line 10, in ^M
execute_from_command_line(sys.argv)^M
File "/usr/local/lib/python2.7/dist-packages/django/core/management/init.py", line 385, in execute_from_command_line^M
utility.execute()^M
File "/usr/local/lib/python2.7/dist-packages/django/core/management/init.py", line 377, in execute^M
self.fetch_command(subcommand).run_from_argv(self.argv)^M
File "/usr/local/lib/python2.7/dist-packages/django/core/management/base.py", line 288, in run_from_argv^M
self.execute(_args, *_options.dict)^M
File "/usr/local/lib/python2.7/dist-packages/django/core/management/base.py", line 338, in execute^M
output = self.handle(_args, *_options)^M
File "/usr/local/lib/python2.7/dist-packages/south/management/commands/migrate.py", line 111, in handle^M
ignore_ghosts = ignore_ghosts,^M
File "/usr/local/lib/python2.7/dist-packages/south/migration/init.py", line 200, in migrate_app^M
applied_all = check_migration_histories(applied_all, delete_ghosts, ignore_ghosts)^M
File "/usr/local/lib/python2.7/dist-packages/south/migration/init.py", line 79, in check_migration_histories^M
for h in histories:^M
File "/usr/local/lib/python2.7/dist-packages/django/db/models/query.py", line 141, in iter^M
self._fetch_all()^M
File "/usr/local/lib/python2.7/dist-packages/django/db/models/query.py", line 966, in _fetch_all^M
self._result_cache = list(self.iterator())^M
File "/usr/local/lib/python2.7/dist-packages/django/db/models/query.py", line 265, in iterator^M
for row in compiler.results_iter():^M
File "/usr/local/lib/python2.7/dist-packages/django/db/models/sql/compiler.py", line 700, in results_iter^M
for rows in self.execute_sql(MULTI):^M
File "/usr/local/lib/python2.7/dist-packages/django/db/models/sql/compiler.py", line 786, in execute_sql^M
cursor.execute(sql, params)^M
File "/usr/local/lib/python2.7/dist-packages/django/db/backends/utils.py", line 81, in execute^M
return super(CursorDebugWrapper, self).execute(sql, params)^M
File "/usr/local/lib/python2.7/dist-packages/django/db/backends/utils.py", line 65, in execute^M
return self.cursor.execute(sql, params)^M
File "/usr/local/lib/python2.7/dist-packages/django/db/utils.py", line 94, in exit^M
six.reraise(dj_exc_type, dj_exc_value, traceback)^M
File "/usr/local/lib/python2.7/dist-packages/django/db/backends/utils.py", line 65, in execute^M
return self.cursor.execute(sql, params)^M
File "/usr/local/lib/python2.7/dist-packages/django/db/backends/sqlite3/base.py", line 485, in execute^M
return Database.Cursor.execute(self, query, params)^M
django.db.utils.OperationalError: no such table: south_migrationhistory^M

/usr/local/lib/python2.7/dist-packages/django/db/models/fields/init.py:1278: RuntimeWarning: DateTimeField Source.created_date received a naive datetime (2014-09-04 08:49:14.821104) while time zone support is active.
RuntimeWarning)

Traceback (most recent call last):
File "manage.py", line 10, in
execute_from_command_line(sys.argv)
File "/usr/local/lib/python2.7/dist-packages/django/core/management/init.py", line 385, in execute_from_command_line
utility.execute()
File "/usr/local/lib/python2.7/dist-packages/django/core/management/init.py", line 377, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/usr/local/lib/python2.7/dist-packages/django/core/management/base.py", line 288, in run_from_argv
self.execute(_args, *_options.dict)
File "/usr/local/lib/python2.7/dist-packages/django/core/management/base.py", line 338, in execute
output = self.handle(_args, *_options)
File "/opt/selks/scirius/rules/management/commands/addsource.py", line 40, in handle
datatype = datatype)
File "/usr/local/lib/python2.7/dist-packages/django/db/models/manager.py", line 92, in manager_method
return getattr(self.get_queryset(), name)(_args, *_kwargs)
File "/usr/local/lib/python2.7/dist-packages/django/db/models/query.py", line 372, in create
obj.save(force_insert=True, using=self.db)
File "/usr/local/lib/python2.7/dist-packages/django/db/models/base.py", line 590, in save
force_update=force_update, update_fields=update_fields)
File "/usr/local/lib/python2.7/dist-packages/django/db/models/base.py", line 618, in save_base
updated = self._save_table(raw, cls, force_insert, force_update, using, update_fields)
File "/usr/local/lib/python2.7/dist-packages/django/db/models/base.py", line 699, in _save_table
result = self._do_insert(cls._base_manager, using, fields, update_pk, raw)
File "/usr/local/lib/python2.7/dist-packages/django/db/models/base.py", line 732, in _do_insert
using=using, raw=raw)
File "/usr/local/lib/python2.7/dist-packages/django/db/models/manager.py", line 92, in manager_method
return getattr(self.get_queryset(), name)(_args, *_kwargs)
File "/usr/local/lib/python2.7/dist-packages/django/db/models/query.py", line 921, in _insert
return query.get_compiler(using=using).execute_sql(return_id)
File "/usr/local/lib/python2.7/dist-packages/django/db/models/sql/compiler.py", line 920, in execute_sql
cursor.execute(sql, params)
File "/usr/local/lib/python2.7/dist-packages/django/db/backends/utils.py", line 81, in execute
return super(CursorDebugWrapper, self).execute(sql, params)
File "/usr/local/lib/python2.7/dist-packages/django/db/backends/utils.py", line 65, in execute
return self.cursor.execute(sql, params)
File "/usr/local/lib/python2.7/dist-packages/django/db/utils.py", line 94, in exit
six.reraise(dj_exc_type, dj_exc_value, traceback)
File "/usr/local/lib/python2.7/dist-packages/django/db/backends/utils.py", line 65, in execute
return self.cursor.execute(sql, params)
File "/usr/local/lib/python2.7/dist-packages/django/db/backends/sqlite3/base.py", line 485, in execute
return Database.Cursor.execute(self, query, params)
django.db.utils.OperationalError: no such table: rules_source
E: config/hooks/chroot-inside-Debian-Live.chroot failed (exit non-zero). You should check for errors.

@pevma
Copy link
Member

pevma commented Sep 4, 2014

Hi,
Could you please provide the following info:

Which SELKS build script commit is that? (latest is ad00f18 )
Share a full log?
What exactly is your build command?
Did you install all the required build dependency packages - as described here -
https://github.com/StamusNetworks/SELKS/wiki/Building-SELKS

Thanks for the report!

@regit
Copy link
Member

regit commented Sep 4, 2014

I've reproduced the problem. Working on a fix.

@regit
Copy link
Member

regit commented Sep 4, 2014

Ok, that's a really fun one. Django 1.7 has been released in between the commits and your test. And this introduce a problem as the application has been developed for django 1.6. I will push a fix in the afternoon.

@sommarnatt
Copy link
Author

Just my luck when I want to try something out ;) No worries, will try the beta3 for now and add flow templates manually.

@regit
Copy link
Member

regit commented Sep 4, 2014

I should push the fix in 30 min so maybe you can wait a little. And you won't have the flow in the beta3.

@sommarnatt
Copy link
Author

Absolutely, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants