impossible to add server when server experiment on but group experiment off #248
Labels
No Label
android
arch
backlog
blocked-on-external
bug
bugbash
component/bindings
component/bine
component/connectivity
component/cwtch
component/tapir
component/ui
cwtch-1.14
cwtch-1.15
cwtch-beta-1.1
cwtch-beta-1.10
cwtch-beta-1.11
cwtch-beta-1.12
cwtch-beta-1.13
cwtch-beta-1.2
cwtch-beta-1.3
cwtch-beta-1.4
cwtch-beta-1.5
cwtch-beta-1.5.x
cwtch-beta-1.6
cwtch-beta-1.7
cwtch-beta-1.8
cwtch-beta-1.9
design
duplicate
enhancement
flutter
funding-needed
help wanted
hybrid-groups
in-nightly
in-progress
invalid
ios
linux
mac
need-replication-or-investigation
ops
packaging
post-stable
question
questionable
requires-more-effort-than-we-can-spare
rust
scheduled
stable-blocker
tails
testing-needed
tests
tor
waiting-on-fix-confirmation
waiting-on-new-flutter-feature
whonix
windows
wontfix
No Milestone
No project
No Assignees
3 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: cwtch.im/cwtch-ui#248
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Hi, using cwtch 1.4 on MacOS Big Sur.
Have been reading latest Discreet Log and tried to test out server creation.
Followed instructions.
Managed to create one, but when pasting its keys in the prompt for new contact in the profile i want to use it with, I'm getting :
I tried both leaving the
part and deleting it, but gives me same error...
=> edit : i wasn't planning to host groups on the server, just one2one chats, so i have groups disabled in my settings. Are groups maybe a prerequisite in order to be able to host a server ?
=> edit 2 : activated the groups setting and now the server address is accepted. You might want to precise this in the docs though.
Questions
I believe that a 'group' that you create where you only invite one other person ultimately functions as a one2one chat. As long as the server is up it will cache messages on your machine. The party that isn't hosting the server can retrieve those messages anytime. So a server is best hosted on a desktop machine which can stay 'up' most of the time - except for necessary maintenance etc. Maybe a cheap old Mac Mini? Been thinking about doing that myself.
I guess I should have said "...a group that you create on a server that you host where you only invite one other person..."
thx for the feedback. I have to admit I'm still not understanding the required setup frankly.
So yes, the main goal of the server would be the ability of caching messages for a bunch of one2one chats, but apparently this user case hasn't been considered and I'm obliged to activate group chat anyways...
This being said, while running the server at setup, linked to the address i wish to be the host for it, with group chats activated, I'm getting the same error as when doing just a one2one chat with a contact without servers involved, namely that i can't send him any messages, as he is offline, which kinda defeats the purpose of hosting the server !
So maybe one of the devs can clear things up here cause there's really not much documentation nor troubleshooting out there...
Does the other contact need to activate the group chat option too ?
Yes, your other contact has to have group chat enabled. You may have already figured this out so forgive me if I'm being totally redundant here ;)
Each of your one2one chats would have to be on a separate server dedicated to that chat. You'll have a list of servers and a list of one2one chats in your conversations. One for each contact.
'Hybrid groups' (coming soon) will offer another approach. See: https://openprivacy.ca/discreet-log/20-cwtch-servers-experiment/ and: https://openprivacy.ca/discreet-log/19-cwtch-roadmap/
As for set up, this is what worked for me (finally, after quite a few failed attempts which I won't go into):
Create a server. Copy the key bundle.
Go to your conversations list for the profile you want to use (you won't need more than one profile really). Click the 'add' button. Click on 'add a new contact or conversation' - you'll see your Cwtch profile's address is there by default. Use that address. Paste the key bundle in the field below. Hit return. You'll see a brief notification at the bottom of your conversation list that you've successfully created a server in that profile. (I know you got this far)
Next, click on the 'add' button again in your conversation list. This time click on 'create group'. Name it (probably with the name of the contact you want to have a one2one chat 'group' with). When you click 'create' that group will appear in your conversation list. Then, in your existing conversation with your contact, send an invite to the group (providing that you're both online of course). They accept and the 'group' will be added to their conversations and you're away to the races! Start using that 'group' for your conversation. :)
Keep the server up and running. If your using a laptop, you'll have to restart occasionally in order to claw back some memory but in my testing, as long as you have the server set to auto start on application launch it'll come up when you login to Cwtch. If you're offline for a little while, your contact will see that (the group will show a message that the server is offline). If they're offline you can leave messages for them and those messages will be there when they login.
Keep in mind that a group of two on a server you host will only exist on your machine. Have a look in ~Library>ApplicationSupport>Cwtch> and you'll see a folder named Servers with all your servers and the messages and the config etc. for each one (although the file 'serverMonitorReport.txt' isn't reporting CPU or Memory correctly yet according to Dan). The long and the short of it is that 'groups' in this case exist only on your system. You have all the metadata.
Hope this helps.
Mark
not quite, 1 server can host as many groups as you want. groups can have 0-infinity ppl, so for 1:1 chats with offline ability, make a group with you and 1 other person. person to person chat is otherwise purely peer to peer (over tor) so doesn't have offline delivery. obviously if you make the server in your same cwtch app that server's and any groups on it ability to do "offline delivery" will be tied to the uptime of the app/computer and be teh same as your profile, but would at least mean you could message at ppl and the group would deliver it to them when they come on.
hence why in some cases it still may make more sense to run a stand alone server on other hardware.
it depends on the use case you're looking to solve.
impossible to add serverto impossible to add server when server experiment on but group experiment offThanks for the clarification on multiple groups on one server Dan. I foolishly overcomplicated that part. Sigh...
thx quartermarsh2 for all the feedback and Dan for straightening things out. It would have been surprising for me not being able to do 1:1 chats on a server so hopefully this will be possible on 1.5.
might want to test the latest nightly, we just refactoeed the import code and I think this should be fixed?