Hi,
I'm new to Mayocat shop, and I have some issues to get a successful first launch. The installation of the version 0.3 gone well, and ./bin/startup.sh works. The problem is the creation of the initial admin user which returns a 404 error:
me@myubuntu:~$ sudo curl -i -H "Content-Type: application/json" -X POST -d "{\"slug\":\"admin\",\"email\": \"mym...@myprovider.com\",\"password\":\"mypassword\" }" http://localhost:8080/api/user/
HTTP/1.1 404 Not Found
Date: Sat, 02 Jan 2016 16:11:49 GMT
Content-Type: application/json
Set-Cookie: session=deleted;Path=/;Expires=Thu, 01-Jan-1970 00:00:01 GMT
Set-Cookie: flash=deleted;Path=/;Expires=Thu, 01-Jan-1970 00:00:01 GMT
Transfer-Encoding: chunked
{"message":"No valid tenant at this address","identifier":"NOT_A_VALID_TENANT","code":40401}
I’m running my web server with nginx. Here is the configuration:
server {
listen 80 default_server;
root /var/www/mayocat/;
location / {
proxy_pass http://localhost:8080;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
}
}
If I try to access to http://localhost/ with the browser, I obtain this message:
{"message":"No valid tenant at this address","identifier":"NOT_A_VALID_TENANT","code":40401}
If I try to access to http://localhost/admin/ with the browser, I obtain this message:
Nothing to see here.
Do you have any suggestion? I suppose these errors are because of the impossibility to create the inital admin user.
If I want to add the initial admin user directly in the database, could you provide the sql command to do it? It may resolve the problem.
Thank you !