Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Firehose ATM caching not working #2

Open
matthewdarwin opened this issue May 21, 2022 · 0 comments
Open

Firehose ATM caching not working #2

matthewdarwin opened this issue May 21, 2022 · 0 comments

Comments

@matthewdarwin
Copy link

firearweave fails to create the ATM directory. Even if I create it manually it doesn't work. If set common-blocks-cache-enabled: false then firearweave will start properly (without caching).

config:

start:
  args:
    - firehose
  flags:
    config-file: ""
    log-format: text
    log-to-file: false
    common-live-source-addr: dns:///arweave-sf-relayer-v1.service.march.consul.eosn.io:9000
    common-merged-blocks-store-url: s3://...............
    common-system-shutdown-signal-delay: 30s
    common-blocks-cache-enabled: true
    common-blocks-cache-max-entry-by-age-bytes: 4294967296
    common-blocks-cache-max-recent-entry-bytes: 4294967296
    firehose-grpc-listen-addr: :9000*
    firehose-real-time-tolerance: 2m

Result:

/usr/bin/firearweave -d /var/lib/dfuse -c /etc/dfuse/config.yml -vv start
2022-05-21T03:21:02.299Z (firearweave) starting atomic level switcher {"listen_addr": "localhost:1065"}
2022-05-21T03:21:02.299Z (<n/a>) registering development exporters from environment variables
2022-05-21T03:21:02.299Z (firearweave) ulimit max open files before adjustment {"current_value": 1024}
2022-05-21T03:21:02.299Z (firearweave) ulimit max open files after adjustment {"current_value": 1000000}
2022-05-21T03:21:02.299Z (firearweave) firearweave binary started {"data_dir": "/var/lib/dfuse"}
2022-05-21T03:21:02.299Z (firearweave) starting Firehose on Arweave with config file '/etc/dfuse/config.yml'
panic: mkdir file:///var/lib/dfuse/atm: no such file or directory

goroutine 1 [running]:
github.com/streamingfast/bstream.InitCache({0xc000262700, 0x64}, {0xc000196460, 0x19}, 0x45?, 0x0?)
        /tmp/build.1652978237.228336/build/pkg/mod/github.com/streamingfast/[email protected]/block_payload.go:52 +0x27f
github.com/streamingfast/firehose-arweave/cmd/firearweave/cli.Start({0x7ffe51074820?, 0xc0000420f0?}, {0xc000442780, 0x0, 0x5})
        /tmp/build.1652978237.228336/firehose-arweave/cmd/firearweave/cli/start.go:83 +0x390
github.com/streamingfast/firehose-arweave/cmd/firearweave/cli.firehoseCmdStartE(0x1f88740?, {0xc000442780, 0x0, 0x5})
        /tmp/build.1652978237.228336/firehose-arweave/cmd/firearweave/cli/start.go:45 +0x1cc
github.com/spf13/cobra.(*Command).execute(0x1f88740, {0xc000442730, 0x5, 0x5})
        /tmp/build.1652978237.228336/build/pkg/mod/github.com/spf13/[email protected]/command.go:856 +0x67c
github.com/spf13/cobra.(*Command).ExecuteC(0x1f884c0)
        /tmp/build.1652978237.228336/build/pkg/mod/github.com/spf13/[email protected]/command.go:974 +0x3b4
github.com/spf13/cobra.(*Command).Execute(...)
        /tmp/build.1652978237.228336/build/pkg/mod/github.com/spf13/[email protected]/command.go:902
github.com/streamingfast/firehose-arweave/cmd/firearweave/cli.Main()
        /tmp/build.1652978237.228336/firehose-arweave/cmd/firearweave/cli/main.go:65 +0x691
main.main()
        /tmp/build.1652978237.228336/firehose-arweave/cmd/firearweave/main.go:25 +0x17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant