Mayocat shop first start

127 views
Skip to first unread message

Mickael Leclercq

unread,
Jan 2, 2016, 11:33:14 AM1/2/16
to mayocat-users

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 !

yohanes marthin Hutabarat

unread,
Apr 21, 2016, 5:30:09 AM4/21/16
to mayocat-users
Hi, I have the same problem.
Can someone help me?
Thanks.

yohanes marthin Hutabarat

unread,
Apr 21, 2016, 5:31:17 AM4/21/16
to mayocat-users

Sachin k s

unread,
Mar 21, 2017, 1:16:52 AM3/21/17
to mayocat-users
Hi,

Even I am facing the same issue. Can somone please help?
Reply all
Reply to author
Forward
0 new messages