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

can't build freenet-microblogging: ERROR freenet_stdlib::client_api::regular: request handler error error=ChannelClosed #1155

Open
bbigras opened this issue Jul 12, 2024 · 0 comments

Comments

@bbigras
Copy link

bbigras commented Jul 12, 2024

with 0e86dfc

❯ make build
cd /home/bbigras/src/freenet-core/apps/freenet-microblogging/contracts/posts
fdev build
hash=$(bash -c "fdev inspect build/freenet/freenet_microblogging_posts key | grep 'code key:' | cut -d' ' -f3")
mkdir -p /home/bbigras/src/freenet-core/apps/freenet-microblogging/web/build
echo $hash
echo -n $hash > /home/bbigras/src/freenet-core/apps/freenet-microblogging/web/model_code_hash.txt
Compiling contract with rust
   Compiling proc-macro2 v1.0.85
   Compiling unicode-ident v1.0.12
   Compiling autocfg v1.3.0
   Compiling version_check v0.9.4
   Compiling typenum v1.17.0
   Compiling serde v1.0.203
   Compiling const-oid v0.9.6
   Compiling libm v0.2.8
   Compiling semver v1.0.23
   Compiling strsim v0.11.1
   Compiling fnv v1.0.7
   Compiling spin v0.5.2
   Compiling zeroize v1.8.1
   Compiling cfg-if v1.0.0
   Compiling ident_case v1.0.1
   Compiling subtle v2.5.0
   Compiling once_cell v1.19.0
   Compiling base64ct v1.6.0
   Compiling pin-project-lite v0.2.14
   Compiling lazy_static v1.4.0
   Compiling rand_core v0.6.4
   Compiling futures-core v0.3.30
   Compiling futures-sink v0.3.30
   Compiling futures-io v0.3.30
   Compiling cc v1.0.98
   Compiling futures-channel v0.3.30
   Compiling smallvec v1.13.2
   Compiling futures-task v0.3.30
   Compiling tracing-core v0.1.32
   Compiling ppv-lite86 v0.2.17
   Compiling pin-utils v0.1.0
   Compiling pem-rfc7468 v0.7.0
   Compiling regex-syntax v0.8.3
   Compiling generic-array v0.14.7
   Compiling memchr v2.7.2
   Compiling regex-syntax v0.6.29
   Compiling log v0.4.21
   Compiling byteorder v1.5.0
   Compiling num-traits v0.2.19
   Compiling slab v0.4.9
   Compiling rustc_version v0.4.0
   Compiling der v0.7.9
   Compiling rand_chacha v0.3.1
   Compiling num-bigint-dig v0.8.4
   Compiling serde_json v1.0.117
   Compiling thiserror v1.0.61
   Compiling overload v0.1.1
   Compiling quote v1.0.36
   Compiling flatbuffers v24.3.25
   Compiling nu-ansi-term v0.46.0
   Compiling rand v0.8.5
   Compiling tracing-log v0.2.0
   Compiling syn v2.0.66
   Compiling thread_local v1.1.8
   Compiling sharded-slab v0.1.7
   Compiling bitflags v1.3.2
   Compiling ryu v1.0.18
   Compiling arrayvec v0.7.4
   Compiling arrayref v0.3.7
   Compiling freenet-stdlib v0.0.8 (/home/bbigras/src/freenet-core/stdlib/rust)
   Compiling constant_time_eq v0.3.0
   Compiling itoa v1.0.11
   Compiling bs58 v0.5.1
   Compiling blake3 v1.5.1
   Compiling num-integer v0.1.46
   Compiling crypto-common v0.1.6
   Compiling block-buffer v0.10.4
   Compiling digest v0.10.7
   Compiling num-iter v0.1.45
   Compiling sha2 v0.10.8
   Compiling signature v2.2.0
   Compiling spki v0.7.3
   Compiling regex-automata v0.4.6
   Compiling pkcs8 v0.10.2
   Compiling pkcs1 v0.7.5
   Compiling regex-automata v0.1.10
   Compiling matchers v0.1.0
   Compiling regex v1.10.4
   Compiling darling_core v0.20.9
   Compiling serde_derive v1.0.203
   Compiling futures-macro v0.3.30
   Compiling tracing-attributes v0.1.27
   Compiling thiserror-impl v1.0.61
   Compiling freenet-macros v0.0.5 (/home/bbigras/src/freenet-core/stdlib/rust-macros)
   Compiling futures-util v0.3.30
   Compiling tracing v0.1.40
   Compiling tracing-subscriber v0.3.18
   Compiling darling_macro v0.20.9
   Compiling darling v0.20.9
   Compiling serde_with_macros v3.8.1
   Compiling futures-executor v0.3.30
   Compiling futures v0.3.30
   Compiling bincode v1.3.3
   Compiling serde_with v3.8.1
   Compiling serde_bytes v0.11.14
   Compiling chrono v0.4.38
   Compiling rsa v0.9.6
   Compiling freenet-microblogging-posts v0.0.0 (/home/bbigras/src/freenet-core/apps/freenet-microblogging/contracts/posts)
    Finished `release` profile [optimized] target(s) in 11.81s
2024-07-12T06:21:23.364521Z  INFO fdev::build::contract: compiled contract code hash: 9xsJfFeFKT5pk9vV5M5FMXEjZTadWjQRBTaxafV48BaT
Contract compiled
Packaging generic contract type
Bundling contract state
Finished bundling state
4Mp7pP4mNTvp3cpzBD9TG2UjCDcmCkXm4x5imsdVe71C
cd /home/bbigras/src/freenet-core/apps/freenet-microblogging/contracts/posts
fdev publish --code build/freenet/freenet_microblogging_posts contract --state build/freenet/contract-state
Putting contract 4Mp7pP4mNTvp3cpzBD9TG2UjCDcmCkXm4x5imsdVe71C
2024-07-12T06:21:23.380613Z ERROR freenet_stdlib::client_api::regular: request handler error error=ChannelClosed
cd /home/bbigras/src/freenet-core/apps/freenet-microblogging/web
npm i --force @freenetorg/freenet-stdlib
npm run build
fdev build
npm WARN using --force Recommended protections disabled.

up to date, audited 588 packages in 1s

72 packages are looking for funding
  run `npm fund` for details

found 0 vulnerabilities

> build
> webpack --mode development

asset bundle.js 3.57 MiB [emitted] (name: main)
runtime modules 1.36 KiB 6 modules
modules by path ./node_modules/ 362 KiB 88 modules
asset modules 5.04 KiB
  data:image/svg+xml,%3csvg xmlns=%27.. 281 bytes [built] [code generated]
  data:image/svg+xml,%3csvg xmlns=%27.. 281 bytes [built] [code generated]
  data:image/svg+xml,%3csvg xmlns=%27.. 279 bytes [built] [code generated]
  data:image/svg+xml,%3csvg xmlns=%27.. 161 bytes [built] [code generated]
  + 15 modules
modules by path ./src/ 953 KiB
  ./src/index.ts 4.97 KiB [built] [code generated]
  ./src/scss/styles.scss 1.37 KiB [built] [code generated]
  ./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./node_modules/sass-loader/dist/cjs.js!./src/scss/styles.scss 946 KiB [built] [code generated]
webpack 5.76.3 compiled successfully in 3056 ms
Compiling contract with rust
   Compiling num-traits v0.2.19
   Compiling lazy_static v1.4.0
   Compiling digest v0.10.7
   Compiling sharded-slab v0.1.7
   Compiling blake3 v1.5.1
   Compiling tracing-subscriber v0.3.18
   Compiling chrono v0.4.38
   Compiling freenet-stdlib v0.0.8 (/home/bbigras/src/freenet-core/stdlib/rust)
   Compiling freenet-microblogging-web v0.0.0 (/home/bbigras/src/freenet-core/apps/freenet-microblogging/web/container)
    Finished `release` profile [optimized] target(s) in 4.32s
2024-07-12T06:21:32.627885Z  INFO fdev::build::contract: compiled contract code hash: 5xgqEaVj9MWhAE5QeB6LFzWK5amKf6J9wpDQCXyQ3xxD
Contract compiled
Packaging standard Freenet web app contract type
Compiling contract with rust
    Finished `release` profile [optimized] target(s) in 0.04s
2024-07-12T06:21:33.128695Z  INFO fdev::build::contract: compiled contract code hash: 9xsJfFeFKT5pk9vV5M5FMXEjZTadWjQRBTaxafV48BaT
Contract compiled
Bundling webapp contract state

up to date, audited 588 packages in 534ms

72 packages are looking for funding
  run `npm fund` for details

found 0 vulnerabilities
asset bundle.js 2.89 MiB [emitted] [minimized] [big] (name: main)
orphan modules 27.7 KiB [orphan] 6 modules
runtime modules 1.36 KiB 6 modules
modules by path ./node_modules/ 362 KiB
  modules by path ./node_modules/@freenetorg/freenet-stdlib/ 321 KiB 71 modules
  modules by path ./node_modules/style-loader/dist/runtime/*.js 5.75 KiB 6 modules
  modules by path ./node_modules/css-loader/dist/runtime/*.js 3.52 KiB 3 modules
  + 3 modules
asset modules 5.04 KiB
  data:image/svg+xml,%3csvg xmlns=%27.. 281 bytes [built] [code generated]
  data:image/svg+xml,%3csvg xmlns=%27.. 281 bytes [built] [code generated]
  data:image/svg+xml,%3csvg xmlns=%27.. 279 bytes [built] [code generated]
  + 16 modules
modules by path ./src/ 819 KiB
  ./src/index.ts + 1 modules 6.34 KiB [built] [code generated]
  ./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./node_modules/sass-loader/dist/cjs.js!./src/scss/styles.scss 812 KiB [built] [code generated]

WARNING in asset size limit: The following asset(s) exceed the recommended size limit (244 KiB).
This can impact web performance.
Assets:
  bundle.js (2.89 MiB)

WARNING in entrypoint size limit: The following entrypoint(s) combined asset size exceeds the recommended limit (244 KiB). This can impact web performance.
Entrypoints:
  main (2.89 MiB)
      bundle.js


WARNING in webpack performance recommendations:
You can limit the size of your bundles by using import() or require.ensure to lazy load some parts of your application.
For more info visit https://webpack.js.org/guides/code-splitting/

webpack 5.76.3 compiled with 3 warnings in 4022 ms
Compiled input using webpack
Finished bundling webapp contract state
cd /home/bbigras/src/freenet-core/apps/freenet-microblogging/web
fdev publish --code build/freenet/freenet_microblogging_web contract --state build/freenet/contract-state
Putting contract H3Rtc14tkptH6zisfwKSNQM4QW98w2SJUBzVKgHipMuM
2024-07-12T06:21:39.279571Z ERROR freenet_stdlib::client_api::regular: request handler error error=ChannelClosed
❯ freenet local
2024-07-12T06:21:09.341230Z  INFO freenet::config: Found configuration file: config.toml.toml
2024-07-12T06:21:09.341246Z  INFO freenet::config: Reading configuration file: "/home/bbigras/.config/freenet/config.toml"
2024-07-12T06:21:09.652645Z  INFO freenet::config: Found configuration file in default directory
2024-07-12T06:21:09.791895Z  WARN freenet::config: No gateways file found, initializing disjoint gateway.
2024-07-12T06:21:09.792598Z  INFO freenet: Starting freenet node in local mode
2024-07-12T06:21:09.792614Z  INFO freenet::contract::storages::redb: loading contract store from "/home/bbigras/.local/share/freenet/db/local/db"
2024-07-12T06:21:09.800525Z  INFO freenet::server: HTTP gateway listening on 127.0.0.1:50509
2024-07-12T06:21:23.381045Z ERROR freenet::client_events::websocket: WebSocket protocol error: Connection reset without closing handshake
2024-07-12T06:21:23.410231Z  INFO freenet::client_events::websocket: dropped connection to client #1
2024-07-12T06:21:39.280405Z ERROR freenet::client_events::websocket: WebSocket protocol error: Connection reset without closing handshake
2024-07-12T06:21:39.295954Z  INFO freenet::client_events::websocket: dropped connection to client #2
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