sim icon indicating copy to clipboard operation
sim copied to clipboard

npx support for podman

Open tomgron opened this issue 2 months ago โ€ข 3 comments

When running the command npx simstudio I get error :

๎‚ถ~ ๎‚ฐ npx simstudio
Need to install the following packages:
[email protected]
Ok to proceed? (y)

๐Ÿš€ Starting Sim Studio...
node:events:497
      throw er; // Unhandled 'error' event
      ^

Error: spawn docker ENOENT
    at ChildProcess._handle.onexit (node:internal/child_process:285:19)
    at onErrorNT (node:internal/child_process:483:16)
    at process.processTicksAndRejections (node:internal/process/task_queues:90:21)
Emitted 'error' event on ChildProcess instance at:
    at ChildProcess._handle.onexit (node:internal/child_process:291:12)
    at onErrorNT (node:internal/child_process:483:16)
    at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
  errno: -4058,
  code: 'ENOENT',
  syscall: 'spawn docker',
  path: 'docker',
  spawnargs: [ 'info' ]
}

Node.js v22.20.0

as I don't have docker installed but podman, could the npx script detect container provider and act accordingly?

tomgron avatar Oct 22 '25 07:10 tomgron

@tomgron can look into this

waleedlatif1 avatar Oct 28 '25 16:10 waleedlatif1

Actually after running this with docker desktop I get following error:

๎‚ถ~ ๎‚ฐ npx simstudio
๐Ÿš€ Starting Sim Studio...
๐Ÿ”„ Pulling image ghcr.io/simstudioai/simstudio:latest...
latest: Pulling from simstudioai/simstudio
78b745237c9b: Pull complete
d96a6c20e887: Pull complete
428ac5e62da1: Pull complete
3a91abe87871: Pull complete
66ae8c1da1bd: Pull complete
a08ca4a0330c: Pull complete
980a6398aab1: Pull complete
4437d9b73edd: Pull complete
94896b5dba5f: Pull complete
61013547e69e: Pull complete
01d036902a3c: Pull complete
d44904ad1b2a: Pull complete
ff23b3e13012: Pull complete
b6ad03a754b3: Pull complete
9fef2c5d3219: Pull complete
78ab58808a38: Pull complete
5a99caa79d4f: Pull complete
Digest: sha256:3d303adf4d369033d31eb34b9c79922f597dcf46f85f853556f88aad8efb6d4b
Status: Downloaded newer image for ghcr.io/simstudioai/simstudio:latest
ghcr.io/simstudioai/simstudio:latest
๐Ÿ”„ Pulling image ghcr.io/simstudioai/migrations:latest...
latest: Pulling from simstudioai/migrations
4f4fb700ef54: Pull complete
50177ec384b8: Pull complete
ea5f5e243afe: Pull complete
49762ad34175: Pull complete
79455b4153f7: Pull complete
Digest: sha256:b19609fc1db212d2116f8371ae282b58d1f827b6834aa5e382fcc402f9efe62b
Status: Downloaded newer image for ghcr.io/simstudioai/migrations:latest
ghcr.io/simstudioai/migrations:latest
๐Ÿ”„ Pulling image ghcr.io/simstudioai/realtime:latest...
latest: Pulling from simstudioai/realtime
20a579ea36d2: Pull complete
7687fd447943: Pull complete
726f899c6b35: Pull complete
06cbdd3afa35: Pull complete
0c17138ee316: Pull complete
Digest: sha256:6ad37d1eee4641f3bff23b1039d059d4ac2ee1305d8d34493513196f4becaf73
Status: Downloaded newer image for ghcr.io/simstudioai/realtime:latest
ghcr.io/simstudioai/realtime:latest
๐Ÿ”„ Pulling image pgvector/pgvector:pg17...
pg17: Pulling from pgvector/pgvector
99105f432776: Pull complete
717379dd4557: Pull complete
c1499316ffcf: Pull complete
7960bd43e7e7: Pull complete
1752a03d130b: Pull complete
5a24baf7c78c: Pull complete
6e6162b82c96: Pull complete
a20e5e3a5676: Pull complete
3166755df2cd: Pull complete
678fdefd6cc3: Pull complete
ee33dce80c14: Pull complete
b1badc6e5066: Pull complete
55772d575d05: Pull complete
93c86b7657ed: Pull complete
5332a007b185: Pull complete
1eef446a2d11: Pull complete
Digest: sha256:9ae02a756ba16a2d69dd78058e25915e36e189bb36ddf01ceae86390d7ed786a
Status: Downloaded newer image for pgvector/pgvector:pg17
docker.io/pgvector/pgvector:pg17
๐Ÿ”„ Creating Docker network 'simstudio-network'...
31a41676da0f020bdb3a745d0b61ca70397267dc6888d7107db713e821031726
๐Ÿงน Cleaning up any existing containers...
The system cannot find the path specified.
'true' is not recognized as an internal or external command,
operable program or batch file.
The system cannot find the path specified.
'true' is not recognized as an internal or external command,
operable program or batch file.
The system cannot find the path specified.
'true' is not recognized as an internal or external command,
operable program or batch file.
The system cannot find the path specified.
'true' is not recognized as an internal or external command,
operable program or batch file.
๐Ÿ”„ Starting PostgreSQL database...
6aa8b751f7b83b49b77d288a70c5a4dcb4b3c501cb83479fae7c5fb3a21c0013
โณ Waiting for PostgreSQL to be ready...
๐Ÿ”„ Running database migrations...
$ bunx drizzle-kit migrate --config=./drizzle.config.ts
Reading config file '/app/packages/db/drizzle.config.ts'
Using 'postgres' driver for database querying
[โฃท] applying migrations...36 |   async queryWithCache(queryString, params, query) {
37 |     if (this.cache === void 0 || is(this.cache, NoopCache) || this.queryMetadata === void 0) {
38 |       try {
39 |         return await query();
40 |       } catch (e) {
41 |         throw new DrizzleQueryError(queryString, params, e);
                   ^
error: Failed query: CREATE SCHEMA IF NOT EXISTS "drizzle"
params:
  query: "CREATE SCHEMA IF NOT EXISTS \"drizzle\"",
 params: [],

      at queryWithCache (/app/node_modules/drizzle-orm/pg-core/session.js:41:15)

error: connect ECONNREFUSED 172.18.0.2:5432
   errno: -111,
 syscall: "connect",
    port: 5432,
 address: "172.18.0.2",
    code: "ECONNREFUSED"

      at afterConnect (node:net:1169:39)
      at connectError (node:net:366:48)

error: script "db:migrate" exited with code 1
โŒ Failed to run migrations
๎‚ถ~ ๎‚ฐ

tomgron avatar Nov 04 '25 08:11 tomgron

npx simstudio
Need to install the following packages:
[email protected]
Ok to proceed? (y) 

๐Ÿš€ Starting Sim Studio...
๐Ÿ”„ Pulling image ghcr.io/simstudioai/simstudio:latest...
latest: Pulling from simstudioai/simstudio
01d036902a3c: Pull complete 
a08ca4a0330c: Pull complete 
b6ad03a754b3: Pull complete 
78b745237c9b: Pull complete 
d44904ad1b2a: Pull complete 
61013547e69e: Pull complete 
d96a6c20e887: Pull complete 
428ac5e62da1: Pull complete 
66ae8c1da1bd: Pull complete 
4437d9b73edd: Pull complete 
5a99caa79d4f: Pull complete 
78ab58808a38: Pull complete 
980a6398aab1: Pull complete 
ff23b3e13012: Pull complete 
94896b5dba5f: Pull complete 
9fef2c5d3219: Pull complete 
3a91abe87871: Pull complete 
Digest: sha256:3d303adf4d369033d31eb34b9c79922f597dcf46f85f853556f88aad8efb6d4b
Status: Downloaded newer image for ghcr.io/simstudioai/simstudio:latest
ghcr.io/simstudioai/simstudio:latest

What's next:
    View a summary of image vulnerabilities and recommendations โ†’ docker scout quickview ghcr.io/simstudioai/simstudio:latest
๐Ÿ”„ Pulling image ghcr.io/simstudioai/migrations:latest...
latest: Pulling from simstudioai/migrations
01d036902a3c: Already exists 
a08ca4a0330c: Already exists 
b6ad03a754b3: Already exists 
78b745237c9b: Already exists 
d44904ad1b2a: Already exists 
61013547e69e: Already exists 
d96a6c20e887: Already exists 
ea5f5e243afe: Pull complete 
49762ad34175: Pull complete 
50177ec384b8: Pull complete 
79455b4153f7: Pull complete 
4f4fb700ef54: Pull complete 
Digest: sha256:b19609fc1db212d2116f8371ae282b58d1f827b6834aa5e382fcc402f9efe62b
Status: Downloaded newer image for ghcr.io/simstudioai/migrations:latest
ghcr.io/simstudioai/migrations:latest

What's next:
    View a summary of image vulnerabilities and recommendations โ†’ docker scout quickview ghcr.io/simstudioai/migrations:latest
๐Ÿ”„ Pulling image ghcr.io/simstudioai/realtime:latest...
latest: Pulling from simstudioai/realtime
01d036902a3c: Already exists 
a08ca4a0330c: Already exists 
b6ad03a754b3: Already exists 
78b745237c9b: Already exists 
d44904ad1b2a: Already exists 
61013547e69e: Already exists 
d96a6c20e887: Already exists 
726f899c6b35: Pull complete 
06cbdd3afa35: Pull complete 
7687fd447943: Pull complete 
0c17138ee316: Pull complete 
20a579ea36d2: Pull complete 
Digest: sha256:6ad37d1eee4641f3bff23b1039d059d4ac2ee1305d8d34493513196f4becaf73
Status: Downloaded newer image for ghcr.io/simstudioai/realtime:latest
ghcr.io/simstudioai/realtime:latest

What's next:
    View a summary of image vulnerabilities and recommendations โ†’ docker scout quickview ghcr.io/simstudioai/realtime:latest
๐Ÿ”„ Pulling image pgvector/pgvector:pg17...
pg17: Pulling from pgvector/pgvector
Digest: sha256:9ae02a756ba16a2d69dd78058e25915e36e189bb36ddf01ceae86390d7ed786a
Status: Image is up to date for pgvector/pgvector:pg17
docker.io/pgvector/pgvector:pg17

What's next:
    View a summary of image vulnerabilities and recommendations โ†’ docker scout quickview pgvector/pgvector:pg17
๐Ÿ”„ Creating Docker network 'simstudio-network'...
861fb2d55b1c1f32e71b07d96a0d090de24ba8da4071f840d17e064d1b8bec00
๐Ÿงน Cleaning up any existing containers...
๐Ÿ”„ Starting PostgreSQL database...
944c1b5e85f3207ab46027504a14ce147ef7f69a8ab921df216371ed4d37e5a2
โณ Waiting for PostgreSQL to be ready...
๐Ÿ”„ Running database migrations...
$ bunx drizzle-kit migrate --config=./drizzle.config.ts
Reading config file '/app/packages/db/drizzle.config.ts'
Using 'postgres' driver for database querying
[โฃฏ] applying migrations...{
  severity_local: "NOTICE",
  severity: "NOTICE",
  code: "42622",
  message: "identifier \"workflow_execution_logs_state_snapshot_id_workflow_execution_snapshots_id_fk\" will be truncated to \"workflow_execution_logs_state_snapshot_id_workflow_execution_sn\"",
  file: "scansup.c",
  line: "99",
  routine: "truncate_identifier",
}
[โขฟ] applying migrations...{
  severity_local: "NOTICE",
  severity: "NOTICE",
  code: "42622",
  message: "identifier \"knowledge_base_tag_definitions_knowledge_base_id_knowledge_base_id_fk\" will be truncated to \"knowledge_base_tag_definitions_knowledge_base_id_knowledge_base\"",
  file: "scansup.c",
  line: "99",
  routine: "truncate_identifier",
}
[โฃฝ] applying migrations...{
  severity_local: "NOTICE",
  severity: "NOTICE",
  code: "42701",
  message: "column \"execution_data\" of relation \"workflow_execution_logs\" already exists, skipping",
  file: "tablecmds.c",
  line: "7471",
  routine: "check_for_column_name_collision",
}
{
  severity_local: "NOTICE",
  severity: "NOTICE",
  code: "00000",
  message: "column \"metadata\" of relation \"workflow_execution_logs\" does not exist, skipping",
  file: "tablecmds.c",
  line: "9019",
  routine: "ATExecDropColumn",
}
[โฃท] applying migrations...{
  severity_local: "NOTICE",
  severity: "NOTICE",
  code: "42622",
  message: "identifier \"workflow_log_webhook_delivery_subscription_id_workflow_log_webhook_id_fk\" will be truncated to \"workflow_log_webhook_delivery_subscription_id_workflow_log_webh\"",
  file: "scansup.c",
  line: "99",
  routine: "truncate_identifier",
}
[โœ“] migrations applied successfully!๐Ÿ”„ Starting Realtime Server...
94d1cfbbbf0072f707278aa269082bd119715a77dd0075d41fce9af3760c55e9
๐Ÿ”„ Starting Sim Studio...
1f61f53a836f7ebf39b2de86bb74c1314860c4e9ba24fd37f8d649de0d174e8b
โœ… Sim Studio is now running at http://localhost:3000
๐Ÿ›‘ To stop all containers, run: docker stop simstudio-app simstudio-db simstudio-realtime

can't reproduce

prayanshchh avatar Nov 06 '25 10:11 prayanshchh

Uhh...could be something locally - I'll close this, got it to work in docker anyway

tomgron avatar Nov 11 '25 19:11 tomgron