Skip to content

Trying to run in docker #466

Description

@antonio24073

Hi,

I'm trying to run it.

This solution doesn't work: https://github.com/unigraph-dev/unigraph-dev#running-with-docker-image

So, I'm trying to do my own project with Building from Source: https://github.com/antonio24073/unigraph-dev-docker

Log:

I1101 17:58:11.388421      32 pool.go:327] CONN: Re-established connection with localhost:7080.
E1101 17:58:11.440199      31 admin.go:1137] namespace: 0. Error reading GraphQL schema: Please retry again, server is not ready to accept requests.
I1101 17:58:11.445551      31 pool.go:164] CONN: Connecting to localhost:7080
I1101 17:58:11.627817      31 groups.go:165] Informed Zero about tablets I have: OK
I1101 17:58:11.628538      31 groups.go:168] Upserted Schema and Types: OK
I1101 17:58:11.628601      31 groups.go:171] Server is ready: OK
I1101 17:58:11.628621      31 access_ee.go:412] ResetAcl closed
I1101 17:58:11.628632      31 access_ee.go:322] RefreshAcls closed
I1101 17:58:14.327516      31 log.go:34] 1 is starting a new election at term 19
I1101 17:58:14.327527      31 log.go:34] 1 became pre-candidate at term 19
I1101 17:58:14.327531      31 log.go:34] 1 received MsgPreVoteResp from 1 at term 19
I1101 17:58:14.327553      31 log.go:34] 1 became candidate at term 20
I1101 17:58:14.327556      31 log.go:34] 1 received MsgVoteResp from 1 at term 20
I1101 17:58:14.327567      31 log.go:34] 1 became leader at term 20
I1101 17:58:14.327580      31 log.go:34] raft.node: 1 elected leader 1 at term 20
I1101 17:58:14.627771      31 groups.go:953] Leader idx=0x1 of group=1 is connecting to Zero for txn updates
I1101 17:58:14.627828      31 groups.go:965] Got Zero leader: localhost:5080
yarn run v1.22.19
$ yarn workspace unigraph-dev-backend start
warning package.json: No license field
$ yarn build && node --trace-warnings dist
warning package.json: No license field
$ run-script-os
warning package.json: No license field
$ tsc && (cp ../../secrets.env.json dist || true)
I1101 17:58:16.441965      31 admin.go:1148] namespace: 0. No GraphQL schema in Dgraph; serving empty GraphQL API
cp: '../../secrets.env.json' and 'dist/secrets.env.json' are the same file
Build graph took 17ms, which is a bit slow
Building query templates took 1672 ms.
Building query templates took 4471 ms.
unigraph> 
Unigraph server listening on port 4002
{ keyHex: '' }
unhandledRejection TypeError: Cannot open database because the directory does not exist
    at new Database (/unigraph-dev/node_modules/@signalapp/better-sqlite3/lib/database.js:60:9)
    at Database (/unigraph-dev/node_modules/@signalapp/better-sqlite3/lib/database.js:11:10)
    at getUnlockedDb (eval at runEnvRoutineJs (/unigraph-dev/packages/unigraph-dev-backend/dist/executableManager.js:123:20), <anonymous>:16:10)
    at findThreads (eval at runEnvRoutineJs (/unigraph-dev/packages/unigraph-dev-backend/dist/executableManager.js:123:20), <anonymous>:40:22)
    at Object.eval (eval at runEnvRoutineJs (/unigraph-dev/packages/unigraph-dev-backend/dist/executableManager.js:123:20), <anonymous>:137:1)
    at /unigraph-dev/packages/unigraph-dev-backend/dist/executableManager.js:68:33
    at Task._execution (/unigraph-dev/packages/unigraph-dev-backend/dist/executableManager.js:99:203)
    at Task.execute (/unigraph-dev/node_modules/node-cron/src/task.js:17:25)
    at Scheduler.<anonymous> (/unigraph-dev/node_modules/node-cron/src/scheduled-task.js:20:31)
    at Scheduler.emit (node:events:513:28)
Actually doing the upsert...
I1101 17:59:06.326920      32 raft.go:823] Skipping creating a snapshot. Num groups: 1, Num checkpoints: 0
2023-11-01T18:00:00.063Z
{ keyHex: '' }

Please help me to run it. Or another solution.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions