directus / v8-archive

Directus Database API — Wraps Custom SQL Databases with a REST/GraphQL API
https://docs.directus.io/api/reference.html
505 stars 204 forks source link

Installation impossible : Error 404 on login #1901

Open cercec opened 4 years ago

cercec commented 4 years ago

Bug Report

Since this morning I am trying to install Directus and it failed every time with the same error. I have tried the installation both locally with a basic LAMP server and with OneClick installation on Digital Ocean.

Steps to Reproduce

  1. Create a droplet with Directus OneClick in the marketplace or clone the git repository
  2. Connect with SSH and get the Directus mysql credentials
  3. Visit the admin URL and start the configuration with the credentials
  4. Once the form is complete, hit INSTALL button and wait for the green notification saying that the API was well configured.
  5. Try to login : there is a message warning "Something is wrong with this project" with a 404 error.

Expected Behavior

You should login with no problem with the admin credentials you just set up

Actual Behavior

Get the message : "Something is wrong with this project"

In the console, the error 404 is for the API

GET https://resistic.cercec.dev/admin-resistic/ 404 (Not Found) xhr.js:178

The problem seems to be related to Axios

Other Context & Screenshots

Capture d’écran 2020-04-12 à 11 57 12

Technical Details

rijkvanzanten commented 4 years ago

Do you have mod_rewrite enabled on your server? All requirements met?

cercec commented 4 years ago

Yes all requirements are met. (On Oneclick Installation with Digital Ocean, these requirements are full-filed by DO)

rijkvanzanten commented 4 years ago

Did you rename or change any of the source files or config after setting it up with the one-click? I notice your admin is located on /admin-resistic?

cercec commented 4 years ago

I didn't rename anything manually. This name comes from the Project Name and Project Key inputs in the configuration form.

cercec commented 4 years ago

Hello, I tried to go through a fresh installation on Ubuntu 18.04 with php 7.2 and Mariadb 5.7. Still no luck. Everything goes smoothly till the login page

Capture d’écran 2020-04-14 à 22 34 22 Capture d’écran 2020-04-14 à 22 38 49
benhaynes commented 4 years ago

Docs state MariaDB 10.2+ ... please ensure your server meets the minimum requirements.

https://docs.directus.io/installation/git.html#step-1-make-sure-requirements-are-met

cercec commented 4 years ago

Oh sorry for that, that was a typo. My server is running Mariadb 10.4.12

cercec commented 4 years ago

Tried to set up a new project with a new database. Same problem as before : the project seems correctly configured but get an error 404 when I want to login :

Capture d’écran 2020-04-14 à 23 59 12 Capture d’écran 2020-04-15 à 00 01 01