folaht
June 29, 2017, 11:58pm
1
Continuing from this thread: Local Test Network - #17 by tfa
I figured we need a new thread because the previous one talks about the now deprecated safe_launcher.
So far I understand from the thread is that tfa made a local network mod of the vault, but I’m interested first and foremost in just getting something to work on the network, unless the vault is really necessary, I’m just interested in the web_hosting_manager and safe_browser at the moment.
Is there a local network mod of this?
You can either run a local network, in which case that requires vaults, or you must use a mock-routing build of the SAFE browser & W H manager.
3 Likes
Trying to build the safe_vault returns an error for me.
$ cargo build --features "local-network" --verbose
Fresh traitobject v0.1.0
...
Fresh crust v0.26.0 (https://github.com/Thierry61/crust.git#f17abfd0)
Fresh routing v0.30.0 (https://github.com/Thierry61/routing.git#33a622fa)
Compiling safe_vault v0.14.0 (file:///home/folatt/workspace/MaidSafe/safe_vault)
Running `rustc --crate-name safe_vault src/lib.rs --crate-type lib --emit=dep-info,link -C debuginfo=2 --cfg 'feature="routing"' --cfg 'feature="local-network"' -C metadata=820e2c51478c908e -C extra-filename=-820e2c51478c908e --out-dir /home/folatt/workspace/MaidSafe/safe_vault/target/debug/deps -L dependency=/home/folatt/workspace/MaidSafe/safe_vault/target/debug/deps --extern log=/home/folatt/workspace/MaidSafe/safe_vault/target/debug/deps/liblog-4cfe391024f1467d.rlib --extern fs2=/home/folatt/workspace/MaidSafe/safe_vault/target/debug/deps/libfs2-d43b4b5bd02647ce.rlib --extern hex=/home/folatt/workspace/MaidSafe/safe_vault/target/debug/deps/libhex-cfab6d2a8cbe6727.rlib --extern rand=/home/folatt/workspace/MaidSafe/safe_vault/target/debug/deps/librand-76456d761c2cb637.rlib --extern rust_sodium=/home/folatt/workspace/MaidSafe/safe_vault/target/debug/deps/librust_sodium-95e2d961bc1dd6c7.rlib --extern lru_time_cache=/home/folatt/workspace/MaidSafe/safe_vault/target/debug/deps/liblru_time_cache-11b283842bb68121.rlib --extern tiny_keccak=/home/folatt/workspace/MaidSafe/safe_vault/target/debug/deps/libtiny_keccak-bef374248188aedd.rlib --extern fake_clock=/home/folatt/workspace/MaidSafe/safe_vault/target/debug/deps/libfake_clock-3d03a0391d4fe25c.rlib --extern routing=/home/folatt/workspace/MaidSafe/safe_vault/target/debug/deps/librouting-05dfcc007d21360c.rlib --extern quick_error=/home/folatt/workspace/MaidSafe/safe_vault/target/debug/deps/libquick_error-3e2b8a62dd5ff3d5.rlib --extern unwrap=/home/folatt/workspace/MaidSafe/safe_vault/target/debug/deps/libunwrap-e288d1cc5662d923.rlib --extern clap=/home/folatt/workspace/MaidSafe/safe_vault/target/debug/deps/libclap-5a163dfc2ada401a.rlib --extern itertools=/home/folatt/workspace/MaidSafe/safe_vault/target/debug/deps/libitertools-0ff44036853e9f7a.rlib --extern serde_json=/home/folatt/workspace/MaidSafe/safe_vault/target/debug/deps/libserde_json-792616b63a660205.rlib --extern maidsafe_utilities=/home/folatt/workspace/MaidSafe/safe_vault/target/debug/deps/libmaidsafe_utilities-ab990936d0d96987.rlib --extern serde_derive=/home/folatt/workspace/MaidSafe/safe_vault/target/debug/deps/libserde_derive-355c001ddc7ee13f.so --extern serde=/home/folatt/workspace/MaidSafe/safe_vault/target/debug/deps/libserde-8121d6fd0835bab3.rlib --extern config_file_handler=/home/folatt/workspace/MaidSafe/safe_vault/target/debug/deps/libconfig_file_handler-4be0a0b68de7c67c.rlib --extern accumulator=/home/folatt/workspace/MaidSafe/safe_vault/target/debug/deps/libaccumulator-8de32d5fa79b1521.rlib -L native=/home/folatt/workspace/MaidSafe/safe_vault/target/debug/build/rust_sodium-sys-131204903f520bef/out/installed/lib -L native=/home/folatt/workspace/MaidSafe/safe_vault/target/debug/build/miniz-sys-07cc64aa136ffbd3/out`
error[E0004]: non-exhaustive patterns: `ProxyRateLimitExceeded(_)` not covered
--> src/vault.rs:133:31
|
133 | let event_res = match event {
| ^^^^^ pattern `ProxyRateLimitExceeded(_)` not covered
error: aborting due to previous error
error: Could not compile `safe_vault`.
Caused by:
process didn't exit successfully: `rustc --crate-name safe_vault src/lib.rs --crate-type lib --emit=dep-info,link -C debuginfo=2 --cfg feature="routing" --cfg feature="local-network" -C metadata=820e2c51478c908e -C extra-filename=-820e2c51478c908e --out-dir /home/folatt/workspace/MaidSafe/safe_vault/target/debug/deps -L dependency=/home/folatt/workspace/MaidSafe/safe_vault/target/debug/deps --extern log=/home/folatt/workspace/MaidSafe/safe_vault/target/debug/deps/liblog-4cfe391024f1467d.rlib --extern fs2=/home/folatt/workspace/MaidSafe/safe_vault/target/debug/deps/libfs2-d43b4b5bd02647ce.rlib --extern hex=/home/folatt/workspace/MaidSafe/safe_vault/target/debug/deps/libhex-cfab6d2a8cbe6727.rlib --extern rand=/home/folatt/workspace/MaidSafe/safe_vault/target/debug/deps/librand-76456d761c2cb637.rlib --extern rust_sodium=/home/folatt/workspace/MaidSafe/safe_vault/target/debug/deps/librust_sodium-95e2d961bc1dd6c7.rlib --extern lru_time_cache=/home/folatt/workspace/MaidSafe/safe_vault/target/debug/deps/liblru_time_cache-11b283842bb68121.rlib --extern tiny_keccak=/home/folatt/workspace/MaidSafe/safe_vault/target/debug/deps/libtiny_keccak-bef374248188aedd.rlib --extern fake_clock=/home/folatt/workspace/MaidSafe/safe_vault/target/debug/deps/libfake_clock-3d03a0391d4fe25c.rlib --extern routing=/home/folatt/workspace/MaidSafe/safe_vault/target/debug/deps/librouting-05dfcc007d21360c.rlib --extern quick_error=/home/folatt/workspace/MaidSafe/safe_vault/target/debug/deps/libquick_error-3e2b8a62dd5ff3d5.rlib --extern unwrap=/home/folatt/workspace/MaidSafe/safe_vault/target/debug/deps/libunwrap-e288d1cc5662d923.rlib --extern clap=/home/folatt/workspace/MaidSafe/safe_vault/target/debug/deps/libclap-5a163dfc2ada401a.rlib --extern itertools=/home/folatt/workspace/MaidSafe/safe_vault/target/debug/deps/libitertools-0ff44036853e9f7a.rlib --extern serde_json=/home/folatt/workspace/MaidSafe/safe_vault/target/debug/deps/libserde_json-792616b63a660205.rlib --extern maidsafe_utilities=/home/folatt/workspace/MaidSafe/safe_vault/target/debug/deps/libmaidsafe_utilities-ab990936d0d96987.rlib --extern serde_derive=/home/folatt/workspace/MaidSafe/safe_vault/target/debug/deps/libserde_derive-355c001ddc7ee13f.so --extern serde=/home/folatt/workspace/MaidSafe/safe_vault/target/debug/deps/libserde-8121d6fd0835bab3.rlib --extern config_file_handler=/home/folatt/workspace/MaidSafe/safe_vault/target/debug/deps/libconfig_file_handler-4be0a0b68de7c67c.rlib --extern accumulator=/home/folatt/workspace/MaidSafe/safe_vault/target/debug/deps/libaccumulator-8de32d5fa79b1521.rlib -L native=/home/folatt/workspace/MaidSafe/safe_vault/target/debug/build/rust_sodium-sys-131204903f520bef/out/installed/lib -L native=/home/folatt/workspace/MaidSafe/safe_vault/target/debug/build/miniz-sys-07cc64aa136ffbd3/out` (exit code: 101)
tfa
July 1, 2017, 12:27pm
4
I have rebased my routing repository to take into account latest Maidsafe commits. This needs an evolution in safe_vault which I included yesterday.
Please, clone latest version of safe_vault to correct the problem.
3 Likes
It build. What’s next? The installer? It asks for rpm-build
. I use Arch Linux.
[Update]
Downloaded npm-org
.
Running ./create_packages.sh
now gives me:
/usr/lib/ruby/2.4.0/rubygems/dependency.rb:310:in `to_specs': Could not find 'clamp' (~> 1.0.0) - did find: [clamp-1.1.2] (Gem::MissingSpecVersionError)
Checked in 'GEM_PATH=/home/folatt/.gem/ruby/2.4.0:/usr/lib/ruby/gems/2.4.0', execute `gem env` for more information
from /usr/lib/ruby/2.4.0/rubygems/specification.rb:1442:in `block in activate_dependencies'
from /usr/lib/ruby/2.4.0/rubygems/specification.rb:1431:in `each'
from /usr/lib/ruby/2.4.0/rubygems/specification.rb:1431:in `activate_dependencies'
from /usr/lib/ruby/2.4.0/rubygems/specification.rb:1413:in `activate'
from /usr/lib/ruby/2.4.0/rubygems.rb:299:in `block in activate_bin_path'
from /usr/lib/ruby/2.4.0/rubygems.rb:299:in `synchronize'
from /usr/lib/ruby/2.4.0/rubygems.rb:299:in `activate_bin_path'
from /usr/bin/fpm:22:in `<main>'
[Update]
gem install clamp -v 1.0.0
$ ./create_packages.sh --verbose
Updating registry `https://github.com/rust-lang/crates.io-index`
Updating git repository `https://github.com/Thierry61/routing.git`
Updating git repository `https://github.com/Thierry61/crust.git`
Compiling safe_vault v0.14.0 (file:///home/folatt/workspace/MaidSafe/safe_vault)
error: internal compiler error: unexpected panic
note: the compiler unexpectedly panicked. this is a bug.
note: we would appreciate a bug report: https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports
thread 'rustc' panicked at 'called `Result::unwrap()` on an `Err` value: "read_option: expected 0 for None or 1 for Some"', /checkout/src/libcore/result.rs:859
note: Run with `RUST_BACKTRACE=1` for a backtrace.
error: Could not compile `safe_vault`.
To learn more, run the command again with --verbose.
system
Closed
August 29, 2017, 12:56pm
6
This topic was automatically closed after 60 days. New replies are no longer allowed.