ton-k8s icon indicating copy to clipboard operation
ton-k8s copied to clipboard

genesis container does not start, crashes with an error

Open BuddyGlas opened this issue 1 year ago • 0 comments

Bug Type

Functional

Reproduction steps

  1. accept PR "fixing Dockerfiles for running docker images #7"
  2. launch ownnet by docker compose -f composes/ownnet.yaml up -d
  3. verify that the genesis container has not started
  4. check the genesis container logs

Actual result

An error appears in the genesis service logs:

2024-01-19 08:33:09.660 | INFO     | __main__:<module>:118 - Found existing config in 👾 [/var/ton-work/network]
2024-01-19 08:33:09.660 | INFO     | __main__:<module>:128 - 🧬 Run GENESIS process 🧬
2024-01-19 08:33:09.660 | DEBUG    | hllib.command_line:run:16 - 🐼 Run: generate-random-id -m keys -n /var/ton-work/db/keyring/validator
2024-01-19 08:33:09.665 | DEBUG    | hllib.command_line:run:27 - 🐼 Answer: 5D8C8CF7FFFBAE6E5D515E5D8F1CD3C6778E0468EFC7E488DBD0F605A736B9E3 XYyM9//7rm5dUV5djxzTxneOBGjvx+SI29D2Bac2ueM=

2024-01-19 08:33:09.666 | DEBUG    | hllib.genesis:run_genesis:41 - 🔑  Validator: b64: XYyM9//7rm5dUV5djxzTxneOBGjvx+SI29D2Bac2ueM=, hex: 5D8C8CF7FFFBAE6E5D515E5D8F1CD3C6778E0468EFC7E488DBD0F605A736B9E3
2024-01-19 08:33:09.666 | DEBUG    | hllib.command_line:run:16 - 🐼 Run: /var/ton-work/contracts/create-state -I /usr/local/lib/fift/lib gen-zerostate.fif
[ 1][t 0][2024-01-19 08:33:09.669957426][create-state.cpp:857]	{}
[ 1][t 0][2024-01-19 08:33:09.688882661][Fift.cpp:67]	top: <continuation 0x5566163246f0>
level 1: <continuation 0x556616326cb0>
level 2: <text interpreter continuation>
Error interpreting file `gen-zerostate.fif`: [Error : 0 : gen-zerostate.fif:114:	SETCP0:-?]
2024-01-19 08:33:09.689 | ERROR    | hllib.command_line:run:31 - Status : FAIL 2 b'\ninitial basechain state is:\nx{9023AFE2FFFFFF1100000000008000000000000000000000000000000065AA33C50000000000000000FFFFFFFF2_}\n x{00000000000000001_}\n x{001_}\n x{00000000000000000000000000000000000}\n\nB5EE9C72E1010401005600667C84AC035B9023AFE2FFFFFF1100000000008000000000000000000000000000000065AA33C50000000000000000FFFFFFFF2001020300110000000000000000100003001000230000000000000000000000000000000000080B772222\n(Initial basechain state saved to file basestate0.boc)\nfile hash=543cb73777659ed3530a59a2cad2902dabbc7690b7f7b6ab7c649e2826f872a4  VDy3N3dlntNTClmiytKQLau8dpC397arfGSeKCb4cqQ=\nroot hash=1db1d466f887349973db62f293ab040491081da947b3b1ce7850c3bd69b7b2ff  HbHUZviHNJlz22Lyk6sEBJEIHalHs7HOeFDDvWm3sv8=\nSaved new private key to file main-wallet.pk\nwallet address = -1:1111111111111111111111111111111111111111111111111111111111111111 \nkf8REREREREREREREREREREREREREREREREREREREREREaLR\n(Saving address to file main-wallet.addr)\naddress = 17eda2ea4aae7ae145b93ca2586ed4d211df1aa64d33cf068f2179db328d2847 \n'
Traceback (most recent call last):
  File "/var/ton-work/scripts/init_ton.py", line 130, in <module>
    genesis.run_genesis()
  File "/var/ton-work/scripts/hllib/genesis.py", line 58, in run_genesis
    run(['/var/ton-work/contracts/create-state', '-I', '/usr/local/lib/fift/lib', 'gen-zerostate.fif'],
  File "/var/ton-work/scripts/hllib/command_line.py", line 32, in run
    raise exc
  File "/var/ton-work/scripts/hllib/command_line.py", line 17, in run
    get_output = subprocess.check_output(command, cwd=cwd)
  File "/usr/local/lib/python3.10/subprocess.py", line 421, in check_output
    return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
  File "/usr/local/lib/python3.10/subprocess.py", line 526, in run
    raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['/var/ton-work/contracts/create-state', '-I', '/usr/local/lib/fift/lib', 'gen-zerostate.fif']' returned non-zero exit status 2.

Expected result

the genesis service should be up and running

Suggested Severity

Vulnerability

Device

Desktop (please complete the following information):

  • OS: Ubuntu 22.04.3 LTS
  • Docker version: 24.0.7

Additional Context

No response

BuddyGlas avatar Jan 19 '24 08:01 BuddyGlas