Cannot login to Dreamfactory admin console

#1

Hey,

Not sure if the events are related as apart from the timing I don’t see how Thi should have caused this issue… however I was in the procsss of setting up a Logstash server, and had configured a new service for logstash in the admin console.

At some point I decided to remove the logstash server with the intention of re-adding it. After deleting the logstash service I can no longer login to the admin console.

When attempting to login I don’t get any errors appear on the website, when I click login it just does nothing regardless of if put in the correct or incorrect username and password.

I see the following errors in the logs…

Nginx log
upstream, client: xx.xxx.xxx, server: xxx.xxx.xxx, request: “POST /api/v2/user/session HTTP/1.1”, upstream: “fastcgi://unix:/var/run/php/php7.2-fpm.sock:”, host: " xxx.xxx.xxx", referrer: “https://api.edmi.global/dreamfactory/dist/index.html
2019/04/20 23:43:29 [error] 1274#1274: *175 FastCGI sent in stderr: “PHP message: REST Exception #401 > Invalid credentials supplied” while reading response header from upstream, client: 121.211.50.7, server: xxx.xxx.xxx, request: “POST /api/v2/user/session HTTP/1.1”, upstream: “fastcgi://unix:/var/run/php/php7.2-fpm.sock:”, host: “xxx.xx.xxx”, referrer: “https://xxx.xxx.xxx/dreamfactory/dist/index.html

Dreamfactory log
DreamFactory\Core\Services\BaseRestService, null given, called in /opt/dreamfactory/vendor/dreamfactory/df-core/src/Handlers/Events/ServiceEventHandler.php on line 80 {“exception”:"[object] (Symfony\Component\Debug\Exception\FatalThrowableError(code: 0): Type error: Argument 1 passed to DreamFactory\Core\Events\ServiceAssignedEvent::__construct() must be an instance of DreamFactory\Core\Services\BaseRestService, null given, called in /opt/dreamfactory/vendor/dreamfactory/df-core/src/Handlers/Events/ServiceEventHandler.php on line 80 at /opt/dreamfactory/vendor/dreamfactory/df-core/src/Events/ServiceAssignedEvent.php:17)"}
[2019-04-20 23:43:29] local.INFO: [REQUEST] {“API Version”:“2.0”,“Method”:“POST”,“Service”:“user”,“Resource”:“session”,“Requestor”:1}
[2019-04-20 23:43:29] local.DEBUG: [REQUEST] {“Parameters”:"",“API Key”:“xxx.xx.xxx”,“JWT”:null}
[2019-04-20 23:43:29] local.DEBUG: API event handled: user.session.post.pre_process
[2019-04-20 23:43:29] local.DEBUG: API event handled: user.session.post.post_process
[2019-04-20 23:43:29] local.DEBUG: Service event handled: user.session.post
[2019-04-20 23:43:29] local.INFO: [RESPONSE] {“Status Code”:401,“Content-Type”:null}
[2019-04-20 23:43:29] local.INFO: [RESPONSE] {“Status Code”:401,“Content-Type”:“text/plain”}
[2019-04-20 23:43:29] local.INFO: [REQUEST] {“API Version”:“2.0”,“Method”:“POST”,“Service”:“system”,“Resource”:“admin/session”,“Requestor”:1}
[2019-04-20 23:43:29] local.DEBUG: [REQUEST] {“Parameters”:"",“API Key”:“xxx.xx.xxx”,“JWT”:null}
[2019-04-20 23:43:29] local.DEBUG: API event handled: system.admin.session.post.pre_process
[2019-04-20 23:43:29] local.DEBUG: API event handled: system.admin.session.post.post_process
[2019-04-20 23:43:29] local.DEBUG: Service event handled: system.admin.session.post
[2019-04-20 23:43:29] local.ERROR: Type error: Argument 1 passed to DreamFactory\Core\Events\ServiceAssignedEvent::__construct() must be an instance of DreamFactory\Core\Services\BaseRestService, null given, called in /opt/dreamfactory/vendor/dreamfactory/df-core/src/Handlers/Events/ServiceEventHandler.php on line 80 {“userId”:1,“email”:“xxx.xx.xxx”,“exception”:"[object] (Symfony\Component\Debug\Exception\FatalThrowableError(code: 0): Type error: Argument 1 passed to DreamFactory\Core\Events\ServiceAssignedEvent::__construct() must be an instance of DreamFactory\Core\Services\BaseRestService, null given, called in /opt/dreamfactory/vendor/dreamfactory/df-core/src/Handlers/Events/ServiceEventHandler.php on line 80 at /opt/dreamfactory/vendor/dreamfactory/df-core/src/Events/ServiceAssignedEvent.php:17)"}
[2019-04-20 23:43:30] local.INFO: [REQUEST] {“API Version”:“2.0”,“Method”:“POST”,“Service”:“user”,“Resource”:“session”,“Requestor”:1}
[2019-04-20 23:43:30] local.DEBUG: [REQUEST] {“Parameters”:"",“API Key”:“xxx.xx.xxx”,“JWT”:null}
[2019-04-20 23:43:30] local.DEBUG: API event handled: user.session.post.pre_process
[2019-04-20 23:43:30] local.DEBUG: API event handled: user.session.post.post_process
[2019-04-20 23:43:30] local.DEBUG: Service event handled: user.session.post
[2019-04-20 23:43:30] local.INFO: [RESPONSE] {“Status Code”:401,“Content-Type”:null}
[2019-04-20 23:43:30] local.INFO: [RESPONSE] {“Status Code”:401,“Content-Type”:“text/plain”}
[2019-04-20 23:43:30] local.INFO: [REQUEST] {“API Version”:“2.0”,“Method”:“POST”,“Service”:“system”,“Resource”:“admin/session”,“Requestor”:1}
[2019-04-20 23:43:30] local.DEBUG: [REQUEST] {“Parameters”:"",“API Key”:“xxx.xx.xxx”,“JWT”:null}
[2019-04-20 23:43:30] local.DEBUG: API event handled: system.admin.session.post.pre_process
[2019-04-20 23:43:30] local.DEBUG: API event handled: system.admin.session.post.post_process
[2019-04-20 23:43:30] local.DEBUG: Service event handled: system.admin.session.post