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

Tutorial #9

Open
RensWillink opened this issue Oct 28, 2024 · 14 comments
Open

Tutorial #9

RensWillink opened this issue Oct 28, 2024 · 14 comments

Comments

@RensWillink
Copy link

Hi,

I have gotify running in an lxc on proxmox (helper scripts) and im trying to install the plugin, is there a tutorial i can follow? the installation steps are to cryptic for my experiance level.

Thank you in advance !

@RensWillink
Copy link
Author

got it installed, receiving messages in gotify however not in telegram, followed the steps including setting the group privacy of the bot to off, where are the logs located ? the only thing i see right now is that it says never for the client i created for the plugin

@RensWillink
Copy link
Author

alright getting closer:

Oct 29 08:32:42 Gotify gotify-linux-amd64[146]: Cannot connect to websocket: malformed ws or wss URL

ss -lnp | grep gotify gives me:

tcp LISTEN 0 4096 *:80 : users:(("gotify-linux-am",pid=146,fd=7))

i have tried various urls, my gotify runs on an lxc in proxmox ....dont know if that relevant

@RensWillink
Copy link
Author

also as soon as i enable the plugin in gotify the cpu goes up to 100%

@anhbh310
Copy link
Owner

Hi @RensWillink,

I've just re-created your setup (I guess you used this lxc script).
It’s strange because the issue only appears in the LXC environment. I figured out that the plugin receives messages from the Gotify client, but it cannot forward them to the Telegram bot API.
Just wanted to let you know that I'm working on a solution.

Thanks for your consideration!

@RensWillink
Copy link
Author

that is great to hear, thank you for your time !! (yes i used that script)

@RensWillink
Copy link
Author

i dont know if it's possible, it would be great if we can use the app to forward to groups.....

@anhbh310
Copy link
Owner

anhbh310 commented Nov 2, 2024

Here’s a revised version for clarity and correct grammar:

Hi @RensWillink,

I've added a logger to the plugin. Could you please try the new release v1.1.2? Run it and let me know if there’s anything new.

Regarding the issue with LXC, it was my mistake—I had set the chat ID variable incorrectly. After fixing the environment variables, everything works fine.

And if you want to send notifications from Gotify to a group chat, just follow these two steps:

  • Add your Telegram bot to the group chat.
  • Update the chat ID variable.

I tested it, and it runs perfectly.

@RensWillink
Copy link
Author

Great! Thank you for looking in to it! I will test it in the coming days and report back here, thanks again.

@RensWillink
Copy link
Author

RensWillink commented Nov 7, 2024

Message arrives in gotify however doesnt gets forwarded to telegram. (bot works with other systems) cpu goes to 100% when plugin is enabled.

@ZanardiZZ
Copy link

Can confirm I have the same issue as RensWillink, even the 100% CPU usage.

@anhbh310
Copy link
Owner

Hi @RensWillink, could you show me the running log by using the command journalctl -f -u gotify.service?

@Calimerorulez
Copy link

Hi @anhbh310

I'm having the same problem as above.

The output of your requested command is:

Nov 26 19:24:40 gotify gotify-linux-amd64[125]: Gotify 2 Telegram: plugin.go:121: Cannot connect to websocket: malformed ws or wss URL
Nov 26 19:24:40 gotify gotify-linux-amd64[125]: Gotify 2 Telegram: plugin.go:121: Cannot connect to websocket: malformed ws or wss URL
Nov 26 19:24:40 gotify gotify-linux-amd64[125]: Gotify 2 Telegram: plugin.go:121: Cannot connect to websocket: malformed ws or wss URL
Nov 26 19:24:40 gotify gotify-linux-amd64[125]: Gotify 2 Telegram: plugin.go:121: Cannot connect to websocket: malformed ws or wss URL
Nov 26 19:24:40 gotify gotify-linux-amd64[125]: Gotify 2 Telegram: plugin.go:121: Cannot connect to websocket: malformed ws or wss URL
Nov 26 19:24:40 gotify gotify-linux-amd64[125]: Gotify 2 Telegram: plugin.go:121: Cannot connect to websocket: malformed ws or wss URL

And it keeps looping like this. Hope it helps.

@noob34433
Copy link

same thing happening with me

@RensWillink
Copy link
Author

RensWillink commented Dec 8, 2024

Sorry i was a bit busy, here is the log:

Dec 08 12:22:48 gotify gotify-linux-amd64[150]: Gotify 2 Telegram: plugin.go:121: Cannot connect to websocket: malformed ws or wss URL Dec 08 12:22:48 gotify gotify-linux-amd64[150]: Gotify 2 Telegram: plugin.go:121: Cannot connect to websocket: malformed ws or wss URL Dec 08 12:22:48 gotify gotify-linux-amd64[150]: Gotify 2 Telegram: plugin.go:121: Cannot connect to websocket: malformed ws or wss URL Dec 08 12:22:48 gotify gotify-linux-amd64[150]: Gotify 2 Telegram: plugin.go:121: Cannot connect to websocket: malformed ws or wss URL Dec 08 12:22:48 gotify gotify-linux-amd64[150]: Gotify 2 Telegram: plugin.go:121: Cannot connect to websocket: malformed ws or wss URL Dec 08 12:22:48 gotify gotify-linux-amd64[150]: Gotify 2 Telegram: plugin.go:121: Cannot connect to websocket: malformed ws or wss URL Dec 08 12:22:48 gotify gotify-linux-amd64[150]: Gotify 2 Telegram: plugin.go:121: Cannot connect to websocket: malformed ws or wss URL Dec 08 12:22:48 gotify gotify-linux-amd64[150]: Gotify 2 Telegram: plugin.go:121: Cannot connect to websocket: malformed ws or wss URL Dec 08 12:22:48 gotify gotify-linux-amd64[150]: Gotify 2 Telegram: plugin.go:121: Cannot connect to websocket: malformed ws or wss URL Dec 08 12:22:48 gotify gotify-linux-amd64[150]: Gotify 2 Telegram: plugin.go:121: Cannot connect to websocket: malformed ws or wss URL

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

5 participants