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

socket.io ERR_CONNECTION_REFUSED #1529

Open
faizanops3 opened this issue Dec 16, 2024 · 2 comments
Open

socket.io ERR_CONNECTION_REFUSED #1529

faizanops3 opened this issue Dec 16, 2024 · 2 comments
Labels

Comments

@faizanops3
Copy link

Description of the issue

I successfully installed Frappe Builder. However, when I try to create a new site, I encounter errors in the browser console.

Context information (for bug reports)

  • Frappe version: version-15
  • Python version: 3.12.8
  • Node.js version: 20.9.0
  • Docker image: faizan44/frapee-go:1.0.6

Steps to reproduce the issue

  1. Built a custom Docker image with the following apps.json:
    [
      {
        "url": "https://github.com/frappe/erpnext",
        "branch": "version-15"
      },
      {
        "url": "https://github.com/frappe/payments",
        "branch": "version-15"
      },
      {
        "url": "https://github.com/frappe/webshop",
        "branch": "version-15"
      },
      {
        "url": "https://github.com/frappe/builder",
        "branch": "master"
      },
      {
        "url": "https://github.com/TridotsTech/Go1-Webshop",
        "branch": "master"
      }
    ]
  2. Used the following command to build the Docker image:
    docker build \
      --build-arg=FRAPPE_PATH=https://github.com/frappe/frappe \
      --build-arg=FRAPPE_BRANCH=version-15 \
      --build-arg=PYTHON_VERSION=3.12.8 \
      --build-arg=NODE_VERSION=20.9.0 \
      --build-arg=APPS_JSON_BASE64=$APPS_JSON_BASE64 \
      --tag=faizan44/frapee-go:1.0.6 \
      --file=images/custom/Containerfile .
  3. Pushed the image to Docker Hub.
  4. Replaced the image in pwd.yml with faizan44/frapee-go:1.0.6.
  5. Tried to create a new site.

Observed result

Errors in the browser console:

main.ts:18  
 GET http://localhost:9000/socket.io/?EIO=4&transport=polling&t=PFFeFHG net::ERR_CONNECTION_REFUSED
(anonymous)	@	main.ts:18

builder.api.get_page_preview_html:14 
 GET http://localhost/assets/builder/reset.css?v=1 net::ERR_CONNECTION_REFUSED
builder.api.get_page_preview_html:20 
 GET http://localhost/builder_assets/Navbar%201/imageca9535.webp net::ERR_CONNECTION_REFUSED
builder.api.get_page_preview_html:20 
 GET http://localhost/builder_assets/Navbar%201/Logo.webp net::ERR_CONNECTION_REFUSED
builder.api.get_page_preview_html:22 
 GET http://localhost/builder_assets/Hero%202/image0ccb3c.webp net::ERR_CONNECTION_REFUSED
/assets/builder/fron…/builder_logo.png:1 
 GET http://localhost/assets/builder/frontend/builder_logo.png net::ERR_CONNECTION_REFUSED
main.ts:18 
 GET http://localhost:9000/socket.io/?EIO=4&transport=polling&t=PFFeG0f net::ERR_CONNECTION_REFUSED

Expected result

The site should be created successfully, and assets and socket connections should load without errors.

Image

builder-1
builder-2

@faizanops3 faizanops3 added the bug label Dec 16, 2024
@faizanops3 faizanops3 changed the title ERR_CONNECTION_REFUSED socket.io ERR_CONNECTION_REFUSED Dec 16, 2024
@revant revant closed this as completed Dec 17, 2024
@revant revant reopened this Dec 17, 2024
@faizanops3
Copy link
Author

faizanops3 commented Dec 17, 2024

Hi @revant sir,

In pwd.yml i changed these, Still facing the same error,

1. Under frontend service:-

  • FRAPPE_SITE_NAME_HEADER: $$host

2. Under create-site service in the command:-

  • bench new-site --mariadb-user-host-login-scope='%' --admin-password=admin --db-root-username=root --db-root-password=admin --install-app payments --install-app erpnext --install-app webshop --install-app builder --install-app go1_webshop frontend.localhost;

3. Under websocket service:-

    extra_hosts: 
      - "frontend.localhost:host-gateway"

My forked repo: https://github.com/faizanops3/frappe_docker

builder-3

Thank you so much for taking time.

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