Open tanaaKa opened 5 years ago
Also of note, we're attempting to use XAMPP, which is the only real difference.
After further digging, it may be a python 3.8 error:
[Mon Nov 11 01:37:29.455664 2019] [wsgi:error] [pid 6536:tid 1216] [client 127.0.0.1:58895] mod_wsgi (pid=6536): Exception occurred processing WSGI script 'C:/Apache24/htdocs/missions/wsgiScript.wsgi'.
[Mon Nov 11 01:37:29.455664 2019] [wsgi:error] [pid 6536:tid 1216] [client 127.0.0.1:58895] Traceback (most recent call last):\r
[Mon Nov 11 01:37:29.455664 2019] [wsgi:error] [pid 6536:tid 1216] [client 127.0.0.1:58895] File "C:/Apache24/htdocs/missions/wsgiScript.wsgi", line 6, in <module>\r
[Mon Nov 11 01:37:29.455664 2019] [wsgi:error] [pid 6536:tid 1216] [client 127.0.0.1:58895] from wsgi import wsgi as application\r
[Mon Nov 11 01:37:29.455664 2019] [wsgi:error] [pid 6536:tid 1216] [client 127.0.0.1:58895] File "C:\\Apache24\\htdocs\\missions\\wsgi.py", line 7, in <module>\r
[Mon Nov 11 01:37:29.455664 2019] [wsgi:error] [pid 6536:tid 1216] [client 127.0.0.1:58895] from changePasswordInternal import handleChangePassword\r
[Mon Nov 11 01:37:29.455664 2019] [wsgi:error] [pid 6536:tid 1216] [client 127.0.0.1:58895] File "C:\\Apache24\\htdocs\\missions\\changePasswordInternal.py", line 3, in <module>\r
[Mon Nov 11 01:37:29.455664 2019] [wsgi:error] [pid 6536:tid 1216] [client 127.0.0.1:58895] from passlib.hash import sha256_crypt\r
[Mon Nov 11 01:37:29.455664 2019] [wsgi:error] [pid 6536:tid 1216] [client 127.0.0.1:58895] File "c:\\users\\administrator\\appdata\\local\\programs\\python\\python38\\lib\\site-packages\\passlib\\hash.py", line 25, in <module>\r
[Mon Nov 11 01:37:29.455664 2019] [wsgi:error] [pid 6536:tid 1216] [client 127.0.0.1:58895] from passlib.registry import _proxy\r
[Mon Nov 11 01:37:29.455664 2019] [wsgi:error] [pid 6536:tid 1216] [client 127.0.0.1:58895] File "c:\\users\\administrator\\appdata\\local\\programs\\python\\python38\\lib\\site-packages\\passlib\\registry.py", line 12, in <module>\r
[Mon Nov 11 01:37:29.455664 2019] [wsgi:error] [pid 6536:tid 1216] [client 127.0.0.1:58895] from passlib.ifc import PasswordHash\r
[Mon Nov 11 01:37:29.455664 2019] [wsgi:error] [pid 6536:tid 1216] [client 127.0.0.1:58895] File "c:\\users\\administrator\\appdata\\local\\programs\\python\\python38\\lib\\site-packages\\passlib\\ifc.py", line 10, in <module>\r
[Mon Nov 11 01:37:29.455664 2019] [wsgi:error] [pid 6536:tid 1216] [client 127.0.0.1:58895] from passlib.utils.decor import deprecated_method\r
[Mon Nov 11 01:37:29.455664 2019] [wsgi:error] [pid 6536:tid 1216] [client 127.0.0.1:58895] File "c:\\users\\administrator\\appdata\\local\\programs\\python\\python38\\lib\\site-packages\\passlib\\utils\\__init__.py", line 845, in <module>\r
[Mon Nov 11 01:37:29.455664 2019] [wsgi:error] [pid 6536:tid 1216] [client 127.0.0.1:58895] from time import clock as timer\r
[Mon Nov 11 01:37:29.455664 2019] [wsgi:error] [pid 6536:tid 1216] [client 127.0.0.1:58895] ImportError: cannot import name 'clock' from 'time' (unknown location)\r```
Fixed.
Roll back to py36, install requests and change pycrypto/nt.py from this link https://stackoverflow.com/questions/24804829/no-module-named-winrandom-when-using-pycrypto
We recently upgraded our server box and are attempting to switch over. Brand new server running:
Apache 2.4.41 Python 3.8 64bit Windows Server 2016
Got the python prereqs installed and good to go (cypto is now defunct btw. Cryptodome replaces it, apparently). Mod_wsgi installed, and yet for some reason, we're running into this: https://i.imgur.com/E0Xlv4K.png
We're also hitting a 500 error when specifying
WSGIScriptAlias /missions C:/xampp/htdocs/missions/wsgiScript.wsgi
Our httpd.conf, just in case: https://pastebin.com/hk5yD42X