Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The local server doesn't work. I have used vagrant/VM Box for installation. #644

Closed
mehrdadasadiut opened this issue Aug 18, 2022 · 24 comments
Assignees
Labels

Comments

@mehrdadasadiut
Copy link

Hello
I have used VM BOX 6.0 and Vagrant to install the CAIRIS.
Everything goes well and I have CAIRIS running on the VM.
The problem is when I try to use the localhost it does not work.
I am using windows 10 and VM Box. Do I need to do something before accessing to local host?

@failys
Copy link
Collaborator

failys commented Aug 18, 2022

Is there anything unusual in the CAIRIS log file? Also, can you try running up a browser within the VM and seeing what happens if you go to http://localhost:7071 from there?

@failys failys self-assigned this Aug 18, 2022
@mehrdadasadiut
Copy link
Author

I did not check the log file.
The VM is in a running state but I cannot get into the VM itself.

@failys
Copy link
Collaborator

failys commented Aug 18, 2022

The username / password is vagrant / vagrant.

@mehrdadasadiut
Copy link
Author

Sorry but I have logged in to the Vagrant using the credentials you just provided but I dont see any GUI that I can work with. Can I send you a screenshot?

@failys
Copy link
Collaborator

failys commented Aug 18, 2022

Yes, by all means.

@mehrdadasadiut
Copy link
Author

Vagrant VMBOX

@failys
Copy link
Collaborator

failys commented Aug 18, 2022

Can you please try running journalctl -u cairis | tail and send me the output

@mehrdadasadiut
Copy link
Author

cairis2

Here the output is.

@failys
Copy link
Collaborator

failys commented Aug 18, 2022

Also, can you try running curl http://localhost:7071 to access the login page via the shell.

@failys
Copy link
Collaborator

failys commented Aug 18, 2022

cairis2

Here the output is.

I don't see anything out of the ordinary here.

@mehrdadasadiut
Copy link
Author

Here is trying to enter by shell. I see nothing yet.
cairi3

@failys
Copy link
Collaborator

failys commented Aug 18, 2022

That looks normal too. The issue then doesn't seem to be with CAIRIS, but with accessing the VirtualBox . I don't recall whether the flavour of Ubuntu this runs on has the firewall running by default, but you could try turning that off by running ufw disable and seeing if that helps.

I haven't installed CAIRIS via Vagrant for some time, so I'll try seeing if I can reproduce this problem.

@mehrdadasadiut
Copy link
Author

accessing the ufw command requires privilage and it doesnt work with : vagrant , vagrant
maybe you can try to somehow help me to check the problem by anyDesk or something ?

@mehrdadasadiut
Copy link
Author

or tell me what is the more easier / stable installation method for me?

@failys
Copy link
Collaborator

failys commented Aug 18, 2022

Sorry, you need to prefix that command with sudo, i.e. sudo ufw disable.

In any event, it sounds like the issue here isn't with CAIRIS but networking through the VM itself. If you're uncomfortable with Linux and want your own local installation of CAIRIS then installing via Docker might be your best bet.

@mehrdadasadiut
Copy link
Author

Sorry but I still have problems with the localhost, I Installed Docker and went through the procedure.

@failys
Copy link
Collaborator

failys commented Aug 19, 2022

I think your Vagrant/VirtualBox problem might be related to #645. I'm taking a look now, to see if this is the case.

@mehrdadasadiut
Copy link
Author

I tried to access http://VM_IP_ADDRESS:7071 on browser but it is unreachable. However, I tried to ping my VM IP it works ok.

@mehrdadasadiut
Copy link
Author

And I am sure installation of VM and Vagrant was much easier and less error than docker. Docker had more commands to run and still both not working.
So I would be happy if you could help me for the issue of Vagrant/VM.

@mehrdadasadiut
Copy link
Author

Omg look here. I used localhost without port number and Caris page is come up. How should I know that it is accesible from Docker or Vagrant / VM?
However, I still cannot access the panel with user test and password test
localhost without port num

@failys
Copy link
Collaborator

failys commented Aug 19, 2022

The fix for #645 seems to work, but you'll need to go through the installation process again, i.e. run vagrant destroy, and run vagrant up again. The problem was the CAIRIS dev server (that the VM uses) wasn't allowing external traffic to connect in. I've fixed the quickInstall script the vagrant uses now, so all should be good.

@failys
Copy link
Collaborator

failys commented Aug 19, 2022

Omg look here. I used localhost without port number and Caris page is come up. How should I know that it is accesible from Docker or Vagrant / VM?
However, I still cannot access the panel with user test and password test
localhost without port num

It looks like you're using Docker. Try logging in with test@test.com (password: test). If the documentation is telling you to login as 'test' then please point me to where it says that and I'll fix it.

@failys
Copy link
Collaborator

failys commented Aug 19, 2022

In any event, I think your problems (with Vagrant/VirtualBox) should be resolved now, so I'll close this issue. Please feel free to re-open if you're still getting problems though.

@failys failys closed this as completed Aug 19, 2022
@mehrdadasadiut
Copy link
Author

Nothing happens. I cannot login.
I am more interested to use Vagrant.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants