Unable to edit, delete tasks. Both Cron and rsync.

Status
Not open for further replies.

nriedman

Dabbler
Joined
Jul 19, 2012
Messages
20
I can however add a new task, but when I try to edit it I get the response below. If I try to edit a previously existing task, the GUI brings up a copy of the current window with the terminal view in it. Pretty odd. If I look at /data/freenas-v1.db with sqlite, the tasks are in the tasks_cronjob table and seem to have all the right fields-values. If I pull a config backup and look at it in a sqlite browser, the tables match. If the config data stored someone else besides the sqlite db?

The system has been updated to FreeNAS-9.10.2-U2 (e1497f2) and restarted. The problem remains.

Thanks,

DAve

----------------

Request Method:

GET

Request URL: http://10.16.2.71/admin/tasks/cronjob/edit/None/

Software Version: FreeNAS-9.10.2-U2 (e1497f2)

Exception Type: ValueError

Exception Value:
invalid literal for int() with base 10: 'None'

Exception Location: /usr/local/lib/python2.7/site-packages/django/db/models/fields/__init__.py in get_prep_value, line 613

Server time: Fri, 31 Mar 2017 16:16:35 -0400

Traceback

Environment:

Software Version: FreeNAS-9.10.2-U2 (e1497f2)
Request Method: GET
Request URL: http://10.16.2.71/admin/tasks/cronjob/edit/None/


Traceback:
File "/usr/local/lib/python2.7/site-packages/django/core/handlers/base.py" in get_response
105. response = middleware_method(request, callback, callback_args, callback_kwargs)
File "/usr/local/www/freenasUI/../freenasUI/freeadmin/middleware.py" in process_view
156. return login_required(view_func)(request, *view_args, **view_kwargs)
File "/usr/local/lib/python2.7/site-packages/django/contrib/auth/decorators.py" in _wrapped_view
22. return view_func(request, *args, **kwargs)
File "/usr/local/www/freenasUI/../freenasUI/freeadmin/options.py" in wrapper
208. return self._admin.admin_view(view)(*args, **kwargs)
File "/usr/local/lib/python2.7/site-packages/django/utils/decorators.py" in _wrapped_view
99. response = view_func(request, *args, **kwargs)
File "/usr/local/lib/python2.7/site-packages/django/views/decorators/cache.py" in _wrapped_view_func
52. response = view_func(request, *args, **kwargs)
File "/usr/local/www/freenasUI/../freenasUI/freeadmin/site.py" in inner
145. return view(request, *args, **kwargs)
File "/usr/local/www/freenasUI/../freenasUI/freeadmin/options.py" in edit
484. instance = get_object_or_404(m, pk=oid)
File "/usr/local/lib/python2.7/site-packages/django/shortcuts/__init__.py" in get_object_or_404
113. return queryset.get(*args, **kwargs)
File "/usr/local/lib/python2.7/site-packages/django/db/models/query.py" in get
301. clone = self.filter(*args, **kwargs)
File "/usr/local/lib/python2.7/site-packages/django/db/models/query.py" in filter
593. return self._filter_or_exclude(False, *args, **kwargs)
File "/usr/local/lib/python2.7/site-packages/django/db/models/query.py" in _filter_or_exclude
611. clone.query.add_q(Q(*args, **kwargs))
File "/usr/local/lib/python2.7/site-packages/django/db/models/sql/query.py" in add_q
1204. clause = self._add_q(where_part, used_aliases)
File "/usr/local/lib/python2.7/site-packages/django/db/models/sql/query.py" in _add_q
1240. current_negated=current_negated)
File "/usr/local/lib/python2.7/site-packages/django/db/models/sql/query.py" in build_filter
1131. clause.add(constraint, AND)
File "/usr/local/lib/python2.7/site-packages/django/utils/tree.py" in add
104. data = self._prepare_data(data)
File "/usr/local/lib/python2.7/site-packages/django/db/models/sql/where.py" in _prepare_data
79. value = obj.prepare(lookup_type, value)
File "/usr/local/lib/python2.7/site-packages/django/db/models/sql/where.py" in prepare
352. return self.field.get_prep_lookup(lookup_type, value)
File "/usr/local/lib/python2.7/site-packages/django/db/models/fields/__init__.py" in get_prep_lookup
369. return self.get_prep_value(value)
File "/usr/local/lib/python2.7/site-packages/django/db/models/fields/__init__.py" in get_prep_value
613. return int(value)

Exception Type: ValueError at /admin/tasks/cronjob/edit/None/
Exception Value: invalid literal for int() with base 10: 'None'

No GET data

POST

No POST data

FILES

No FILES data

COOKIES

Variable
Value

csrftoken 'Z1DEJvEcai6QXa5FXLzQylz2GXbX6Tsy'

sessionid 'd0qbomyjwfluvrlq84fvgp1wgmzq1p8y'

fntreeSaveStateCookie 'root%2Croot%2F33%2Croot%2F33%2F37%2Croot%2F33%2F52%2Croot%2F173%2Croot%2F27%2F28%2Croot%2F27%2F43%2Croot%2F186%2Croot%2F186%2F196%2Croot%2F186%2F196%2F198%2Croot%2F189%2F199%2F201%2Croot%2F30%2Croot%2F30%2F31%2Croot%2F30%2F46'

META

Variable
Value

DOCUMENT_ROOT '/usr/local/etc/nginx/html'

CSRF_COOKIE u'Z1DEJvEcai6QXa5FXLzQylz2GXbX6Tsy'

SERVER_ADDR '10.16.2.71'

wsgi.url_scheme 'http'

rollbar.uuid u'f43ff0db-ad63-4332-85ab-83067c4df371'

SERVER_PROTOCOL 'HTTP/1.1'

wsgi.version (1, 0)

HTTP_CONTENT_TYPE 'application/x-www-form-urlencoded'

QUERY_STRING ''

REQUEST_METHOD 'GET'

SERVER_NAME 'localhost'

HTTP_ACCEPT '*/*'

SERVER_SOFTWARE 'nginx/1.10.1'

wsgi.errors <flup.server.fcgi_base.TeeOutputStream object at 0x8170a4d10>

wsgi.run_once False

wsgi.multithread True

HTTP_HOST '10.16.2.71'

HTTP_ACCEPT_ENCODING 'gzip, deflate'

wsgi.input <flup.server.fcgi_base.InputStream object at 0x8170a0590>

REQUEST_URI '/admin/tasks/cronjob/edit/None/'

DOCUMENT_URI '/admin/tasks/cronjob/edit/None/'

HTTP_USER_AGENT 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Firefox/52.0'

HTTP_COOKIE 'csrftoken=Z1DEJvEcai6QXa5FXLzQylz2GXbX6Tsy; sessionid=d0qbomyjwfluvrlq84fvgp1wgmzq1p8y; fntreeSaveStateCookie=root%2Croot%2F33%2Croot%2F33%2F37%2Croot%2F33%2F52%2Croot%2F173%2Croot%2F27%2F28%2Croot%2F27%2F43%2Croot%2F186%2Croot%2F186%2F196%2Croot%2F186%2F196%2F198%2Croot%2F189%2F199%2F201%2Croot%2F30%2Croot%2F30%2F31%2Croot%2F30%2F46'

CONTENT_LENGTH ''

HTTP_DNT '1'

HTTP_X_REQUESTED_WITH 'XMLHttpRequest'

SERVER_PORT '80'

wsgi.multiprocess False

HTTPS ''

CONTENT_TYPE 'application/x-www-form-urlencoded'

HTTP_ACCEPT_LANGUAGE 'en-US,en;q=0.5'

PATH_INFO u'/admin/tasks/cronjob/edit/None/'

REMOTE_PORT '64453'

SCRIPT_NAME u''

REMOTE_ADDR '10.16.2.219'

HTTP_CONNECTION 'keep-alive'

GATEWAY_INTERFACE 'CGI/1.1'

REDIRECT_STATUS '200'

HTTP_REFERER 'http://10.16.2.71/'
 

Ericloewe

Server Wrangler
Moderator
Joined
Feb 15, 2014
Messages
20,194
What's your hardware?
 

Ericloewe

Server Wrangler
Moderator
Joined
Feb 15, 2014
Messages
20,194
Storinator from 45 Drives.
That tells me practically nothing.

Do you have 8GB or more of RAM? If so, file a bug report and include the traceback and a description of steps taken.
 

nriedman

Dabbler
Joined
Jul 19, 2012
Messages
20
Build FreeNAS-9.10.2-U2 (e1497f2)
Platform Intel(R) Xeon(R) CPU E5-2620 v4 @ 2.10GHz

Memory 262001MB
Motherboard SuperMicro MBD-X10SRL-F-O (ATX)

2 x 1GbE NIC
10GbE NIC
2 port Fiber SFP+ card
SD85BAT - 128GB San Disk Z400s SSD Boot Drive
2 Rocket 750 Host Bus Adaptor Cards

System runs fine and we do not believe it is a hardware issue. If you edit the db with sqlite3 and remove the task rows from the tasks_cronjob table, they are still visible in the GUI. Even after a reboot. Are the tasks stored somewhere else as well as the DB or is django caching something?

It is a fresh box, I could smoke it and start over if I had to.

DAve
 

Ericloewe

Server Wrangler
Moderator
Joined
Feb 15, 2014
Messages
20,194
2 Rocket 750 Host Bus Adaptor Cards
Probably unrelated to your problem, but those cards are not going to be a pleasant experience. The driver is less than stable.

If you edit the db with sqlite3 and remove the task rows from the tasks_cronjob table,
Why would you do that?
Are the tasks stored somewhere else as well as the DB or is django caching something?
It's possible.

As I said, please file a bug report. You should never get a traceback.
 
Status
Not open for further replies.
Top