https://linen.dev logo
failed to run custom build command for `openteleme...
# help
n
OS = Windows Rust Ver = 1.68.0 Visual Studio Code gives this error after I run
Copy code
cargo shuttle run
Copy code
Building D:\Users\Arad\Desktop\rustbot
Compiling opentelemetry-proto v0.1.0
error: failed to run custom build command for `opentelemetry-proto v0.1.0`

Caused by:
  process didn't exit successfully: `D:\Users\Arad\Desktop\rustbot\target\debug\build\opentelemetry-proto-e73d144ca437b02a\build-script-build` (exit code: 101)
  --- stdout
  cargo:rerun-if-changed=src/proto/opentelemetry-proto/opentelemetry/proto/common/v1/common.proto
  cargo:rerun-if-changed=src/proto/opentelemetry-proto/opentelemetry/proto/resource/v1/resource.proto
  cargo:rerun-if-changed=src/proto/opentelemetry-proto/opentelemetry/proto/trace/v1/trace.proto
  cargo:rerun-if-changed=src/proto/opentelemetry-proto/opentelemetry/proto/trace/v1/trace_config.proto
  cargo:rerun-if-changed=src/proto/opentelemetry-proto/opentelemetry/proto/collector/trace/v1/trace_service.proto
  cargo:rerun-if-changed=src/proto/opentelemetry-proto/opentelemetry/proto/metrics/v1/metrics.proto
  cargo:rerun-if-changed=src/proto/opentelemetry-proto/opentelemetry/proto/collector/metrics/v1/metrics_service.proto
  cargo:rerun-if-changed=src/proto/opentelemetry-proto/opentelemetry/proto/logs/v1/logs.proto
  cargo:rerun-if-changed=src/proto/opentelemetry-proto/opentelemetry/proto/collector/logs/v1/logs_service.proto
  cargo:rerun-if-changed=src/proto/opentelemetry-proto

  --- stderr
  thread 'main' panicked at 'Could not find `protoc` installation and this build crate cannot proceed without
      this knowledge. If `protoc` is installed and this crate had trouble finding
      it, you can set the `PROTOC` environment variable with the specific path to your
      installed `protoc` binary.You can download it from https://github.com/protocolbuffers/protobuf/releases or from your package manager. 

  For more information: https://docs.rs/prost-build/#sourcing-protoc
  ', C:\Users\Arad\.cargo\registry\src\github.com-1ecc6299db9ec823\prost-build-0.11.9\src\lib.rs:1457:10
  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
warning: build failed, waiting for other jobs to finish...
Error: 1 job failed
b
you have to install protoc
g
n
Copy code
cmd
2023-04-17T23:01:48.102268600Z  INFO serenity::client::bridge::gateway::shard_manager: Telling shard queuer to start shard 0
2023-04-17T23:01:50.049184700Z  INFO serenity::client::bridge::gateway::shard_runner: [ShardRunner [0, 1]] Running
2023-04-17T23:01:51.319235500Z ERROR serenity::gateway::shard: [Shard [0, 1]] Disallowed gateway intents have been provided.
2023-04-17T23:01:51.319283400Z ERROR serenity::client::bridge::gateway::shard_runner: Shard handler received err: Gateway(DisallowedGatewayIntents)
2023-04-17T23:01:51.319500300Z  INFO serenity::client::bridge::gateway::shard_manager: Shutting down all shards
2023-04-17T23:01:51.319526600Z  INFO serenity::client::bridge::gateway::shard_manager: Shutting down shard 0
2023-04-17T23:01:51.319572100Z  INFO serenity::client::bridge::gateway::shard_queuer: Shutting down shard 0
2023-04-17T23:01:51.319587400Z  WARN serenity::client::bridge::gateway::shard_queuer: Failed to cleanly shutdown shard 0 when sending message to shard runner: TrySendError { kind: Disconnected }
thread 'tokio-runtime-worker' panicked at '2023-04-17T23:01:56.327512800Z  WARN serenity::client::bridge::gateway::shard_manager: Failed to cleanly shutdown shard 0, reached timeout: Elapsed(())
called `Result::unwrap()` on an `Err` value: SendError((End, ""))', C:\Users\Arad\.cargo\registry\src\github.com-1ecc6299db9ec823\shuttle-runtime-0.14.0\src\alpha\mod.rs:323:79
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
2023-04-17T23:01:56.327648400Z  INFO shuttle_runtime::alpha: service stopped all on its own
gives this error now
g
That is a serenity error related to permissions, check your gateway intents and settings in your discord app
n
oh ok thanks i had to turn on permissions on the bot
3 Views