MISP / x_old_misp_docker

MISP Docker (XME edition)
284 stars 172 forks source link

I can login with browser, but only think that works is password. #131

Closed CecilJackson closed 2 years ago

CecilJackson commented 2 years ago

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

JustCodeIt4Head commented 2 years ago

Hi, is the Browser on the same Machine as the Docker Container? If not, you have to change the Value of MISP_BASEURL in your .env file from "localhost" to "" (So just two ") or to the IP of the Machine. Im in the Process of Deploying MISP via Docker myselfe and let u know

CecilJackson commented 2 years ago

No it not. I will try that.

Thanks

From: JustCodeIt4Head @.> Sent: Thursday, September 23, 2021 4:30 AM To: MISP/misp-docker @.> Cc: Cecil Jackson @.>; Author @.> Subject: Re: [MISP/misp-docker] I can login with browser, but only think that works is password. (#131)

STOP. THINK. External Email


Hi, is the Browser on the same Machine as the Docker Container? If not, you have to change the Value of MISP_BASEURL in your .env file from "localhost" to "" (So just two ") or to the IP of the Machine. Im in the Process of Deploying MISP via Docker myselfe and let u know

- You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/MISP/misp-docker/issues/131#issuecomment-925647287, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AQMRX4DYJ6M3TP4MKGT6KG3UDLXQ7ANCNFSM5EPR6RSA. Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

CecilJackson commented 2 years ago

If I use "" or IP I get this error:

Not Found Error: The requested address '/users/localhost/users/routeafterlogin' was not found on this server. MYSQL_HOST=misp_db MYSQL_DATABASE=misp MYSQL_USER=misp MYSQL_PASSWORD=misp MYSQL_ROOT_PASSWORD=misp

@.*** MISP_ADMIN_PASSPHRASE=admin MISP_BASEURL=""

POSTFIX_RELAY_HOST=relay.fqdn TIMEZONE=Europe/Brussels

DATA_DIR=./data

From: JustCodeIt4Head @.> Sent: Thursday, September 23, 2021 4:30 AM To: MISP/misp-docker @.> Cc: Cecil Jackson @.>; Author @.> Subject: Re: [MISP/misp-docker] I can login with browser, but only think that works is password. (#131)

STOP. THINK. External Email


Hi, is the Browser on the same Machine as the Docker Container? If not, you have to change the Value of MISP_BASEURL in your .env file from "localhost" to "" (So just two ") or to the IP of the Machine. Im in the Process of Deploying MISP via Docker myselfe and let u know

- You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/MISP/misp-docker/issues/131#issuecomment-925647287, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AQMRX4DYJ6M3TP4MKGT6KG3UDLXQ7ANCNFSM5EPR6RSA. Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

CecilJackson commented 2 years ago

How do you uninstall and reinstall. I removed the directory, but did not remove database.

From: JustCodeIt4Head @.> Sent: Thursday, September 23, 2021 4:30 AM To: MISP/misp-docker @.> Cc: Cecil Jackson @.>; Author @.> Subject: Re: [MISP/misp-docker] I can login with browser, but only think that works is password. (#131)

STOP. THINK. External Email


Hi, is the Browser on the same Machine as the Docker Container? If not, you have to change the Value of MISP_BASEURL in your .env file from "localhost" to "" (So just two ") or to the IP of the Machine. Im in the Process of Deploying MISP via Docker myselfe and let u know

- You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/MISP/misp-docker/issues/131#issuecomment-925647287, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AQMRX4DYJ6M3TP4MKGT6KG3UDLXQ7ANCNFSM5EPR6RSA. Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

JustCodeIt4Head commented 2 years ago

Hi, to do a complete reinstall delete both Containers created (misp_web + misp_db) and delete the Data Directory you have specified in the .env File (Default is a data Folder in the Folder you run the docker compose).

After that reinstall it and use a Domain to access it

CecilJackson commented 2 years ago

I did a rm and then rebuilt. I add the "" and that worked.

How do I get docker to start at reboot. From: JustCodeIt4Head @.> Sent: Thursday, September 23, 2021 4:30 AM To: MISP/misp-docker @.> Cc: Cecil Jackson @.>; Author @.> Subject: Re: [MISP/misp-docker] I can login with browser, but only think that works is password. (#131)

STOP. THINK. External Email


Hi, is the Browser on the same Machine as the Docker Container? If not, you have to change the Value of MISP_BASEURL in your .env file from "localhost" to "" (So just two ") or to the IP of the Machine. Im in the Process of Deploying MISP via Docker myselfe and let u know

- You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/MISP/misp-docker/issues/131#issuecomment-925647287, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AQMRX4DYJ6M3TP4MKGT6KG3UDLXQ7ANCNFSM5EPR6RSA. Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

JustCodeIt4Head commented 2 years ago

In the Docker Compose File for each Service there is a restart Option defined, for example restart: unless-stopped If you want to start your Containers with the Machine booting, all services need the restart Option set to always instead of unless-stopped.

Depending on how much RAM / Cores and what Hard disk your Machine has, I would also suggest using the process manager of your Distribution (e.g. systemd) to start ur Containers with a delay if you use more then a few.