magesuite / magepack

Next generation Magento 2 advanced JavaScript bundler.
Open Software License 3.0
436 stars 91 forks source link

net::ERR_CONNECTION_REFUSED #52

Open ravibhalodia opened 4 years ago

ravibhalodia commented 4 years ago

Hello team,

I am getting following error when running magepack generate command

net::ERR_CONNECTION_REFUSED at https://domain name/index.php/women.html 05:35:05

at navigate (/usr/lib/node_modules/magepack/node_modules/puppeteer/lib/FrameManager.js:120:37) at process._tickCallback (internal/process/next_tick.js:68:7) -- ASYNC -- at Frame. (/usr/lib/node_modules/magepack/node_modules/puppeteer/lib/helper.js:111:15) at Page.goto (/usr/lib/node_modules/magepack/node_modules/puppeteer/lib/Page.js:672:49) at Page. (/usr/lib/node_modules/magepack/node_modules/puppeteer/lib/helper.js:112:23) at Object.category (/usr/lib/node_modules/magepack/lib/generate/collector/category.js:36:16) at process._tickCallback (internal/process/next_tick.js:68:7)

Any idea why I am getting this error?

Thanks,

krzksz commented 4 years ago

Hey @ravibhalodia, did you try running magepack in debug mode? It looks like it is not able to reach your shop's URL or something.

good-geek commented 3 years ago

image

good-geek commented 3 years ago

its developer mode - i have problem/ help me please

honganhnguyen-lab commented 3 years ago

I am facing the same problem and don't understand why it refused my local path Screenshot from 2021-07-13 17-57-25

phpWebStudio commented 2 years ago

Same issue from inside Docker container. Ping of domain-name is well. Web-shop opened in browser as well.

pmonosolo commented 2 years ago

Has anybody found a way to run this at least on localhost?

Getting the same error on localhost inside Docker container

@phpWebStudio @honganhnguyen-lab @sarootua @krzksz

UPDATE:

looks like this is going to be a struggle to get it running on docker environment. Downloaded Windows NodeJS application, then ran the installation of Magepack. Ran generation under PowerShell. You will need to do this:

Set-ExecutionPolicy RemoteSigned

magepack generate --cms-url="http://localhost/cms/" --category-url="http://localhost/category-page.html" --product-url="http://localhost/product-page.html"

Set-ExecutionPolicy Restricted

rzinovets commented 1 year ago

you need to add docker container IP address to /etc/hosts. to get ip: docker inspect \ -f '{{range.NetworkSettings.Networks}}{{.IPAddress}}{{end}}' container_name_or_id (it helped me!)