Login issue after installation

I thought I’d completed the installation on a shared server, but apparently there’s still something wrong… I followed the ihstructions on https://wiki.dreamfactory.com/DreamFactory/Installation (Github ‘procedure’), and I checked my database tables with PhpMyAdmin. I looks like all tables were created…

However when I visit the login screen and enter my email and password, nothing happens when I press ‘Login’… It does not seem to trigger any script… Any idea what could be wrong?

Thanks for your help / hints.

Erik

Hi @Erik,

Could you try clearing your cache and restarting the server then try again for me. Also, could you tell me what operating system you are on and browser? We recommend using Chrome or Firefox.

Best,
Kevin McGahey

Hi Kevin,

Pls bear with me - noob alert! I cannot restart the server myself, as I am on a shared host…

I do have SSH access, which is what I used to install everything. I cleared cache with $ php artisan cache:clear , but that does not help…

I tried both Chrome and Firefox. This is some system info I retrieved with Directadmin and PHPMyAdmin:

System info:

PHP version | 7.1

innodb_version | 5.6.34-79.1
protocol_version | 10
version | 10.0.29-MariaDB-cll-lve
version_comment | MariaDB Server
version_compile_machine | x86_64
version_compile_os | Linux
version_malloc_library | system

Thanks for your help!

Thank you for the information @Erik could you do me a favor and inspect the page to pull up the network tab and try the login button again. Let me know what comes up with that! :slight_smile:

Do you mean F12 > network? This is what that produces when I press login (I removed the domainname and password):

Request URL: https://www.mydomain.com/api/v2/user/session
Request Method: POST
Status Code: 404
Remote Address: 141.138.169.204:443
Referrer Policy: no-referrer-when-downgrade
accept-ranges: bytes
content-type: text/html
date: Wed, 12 Sep 2018 16:22:09 GMT
server: Apache
status: 404
:authority: www.mydomain.com
:method: POST
:path: /api/v2/user/session
:scheme: https
accept: application/json, text/plain, /
accept-encoding: gzip, deflate, br
accept-language: nl-NL,nl;q=0.9,en-US;q=0.8,en;q=0.7
content-length: 82
content-type: application/json;charset=UTF-8
dnt: 1
origin: https://www.mydomain.com
referer: https://www.mydomain.com/df2/public/dreamfactory/dist/index.html
user-agent: Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.106 Safari/537.36
x-dreamfactory-api-key: 6498a8ad1beb9d84d63035c5d1120c007fad6de706734db9689f8996707e0f7d
{email: "algemeen@mydomain.com", password: “removed”, remember_me: false}
email
:
"algemeen@mydomain.com"
password
:
“removed”
remember_me
:
false
session session

Can you confirm the user has the following flags:
is_active=1
is_admin=1 (assuming these are your admin credentials)

The normal flow should be a 401 from the user/session endpoint, as DF knows I am an admin, so it makes the call to system/admin and I get a 200 from that POST call
when using a normal user, you only auth in via the user/session
CloudApp

Hi Kevin,

is_sys_admin
and
is_active

are both set to 1 in the USER table.

Can you send a screenshot of your Config tab https://cl.ly/ff8d875bbd2a and a screenshot of the .env file https://cl.ly/76a9f798446a . We can also take this offline if you don’t feel comfortable sending screenshots. Our email is dspsupport@dreamfactory.com .

Hi Kevin, I’m afraid I cannot make a screenshot of the Config tab, because I cannot login and enter the backend… I will send you a copy of the .env file to the supplied email address. Thanks, Erik

Sorry not enough coffee this morning. Will be on the lookout for the email.

:slight_smile: you’ve got mail…