Skip to content
This repository has been archived by the owner on Mar 8, 2024. It is now read-only.

How do I use notif from "Add notification channel"? #92

Open
Mannshoch opened this issue Jun 24, 2023 · 10 comments
Open

How do I use notif from "Add notification channel"? #92

Mannshoch opened this issue Jun 24, 2023 · 10 comments

Comments

@Mannshoch
Copy link

I found "Add notification channel" Entry in the NextPush app. How do I use It?
There is no example. I assume that I could somehow send message from third devices to the phone. Is that correct?

@p1gp1g
Copy link
Member

p1gp1g commented Jun 26, 2023

You long click on the channel you have just created and copy the endpoint. Then you can use it in your terminal :

curl --data "The content of the notif" https://your.domain.tld/youvejustcopied

@Mannshoch
Copy link
Author

Mannshoch commented Jun 26, 2023

If I do that I get this message as HTML

(Translated to English)

Internal server error 
The server could not complete the request.
If this occurs again, please send the following technical details to your server administrator.
More details can be found in the server log. 

Technische Details

    Remote Adresse: xxx.xxx.xxx.xxx
    Request: Ab.....

[index] Fehler: RedisException: Connection refused at <<closure>>

0. 
extcloud/lib/private/RedisFactory.php line 137
   Redis->pconnect("127.0.0.1", 6379, 0, null, 0, 0)
1. 
extcloud/lib/private/RedisFactory.php line 178
   OC\RedisFactory->create("*** sensitive parameters replaced ***")
2. 
extcloud/apps/uppush/lib/Controller/UnifiedPushProviderController.php line 55
   OC\RedisFactory->getInstance()
3. 
extcloud/apps/uppush/lib/Controller/UnifiedPushProviderController.php line 338
   OCA\UnifiedPushProvider\Controller\UnifiedPushProviderController->_push("*** sensitive parameters replaced ***")
4. 
extcloud/lib/private/AppFramework/Http/Dispatcher.php line 230
   OCA\UnifiedPushProvider\Controller\UnifiedPushProviderController->push("*** sensitive parameters replaced ***")
5. 
extcloud/lib/private/AppFramework/Http/Dispatcher.php line 137
   OC\AppFramework\Http\Dispatcher->executeController(["OCA\\UnifiedPu ... "], "push")
6. 
extcloud/lib/private/AppFramework/App.php line 183
   OC\AppFramework\Http\Dispatcher->dispatch(["OCA\\UnifiedPu ... "], "push")
7. 
extcloud/lib/private/Route/Router.php line 315
   OC\AppFramework\App::main("OCA\\UnifiedPus ... r", "push", ["OC\\AppFramewo ... "], ["*** sensitive  ... "])
8. 
extcloud/lib/base.php line 1060
   OC\Route\Router->match("/apps/uppush/pu ... k")
9. 
extcloud/index.php line 36
   OC::handleRequest()

POST /index.php/apps/uppush//push/QO3Uvctg6yLWGTSOW2r6w_OMhMk
from 213.196.188.22 at 2023-06-26T10:40:00+02:00

@p1gp1g
Copy link
Member

p1gp1g commented Jun 26, 2023

You have something wrong with your configuration. Nextcloud can't reach your redis server

@Mannshoch
Copy link
Author

What is a Redis server? could that been solved with occ in nextcloud?

@p1gp1g
Copy link
Member

p1gp1g commented Jun 26, 2023

Check the requirements : https://github.com/UP-NextPush/server-app#requirement

@Mannshoch
Copy link
Author

I use the App from the https://apps.nextcloud.com/apps/uppush there is no information about a requirement.

I use my nextcloud from a shared hoster with only php access. I'm not able to modify server details.

Is this a requirement for using the Notification channel? I'm also able to work without this feature..

@p1gp1g
Copy link
Member

p1gp1g commented Jun 26, 2023

This is a requirement for nextpush. You should have an error message in the admin unifiedpush settings saying redis is not installed isn't it ?

@Mannshoch
Copy link
Author

Could It bee, that this is a new message? Because I use this app since last spring and I'm sure that this error message is new.

@p1gp1g
Copy link
Member

p1gp1g commented Jun 26, 2023

Maybe you have redis installed but there is an error with your setup atm ?

@Mannshoch
Copy link
Author

Mannshoch commented Oct 20, 2023

For the record I do not have redis. I also could not install redis. If I wish it, I have to rise my webspace to a higher and more expensive level. My Nextcloud is a one user Nextcloud only for me. As long my requirement do not change much more I will stick on the cheapest webspace (php, mariadb, cgi-bin).
I would vote for creating a fallback if no redis is available.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants