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

Network request failure when trying to login from other machine #254

Closed
nperezv opened this issue May 14, 2024 · 2 comments
Closed

Network request failure when trying to login from other machine #254

nperezv opened this issue May 14, 2024 · 2 comments

Comments

@nperezv
Copy link

nperezv commented May 14, 2024

I've change ports both in .env.development & .env.production to 8000, but nothing happens. I also change the "allowed_origins" to match with the server ip but the result is the same, I've noticed that the container httpd-1 is calling yet to the localhost:4200.

'allowed_origins' => array_filter(['http://192.168.1.228:4200', env('CONSOLE_HOST'), Utils::addWwwToUrl(env('CONSOLE_HOST'))]),

I tried to adding the array "allowed_hosts" and put there the server ip and other ips to test in this format:

'allowed_hosts' => ['192.168.1.228', '192.168.1.133', '192.168.1.153'],

But nothing works, Thank you so much for your help again @roncodes !

console-1      | 172.31.0.1 - - [14/May/2024:14:10:55 +0000] "GET /auth HTTP/1.1" 304 0 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/115.0" "-"
httpd-1        | 172.31.0.1 - - [14/May/2024:14:10:57 +0000] "OPTIONS /int/v1/settings/branding HTTP/1.1" 204 0 "http://localhost:4200/" "Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/115.0"
httpd-1        | 172.31.0.1 - - [14/May/2024:14:10:57 +0000] "OPTIONS /int/v1/installer/initialize HTTP/1.1" 204 0 "http://localhost:4200/" "Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/115.0"
httpd-1        | 172.31.0.1 - - [14/May/2024:14:10:57 +0000] "GET /int/v1/settings/branding HTTP/1.1" 200 272 "http://localhost:4200/" "Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/115.0"
httpd-1        | 172.31.0.1 - - [14/May/2024:14:10:57 +0000] "GET /int/v1/installer/initialize HTTP/1.1" 200 67 "http://localhost:4200/" "Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/115.0"
httpd-1        | 172.31.0.1 - - [14/May/2024:14:10:58 +0000] "OPTIONS /int/v1/two-fa/check?identity=nelson.m.pvent93%40gmail.com HTTP/1.1" 204 0 "http://localhost:4200/" "Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/115.0"
httpd-1        | 172.31.0.1 - - [14/May/2024:14:10:58 +0000] "GET /int/v1/two-fa/check?identity=nelson.m.pvent93%40gmail.com HTTP/1.1" 200 44 "http://localhost:4200/" "Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/115.0"
httpd-1        | 172.31.0.1 - - [14/May/2024:14:10:59 +0000] "OPTIONS /int/v1/auth/login HTTP/1.1" 204 0 "http://localhost:4200/" "Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/115.0"
httpd-1        | 172.31.0.1 - - [14/May/2024:14:10:59 +0000] "POST /int/v1/auth/login HTTP/1.1" 200 54 "http://localhost:4200/" "Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/115.0"
httpd-1        | 172.31.0.1 - - [14/May/2024:14:10:59 +0000] "OPTIONS /int/v1/users/me HTTP/1.1" 204 0 "http://localhost:4200/" "Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/115.0"
httpd-1        | 172.31.0.1 - - [14/May/2024:14:10:59 +0000] "GET /int/v1/users/me HTTP/1.1" 200 485 "http://localhost:4200/" "Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/115.0"
httpd-1        | 172.31.0.1 - - [14/May/2024:14:10:59 +0000] "OPTIONS /int/v1/users/locale HTTP/1.1" 204 0 "http://localhost:4200/" "Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/115.0"
httpd-1        | 172.31.0.1 - - [14/May/2024:14:11:00 +0000] "OPTIONS /int/v1/auth/organizations HTTP/1.1" 204 0 "http://localhost:4200/" "Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/115.0"
httpd-1        | 172.31.0.1 - - [14/May/2024:14:11:00 +0000] "GET /int/v1/users/locale HTTP/1.1" 200 32 "http://localhost:4200/" "Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/115.0"
httpd-1        | 172.31.0.1 - - [14/May/2024:14:11:00 +0000] "OPTIONS /int/v1/lookup/countries?columns=name%2Ccca2%2Cflag%2Cemoji%2Clanguages HTTP/1.1" 204 0 "http://localhost:4200/" "Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/115.0"
httpd-1        | 172.31.0.1 - - [14/May/2024:14:11:00 +0000] "GET /int/v1/auth/organizations HTTP/1.1" 200 545 "http://localhost:4200/" "Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/115.0"
httpd-1        | 172.31.0.1 - - [14/May/2024:14:11:00 +0000] "OPTIONS /int/v1/two-fa/enforce HTTP/1.1" 204 0 "http://localhost:4200/" "Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/115.0"
httpd-1        | 172.31.0.1 - - [14/May/2024:14:11:00 +0000] "OPTIONS /int/v1/notifications?limit=20&sort=-created_at&unread=true HTTP/1.1" 204 0 "http://localhost:4200/" "Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/115.0"
httpd-1        | 172.31.0.1 - - [14/May/2024:14:11:00 +0000] "OPTIONS /int/v1/chat-channels HTTP/1.1" 204 0 "http://localhost:4200/" "Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/115.0"
httpd-1        | 172.31.0.1 - - [14/May/2024:14:11:00 +0000] "OPTIONS /int/v1/dashboards HTTP/1.1" 204 0 "http://localhost:4200/" "Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/115.0"
httpd-1        | 172.31.0.1 - - [14/May/2024:14:11:00 +0000] "OPTIONS /int/v1/settings/branding HTTP/1.1" 204 0 "http://localhost:4200/" "Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/115.0"
httpd-1        | 172.31.0.1 - - [14/May/2024:14:11:01 +0000] "GET /int/v1/two-fa/enforce HTTP/1.1" 200 23 "http://localhost:4200/" "Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/115.0"
httpd-1        | 172.31.0.1 - - [14/May/2024:14:11:01 +0000] "GET /int/v1/notifications?limit=20&sort=-created_at&unread=true HTTP/1.1" 200 117 "http://localhost:4200/" "Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/115.0"
httpd-1        | 172.31.0.1 - - [14/May/2024:14:11:01 +0000] "GET /int/v1/chat-channels HTTP/1.1" 200 117 "http://localhost:4200/" "Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/115.0"
httpd-1        | 172.31.0.1 - - [14/May/2024:14:11:01 +0000] "GET /int/v1/dashboards HTTP/1.1" 200 114 "http://localhost:4200/" "Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/115.0"
httpd-1        | 172.31.0.1 - - [14/May/2024:14:11:01 +0000] "GET /int/v1/settings/branding HTTP/1.1" 200 272 "http://localhost:4200/" "Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/115.0"
httpd-1        | 172.31.0.1 - - [14/May/2024:14:11:02 +0000] "OPTIONS /int/v1/lookup/fleetbase-blog HTTP/1.1" 204 0 "http://localhost:4200/" "Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/115.0"
httpd-1        | 172.31.0.1 - - [14/May/2024:14:11:02 +0000] "OPTIONS /int/v1/fleet-ops/metrics HTTP/1.1" 204 0 "http://localhost:4200/" "Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/115.0"
httpd-1        | 172.31.0.1 - - [14/May/2024:14:11:02 +0000] "OPTIONS /storefront/int/v1/metrics HTTP/1.1" 204 0 "http://localhost:4200/" "Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/115.0"
httpd-1        | 172.31.0.1 - - [14/May/2024:14:11:03 +0000] "GET /int/v1/lookup/countries?columns=name%2Ccca2%2Cflag%2Cemoji%2Clanguages HTTP/1.1" 200 1567913 "http://localhost:4200/" "Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/115.0"
httpd-1        | 172.31.0.1 - - [14/May/2024:14:11:03 +0000] "GET /int/v1/lookup/fleetbase-blog HTTP/1.1" 200 453 "http://localhost:4200/" "Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/115.0"
httpd-1        | 172.31.0.1 - - [14/May/2024:14:11:03 +0000] "GET /int/v1/fleet-ops/metrics HTTP/1.1" 200 235 "http://localhost:4200/" "Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/115.0"
httpd-1        | 172.31.0.1 - - [14/May/2024:14:11:03 +0000] "GET /storefront/int/v1/metrics HTTP/1.1" 200 120 "http://localhost:4200/" "Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/115.0"
console-1      | 192.168.1.133 - - [14/May/2024:14:11:05 +0000] "GET /auth HTTP/1.1" 304 0 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Safari/537.36" "-"
httpd-1        | 172.31.0.1 - - [14/May/2024:14:11:32 +0000] "OPTIONS /int/v1/fleet-ops/settings/visibility HTTP/1.1" 204 0 "http://localhost:4200/" "Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/115.0"
httpd-1        | 172.31.0.1 - - [14/May/2024:14:11:32 +0000] "GET /int/v1/fleet-ops/settings/visibility HTTP/1.1" 200 27 "http://localhost:4200/" "Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/115.0"
@roncodes
Copy link
Member

You now need to rebuild the console container for changes made to .env to take effect, the frontend needs a rebuild

docker-compose down console && docker-compose build console && docker-compose up -d console

@nperezv
Copy link
Author

nperezv commented May 15, 2024

Thank you so much @roncodes ! It worked!

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

No branches or pull requests

2 participants