MISP / x_old_misp_docker

MISP Docker (XME edition)
283 stars 168 forks source link

Error: The requested address '' was not found on this server. #115

Closed TheOfficalNick closed 2 years ago

TheOfficalNick commented 3 years ago

Hi,

I am getting a error when attempting to navigate my MISP instance.

When I log in for the first time after getting the environment setup, I can update my password successfully which is at IP/users/view/1 When I attempt to navigate to any of the menu buttons/links, I get the following error based on which button I select.

Invalid user

Error: The requested address '/users/view/localhost/dashboards' was not found on this server.

or

Invalid user

Error: The requested address '/users/view/localhost/localhost/admin/users/index' was not found on this server.

I have this setup in Docker following docker installation instructions found at https://docs.docker.com/engine/install/ubuntu/#installation-methods https://docs.docker.com/engine/install/ubuntu/

I have then used sudo apt-get install docker-compose

then followed the installation instructions found on this page.

here is some system info for context as well: nick@ubuntu:~$ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 20.04.2 LTS Release: 20.04 Codename: focal nick@ubuntu:~$ docker version Client: Docker Engine - Community Version: 20.10.6 API version: 1.41 Go version: go1.13.15 Git commit: 370c289 Built: Fri Apr 9 22:47:17 2021 OS/Arch: linux/amd64 Context: default Experimental: true

Any help would be appreciated.

picture1

ankitsynx commented 3 years ago

I have the exact same problem with a docker install I did. Still trying to figure out the problem.

TheOfficalNick commented 3 years ago

Please let me know if you figure anything out. I have been messing with this for a few weeks with no luck and a bunch of Googling.

On Mon, May 24, 2021 at 10:09 AM Ankit Kumar @.***> wrote:

I have the exact same problem with a docker install I did.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/MISP/misp-docker/issues/115#issuecomment-847068207, or unsubscribe https://github.com/notifications/unsubscribe-auth/AL2QTFSZ2BKOVRC5IELDW7LTPJM2ZANCNFSM43XLDNHA .

-- Thanks,

Nick Dasnoit

raymondeakiki commented 3 years ago

If you try to remove the localhost part from the url it will work, this is because the baseurl in the config.php file is set to localhost by default. In order to fix the issue, you should set the baseurl to an empty string in the config.php file under data/web/app/Config/

ankitsynx commented 3 years ago

If you try to remove the localhost part from the url it will work, this is because the baseurl in the config.php file is set to localhost by default. In order to fix the issue, you should set the baseurl to an empty string in the config.php file under data/web/app/Config/

Thanks a lot, it worked. What I had done is replace the localhost with my server IP, after removing it works fine now.

TheOfficalNick commented 3 years ago

Thank you so much for the tip!

On Thu, Jun 3, 2021 at 7:55 AM Ankit Kumar @.***> wrote:

If you try to remove the localhost part from the url it will work, this is because the baseurl in the config.php file is set to localhost by default. In order to fix the issue, you should set the baseurl to an empty string in the config.php file under data/web/app/Config/

Thanks a lot, it worked. What I had done is replace the localhost with my server IP, after removing it works fine now.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/MISP/misp-docker/issues/115#issuecomment-853812419, or unsubscribe https://github.com/notifications/unsubscribe-auth/AL2QTFSEDKS6M6PSYEC6TRTTQ5UUNANCNFSM43XLDNHA .

-- Thanks,

Nick Dasnoit

narly-david commented 3 years ago

Should we close this ticket now?

raymondeakiki commented 3 years ago

Yes, my comment solves the reported issue.

Sent from my iPhone

On Jul 1, 2021, at 8:26 PM, David Johnson @.***> wrote:

 Should we close this ticket now?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

WillieMatthewLiu commented 2 years ago

If you try to remove the localhost part from the url it will work, this is because the baseurl in the config.php file is set to localhost by default. In order to fix the issue, you should set the baseurl to an empty string in the config.php file under data/web/app/Config/

Its works!!!!

packetvitality commented 2 years ago

If you try to remove the localhost part from the url it will work, this is because the baseurl in the config.php file is set to localhost by default. In order to fix the issue, you should set the baseurl to an empty string in the config.php file under data/web/app/Config/

This resolved for me as well! Deployed MISP with https://github.com/misp/misp-docker and had to modify MISP_BASEURL=localhost to MISP_BASEURL='' to get it to work. May also have to manually adjust the data/web/app/Config/config.php file as well if you already started the container.

ghost commented 2 years ago

Worked for me too.

Geronaso commented 2 years ago

Hello I have the same problem running it on a docker. I have tried to change the /var/www/MISP/app/Config/config.php value, but I am not sure what command to run for the changes to apply.

I have tried mapping the volume on my docker file, but I think that I am not supposed to do that, since it broke other things.

image

righel commented 2 years ago

should be fixed by #151 and #146