Skip to content

Commit 3565a11

Browse files
fixing up the node and services start up
1 parent 987580f commit 3565a11

File tree

2 files changed

+47
-183
lines changed

2 files changed

+47
-183
lines changed
Lines changed: 14 additions & 183 deletions
Original file line numberDiff line numberDiff line change
@@ -1,118 +1,16 @@
11
## Start node
22

3-
From the `zkevm` root, run the following:
3+
From the `zkevm` root directory, run the following:
44

55
```sh
66
docker-compose -f mainnet/docker-compose.yaml up
77
```
88

9-
## Logs
9+
This command spins up the RPC node, the synchronizer, the state DB, the pool DB, and the mock prover.
1010

11-
??? "Logs sample"
12-
zkevm-rpc | Version: v0.4.4
13-
zkevm-rpc | Git revision: 9ef6f20
14-
zkevm-rpc | Git branch: HEAD
15-
zkevm-rpc | Go version: go1.21.5
16-
zkevm-rpc | Built: Tue, 12 Dec 2023 17:18:45 +0000
17-
zkevm-rpc | OS/Arch: linux/amd64
18-
zkevm-rpc | 2024-01-18T17:07:55.195Z INFO cmd/run.go:52 Starting application {"pid": 1, "version": "v0.4.4"}
19-
zkevm-rpc | 2024-01-18T17:07:55.205Z INFO db/db.go:121 Found 12 migrations as expected {"pid": 1, "version": "v0.4.4"}
20-
zkevm-sync | Version: v0.4.4
21-
zkevm-sync | Git revision: 9ef6f20
22-
zkevm-sync | Git branch: HEAD
23-
zkevm-sync | Go version: go1.21.5
24-
zkevm-sync | Built: Tue, 12 Dec 2023 17:18:45 +0000
25-
zkevm-sync | OS/Arch: linux/amd64
26-
zkevm-sync | 2024-01-18T17:07:55.318Z INFO cmd/run.go:52 Starting application {"pid": 1, "version": "v0.4.4"}
27-
zkevm-sync | 2024-01-18T17:07:55.318Z INFO cmd/run.go:274 running migrations for zkevm-state-db {"pid": 1, "version": "v0.4.4"}
28-
zkevm-sync | 2024-01-18T17:07:55.318Z INFO db/db.go:47 running migrations up {"pid": 1, "version": "v0.4.4"}
29-
zkevm-sync | 2024-01-18T17:07:55.328Z INFO db/db.go:83 successfully ran 0 migrations {"pid": 1, "version": "v0.4.4"}
30-
zkevm-sync | 2024-01-18T17:07:55.336Z INFO db/db.go:121 Found 12 migrations as expected {"pid": 1, "version": "v0.4.4"}
31-
zkevm-rpc | 2024-01-18T17:07:55.887Z FATAL cmd/run.go:115 no contract code at given address
32-
zkevm-rpc | /src/log/log.go:142 github.com/0xPolygonHermez/zkevm-node/log.appendStackTraceMaybeArgs()
33-
zkevm-rpc | /src/log/log.go:223 github.com/0xPolygonHermez/zkevm-node/log.Fatal()
34-
zkevm-rpc | /src/cmd/run.go:115 main.start()
35-
zkevm-rpc | /go/pkg/mod/github.com/urfave/cli/v2@v2.25.7/command.go:274 github.com/urfave/cli/v2.(*Command).Run()
36-
zkevm-rpc | /go/pkg/mod/github.com/urfave/cli/v2@v2.25.7/command.go:267 github.com/urfave/cli/v2.(*Command).Run()
37-
zkevm-rpc | /go/pkg/mod/github.com/urfave/cli/v2@v2.25.7/app.go:332 github.com/urfave/cli/v2.(*App).RunContext()
38-
zkevm-rpc | /go/pkg/mod/github.com/urfave/cli/v2@v2.25.7/app.go:309 github.com/urfave/cli/v2.(*App).Run()
39-
zkevm-rpc | /src/cmd/main.go:191 main.main()
40-
zkevm-rpc | /usr/local/go/src/runtime/proc.go:267 runtime.main()
41-
zkevm-rpc | {"pid": 1, "version": "v0.4.4"}
42-
zkevm-rpc | main.start
43-
zkevm-rpc | /src/cmd/run.go:115
44-
zkevm-rpc | github.com/urfave/cli/v2.(*Command).Run
45-
zkevm-rpc | /go/pkg/mod/github.com/urfave/cli/v2@v2.25.7/command.go:274
46-
zkevm-rpc | github.com/urfave/cli/v2.(*Command).Run
47-
zkevm-rpc | /go/pkg/mod/github.com/urfave/cli/v2@v2.25.7/command.go:267
48-
zkevm-rpc | github.com/urfave/cli/v2.(*App).RunContext
49-
zkevm-rpc | /go/pkg/mod/github.com/urfave/cli/v2@v2.25.7/app.go:332
50-
zkevm-rpc | github.com/urfave/cli/v2.(*App).Run
51-
zkevm-rpc | /go/pkg/mod/github.com/urfave/cli/v2@v2.25.7/app.go:309
52-
zkevm-rpc | main.main
53-
zkevm-rpc | /src/cmd/main.go:191
54-
zkevm-rpc | runtime.main
55-
zkevm-rpc | /usr/local/go/src/runtime/proc.go:267
56-
zkevm-sync | 2024-01-18T17:07:55.916Z FATAL cmd/run.go:115 no contract code at given address
57-
zkevm-sync | /src/log/log.go:142 github.com/0xPolygonHermez/zkevm-node/log.appendStackTraceMaybeArgs()
58-
zkevm-sync | /src/log/log.go:223 github.com/0xPolygonHermez/zkevm-node/log.Fatal()
59-
zkevm-sync | /src/cmd/run.go:115 main.start()
60-
zkevm-sync | /go/pkg/mod/github.com/urfave/cli/v2@v2.25.7/command.go:274 github.com/urfave/cli/v2.(*Command).Run()
61-
zkevm-sync | /go/pkg/mod/github.com/urfave/cli/v2@v2.25.7/command.go:267 github.com/urfave/cli/v2.(*Command).Run()
62-
zkevm-sync | /go/pkg/mod/github.com/urfave/cli/v2@v2.25.7/app.go:332 github.com/urfave/cli/v2.(*App).RunContext()
63-
zkevm-sync | /go/pkg/mod/github.com/urfave/cli/v2@v2.25.7/app.go:309 github.com/urfave/cli/v2.(*App).Run()
64-
zkevm-sync | /src/cmd/main.go:191 main.main()
65-
zkevm-sync | /usr/local/go/src/runtime/proc.go:267 runtime.main()
66-
zkevm-sync | {"pid": 1, "version": "v0.4.4"}
67-
zkevm-sync | main.start
68-
zkevm-sync | /src/cmd/run.go:115
69-
zkevm-sync | github.com/urfave/cli/v2.(*Command).Run
70-
zkevm-sync | /go/pkg/mod/github.com/urfave/cli/v2@v2.25.7/command.go:274
71-
zkevm-sync | github.com/urfave/cli/v2.(*Command).Run
72-
zkevm-sync | /go/pkg/mod/github.com/urfave/cli/v2@v2.25.7/command.go:267
73-
zkevm-sync | github.com/urfave/cli/v2.(*App).RunContext
74-
zkevm-sync | /go/pkg/mod/github.com/urfave/cli/v2@v2.25.7/app.go:332
75-
zkevm-sync | github.com/urfave/cli/v2.(*App).Run
76-
zkevm-sync | /go/pkg/mod/github.com/urfave/cli/v2@v2.25.7/app.go:309
77-
zkevm-sync | main.main
78-
zkevm-sync | /src/cmd/main.go:191
79-
zkevm-sync | runtime.main
80-
zkevm-sync | /usr/local/go/src/runtime/proc.go:267
81-
zkevm-sync exited with code 1
82-
zkevm-rpc exited with code 1
83-
zkevm-sync | Version: v0.4.4
84-
zkevm-sync | Git revision: 9ef6f20
85-
zkevm-sync | Git branch: HEAD
86-
zkevm-sync | Go version: go1.21.5
87-
zkevm-sync | Built: Tue, 12 Dec 2023 17:18:45 +0000
88-
zkevm-sync | OS/Arch: linux/amd64
89-
zkevm-sync | 2024-01-18T17:08:56.244Z INFO cmd/run.go:52 Starting application {"pid": 1, "version": "v0.4.4"}
90-
zkevm-sync | 2024-01-18T17:08:56.244Z INFO cmd/run.go:274 running migrations for zkevm-state-db {"pid": 1, "version": "v0.4.4"}
91-
zkevm-sync | 2024-01-18T17:08:56.244Z INFO db/db.go:47 running migrations up {"pid": 1, "version": "v0.4.4"}
92-
zkevm-rpc | Version: v0.4.4
93-
zkevm-rpc | Git revision: 9ef6f20
94-
zkevm-rpc | Git branch: HEAD
95-
zkevm-rpc | Go version: go1.21.5
96-
zkevm-rpc | Built: Tue, 12 Dec 2023 17:18:45 +0000
97-
zkevm-rpc | OS/Arch: linux/amd64
98-
zkevm-rpc | 2024-01-18T17:08:56.244Z INFO cmd/run.go:52 Starting application {"pid": 1, "version": "v0.4.4"}
99-
zkevm-rpc | 2024-01-18T17:08:56.255Z INFO db/db.go:121 Found 12 migrations as expected {"pid": 1, "version": "v0.4.4"}
100-
zkevm-sync | 2024-01-18T17:08:56.255Z INFO db/db.go:83 successfully ran 0 migrations {"pid": 1, "version": "v0.4.4"}
101-
zkevm-sync | 2024-01-18T17:08:56.263Z INFO db/db.go:121 Found 12 migrations as expected {"pid": 1, "version": "v0.4.4"}
102-
zkevm-rpc | 2024-01-18T17:08:56.920Z FATAL cmd/run.go:115 no contract code at given address
103-
zkevm-rpc | /src/log/log.go:142 github.com/0xPolygonHermez/zkevm-node/log.appendStackTraceMaybeArgs()
104-
zkevm-rpc | /src/log/log.go:223 github.com/0xPolygonHermez/zkevm-node/log.Fatal()
105-
zkevm-rpc | /src/cmd/run.go:115 main.start()
106-
zkevm-rpc | /go/pkg/mod/github.com/urfave/cli/v2@v2.25.7/command.go:274 github.com/urfave/cli/v2.(*Command).Run()
107-
zkevm-rpc | /go/pkg/mod/github.com/urfave/cli/v2@v2.25.7/command.go:267 github.com/urfave/cli/v2.(*Command).Run()
108-
zkevm-rpc | /go/pkg/mod/github.com/urfave/cli/v2@v2.25.7/app.go:332 github.com/urfave/cli/v2.(*App).RunContext()
109-
zkevm-rpc | /go/pkg/mod/github.com/urfave/cli/v2@v2.25.7/app.go:309 github.com/urfave/cli/v2.(*App).Run()
110-
zkevm-rpc | /src/cmd/main.go:191 main.main()
111-
zkevm-rpc | /usr/local/go/src/runtime/proc.go:267 runtime.main()
112-
zkevm-rpc | {"pid": 1, "version": "v0.4.4"}
113-
zkevm-rpc | main.start
114-
zkevm-rpc | /src/cmd/run.go:115
115-
zkevm-rpc | github.com/urfave/cli/v2.(*Command).Run
11+
## Log sample
12+
13+
??? "Logs sample"
11614
zkevm-rpc | /go/pkg/mod/github.com/urfave/cli/v2@v2.25.7/command.go:274
11715
zkevm-rpc | github.com/urfave/cli/v2.(*Command).Run
11816
zkevm-rpc | /go/pkg/mod/github.com/urfave/cli/v2@v2.25.7/command.go:267
@@ -124,86 +22,19 @@ docker-compose -f mainnet/docker-compose.yaml up
12422
zkevm-rpc | /src/cmd/main.go:191
12523
zkevm-rpc | runtime.main
12624
zkevm-rpc | /usr/local/go/src/runtime/proc.go:267
127-
zkevm-sync | 2024-01-18T17:08:56.928Z FATAL cmd/run.go:115 no contract code at given address
128-
zkevm-sync | /src/log/log.go:142 github.com/0xPolygonHermez/zkevm-node/log.appendStackTraceMaybeArgs()
129-
zkevm-sync | /src/log/log.go:223 github.com/0xPolygonHermez/zkevm-node/log.Fatal()
130-
zkevm-sync | /src/cmd/run.go:115 main.start()
131-
zkevm-sync | /go/pkg/mod/github.com/urfave/cli/v2@v2.25.7/command.go:274 github.com/urfave/cli/v2.(*Command).Run()
132-
zkevm-sync | /go/pkg/mod/github.com/urfave/cli/v2@v2.25.7/command.go:267 github.com/urfave/cli/v2.(*Command).Run()
133-
zkevm-sync | /go/pkg/mod/github.com/urfave/cli/v2@v2.25.7/app.go:332 github.com/urfave/cli/v2.(*App).RunContext()
134-
zkevm-sync | /go/pkg/mod/github.com/urfave/cli/v2@v2.25.7/app.go:309 github.com/urfave/cli/v2.(*App).Run()
135-
zkevm-sync | /src/cmd/main.go:191 main.main()
136-
zkevm-sync | /usr/local/go/src/runtime/proc.go:267 runtime.main()
137-
zkevm-sync | {"pid": 1, "version": "v0.4.4"}
138-
zkevm-sync | main.start
139-
zkevm-sync | /src/cmd/run.go:115
140-
zkevm-sync | github.com/urfave/cli/v2.(*Command).Run
141-
zkevm-sync | /go/pkg/mod/github.com/urfave/cli/v2@v2.25.7/command.go:274
142-
zkevm-sync | github.com/urfave/cli/v2.(*Command).Run
143-
zkevm-sync | /go/pkg/mod/github.com/urfave/cli/v2@v2.25.7/command.go:267
144-
zkevm-sync | github.com/urfave/cli/v2.(*App).RunContext
145-
zkevm-sync | /go/pkg/mod/github.com/urfave/cli/v2@v2.25.7/app.go:332
146-
zkevm-sync | github.com/urfave/cli/v2.(*App).Run
147-
zkevm-sync | /go/pkg/mod/github.com/urfave/cli/v2@v2.25.7/app.go:309
148-
zkevm-sync | main.main
149-
zkevm-sync | /src/cmd/main.go:191
150-
zkevm-sync | runtime.main
151-
zkevm-sync | /usr/local/go/src/runtime/proc.go:267
152-
zkevm-sync exited with code 1
153-
zkevm-rpc exited with code 1
154-
zkevm-pool-db | 2024-01-18 17:09:51.816 UTC [63] LOG: checkpoint starting: time
155-
zkevm-state-db | 2024-01-18 17:09:52.078 UTC [66] LOG: checkpoint starting: time
156-
zkevm-pool-db | 2024-01-18 17:09:55.952 UTC [63] LOG: checkpoint complete: wrote 44 buffers (0.3%); 0 WAL file(s) added, 0 removed, 0 recycled; write=4.115 s, sync=0.015 s, total=4.136 s; sync files=12, longest=0.013 s, average=0.002 s; distance=252 kB, estimate=252 kB
157-
zkevm-rpc | 2024-01-18T17:09:57.402Z INFO cmd/run.go:52 Starting application {"pid": 1, "version": "v0.4.4"}
158-
zkevm-sync | 2024-01-18T17:09:57.402Z INFO cmd/run.go:52 Starting application {"pid": 1, "version": "v0.4.4"}
159-
zkevm-sync | 2024-01-18T17:09:57.402Z INFO cmd/run.go:274 running migrations for zkevm-state-db {"pid": 1, "version": "v0.4.4"}
160-
zkevm-sync | 2024-01-18T17:09:57.402Z INFO db/db.go:47 running migrations up {"pid": 1, "version": "v0.4.4"}
161-
zkevm-sync | Version: v0.4.4
162-
zkevm-sync | Git revision: 9ef6f20
163-
zkevm-sync | Git branch: HEAD
164-
zkevm-sync | Go version: go1.21.5
165-
zkevm-sync | Built: Tue, 12 Dec 2023 17:18:45 +0000
166-
zkevm-sync | OS/Arch: linux/amd64
25+
zkevm-rpc | 2024-01-24T11:32:03.043Z INFO config/config.go:163 config file not found {"pid": 1, "version": "v0.4.4"}
16726
zkevm-rpc | Version: v0.4.4
27+
zkevm-rpc | 2024-01-24T11:32:03.045Z INFO cmd/run.go:52 Starting application {"pid": 1, "version": "v0.4.4"}
16828
zkevm-rpc | Git revision: 9ef6f20
16929
zkevm-rpc | Git branch: HEAD
17030
zkevm-rpc | Go version: go1.21.5
17131
zkevm-rpc | Built: Tue, 12 Dec 2023 17:18:45 +0000
17232
zkevm-rpc | OS/Arch: linux/amd64
173-
zkevm-rpc | 2024-01-18T17:09:57.413Z INFO db/db.go:121 Found 12 migrations as expected {"pid": 1, "version": "v0.4.4"}
174-
zkevm-sync | 2024-01-18T17:09:57.413Z INFO db/db.go:83 successfully ran 0 migrations {"pid": 1, "version": "v0.4.4"}
175-
zkevm-sync | 2024-01-18T17:09:57.422Z INFO db/db.go:121 Found 12 migrations as expected {"pid": 1, "version": "v0.4.4"}
176-
zkevm-sync | 2024-01-18T17:09:58.066Z FATAL cmd/run.go:115 no contract code at given address
177-
zkevm-sync | /src/log/log.go:142 github.com/0xPolygonHermez/zkevm-node/log.appendStackTraceMaybeArgs()
178-
zkevm-sync | /src/log/log.go:223 github.com/0xPolygonHermez/zkevm-node/log.Fatal()
179-
zkevm-sync | /src/cmd/run.go:115 main.start()
180-
zkevm-sync | /go/pkg/mod/github.com/urfave/cli/v2@v2.25.7/command.go:274 github.com/urfave/cli/v2.(*Command).Run()
181-
zkevm-sync | /go/pkg/mod/github.com/urfave/cli/v2@v2.25.7/command.go:267 github.com/urfave/cli/v2.(*Command).Run()
182-
zkevm-sync | /go/pkg/mod/github.com/urfave/cli/v2@v2.25.7/app.go:332 github.com/urfave/cli/v2.(*App).RunContext()
183-
zkevm-sync | /go/pkg/mod/github.com/urfave/cli/v2@v2.25.7/app.go:309 github.com/urfave/cli/v2.(*App).Run()
184-
zkevm-sync | /src/cmd/main.go:191 main.main()
185-
zkevm-sync | /usr/local/go/src/runtime/proc.go:267 runtime.main()
186-
zkevm-sync | {"pid": 1, "version": "v0.4.4"}
187-
zkevm-sync | main.start
188-
zkevm-sync | /src/cmd/run.go:115
189-
zkevm-sync | github.com/urfave/cli/v2.(*Command).Run
190-
zkevm-sync | /go/pkg/mod/github.com/urfave/cli/v2@v2.25.7/command.go:274
191-
zkevm-sync | github.com/urfave/cli/v2.(*Command).Run
192-
zkevm-sync | /go/pkg/mod/github.com/urfave/cli/v2@v2.25.7/command.go:267
193-
zkevm-sync | github.com/urfave/cli/v2.(*App).RunContext
194-
zkevm-sync | /go/pkg/mod/github.com/urfave/cli/v2@v2.25.7/app.go:332
195-
zkevm-sync | github.com/urfave/cli/v2.(*App).Run
196-
zkevm-sync | /go/pkg/mod/github.com/urfave/cli/v2@v2.25.7/app.go:309
197-
zkevm-sync | main.main
198-
zkevm-sync | /src/cmd/main.go:191
199-
zkevm-sync | runtime.main
200-
zkevm-sync | /usr/local/go/src/runtime/proc.go:267
201-
zkevm-rpc | 2024-01-18T17:09:58.068Z FATAL cmd/run.go:115 no contract code at given address
33+
zkevm-rpc | 2024-01-24T11:32:03.054Z ERROR db/db.go:117 error getting migrations count: ERROR: relation "public.gorp_migrations" does not exist (SQLSTATE 42P01)
20234
zkevm-rpc | /src/log/log.go:142 github.com/0xPolygonHermez/zkevm-node/log.appendStackTraceMaybeArgs()
203-
zkevm-rpc | /src/log/log.go:223 github.com/0xPolygonHermez/zkevm-node/log.Fatal()
204-
zkevm-rpc | /src/cmd/run.go:115 main.start()
205-
zkevm-rpc | /go/pkg/mod/github.com/urfave/cli/v2@v2.25.7/command.go:274 github.com/urfave/cli/v2.(*Command).Run()
206-
zkevm-rpc | /go/pkg/mod/github.com/urfave/cli/v2@v2.25.7/command.go:267 github.com/urfave/cli/v2.(*Command).Run()
207-
zkevm-rpc | /go/pkg/mod/github.com/urfave/cli/v2@v2.25.7/app.go:332 github.com/urfave/cli/v2.(*App).RunContext()
208-
zkevm-rpc | /go/pkg/mod/github.com/urfave/cli/v2@v2.25.7/app.go:309 github.com/urfave/cli/v2.(*App).Run()
209-
zkevm-rpc | /src/cmd/main.go:191 main.main()
35+
zkevm-rpc | /src/log/log.go:217 github.com/0xPolygonHermez/zkevm-node/log.Error()
36+
zkevm-rpc | /src/db/db.go:117 github.com/0xPolygonHermez/zkevm-node/db.checkMigrations()
37+
zkevm-rpc | /src/db/db.go:53 github.com/0xPolygonHermez/zkevm-node/db.CheckMigrations()
38+
zkevm-rpc | /src/cmd/run.go:263 main.checkStateMigrations()
39+
zkevm-rpc | /src/cmd/run.go:70 main.start()
40+
zkevm-state-db | 2024-01-24 13:49:21.909 UTC [78] ERROR: relation "public.gorp_migrations" does not exist at character 22
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
One the node is running, you can start the services.
2+
3+
<!-- Copy the following file: https://github.com/0xPolygonHermez/zkevm-node/blob/c3dddf79b228c8f190c8cad71807a56599d6ef18/test/docker-compose.yml-->
4+
5+
## Start L2 gas pricer
6+
7+
!!! warning
8+
In progress.
9+
10+
## Start transaction manager
11+
12+
!!! warning
13+
In progress.
14+
15+
## Start sequencer
16+
17+
!!! warning
18+
In progress.
19+
20+
## Start aggregator
21+
22+
!!! warning
23+
In progress.
24+
25+
## Start block explorer
26+
27+
!!! warning
28+
In progress.
29+
30+
## Start the bridge
31+
32+
!!! warning
33+
In progress.

0 commit comments

Comments
 (0)