OperationalError at /users/login/

76 views
Skip to first unread message

eyad shami

unread,
Apr 23, 2016, 10:17:22 AM4/23/16
to Ghiro image forensics mailing list
Request Method: POST
Request URL: http://0.0.0.0:9000/users/login/
Django Version: 1.6.7
Exception Type: OperationalError
Exception Value:

attempt to write a readonly database

Exception Location: /usr/local/lib/python2.7/dist-packages/django/db/backends/sqlite3/base.py in execute, line 452
Python Executable: /usr/bin/python
Python Version: 2.7.6
Python Path:

['/home/dedo/Desktop/ghiro-0.2.1',
'/usr/local/lib/python2.7/dist-packages/dlib-18.18.99-py2.7-linux-x86_64.egg',
'/usr/lib/python2.7',
'/usr/lib/python2.7/plat-x86_64-linux-gnu',
'/usr/lib/python2.7/lib-tk',
'/usr/lib/python2.7/lib-old',
'/usr/lib/python2.7/lib-dynload',
'/usr/local/lib/python2.7/dist-packages',
'/usr/lib/python2.7/dist-packages',
'/usr/lib/python2.7/dist-packages/PILcompat',
'/usr/lib/python2.7/dist-packages/gtk-2.0',
'/usr/lib/python2.7/dist-packages/ubuntu-sso-client']

Server time: Sat, 23 Apr 2016 17:16:33 +0300


I just can not login.

eyad shami

unread,
Apr 23, 2016, 10:48:57 AM4/23/16
to Ghiro image forensics mailing list

I found my mistake, I had to use sudo

Alessandro Tanasi

unread,
Apr 28, 2016, 5:55:52 PM4/28/16
to eyad shami, Ghiro image forensics mailing list
Hello,
it is highly discouraged to run any kind of software, as ghiro, who doesn’t really need root privileges as root.

Sudo is not the solution to your issue. You made a mistake running some operations as root, after that, you created a privilege issue, only root can read the db.
Just restore the proper permissions to run ghiro as user.

This is a simple linux issue (hint: chown -R).

Regards,
Alessandro Tanasi (@jekil)
> --
> You received this message because you are subscribed to the Google Groups "Ghiro image forensics mailing list" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to ghiro+un...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages