Giter VIP home page Giter VIP logo

Comments (8)

Moai- avatar Moai- commented on May 18, 2024 1

Okay, I fixed the issue where I could not connect. I'm new to using Docker. To those who also couldn't connect, you have to change your hosts file to include the following strings:

192.168.99.100          app.saas.localhost
192.168.99.100          api.saas.localhost

This got me to the login page, and I'm not sure if that means that at that point there's still a problem. Will close the issue if I manage to get past my other config woes.

from saas.

tima101 avatar tima101 commented on May 18, 2024

@Moai- You may want to ask @pnmcosta about Docker config. But I am not sure if he has time to reply.

from saas.

pnmcosta avatar pnmcosta commented on May 18, 2024

Hi @Moai-, please try and run it again, the script https://github.com/async-labs/saas/blob/master/mongo-user.sh sometimes fails to execute on the first time.

from saas.

Moai- avatar Moai- commented on May 18, 2024

Still working on this, pls don't close the issue yet. When I start everything after the initial yarn stage, both saas-mongoexp and saas-mongo close with an error. After I re-run yarn stage:start, the two containers stay open, but fail to create the user.

I then decided to try and run the script manually. I don't know where it's supposed to run, so I used the printenv command to see which container had environment variables that the script referred to. That turned out to be saas-mongo. I put mongo-user.sh inside the saas-mongo container and ran bash mongo-user.sh in it. I received the following printout:

# bash mongo-user.sh
mongo-user.sh: line 8: _js_escape: command not found
mongo-user.sh: line 8: _js_escape: command not found
mongo-user.sh: line 8: _js_escape: command not found
mongo-user.sh: line 8: _js_escape: command not found
mongo-user.sh: line 8: saas: command not found

Please advise as to which steps to take next.

from saas.

Moai- avatar Moai- commented on May 18, 2024

It is worth noting that I am not using Docker, but Docker Toolbox. Could this be the issue? I'm not too stoked about buying Windows Professional...

from saas.

pnmcosta avatar pnmcosta commented on May 18, 2024

Possibly since it's legacy software, see https://docs.docker.com/toolbox/toolbox_install_windows/

But also purge all the images you have for mongo, perhaps the container is not being created with the version the bash expects.

Do note that this was done a while ago, and may require some tweaking if your not using the exact versions of Docker.

from saas.

Moai- avatar Moai- commented on May 18, 2024

I ended up installing Windows Pro and Docker Desktop. The problem with the admin not being created went away; that part seems to be working now.

However, now I once again can't access http://app.saas.localhost:3000/login from any browser, and in the console where I run yarn stage:start, the last message I see is [ wait ] compiling. . ., but it never goes away. I removed my records from the hosts file, so I don't think that should be affecting it. Do you know what I could be missing?

from saas.

Moai- avatar Moai- commented on May 18, 2024

Ugh, I'm not sure why, but Docker is refusing to properly create network aliases for me. My hosts file now contains the following:

172.22.0.5          app.saas.localhost
172.22.0.5          api.saas.localhost

and it kind of works. I also had to use the solution outlined here (docker/for-win#221 (comment)). Okay... at this point, I am able to see the login screen, although it seems the API is still unreachable, because I cannot sign in either with gmail or my email. Regardless, my original issue was solved (the inability to create a user) by updating to DockerCE and Windows Professional. I'll continue bashing my head against this... it'll solve me tons of time if it works.

from saas.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.