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

New user and documentation not tracking to success #1

Open
michaelwa opened this issue Dec 2, 2022 · 4 comments
Open

New user and documentation not tracking to success #1

michaelwa opened this issue Dec 2, 2022 · 4 comments

Comments

@michaelwa
Copy link

I am not able to navigate multiple issues. I assume the product is okay and that as a first-time user of the product it is likely something that I am not doing correctly but the documentation should have guided me to success.

I am trying to learn about MongooseIM and I am following the documentation. My first goal is to setup a server and connect a gajim client.

My setup:

docker pull mongooseim/mongooseim
docker run -d -t -h mongooseim-1 --name mongooseim-1 -p 5222:5222 mongooseim/mongooseim:latest

My Test:

telnet localhost 5222

This worked as expected. If I shut down the container and test again the telnet session hangs. Then when I start the container back up I get the desired results again.

My interactive session:

docker exec -i -t mongooseim-1 /bin/bash

/usr/lib/mongooseim/bin/mongooseimctl account registerUser --username alice --domain localhost --password qwerty
/usr/lib/mongooseim/bin/mongooseimctl account registerUser --username bob --domain localhost --password 12345678
/usr/lib/mongooseim/bin/mongooseimctl account registerUser --username carol --domain localhost --password abc123
/usr/lib/mongooseim/bin/mongooseimctl account registerUser --username dan --domain localhost --password dan

/usr/lib/mongooseim/bin/mongooseimctl account listUsers --domain localhost

All commands listed in the documentation work up to "add_contact".

/usr/lib/mongooseim/bin/mongooseimctl roster addContact --user alice@localhost --contact bob@localhost --groups '["friends"]' --name Bobby
{
"errors" : [
{
"path" : [
"roster",
"addContact"
],
"message" : "Unexpected RosterAdminMutation resolver crash",
"extensions" : {
"code" : "resolver_crash"
}
}
],
"data" : {
"roster" : {
"addContact" : null
}
}
}

I don't know if I need this command to succeed in order to connect gajim to my server but it does appear in the documentation before the instructions on setting up gajim. All my attempts to connect to gajim as outlined in the documentation have failed. Is this because of the "addContact" failure?

I am able to add users to gajim but it is not able to communicate with the server in any capacity.

Are there better beginner guides or tutorials for me to be following?

@arcusfelis
Copy link

Hi, if unexpected crash happens, do:

docker logs mongooseim-1

Could you repeat on your machine and check?

@michaelwa
Copy link
Author

michaelwa commented Dec 6, 2022 via email

@arcusfelis
Copy link

you need to enable mod_roster in your mongooseim.toml config :)
(We probably would patch the default config too)

(according to these log entries)

 when=2022-12-06T17:35:17.161872+00:00 level=error what=graphql_crash
 pid=<0.9006.1> at=mongoose_graphql_errors:crash/2:27
 type=RosterAdminMutation
 stack="[{persistent_term,get,[{backend_module,<<\"localhost\">>,mod_roster}],[{error_info,#{module
 =>
 erl_erts_errors}}]},{mongoose_backend,get_backend_module,2,

@mahmadmujtaba
Copy link

@arcusfelis
Please update on this docs page that mod_roster needs to be added within toml file. Docs

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

3 participants