Comments (7)
Could you post here the django logs, please ?
from zentral.
Jul 09 08:40:26 zentral.domain.com gunicorn[1379]: 2018-07-09 06:40:26,871 PID3786 exception ERROR Internal Server Error: /munki/enroll/
Jul 09 08:40:26 zentral.domain.com gunicorn[1379]: Traceback (most recent call last):
Jul 09 08:40:26 zentral.domain.com gunicorn[1379]: File "/home/zentral/app/venv/lib/python3.5/site-packages/django/core/handlers/exception.py", line 42, in inner
Jul 09 08:40:26 zentral.domain.com gunicorn[1379]: response = get_response(request)
Jul 09 08:40:26 zentral.domain.com gunicorn[1379]: File "/home/zentral/app/venv/lib/python3.5/site-packages/django/core/handlers/base.py", line 187, in _get_response
Jul 09 08:40:26 zentral.domain.com gunicorn[1379]: response = self.process_exception_by_middleware(e, request)
Jul 09 08:40:26 zentral.domain.com gunicorn[1379]: File "/home/zentral/app/venv/lib/python3.5/site-packages/django/core/handlers/base.py", line 185, in _get_response
Jul 09 08:40:26 zentral.domain.com gunicorn[1379]: response = wrapped_callback(request, *callback_args, **callback_kwargs)
Jul 09 08:40:26 zentral.domain.com gunicorn[1379]: File "/usr/lib/python3.5/contextlib.py", line 30, in inner
Jul 09 08:40:26 zentral.domain.com gunicorn[1379]: return func(*args, **kwds)
Jul 09 08:40:26 zentral.domain.com gunicorn[1379]: File "/home/zentral/app/venv/lib/python3.5/site-packages/django/views/decorators/csrf.py", line 58, in wrapped_view
Jul 09 08:40:26 zentral.domain.com gunicorn[1379]: return view_func(*args, **kwargs)
Jul 09 08:40:26 zentral.domain.com gunicorn[1379]: File "/home/zentral/app/venv/lib/python3.5/site-packages/django/views/generic/base.py", line 68, in view
Jul 09 08:40:26 zentral.domain.com gunicorn[1379]: return self.dispatch(request, *args, **kwargs)
Jul 09 08:40:26 zentral.domain.com gunicorn[1379]: File "/home/zentral/app/venv/lib/python3.5/site-packages/django/views/generic/base.py", line 88, in dispatch
Jul 09 08:40:26 zentral.domain.com gunicorn[1379]: return handler(request, *args, **kwargs)
Jul 09 08:40:26 zentral.domain.com gunicorn[1379]: File "/home/zentral/app/releases/2018.07.05-15.56.05-master-3b683f/zentral/contrib/munki/views.py", line 91, in post
Jul 09 08:40:26 zentral.domain.com gunicorn[1379]: request_json = json.load(request)
Jul 09 08:40:26 zentral.domain.com gunicorn[1379]: File "/usr/lib/python3.5/json/__init__.py", line 268, in load
Jul 09 08:40:26 zentral.domain.com gunicorn[1379]: parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
Jul 09 08:40:26 zentral.domain.com gunicorn[1379]: File "/usr/lib/python3.5/json/__init__.py", line 312, in loads
Jul 09 08:40:26 zentral.domain.com gunicorn[1379]: s.__class__.__name__))
Jul 09 08:40:26 zentral.domain.com gunicorn[1379]: TypeError: the JSON object must be str, not 'bytes'
from zentral.
Yes, that's what I thought. Same issue as the santa enrollment one. Fixed in a000fb3. We don't get these errors in our environments.
from zentral.
Yep, it is fixet now 👏🏼 Thanks again @np5
from zentral.
I have found the issue. We run python 3.6 on our prod servers and in the docker setup. With python 3.6, you can pass a file opened in binary mode to json.load
, not with python 3.5, which is the standard on ubuntu 16.04, used for the Zentral all-in-one images.
from zentral.
headmin did mention the use of python3.6 earlier, but I did not follow up after your first fix..
Any requmentet way to upgrade?, without breaking everything :)
from zentral.
python 3.6 is not in the standard ubuntu 16.04 and debian stable distributions. As much as I would love to be able to use only the latest version, this requirement is not really reasonable.
from zentral.
Related Issues (20)
- docker deployment
- Enrollments (santa/osquery) can't be edited/removed once created HOT 1
- Manifest-side, munki/osquery enrollments can't use quota's/serials/udid's for filtering/restriction
- Minor, results view search field does not work when supplied bare integers, requires quoting
- http_post probe action fails with "NoneType object is not callable" HOT 2
- Restrict email invitation domain
- Adding TOTP to a local user repeatedly fails HOT 7
- Can't get syslog output working HOT 15
- deploy.py fails on running migrations while deploying v2021.2-100-g760f7d81 HOT 5
- export in zentral targets not working HOT 4
- Support for token auth in jamf
- Release notes date 2021 should be 2022
- AWS all in one HOT 1
- Docker deployment on cloud vm HOT 2
- Best way to retrieve osquery query run results from external app? HOT 3
- Feature request: metadata linkable to/inline with service accounts/api keys in users view
- Add identifier patterns for signing ID rules to API HOT 3
- Accept unusual Google identifiers for Signing ID Santa rules via ruleset API and rules/create in web interface HOT 1
- Ruleset API endpoint rejects signing IDs containing underscore and minus characters HOT 1
- backend not found HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from zentral.