illacloud / deploy-illa-manually

Deploy illa utils manually. Docker, docker compose and k8s are all avaliable in this repo.
Apache License 2.0
37 stars 20 forks source link

Cannot login after deployment #1

Closed kjell-van-straaten closed 1 year ago

kjell-van-straaten commented 1 year ago

Hi,

Just deployed Illa manually using the offical Slim image following the steps outlined in the README:

The application works, however, now I arrive on a login page which i cannot seem to bypass. Creating users is also not possible as e-mails do not get send (I haven't configured any email server so I suppose this is right). How do I fix this?

kind regards, Kjell

image

meowcat commented 1 year ago

Same problem here

karminski commented 1 year ago

hi,

Please check the builder-backend logs for more details. run the following command:

docker logs builder-backend

and check the connection to the https://email.illasoft.com/ (our email sender API. will return "404 page not found")

curl https://email.illasoft.com/

We will provide a bypass method as soon as possible. For the first version, we consider that our user may not have the SMTP server or could not config the SMTP server. So we provided the email sender API for the new user registration.

meowcat commented 1 year ago

By the way, I couldn't even sign up to the official one. Never got a confirmation email.

kjell-van-straaten commented 1 year ago

image

As seen in the image, the email sender API is reachable, but there are (I Think) no logs emitted when "send code" command is executed.

naj1n commented 1 year ago

@kjell-van-straaten hi, please provide the message when u click the send code button. Is it Verification code sent ? Or error message?

kjell-van-straaten commented 1 year ago

image I starts counting but now it just gave this error.

karminski commented 1 year ago

@kjell-van-straaten

Hi,

It seems the network was fine, but the web page try to connect the localhost API server, and the API server was deployed on another host (or virtual machine?).

The official slim image can only run on localhost.

if you run an instance at a non-localhost environment, make sure to config the deploy-illa-manually/docker/scripts/run.sh:

# builder-backend api server serve address
API_SERVER_ADDRESS=replace_with_your_server_address

# builder-backend websocket server serve address
WEBSOCKET_SERVER_ADDRESS=replace_with_your_server_address

and if you do not want to build image by yourself, you can replace the last line "illa-builder:latest" with "illasoft/illa-builder:latest"

Or, just use https://github.com/illacloud/illa for auto deploy.

And please paste the browser DevTools Network tab snapshot, we will follow up quickly.

kjell-van-straaten commented 1 year ago

image See name = verification

image

It appears indeed the slim image is trying to send verification to localhost, while this is not used.

kjell-van-straaten commented 1 year ago

Using the docker folder and the script deploy-illa-manually/docker/scripts/run.sh (after editing the variables, using the image from repo) did work, now I logged in and can test out the environment. Thanks for the help! maybe you could add this in the central readme.md to avoid this for VM users in the future! Thanks so much for the help :).

karminski commented 1 year ago

@kjell-van-straaten Glade to hear that. And many thanks for suggestion. We added it. 👍

https://github.com/illacloud/deploy-illa-manually/blob/main/docker/README.md