Teku: 404 error

I’m getting a 404 error despite using my correct project ID and secret. Any ideas?

tech.pegasys.teku.infrastructure.exceptions.InvalidConfigurationException: Failed to load initial state from https://eth2-beacon-prater.infura.io/eth/v3/debug/beacon/states/finalized: Not found

hi @iamkoa can you please pot the exact request you’re doing (without auth) ?

Thanks !

Hello,

I’m following the directions for setting up Teku shown here.

The instructions call for using …/v3/… in the URL but I get a “not found” error. If I use …/v2/… Teku runs without error, however no requests are logged at the Infura website.

teku: 2021-11-17 11:33:29,738 main INFO Configuring logging for destination: console
teku: 2021-11-17 11:33:29,741 main INFO Logging includes events: true
teku: 2021-11-17 11:33:29,741 main INFO Logging includes validator duties: true
teku: 2021-11-17 11:33:29,741 main INFO Logging includes color: true
teku: 2021-11-17 11:33:29,748 main INFO Include P2P warnings set to: false
teku: 11:33:29.749 INFO - Teku version: teku/v21.11.0+44-gc2d17b1/linux-x86_64/-ubuntu-openjdk64bitservervm-java-11
teku: 11:33:29.753 INFO - This software is licensed under the Apache License, Version 2.0 (the “License”); you may not use this software except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
teku: 11:33:29.973 INFO - validator-api-enabled is false, not starting rest api.
teku: 11:33:30.017 INFO - Using default implementation for ThreadExecutor
teku: 11:33:30.020 INFO - Job execution threads will use class loader of thread: main
teku: 11:33:30.032 INFO - Initialized Scheduler Signaller of type: class org.quartz.core.SchedulerSignalerImpl
teku: 11:33:30.032 INFO - Quartz Scheduler v.2.3.2 created.
teku: 11:33:30.033 INFO - RAMJobStore initialized.
teku: 11:33:30.034 INFO - Scheduler meta-data: Quartz Scheduler (v2.3.2) ‘DefaultQuartzScheduler’ with instanceId ‘NON_CLUSTERED’
teku: Scheduler class: ‘org.quartz.core.QuartzScheduler’ - running locally.
teku: NOT STARTED.
teku: Currently in standby mode.
teku: Number of jobs executed: 0
teku: Using thread pool ‘org.quartz.simpl.SimpleThreadPool’ - with 10 threads.
teku: Using job-store ‘org.quartz.simpl.RAMJobStore’ - which does not support persistence. and is not clustered.
teku: 11:33:30.034 INFO - Quartz scheduler ‘DefaultQuartzScheduler’ initialized from default resource file in Quartz package: ‘quartz.properties’
teku: 11:33:30.034 INFO - Quartz scheduler version: 2.3.2
teku: 11:33:30.088 INFO - BLS: loaded BLST library
teku: 11:33:30.090 INFO - Storing beacon chain data in: /var/lib/teku/beacon
teku: 11:33:30.090 INFO - Starting metrics http service on 127.0.0.1:8008
teku: 11:33:30.091 INFO - Loading 1 validator keys…
teku: 11:33:30.257 INFO - Metrics service started and listening on 8008:8008
teku: 11:33:30.259 INFO - Beacon data directory set to: /var/lib/teku/beacon
teku: 11:33:30.298 INFO - Created leveldb_tree Hot and Finalized database (leveldb-tree) at /var/lib/teku/beacon/db
teku: 11:33:30.336 INFO - Initializing storage
teku: 11:33:30.338 INFO - Storage initialization complete
teku: 11:33:30.338 INFO - Loading initial state from https://eth2-beacon-prater.infura.io/eth/v3/debug/beacon/states/finalized
teku: 11:33:30.942 ERROR - Failed to load initial state
teku: java.io.FileNotFoundException: Not found
teku: at tech.pegasys.teku.spec.datastructures.util.ChainDataLoader.lambda$loadState$0(ChainDataLoader.java:27) ~[teku-ethereum-spec-develop.jar:21.11.0+44-gc2d17b1]
teku: at java.util.Optional.orElseThrow(Optional.java:408) ~[?:?]
teku: at tech.pegasys.teku.spec.datastructures.util.ChainDataLoader.loadState(ChainDataLoader.java:27) ~[teku-ethereum-spec-develop.jar:21.11.0+44-gc2d17b1]
teku: at tech.pegasys.teku.services.beaconchain.WeakSubjectivityInitializer.lambda$loadInitialAnchorPoint$0(WeakSubjectivityInitializer.java:51) ~[teku-services-beaconchain-develop.jar:21.11.0+44-gc2d17b1]
teku: at java.util.Optional.map(Optional.java:265) ~[?:?]
teku: at tech.pegasys.teku.services.beaconchain.WeakSubjectivityInitializer.loadInitialAnchorPoint(WeakSubjectivityInitializer.java:46) ~[teku-services-beaconchain-develop.jar:21.11.0+44-gc2d17b1]
teku: at tech.pegasys.teku.services.beaconchain.BeaconChainController.setupInitialState(BeaconChainController.java:826) ~[teku-services-beaconchain-develop.jar:21.11.0+44-gc2d17b1]
teku: at tech.pegasys.teku.services.beaconchain.BeaconChainController.lambda$initialize$9(BeaconChainController.java:289) ~[teku-services-beaconchain-develop.jar:21.11.0+44-gc2d17b1]
teku: at java.util.concurrent.CompletableFuture$UniCompose.tryFire(CompletableFuture.java:1072) ~[?:?]
teku: at java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:506) ~[?:?]
teku: at java.util.concurrent.CompletableFuture.complete(CompletableFuture.java:2073) ~[?:?]
teku: at tech.pegasys.teku.infrastructure.async.SafeFuture.lambda$propagateResult$3(SafeFuture.java:147) ~[teku-infrastructure-async-develop.jar:21.11.0+44-gc2d17b1]
teku: at java.util.concurrent.CompletableFuture.uniWhenComplete(CompletableFuture.java:859) ~[?:?]
teku: at java.util.concurrent.CompletableFuture$UniWhenComplete.tryFire(CompletableFuture.java:837) ~[?:?]
teku: at java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:506) ~[?:?]
teku: at java.util.concurrent.CompletableFuture.complete(CompletableFuture.java:2073) ~[?:?]
teku: at tech.pegasys.teku.infrastructure.async.SafeFuture.lambda$propagateToAsync$13(SafeFuture.java:269) ~[teku-infrastructure-async-develop.jar:21.11.0+44-gc2d17b1]
teku: at tech.pegasys.teku.infrastructure.async.SafeFuture.of(SafeFuture.java:81) ~[teku-infrastructure-async-develop.jar:21.11.0+44-gc2d17b1]
teku: at tech.pegasys.teku.infrastructure.async.AsyncRunner.lambda$runAsync$2(AsyncRunner.java:38) ~[teku-infrastructure-async-develop.jar:21.11.0+44-gc2d17b1]
teku: at tech.pegasys.teku.infrastructure.async.SafeFuture.of(SafeFuture.java:73) ~[teku-infrastructure-async-develop.jar:21.11.0+44-gc2d17b1]
teku: at tech.pegasys.teku.infrastructure.async.ScheduledExecutorAsyncRunner.lambda$createRunnableForAction$1(ScheduledExecutorAsyncRunner.java:119) ~[teku-infrastructure-async-develop.jar:21.11.0+44-gc2d17b1]
teku: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) [?:?]
teku: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) [?:?]
teku: at java.lang.Thread.run(Thread.java:829) [?:?]
teku: 11:33:30.948 FATAL - Failed to load initial state from https://eth2-beacon-prater.infura.io/eth/v3/debug/beacon/states/finalized: Not found
teku: tech.pegasys.teku.infrastructure.exceptions.InvalidConfigurationException: Failed to load initial state from https://eth2-beacon-prater.infura.io/eth/v3/debug/beacon/states/finalized: Not found
teku: at tech.pegasys.teku.services.beaconchain.WeakSubjectivityInitializer.lambda$loadInitialAnchorPoint$0(WeakSubjectivityInitializer.java:63) ~[teku-services-beaconchain-develop.jar:21.11.0+44-gc2d17b1]
teku: at java.util.Optional.map(Optional.java:265) ~[?:?]
teku: at tech.pegasys.teku.services.beaconchain.WeakSubjectivityInitializer.loadInitialAnchorPoint(WeakSubjectivityInitializer.java:46) ~[teku-services-beaconchain-develop.jar:21.11.0+44-gc2d17b1]
teku: at tech.pegasys.teku.services.beaconchain.BeaconChainController.setupInitialState(BeaconChainController.java:826) ~[teku-services-beaconchain-develop.jar:21.11.0+44-gc2d17b1]
teku: at tech.pegasys.teku.services.beaconchain.BeaconChainController.lambda$initialize$9(BeaconChainController.java:289) ~[teku-services-beaconchain-develop.jar:21.11.0+44-gc2d17b1]
teku: at java.util.concurrent.CompletableFuture$UniCompose.tryFire(CompletableFuture.java:1072) ~[?:?]
teku: at java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:506) ~[?:?]
teku: at java.util.concurrent.CompletableFuture.complete(CompletableFuture.java:2073) ~[?:?]
teku: at tech.pegasys.teku.infrastructure.async.SafeFuture.lambda$propagateResult$3(SafeFuture.java:147) ~[teku-infrastructure-async-develop.jar:21.11.0+44-gc2d17b1]
teku: at java.util.concurrent.CompletableFuture.uniWhenComplete(CompletableFuture.java:859) ~[?:?]
teku: at java.util.concurrent.CompletableFuture$UniWhenComplete.tryFire(CompletableFuture.java:837) ~[?:?]
teku: at java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:506) ~[?:?]
teku: at java.util.concurrent.CompletableFuture.complete(CompletableFuture.java:2073) ~[?:?]
teku: at tech.pegasys.teku.infrastructure.async.SafeFuture.lambda$propagateToAsync$13(SafeFuture.java:269) ~[teku-infrastructure-async-develop.jar:21.11.0+44-gc2d17b1]
teku: at tech.pegasys.teku.infrastructure.async.SafeFuture.of(SafeFuture.java:81) ~[teku-infrastructure-async-develop.jar:21.11.0+44-gc2d17b1]
teku: at tech.pegasys.teku.infrastructure.async.AsyncRunner.lambda$runAsync$2(AsyncRunner.java:38) ~[teku-infrastructure-async-develop.jar:21.11.0+44-gc2d17b1]
teku: at tech.pegasys.teku.infrastructure.async.SafeFuture.of(SafeFuture.java:73) ~[teku-infrastructure-async-develop.jar:21.11.0+44-gc2d17b1]
teku: at tech.pegasys.teku.infrastructure.async.ScheduledExecutorAsyncRunner.lambda$createRunnableForAction$1(ScheduledExecutorAsyncRunner.java:119) ~[teku-infrastructure-async-develop.jar:21.11.0+44-gc2d17b1]
teku: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) ~[?:?]
teku: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) ~[?:?]
teku: at java.lang.Thread.run(Thread.java:829) ~[?:?]
teku: Failed to load initial state from https://eth2-beacon-prater.infura.io/eth/v3/debug/beacon/states/finalized: Not found

Hmm, I think it’s actually v1 see ETH 2 | Infura Documentation

Check this also, quite nice walkthrough on the sync Teku and Infura Team Up To Make The Fastest Ethereum 2.0 Client Sync | ConsenSys

Traian