Issue #226 has been updated by fauno.
Status changed from open to fixed Assignee set to fauno fixed. the problem wasn't on parabolaweb but nginx. since fascgi_params weren't being included on the parabolaweb server block, nginx wasn't passing the remote_addr field to parabolaweb, so it received empty. when i included the fastcgi_params file the url request wasn't correct so i ended up just declaring remote_addr as 127.0.0.1 for both the server block and the fastcgi_params. now no cgi receives the remote address either :) ---------------------------------------- Bug #226: [parabolaweb] error when i try to flag out-of-date packages https://labs.parabola.nu/issues/226 Author: g.one Status: fixed Priority: bug Assignee: fauno Category: Target version: When i tray to flag out-of-date packages i have this error: <pre> Environment: Request Method: POST Request URL: http://parabolagnulinux.org/packages/libre/i686/iceweasel-libre/flag/ Django Version: 1.3.1 Python Version: 2.7.2 Installed Applications: ['django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.messages', 'django.contrib.sessions', 'django.contrib.sites', 'django.contrib.sitemaps', 'django.contrib.admin', 'django.contrib.markup', 'django.contrib.staticfiles', 'south', 'main', 'mirrors', 'news', 'packages', 'todolists', 'devel', 'public', 'releng', 'visualize', 'retro'] Installed Middleware: ('django.middleware.common.CommonMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.http.ConditionalGetMiddleware', 'django.middleware.doc.XViewMiddleware') Traceback: File "/usr/lib/python2.7/site-packages/django/core/handlers/base.py" in get_response 111. response = callback(request, *callback_args, **callback_kwargs) File "/usr/lib/python2.7/site-packages/django/views/decorators/cache.py" in _wrapped_view_func 79. response = view_func(request, *args, **kwargs) File "/srv/http/web/packages/views/flag.py" in flag 76. perform_updates() File "/usr/lib/python2.7/site-packages/django/db/transaction.py" in inner 217. res = func(*args, **kwargs) File "/srv/http/web/packages/views/flag.py" in perform_updates 74. flag_request.save() File "/usr/lib/python2.7/site-packages/django/db/models/base.py" in save 460. self.save_base(using=using, force_insert=force_insert, force_update=force_update) File "/usr/lib/python2.7/site-packages/django/db/models/base.py" in save_base 553. result = manager._insert(values, return_id=update_pk, using=using) File "/usr/lib/python2.7/site-packages/django/db/models/manager.py" in _insert 195. return insert_query(self.model, values, **kwargs) File "/usr/lib/python2.7/site-packages/django/db/models/query.py" in insert_query 1436. return query.get_compiler(using=using).execute_sql(return_id) File "/usr/lib/python2.7/site-packages/django/db/models/sql/compiler.py" in execute_sql 791. cursor = super(SQLInsertCompiler, self).execute_sql(None) File "/usr/lib/python2.7/site-packages/django/db/models/sql/compiler.py" in execute_sql 735. cursor.execute(sql, params) File "/usr/lib/python2.7/site-packages/django/db/backends/util.py" in execute 34. return self.cursor.execute(sql, params) File "/usr/lib/python2.7/site-packages/django/db/backends/postgresql_psycopg2/base.py" in execute 44. return self.cursor.execute(query, args) Exception Type: IntegrityError at /packages/libre/i686/iceweasel-libre/flag/ Exception Value: null value in column "ip_address" violates not-null constraint </pre> -- You have received this notification because you have either subscribed to it, or are involved in it. To change your notification preferences, please click here: http://labs.parabola.nu/my/account _______________________________________________ Dev mailing list [email protected] https://lists.parabolagnulinux.org/mailman/listinfo/dev
