-
Notifications
You must be signed in to change notification settings - Fork 99
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
Hubs Cloud discord bot is unreliable + difficult to setup + restart after problem #128
Comments
Happy to test this with you when you are ready. This goes way back to April where we gave this a really good try. |
Robin, I'm in the process of making a Discord bot for our event as mentioned in mozilla/hubs#3303. I figured I may as well try to copy over the functionality we need from the official bot (primarily the chat features). Is there an "easy" way to get the chat from a room without having to be present in it? Sorry if this isn't the right place to be asking. |
Is this fixed? Or... could we still access the instructions at our own risk? |
Guess not |
Happy to test out anything as well |
Any update on this? We're about to try setting up a discord bot on our hubs cloud instance, wanted to know what the status is. |
I'm afraid we haven't had the resources to complete any additional work on the discord bot for HC unfortunately. We've been focused on core platform performance issues and the new UI. This issue is still open as is. |
hmmm, that's a shame. Are any of the integrations (slack, discord, whatever) working with hubs cloud? |
Hello, I see this is a bit of a dead thread. has there been any updates made? |
still not working |
Yes, is there any known alternatives, I really need this feature. |
Use this:
Hubs-Foundation/hubs-docs@f5cfb53
|
Thank you so much! I am trying to do this now but I am having trouble SSH into the AWS server, is there a guide for this or can anyone point me in the right direction. |
Update: We may have found a possible fix anybody willing to test this adding the bot using this https://docs.google.com/document/d/1wDc-Dd8oiYR0SiNiPDQtgtH1OlKbKQP2Tr5pKKq25KU |
The doc is locked ... |
should be unlocked now. |
you also have to ssh into the ec2 instance. I got it working. using the guide from @yoshway |
Is it works for anyone? After setup i can create a room via bot, but can't login to this room, Hubs Cloud says that i don't have correct permissions to access the room. |
For those who interested, i found solution - version of Reticulum that shipped with Hubs Cloud has a bug. If you update Reticulum from stable channel by hands this problem disappears. Tested on |
Quite Interested although I am still a noob and using the AMS out of the box... Being such a noob, do you know or could you direct me in updating to the working version? Thanks in advance! |
@drtidcom you need to check Chef Habitat documentation - https://docs.chef.io/habitat/. |
Thank you, on it! |
You probably have a newest version running, you can check with "sudo bio sup status" in the app server. I get the discord bot working but I can't log in trough discord, someone found a solution? |
Hello, I've just become aware of this issue. Sorry to have missed it until now. It seems that the recent Hubs Cloud update may have introduced a regression with Discord Auth in reticulum. The regression was fixed a while ago on HMC, but the code that was shipped to Hubs Cloud in February did not include that fix: Hubs-Foundation/reticulum#531 A new reticulum package that includes the fix can be used on your hubs cloud instance now, but it includes other changes that have not been tested on Hubs Cloud instances, so I can't guarantee it won't break in new, unpleasant ways. If Discord Auth is a critical feature for you and you accept the risks of using an untested package, I believe you can ( Note however -- This will lock your edit your hubs cloud reticulum package config to lock you to this package. To undo that, you will want to immediately restore your config file (
If done correctly, this will fast-forward your hubs cloud instance to that reticulum package version, but you will still automatically download stable packages once they are available. After the next hubs cloud release, you should confirm everything looks normal. Testing for this package commences next week and we aim to ship it (or a variant with any bugfixes) by April 1. If you can wait for Discord Auth that long, you do not need to take the steps above. |
Did this ever get tested/shipped? Having the Discord bot would be critical to several projects I am hoping to start working on. |
@aziliak |
Hy folks. So I am in the same boat and am trying to debug. I was able to find somethind (I think) but I need a little help with the resolution since Im new to hubs (reticulum specifically and elixir) and a bit green with AWS. TL:DR Does anyone know how I can see reticulum logs in debug mode or monitor request/response to the public internet on AWS> Basically when you click on the room link generated by the bot and then it asks for a discord authentication, after you authorize, discord sends a code and state params to your hubs cloud API server. Reticulum is expected to swap this code for an access token by hitting the discord token URL endpoint and replace this for an access token (https://discord.com/developers/docs/topics/oauth2). This access token is then supposed to be included in the header of all page requests to your hubs. This functionality works fine for the mozilla hubs (hubs.mozilla.com) setup. The user is able to do a discord authentication and sign in using the Hubs Mozilla bot and if you check the request header, it contains an access token after you are redirected from the Mozilla Hubs API server. Unfortunately if you are running a personal implementation of Hubs Cloud, the App server API endpoint seems to be unable to receive an access token. If you check the rerouting to the Hubs page after you authorize discord, the access token is missing in the header, hence hubs cloud again asks you to authorize and authenticate with discord I can see that reticulum is making the request to discord in the syslog to swap the code for the access token. I can also see that the code has been swapped on discord's end, because if you try to do the swap with postman, it says 'invalid code' (it has been already swapped). Im not sure if reticulum is actually receiving the access token, and if it is, why it is not including it in the re routing request to the hubs page. Any suggestions ? |
Guys, please check the below link. This resolution worked for me. Please see if it works for you as well |
Investigate Discord bot issues when deployed on Hubs Cloud.
We've heard reports:
┆Issue is synchronized with this Jira Task
The text was updated successfully, but these errors were encountered: