Could not connect to fuel core server error using forc 0.41

Hi there
In continuation of topic bellow, I had installed fuels nightly using fuelup toolchain install nightly && fuelup default nightly

After the update, the problem ‘Loops are not allowed in predicates’ disappeared
Btw I have some warning during build:

Predicate build output with warnings
>>> forc build                                                         (price-calculation-in-view-decimals+11) 17:07:03 
  WARNING! unused manifest key: project.target
  WARNING! unused manifest key: project.target
  WARNING! unused manifest key: project.target
  WARNING! unused manifest key: project.target
  WARNING! unused manifest key: project.target
  WARNING! unused manifest key: project.target
  WARNING! unused manifest key: constants
  WARNING! unused manifest key: constants
 Compiling library core (/Users/alexey/.forc/git/checkouts/std-9be0d6062747ea7/29b1d0c47bfad4573449451ba520ded9e0a26a8a/sway-lib-core)
warning
   --> /Users/alexey/.forc/git/checkouts/std-9be0d6062747ea7/29b1d0c47bfad4573449451ba520ded9e0a26a8a/sway-lib-core/src/ops.sw:485:21
    |
483 | 
484 |     fn lsh(self, other: u64) -> Self {
485 |         __lsh(self, other)
    |                     ----- This cast, from integer type of width sixty four to integer type of width thirty two, will lose precision.
486 |     }
487 |     fn rsh(self, other: u64) -> Self {
    |
____

warning
   --> /Users/alexey/.forc/git/checkouts/std-9be0d6062747ea7/29b1d0c47bfad4573449451ba520ded9e0a26a8a/sway-lib-core/src/ops.sw:488:21
    |
486 | 
487 |     fn rsh(self, other: u64) -> Self {
488 |         __rsh(self, other)
    |                     ----- This cast, from integer type of width sixty four to integer type of width thirty two, will lose precision.
489 |     }
490 | }
    |
____

warning
   --> /Users/alexey/.forc/git/checkouts/std-9be0d6062747ea7/29b1d0c47bfad4573449451ba520ded9e0a26a8a/sway-lib-core/src/ops.sw:494:21
    |
492 | 
493 |     fn lsh(self, other: u64) -> Self {
494 |         __lsh(self, other)
    |                     ----- This cast, from integer type of width sixty four to integer type of width sixteen, will lose precision.
495 |     }
496 |     fn rsh(self, other: u64) -> Self {
    |
____

warning
   --> /Users/alexey/.forc/git/checkouts/std-9be0d6062747ea7/29b1d0c47bfad4573449451ba520ded9e0a26a8a/sway-lib-core/src/ops.sw:497:21
    |
495 | 
496 |     fn rsh(self, other: u64) -> Self {
497 |         __rsh(self, other)
    |                     ----- This cast, from integer type of width sixty four to integer type of width sixteen, will lose precision.
498 |     }
499 | }
    |
____

warning
   --> /Users/alexey/.forc/git/checkouts/std-9be0d6062747ea7/29b1d0c47bfad4573449451ba520ded9e0a26a8a/sway-lib-core/src/ops.sw:503:21
    |
501 | 
502 |     fn lsh(self, other: u64) -> Self {
503 |         __lsh(self, other)
    |                     ----- This cast, from integer type of width sixty four to integer type of width eight, will lose precision.
504 |     }
505 |     fn rsh(self, other: u64) -> Self {
    |
____

warning
   --> /Users/alexey/.forc/git/checkouts/std-9be0d6062747ea7/29b1d0c47bfad4573449451ba520ded9e0a26a8a/sway-lib-core/src/ops.sw:506:21
    |
504 | 
505 |     fn rsh(self, other: u64) -> Self {
506 |         __rsh(self, other)
    |                     ----- This cast, from integer type of width sixty four to integer type of width eight, will lose precision.
507 |     }
508 | }
    |
____

warning
 --> /Users/alexey/.forc/git/checkouts/std-9be0d6062747ea7/29b1d0c47bfad4573449451ba520ded9e0a26a8a/sway-lib-core/src/lib.sw:0:1
  |
0 | library;
  | - Module privacy rules will soon change to make modules private by default.
                                            You can enable the new behavior with the --experimental-private-modules flag, which will become the default behavior in a later release.
                                            More details are available in the related RFC: https://github.com/FuelLabs/sway-rfcs/blob/master/rfcs/0008-private-modules.md
1 | 
2 | pub mod primitives;
  |
____

  Compiled library "core" with 7 warnings.
 Compiling library std (git+https://github.com/fuellabs/sway?rev#29b1d0c47bfad4573449451ba520ded9e0a26a8a)
warning
 --> /Users/alexey/.forc/git/checkouts/std-9be0d6062747ea7/29b1d0c47bfad4573449451ba520ded9e0a26a8a/sway-lib-std/src/lib.sw:0:1
  |
0 | library;
  | - Module privacy rules will soon change to make modules private by default.
                                            You can enable the new behavior with the --experimental-private-modules flag, which will become the default behavior in a later release.
                                            More details are available in the related RFC: https://github.com/FuelLabs/sway-rfcs/blob/master/rfcs/0008-private-modules.md
1 | 
2 | pub mod error_signals;
  |
____

  Compiled library "std" with 1 warning.
 Compiling predicate limit-order-predicate (/Users/alexey/projects/fuel/limit-order-predicate)
warning
 --> /Users/alexey/projects/fuel/limit-order-predicate/src/main.sw:0:1
  |
0 | predicate;
  | - Module privacy rules will soon change to make modules private by default.
                                            You can enable the new behavior with the --experimental-private-modules flag, which will become the default behavior in a later release.
                                            More details are available in the related RFC: https://github.com/FuelLabs/sway-rfcs/blob/master/rfcs/0008-private-modules.md
1 | mod utils;
  |
____

  Compiled predicate "limit-order-predicate" with 1 warning.
  Finished debug in 1.028803584s
 predicate limit-order-predicate
      Bytecode size: 7672 bytes
      Predicate root: 0xaa33dc3ef4c92bfa8b616b918845f08df504df9ba7b1ef41b813186cfd337ed1

But now when I run my tests I have another error:

found more than one 'fuel-core' binary in PATH, using '/Users/alexey/.fuelup/bin/fuel-core'
thread 'local_tests::partial_fulfill_order_test::partial_fulfill_order_test' 

panicked at 'error: Could not connect to fuel core server.', /Users/alexey/.cargo/git/checkouts/fuels-rs-ce5f345b87bf4c50/386fab5/packages/fuels-test-helpers/src/node.rs:293:9

note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

thread 'local_tests::partial_fulfill_order_test::partial_fulfill_order_test' 
panicked at 'called `Result::unwrap()` on an `Err` value: RecvError(())', /Users/alexey/.cargo/git/checkouts/fuels-rs-ce5f345b87bf4c50/386fab5/packages/fuels-test-helpers/src/node.rs:278:14

Can you help me to fix that?

2 Likes

Just updated forc using fuelup component add forc@0.39.0
still same error

found more than one 'fuel-core' binary in PATH, using '/Users/alexey/.fuelup/bin/fuel-core'
thread 'local_tests::partial_fulfill_order_test::partial_fulfill_order_test' panicked at 'error: Could not connect to fuel core server.', /Users/alexey/.cargo/git/checkouts/fuels-rs-ce5f345b87bf4c50/386fab5/packages/fuels-test-helpers/src/node.rs:293:9
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
thread 'local_tests::partial_fulfill_order_test::partial_fulfill_order_test' panicked at 'called `Result::unwrap()` on an `Err` value: RecvError(())', /Users/alexey/.cargo/git/checkouts/fuels-rs-ce5f345b87bf4c50/386fab5/packages/fuels-test-helpers/src/node.rs:278:14

I’m using

fuels = { git = "https://github.com/FuelLabs/fuels-rs", version = "0.41.0", branch = "master" }

Sooo
I just noticed that in my toolchain I don’t have fuel-core
After this command problem is gone

>> fuelup component add fuel-core                                                                                                                                                                

Adding component fuel-core v0.17.11 to 'forc-0.39-toolchain'
Installed fuel-core v0.17.11 for toolchain 'forc-0.39-toolchain'

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.