[GH-ISSUE #3336] [bug]: docker aio install error #1111

Open
opened 2026-03-16 18:37:43 +03:00 by kerem · 5 comments
Owner

Originally created by @gintering1000 on GitHub (Sep 10, 2023).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/3336

Is there an existing issue for this?

  • I have searched the existing issues

Current behavior

docker pull hoppscotch/hoppscotch-community
docker run -w "$(pwd)/docker" -p 3000:3000 -p 3100:3100 -p 3170:3170 --env-file .env hoppscotch/hoppscotch

2023-09-10 13:30:39 npm notice 
2023-09-10 13:30:39 npm notice New major version of npm available! 9.5.1 -> 10.1.0
2023-09-10 13:30:39 npm notice Changelog: <https://github.com/npm/cli/releases/tag/v10.1.0>
2023-09-10 13:30:39 npm notice Run `npm install -g npm@10.1.0` to update!
2023-09-10 13:30:39 npm notice 
2023-09-10 13:30:40 App/Admin Dashboard Caddy | {"level":"info","ts":1694320240.0820787,"msg":"using provided configuration","config_file":"/etc/caddy/Caddyfile","config_adapter":"caddyfile"}
2023-09-10 13:30:40 App/Admin Dashboard Caddy | {"level":"warn","ts":1694320240.1057131,"msg":"Caddyfile input is not formatted; run the 'caddy fmt' command to fix inconsistencies","adapter":"caddyfile","file":"/etc/caddy/Caddyfile","line":2}
2023-09-10 13:30:40 App/Admin Dashboard Caddy | {"level":"info","ts":1694320240.117653,"logger":"admin","msg":"admin endpoint started","address":"tcp/localhost:2019","enforce_origin":false,"origins":["//localhost:2019","//[::1]:2019","//127.0.0.1:2019"]}
2023-09-10 13:30:40 App/Admin Dashboard Caddy | {"level":"info","ts":1694320240.123344,"logger":"tls.cache.maintenance","msg":"started background certificate maintenance","cache":"0xc000219dc0"}
2023-09-10 13:30:40 App/Admin Dashboard Caddy | {"level":"info","ts":1694320240.1284108,"logger":"tls","msg":"cleaning storage unit","description":"FileStorage:/root/.local/share/caddy"}
2023-09-10 13:30:40 App/Admin Dashboard Caddy | {"level":"info","ts":1694320240.1294043,"logger":"tls","msg":"finished cleaning storage units"}
2023-09-10 13:30:40 App/Admin Dashboard Caddy | {"level":"info","ts":1694320240.1306953,"msg":"autosaved config (load with --resume flag)","file":"/root/.config/caddy/autosave.json"}
2023-09-10 13:30:40 App/Admin Dashboard Caddy | {"level":"info","ts":1694320240.1308496,"msg":"serving initial configuration"}
2023-09-10 14:01:11 App/Admin Dashboard Caddy | {"level":"info","ts":1694322071.6790283,"msg":"using provided configuration","config_file":"/etc/caddy/Caddyfile","config_adapter":"caddyfile"}
2023-09-10 14:01:11 App/Admin Dashboard Caddy | {"level":"warn","ts":1694322071.6987185,"msg":"Caddyfile input is not formatted; run the 'caddy fmt' command to fix inconsistencies","adapter":"caddyfile","file":"/etc/caddy/Caddyfile","line":2}
2023-09-10 14:01:11 App/Admin Dashboard Caddy | {"level":"info","ts":1694322071.711209,"logger":"admin","msg":"admin endpoint started","address":"tcp/localhost:2019","enforce_origin":false,"origins":["//localhost:2019","//[::1]:2019","//127.0.0.1:2019"]}
2023-09-10 14:01:11 App/Admin Dashboard Caddy | {"level":"info","ts":1694322071.7171497,"logger":"tls.cache.maintenance","msg":"started background certificate maintenance","cache":"0xc0004048c0"}
2023-09-10 14:01:11 App/Admin Dashboard Caddy | {"level":"info","ts":1694322071.7229583,"logger":"tls","msg":"cleaning storage unit","description":"FileStorage:/root/.local/share/caddy"}
2023-09-10 14:01:11 App/Admin Dashboard Caddy | {"level":"info","ts":1694322071.7237895,"logger":"tls","msg":"finished cleaning storage units"}
2023-09-10 14:01:11 App/Admin Dashboard Caddy | {"level":"info","ts":1694322071.7249153,"msg":"autosaved config (load with --resume flag)","file":"/root/.config/caddy/autosave.json"}
2023-09-10 14:01:11 App/Admin Dashboard Caddy | {"level":"info","ts":1694322071.725108,"msg":"serving initial configuration"}
2023-09-10 13:30:42 Backend Server | ERR_PNPM_NO_IMPORTER_MANIFEST_FOUND  No package.json (or package.yaml, or package.json5) was found in "/Users/master/Library/Mobile Documents/com~apple~CloudDocs/Workspace/InternalBase-Gintering1000/Infra-Systeming/Machine-Dev/Service-Hoppscotch/Code-Infra/test".
2023-09-10 13:30:42 Exiting process because Backend Server exited with code 1
2023-09-10 14:01:13 Backend Server | ERR_PNPM_NO_IMPORTER_MANIFEST_FOUND  No package.json (or package.yaml, or package.json5) was found in "/Users/master/Library/Mobile Documents/com~apple~CloudDocs/Workspace/InternalBase-Gintering1000/Infra-Systeming/Machine-Dev/Service-Hoppscotch/Code-Infra/test".
2023-09-10 14:01:13 Exiting process because Backend Server exited with code 1

Steps to reproduce

docker pull hoppscotch/hoppscotch-community
docker run -w "$(pwd)/docker" -p 3000:3000 -p 3100:3100 -p 3170:3170 --env-file .env hoppscotch/hoppscotch

Environment

Release

Version

Self-hosted

Originally created by @gintering1000 on GitHub (Sep 10, 2023). Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/3336 ### Is there an existing issue for this? - [X] I have searched the existing issues ### Current behavior docker pull hoppscotch/hoppscotch-community docker run -w "$(pwd)/docker" -p 3000:3000 -p 3100:3100 -p 3170:3170 --env-file .env hoppscotch/hoppscotch ```docker error 2023-09-10 13:30:39 npm notice 2023-09-10 13:30:39 npm notice New major version of npm available! 9.5.1 -> 10.1.0 2023-09-10 13:30:39 npm notice Changelog: <https://github.com/npm/cli/releases/tag/v10.1.0> 2023-09-10 13:30:39 npm notice Run `npm install -g npm@10.1.0` to update! 2023-09-10 13:30:39 npm notice 2023-09-10 13:30:40 App/Admin Dashboard Caddy | {"level":"info","ts":1694320240.0820787,"msg":"using provided configuration","config_file":"/etc/caddy/Caddyfile","config_adapter":"caddyfile"} 2023-09-10 13:30:40 App/Admin Dashboard Caddy | {"level":"warn","ts":1694320240.1057131,"msg":"Caddyfile input is not formatted; run the 'caddy fmt' command to fix inconsistencies","adapter":"caddyfile","file":"/etc/caddy/Caddyfile","line":2} 2023-09-10 13:30:40 App/Admin Dashboard Caddy | {"level":"info","ts":1694320240.117653,"logger":"admin","msg":"admin endpoint started","address":"tcp/localhost:2019","enforce_origin":false,"origins":["//localhost:2019","//[::1]:2019","//127.0.0.1:2019"]} 2023-09-10 13:30:40 App/Admin Dashboard Caddy | {"level":"info","ts":1694320240.123344,"logger":"tls.cache.maintenance","msg":"started background certificate maintenance","cache":"0xc000219dc0"} 2023-09-10 13:30:40 App/Admin Dashboard Caddy | {"level":"info","ts":1694320240.1284108,"logger":"tls","msg":"cleaning storage unit","description":"FileStorage:/root/.local/share/caddy"} 2023-09-10 13:30:40 App/Admin Dashboard Caddy | {"level":"info","ts":1694320240.1294043,"logger":"tls","msg":"finished cleaning storage units"} 2023-09-10 13:30:40 App/Admin Dashboard Caddy | {"level":"info","ts":1694320240.1306953,"msg":"autosaved config (load with --resume flag)","file":"/root/.config/caddy/autosave.json"} 2023-09-10 13:30:40 App/Admin Dashboard Caddy | {"level":"info","ts":1694320240.1308496,"msg":"serving initial configuration"} 2023-09-10 14:01:11 App/Admin Dashboard Caddy | {"level":"info","ts":1694322071.6790283,"msg":"using provided configuration","config_file":"/etc/caddy/Caddyfile","config_adapter":"caddyfile"} 2023-09-10 14:01:11 App/Admin Dashboard Caddy | {"level":"warn","ts":1694322071.6987185,"msg":"Caddyfile input is not formatted; run the 'caddy fmt' command to fix inconsistencies","adapter":"caddyfile","file":"/etc/caddy/Caddyfile","line":2} 2023-09-10 14:01:11 App/Admin Dashboard Caddy | {"level":"info","ts":1694322071.711209,"logger":"admin","msg":"admin endpoint started","address":"tcp/localhost:2019","enforce_origin":false,"origins":["//localhost:2019","//[::1]:2019","//127.0.0.1:2019"]} 2023-09-10 14:01:11 App/Admin Dashboard Caddy | {"level":"info","ts":1694322071.7171497,"logger":"tls.cache.maintenance","msg":"started background certificate maintenance","cache":"0xc0004048c0"} 2023-09-10 14:01:11 App/Admin Dashboard Caddy | {"level":"info","ts":1694322071.7229583,"logger":"tls","msg":"cleaning storage unit","description":"FileStorage:/root/.local/share/caddy"} 2023-09-10 14:01:11 App/Admin Dashboard Caddy | {"level":"info","ts":1694322071.7237895,"logger":"tls","msg":"finished cleaning storage units"} 2023-09-10 14:01:11 App/Admin Dashboard Caddy | {"level":"info","ts":1694322071.7249153,"msg":"autosaved config (load with --resume flag)","file":"/root/.config/caddy/autosave.json"} 2023-09-10 14:01:11 App/Admin Dashboard Caddy | {"level":"info","ts":1694322071.725108,"msg":"serving initial configuration"} 2023-09-10 13:30:42 Backend Server | ERR_PNPM_NO_IMPORTER_MANIFEST_FOUND  No package.json (or package.yaml, or package.json5) was found in "/Users/master/Library/Mobile Documents/com~apple~CloudDocs/Workspace/InternalBase-Gintering1000/Infra-Systeming/Machine-Dev/Service-Hoppscotch/Code-Infra/test". 2023-09-10 13:30:42 Exiting process because Backend Server exited with code 1 2023-09-10 14:01:13 Backend Server | ERR_PNPM_NO_IMPORTER_MANIFEST_FOUND  No package.json (or package.yaml, or package.json5) was found in "/Users/master/Library/Mobile Documents/com~apple~CloudDocs/Workspace/InternalBase-Gintering1000/Infra-Systeming/Machine-Dev/Service-Hoppscotch/Code-Infra/test". 2023-09-10 14:01:13 Exiting process because Backend Server exited with code 1 ``` ### Steps to reproduce docker pull hoppscotch/hoppscotch-community docker run -w "$(pwd)/docker" -p 3000:3000 -p 3100:3100 -p 3170:3170 --env-file .env hoppscotch/hoppscotch ### Environment Release ### Version Self-hosted
Author
Owner

@LoveHeiZhu commented on GitHub (Sep 11, 2023):

I'm having the same problem, is there a solution?

<!-- gh-comment-id:1713688362 --> @LoveHeiZhu commented on GitHub (Sep 11, 2023): I'm having the same problem, is there a solution?
Author
Owner

@balub commented on GitHub (Sep 21, 2023):

@gintering1000 can you run the docker container without explicitly setting the working directory.

<!-- gh-comment-id:1728981450 --> @balub commented on GitHub (Sep 21, 2023): @gintering1000 can you run the docker container without explicitly setting the working directory.
Author
Owner

@Evsio0n commented on GitHub (Sep 22, 2023):

Same issue here.

Attached with my docker-compose.yaml:

version: '3.1'

services:

  postgres:
    image: postgres:latest
    container_name: hoppscotch_postgres
    environment:
      POSTGRES_USER: admin
      POSTGRES_PASSWORD: REDACTED
      POSTGRES_DB: hoppscotch_app

  hoppscotch-frontend:
    env_file: stack.env
    image: hoppscotch/hoppscotch-frontend:latest
    container_name: hoppscotch-frontend
    depends_on:
      - postgres
    ports:
      - "3089:3000" # frontend
  hoppscotch-backend:
    env_file: stack.env
    image: hoppscotch/hoppscotch-backend:latest 
    container_name: hoppscotch-backend
    depends_on:
      - postgres
    ports:
      - "3170:3170" # backend

  hoppscotch-admin:
    env_file: stack.env
    image: hoppscotch/hoppscotch-admin:latest
    container_name: hoppscotch-admin
    depends_on:
      - postgres
    ports:
      - "3100:3100" # admin
      

Here is attached with my stack.yaml for reference:

DATABASE_URL=postgresql://admin:REDACTED@postgres:5432/hoppscotch_app
JWT_SECRET=secretcode123REDACTED
TOKEN_SALT_COMPLEXITY=10
MAGIC_LINK_TOKEN_VALIDITY=3
REFRESH_TOKEN_VALIDITY=604800000
ACCESS_TOKEN_VALIDITY=86400000
SESSION_SECRET=anothersecretcode12REDACTED
REDIRECT_URL=http://localhost:3000/
WHITELISTED_ORIGINS=http://localhost:3170,http://localhost:3000,http://localhost:3100,https://REDACTEDHOST
MAILER_SMTP_URL=smtps://auth@REDACTEDHOST:REDACTEDPASSWORD@REDACTEDHOST
MAILER_ADDRESS_FROM=REDACTEDHOST
RATE_LIMIT_TTL=60
RATE_LIMIT_MAX=100
VITE_BASE_URL=https://REDACTEDHOST
VITE_SHORTCODE_BASE_URL=https://REDACTEDHOST
VITE_ADMIN_URL=http://localhost:3000
VITE_BACKEND_GQL_URL=https://REDACTEDHOST/graphql
VITE_BACKEND_WS_URL=https://REDACTEDHOST/graphql
VITE_BACKEND_API_URL=https://REDACTEDHOST/v1
VITE_APP_TOS_LINK=https://docs.hoppscotch.io/terms
VITE_APP_PRIVACY_POLICY_LINK=https://docs.hoppscotch.io/privacy
VITE_ALLOWED_AUTH_PROVIDERS=EMAIL

From container hoppscotch-frontend

  • Log Output
INF ts=1695399577.2111099 msg=using provided configuration config_file=/etc/caddy/Caddyfile config_adapter=caddyfile
WRN ts=1695399577.212516 msg=Caddyfile input is not formatted; run 'caddy fmt --overwrite' to fix inconsistencies adapter=caddyfile file=/etc/caddy/Caddyfile line=2
INF ts=1695399577.214582 logger=admin msg=admin endpoint started address=localhost:2019 enforce_origin=false origins=["//localhost:2019","//[::1]:2019","//127.0.0.1:2019"]
INF ts=1695399577.2151623 logger=tls.cache.maintenance msg=started background certificate maintenance cache=0xc000053780
INF ts=1695399577.215196 logger=http.log msg=server running name=srv0 protocols=["h1","h2","h3"]
INF ts=1695399577.215352 logger=tls msg=cleaning storage unit description=FileStorage:/data/caddy
INF ts=1695399577.2156355 logger=tls msg=finished cleaning storage units
INF ts=1695399577.215785 msg=autosaved config (load with --resume flag) file=/config/caddy/autosave.json
INF ts=1695399577.2158122 msg=serving initial configuration
  • Execute inside the container
/site # cat /etc/caddy/Caddyfile 
:8080 {
  try_files {path} /
  root * /site
  file_server
}

/site # netstat -ln
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       
tcp        0      0 127.0.0.11:37319        0.0.0.0:*               LISTEN      
tcp        0      0 127.0.0.1:2019          0.0.0.0:*               LISTEN      
tcp        0      0 :::8080                 :::*                    LISTEN      
udp        0      0 127.0.0.11:40849        0.0.0.0:*                           
Active UNIX domain sockets (only servers)
Proto RefCnt Flags       Type       State         I-Node Path
/site #  cat /config/caddy/autosave.json
{"apps":{"http":{"servers":{"srv0":{"listen":[":8080"],"routes":[{"handle":[{"handler":"vars","root":"/site"}]},{"handle":[{"handler":"rewrite","uri":"{http.matchers.file.relative}"}],"match":[{"file":{"try_files":["{http.request.uri.path}","/"]}}]},{"handle":[{"handler":"file_server","hide":["/etc/caddy/Caddyfile"]}]}]}}}}}

the hoppscotch-frontend here has quite same issue here with hoppscotch-admin

<!-- gh-comment-id:1731713895 --> @Evsio0n commented on GitHub (Sep 22, 2023): Same issue here. Attached with my docker-compose.yaml: ```yaml version: '3.1' services: postgres: image: postgres:latest container_name: hoppscotch_postgres environment: POSTGRES_USER: admin POSTGRES_PASSWORD: REDACTED POSTGRES_DB: hoppscotch_app hoppscotch-frontend: env_file: stack.env image: hoppscotch/hoppscotch-frontend:latest container_name: hoppscotch-frontend depends_on: - postgres ports: - "3089:3000" # frontend hoppscotch-backend: env_file: stack.env image: hoppscotch/hoppscotch-backend:latest container_name: hoppscotch-backend depends_on: - postgres ports: - "3170:3170" # backend hoppscotch-admin: env_file: stack.env image: hoppscotch/hoppscotch-admin:latest container_name: hoppscotch-admin depends_on: - postgres ports: - "3100:3100" # admin ``` ---- Here is attached with my `stack.yaml` for reference: ```env DATABASE_URL=postgresql://admin:REDACTED@postgres:5432/hoppscotch_app JWT_SECRET=secretcode123REDACTED TOKEN_SALT_COMPLEXITY=10 MAGIC_LINK_TOKEN_VALIDITY=3 REFRESH_TOKEN_VALIDITY=604800000 ACCESS_TOKEN_VALIDITY=86400000 SESSION_SECRET=anothersecretcode12REDACTED REDIRECT_URL=http://localhost:3000/ WHITELISTED_ORIGINS=http://localhost:3170,http://localhost:3000,http://localhost:3100,https://REDACTEDHOST MAILER_SMTP_URL=smtps://auth@REDACTEDHOST:REDACTEDPASSWORD@REDACTEDHOST MAILER_ADDRESS_FROM=REDACTEDHOST RATE_LIMIT_TTL=60 RATE_LIMIT_MAX=100 VITE_BASE_URL=https://REDACTEDHOST VITE_SHORTCODE_BASE_URL=https://REDACTEDHOST VITE_ADMIN_URL=http://localhost:3000 VITE_BACKEND_GQL_URL=https://REDACTEDHOST/graphql VITE_BACKEND_WS_URL=https://REDACTEDHOST/graphql VITE_BACKEND_API_URL=https://REDACTEDHOST/v1 VITE_APP_TOS_LINK=https://docs.hoppscotch.io/terms VITE_APP_PRIVACY_POLICY_LINK=https://docs.hoppscotch.io/privacy VITE_ALLOWED_AUTH_PROVIDERS=EMAIL ``` ------ # From container `hoppscotch-frontend` - Log Output ```log INF ts=1695399577.2111099 msg=using provided configuration config_file=/etc/caddy/Caddyfile config_adapter=caddyfile WRN ts=1695399577.212516 msg=Caddyfile input is not formatted; run 'caddy fmt --overwrite' to fix inconsistencies adapter=caddyfile file=/etc/caddy/Caddyfile line=2 INF ts=1695399577.214582 logger=admin msg=admin endpoint started address=localhost:2019 enforce_origin=false origins=["//localhost:2019","//[::1]:2019","//127.0.0.1:2019"] INF ts=1695399577.2151623 logger=tls.cache.maintenance msg=started background certificate maintenance cache=0xc000053780 INF ts=1695399577.215196 logger=http.log msg=server running name=srv0 protocols=["h1","h2","h3"] INF ts=1695399577.215352 logger=tls msg=cleaning storage unit description=FileStorage:/data/caddy INF ts=1695399577.2156355 logger=tls msg=finished cleaning storage units INF ts=1695399577.215785 msg=autosaved config (load with --resume flag) file=/config/caddy/autosave.json INF ts=1695399577.2158122 msg=serving initial configuration ``` - Execute inside the container ```bash /site # cat /etc/caddy/Caddyfile :8080 { try_files {path} / root * /site file_server } /site # netstat -ln Active Internet connections (only servers) Proto Recv-Q Send-Q Local Address Foreign Address State tcp 0 0 127.0.0.11:37319 0.0.0.0:* LISTEN tcp 0 0 127.0.0.1:2019 0.0.0.0:* LISTEN tcp 0 0 :::8080 :::* LISTEN udp 0 0 127.0.0.11:40849 0.0.0.0:* Active UNIX domain sockets (only servers) Proto RefCnt Flags Type State I-Node Path /site # cat /config/caddy/autosave.json {"apps":{"http":{"servers":{"srv0":{"listen":[":8080"],"routes":[{"handle":[{"handler":"vars","root":"/site"}]},{"handle":[{"handler":"rewrite","uri":"{http.matchers.file.relative}"}],"match":[{"file":{"try_files":["{http.request.uri.path}","/"]}}]},{"handle":[{"handler":"file_server","hide":["/etc/caddy/Caddyfile"]}]}]}}}}} ``` the `hoppscotch-frontend` here has quite same issue here with ` hoppscotch-admin`
Author
Owner

@Evsio0n commented on GitHub (Sep 22, 2023):

Although It's not "issue with AIO" ,
I am following the offical instructions to deploy.
The port is needed to change in either way ( From 8080 to 3000/3100 || Change Instructions)
Thanks 👍

<!-- gh-comment-id:1731726808 --> @Evsio0n commented on GitHub (Sep 22, 2023): Although It's not "issue with AIO" , I am following the [offical instructions](https://docs.hoppscotch.io/documentation/self-host/community-edition/install-and-build) to deploy. The port is needed to change in either way ( From 8080 to 3000/3100 || Change Instructions) Thanks :+1:
Author
Owner

@felixsanz commented on GitHub (Sep 28, 2023):

AIO container is fine. the problem are inside frontend and admin containers

<!-- gh-comment-id:1738400013 --> @felixsanz commented on GitHub (Sep 28, 2023): AIO container is fine. the problem are inside frontend and admin containers
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/hoppscotch#1111
No description provided.