Bug #226

[parabolaweb] error when i try to flag out-of-date packages - over 9 years ago - . Updated about 9 years ago.

% Done:



When i tray to flag out-of-date packages i have this error:


Request Method: POST
Request URL:

Django Version: 1.3.1
Python Version: 2.7.2
Installed Applications:
Installed Middleware:

File "/usr/lib/python2.7/site-packages/django/core/handlers/" in get_response
  111.                         response = callback(request, *callback_args, **callback_kwargs)
File "/usr/lib/python2.7/site-packages/django/views/decorators/" in _wrapped_view_func
  79.         response = view_func(request, *args, **kwargs)
File "/srv/http/web/packages/views/" in flag
  76.             perform_updates()
File "/usr/lib/python2.7/site-packages/django/db/" in inner
  217.                 res = func(*args, **kwargs)
File "/srv/http/web/packages/views/" in perform_updates
File "/usr/lib/python2.7/site-packages/django/db/models/" 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/" in save_base
  553.                     result = manager._insert(values, return_id=update_pk, using=using)
File "/usr/lib/python2.7/site-packages/django/db/models/" in _insert
  195.         return insert_query(self.model, values, **kwargs)
File "/usr/lib/python2.7/site-packages/django/db/models/" 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/" in execute_sql
  791.         cursor = super(SQLInsertCompiler, self).execute_sql(None)
File "/usr/lib/python2.7/site-packages/django/db/models/sql/" in execute_sql
  735.         cursor.execute(sql, params)
File "/usr/lib/python2.7/site-packages/django/db/backends/" in execute
  34.             return self.cursor.execute(sql, params)
File "/usr/lib/python2.7/site-packages/django/db/backends/postgresql_psycopg2/" 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



Updated by loic.vaumerel over 9 years ago


I think I may a clue regarding this bug.
I need to access to the web server behind "" URL.
Especially to the below files:
  • /srv/http/web/packages/views/
  • /usr/lib/python2.7/site-packages/django/core/handlers/
  • /usr/lib/python2.7/site-packages/django/db/backends/postgresql_psycopg2/base.* /usr/lib/python2.7/site-packages/django/db/backends/
  • /usr/lib/python2.7/site-packages/django/db/models/
  • /usr/lib/python2.7/site-packages/django/db/models/
  • /usr/lib/python2.7/site-packages/django/db/models/
  • /usr/lib/python2.7/site-packages/django/db/models/sql/
  • /usr/lib/python2.7/site-packages/django/db/
  • /usr/lib/python2.7/site-packages/django/views/decorators/
ip_address column is not nullable is packages_flagrequest table whereas the web page give a null value
3 options:
  • find why the value is null and fix it (the best)
  • set this column to nullable (not the best)
  • put a default value when null (not the best)

How can I get access to this ?

This website can help too :



Updated by lukeshu over 9 years ago

Thanks for the interest, loic.vaumerel. I'm not entirely sure, but I think that this is because nginx is configured to filter the client IPs for privacy policy reasons. You can get access by sending one of us your ssh key, so it can be added to hackers.git, so you can get access to the git repos.


Updated by alfplayer about 9 years ago

This bug is still present.


Updated by about 9 years ago

You can close this bug.
Now it works.


Updated by fauno about 9 years ago

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 for both the server block and the fastcgi_params. now no cgi receives the remote address either :)

Also available in: Atom PDF