Dweb - web publishing, RESTful web apps, versioned data and

I dont have your details in Friends.
Can you get on to Atlas?

Yea, I can get on Atlas. I posted a shout on there about 10 minutes ago.

1 Like

Ah I need to follow you on Atlas.
post your ID please - err 96 char Atlas user address

1 Like

Here it is: ad754d3ad6103617c289716466c6735f300c9e3540ea3c5d7ac83986aeef267c2c2121795a8566f8e27bf9cfcfe09c35

1 Like

I have added you but still don’t see your shout.
Last shout I see is me pointing to the latest dweb about 8hr ago

1 Like

Here is what I’m seeing:

3 Likes

Im seeing it now :slight_smile:

2 Likes

Yes you’re right that doesn’t help anybody :face_with_monocle:

Yes as I said somewhere I avoided logging into my main account to preserve some forks for closer diagnostics… But since those turned out to be only fake forks I just logged in.

I’ll make friends empty the friend list with the next update because I somehow suspect you never tried to remove and re-add a friend @Southside =D

Not possible since you see your account - probably something saying that it wasn’t possible to ask you for permission to send push notifications :wink: (that ā€œnot requestedā€ for push notifications is somewhat strange =D)

2 Likes

image

I think I may have gotten the same message as you …

and the dweb output really is

DEBUG make_error_response_page() - message: scratchpad_private_put() failed store private Scratchpad on the network - >>3 complete with error - Got multiple conflicting scratchpads with the latest version, the fork can be resolved by putting a new scratchpad with a higher counter

@happybeing …

I guess we really need the fork resolution in the scratchpad_update code too … (only relevant for private scratchpads … but the account package is a private scratchpad in friends… and it’a. pretty fundamental object xD )

good news is:

TRYING scratchpad_private_put() 3 times:
SUCCESS!
DEBUG scratchpad_private_put() stored private Scratchpad on the network
DEBUG MutateResult as JSON: ā€œ{"dweb_type":"PrivateScratchpad","rest_operation":"/scratchpad-private PUT","status_code":200,"status_message":"success","cost_in_ant":"0.0","cost_in_arb_eth":"0.0","file_name":"","full_path":"","object_name":"","network_address":"","data_map":""}ā€

the fork resolution on scratchpad_update works as expected - I’m opening the PR and you can have a look when you have some time

3 Likes

I’ve just tried friending you. It came up with your details and says it’s sent. I have to go offline again soon though.

2 Likes

sorry - I am about to push an update possibly emptying your friend list again soonish … (together with other migrations, encryption key for profiles, …)
it’s possible that you need to remove him and send the friendship request again if it doesn’t pop up at his side … theoretically possible with adding encryption in the handshake is quite a fundamental change and not sure the migration will go completely smoothly …

(and next login may take some moments for the migration to be finished with writes on account package and stuff …)

(and the one who sent me a friendship request will need to remove me and re-send again … because I just tested the migration and my encryption keys have changed in the process … the account package ā€œforkingā€ thing borked storing the first private key so sadly we need to re-try and we may need another dweb fix if your account package is forked too …)

3 Likes

on the plus side everyone now should get a ā€˜last seen’ info about friends that were added (after the full friendship handshake succeeded)

and with self built dweb @aatonnomicc managed to regenerate keys, sent me a request and connect :slight_smile:

6 Likes

v0.10.9

  • further improve Scratchpad handling by handling fork error in REST API for PUT /scratchpad-private (thanks to PR from @riddim).

Updating

You can download the corresponding build for Windows, Mac or Linux at the link below, and see this post for help using this on Windows:

(you may have to wait a few minutes for these to build - come back and hit Ctrl-R or F5)

Alternatively if you have Rust update using:

cargo install dweb-cli

If that gives an error, try:

cargo install --locked dweb-cli

7 Likes

With the --locked-cli I get success on 2 of 3 boxes. Sadly, despite being pretty much similar, I still get an error on one of my VPSes

worker@wordpress-ubuntu-4gb-nbg1-1:~$ export CARGO_TARGET_DIR=/tmp/cargo-installQTjyOQ
worker@wordpress-ubuntu-4gb-nbg1-1:~$ cargo install --locked dweb-cli
    Updating crates.io index
  Installing dweb-cli v0.10.9
    Updating crates.io index
    Updating crates.io index
   Compiling env_logger v0.8.4
   Compiling nix v0.29.0
   Compiling rmp v0.8.14
   Compiling num-complex v0.4.6
error[E0583]: file not found for module `humantime`
  --> /home/worker/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/env_logger-0.8.4/src/fmt/mod.rs:40:1
   |
40 | mod humantime;
   | ^^^^^^^^^^^^^^
   |
   = help: to create the module `humantime`, create file "/home/worker/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/env_logger-0.8.4/src/fmt/humantime.rs" or "/home/worker/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/env_logger-0.8.4/src/fmt/humantime/mod.rs"
   = note: if there is a `mod humantime` elsewhere in the crate already, import it with `use crate::...` instead

For more information about this error, try `rustc --explain E0583`.
error: could not compile `env_logger` (lib) due to 1 previous error
warning: build failed, waiting for other jobs to finish...
error: failed to compile `dweb-cli v0.10.9`, intermediate artifacts can be found at `/tmp/cargo-installQTjyOQ`.
To reuse those artifacts with a future compilation, set the environment variable `CARGO_TARGET_DIR` to that path.

rustup update

1 Like

Been there, done that

extract from history


1176  rustup update
 1177  cargo install dweb-cli
 1178  cargo install --locked dweb-cli
 1179  export CARGO_TARGET_DIR=/tmp/cargo-installQTjyOQ
 1180  cargo install --locked dweb-cli
 1181  rustc --explain E0583
 1182  history

worker@wordpress-ubuntu-4gb-nbg1-1:~$ rustc --version
rustc 1.89.0 (29483883e 2025-08-04)
1 Like

Wasn’t there a clean cache command or so too?

2 Likes

cargo clean ?

3 Likes

The Mac version dweb-darwin-arm64 is working great.

3 Likes

@happybeing I’ve run into an issue with Colony and wondering if you had some thoughts. I’ve built an Android version of Colony (still cleaning up the GUI, going from desktop to phone is hard :slight_smile: ) and I’ve run into a technical limitation with Tauri. The ā€˜shell’ plugin that I’m using to call the sidecar dweb binary on the desktop version does not work on Android. If I were to add dweb as a crate into Colony, is there a way I could call ā€˜dweb serve’ and ā€˜dweb open’ directly in rust somehow without needing to have this as a separate binary? I don’t need any of the other features, just these 2. Any guidance here would be greatly appreciated. Otherwise I’ll probably just release Colony on Android with the ability to download files, but no way to open dweb based apps.

5 Likes