Coder Social home page Coder Social logo

gotify_ynh's Introduction

Gotify for YunoHost

Integration level Working status Maintenance status

Install Gotify with YunoHost

Read this README is other languages.

This package allows you to install Gotify quickly and simply on a YunoHost server.
If you don't have YunoHost, please consult the guide to learn how to install it.

Overview

Gotify is a simple server for sending and receiving messages in real-time per web socket.

Shipped version: 2.4.0~ynh2

Screenshots

Screenshot of Gotify

Documentation and resources

Developer info

Please send your pull request to the testing branch.

To try the testing branch, please proceed like that:

sudo yunohost app install https://github.com/YunoHost-Apps/gotify_ynh/tree/testing --debug
or
sudo yunohost app upgrade gotify -u https://github.com/YunoHost-Apps/gotify_ynh/tree/testing --debug

More info regarding app packaging: https://yunohost.org/packaging_apps

gotify_ynh's People

Contributors

alexaubin avatar ericgaspar avatar nicofrand avatar oniricorpe avatar p1gp1g avatar plopoyop avatar tituspijean avatar yalh76 avatar yunohost-bot avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

gotify_ynh's Issues

Problem with the service

Tested on

2.0.14, 2.0.16 on ARM

Problem

The service doesn't work out of the box for non-amd64 platforms.

Workaround

To work on arm, you have to :

  • edit /etc/systemd/system/gotify.service to change
ExecStart=/opt/yunohost/gotify/gotify-linux-amd64

to

ExecStart=/opt/yunohost/gotify/gotify-linux-arm-7
  • then reload the systemd services and restart gotify service :
systemctl daemon-reload
systemctl restart gotify

Possible solutions

  • move binary to a generic name (eg. gotify-linux) and use the generic name in the service.
  • use a variable for the binary name (like the FINALPATH)

unable to login after fresh install

Hi;

Login Failed

I tried three times
1 time with a stronger password, second time with an only alphanumeric password and the last time with a basic 24 characters password; but the login always failed.

I also tried:

admin with admin
[email protected] with mypassword
myusername with mypassword

with firefox and chrome in normal and incognito mode

in the config.yml

The password generated with my keepassxc and the one declared in /opt/yunohost/gotify/config.yml are the same

in the gotify mysql db

the declared user is the one I choose during the installation, his id is 1 and the field admin indicate 1

I reenter my password via mysql and I still unable to login

How I proceed

  1. declare my subdomain
  2. configure the subdomain for the apps in yunohost
  3. generate a let's encrypt certificate for the subdomain
  4. install the apps via the "apps store"

Error Logs

2019/05/28 09:34:30 [error] 16902#16902: *2200 connect() failed (111: Connection refused) while connecting to upstream, client: 162.158.150.123, server: push.glibre.net, request: "GET /static/css/main.99a0ea00.css HTTP/1.1", upstream: "http://[::1]:8080/static/css/main.99a0ea00.css", host: "push.glibre.net", referrer: "https://push.glibre.net/"
2019/05/28 09:35:28 [error] 16902#16902: *2226 connect() failed (111: Connection refused) while connecting to upstream, client: 162.158.150.45, server: push.glibre.net, request: "GET /admin HTTP/1.1", upstream: "http://[::1]:8080/admin", host: "push.glibre.net"
2019/05/28 09:35:55 [error] 16902#16902: *2238 connect() failed (111: Connection refused) while connecting to upstream, client: 162.158.150.45, server: push.glibre.net, request: "POST /client HTTP/1.1", upstream: "http://[::1]:8080/client", host: "push.glibre.net", referrer: "https://push.glibre.net/"
2019/05/28 09:43:07 [error] 16905#16905: *2317 connect() failed (111: Connection refused) while connecting to upstream, client: 162.158.150.45, server: push.glibre.net, request: "POST /client HTTP/1.1", upstream: "http://[::1]:8080/client", host: "push.glibre.net", referrer: "https://push.glibre.net/"
2019/05/28 09:45:05 [error] 19250#19250: *2385 connect() failed (111: Connection refused) while connecting to upstream, client: 162.158.150.45, server: push.glibre.net, request: "GET /version HTTP/1.1", upstream: "http://[::1]:8080/version", host: "push.glibre.net", referrer: "https://push.glibre.net/"
2019/05/28 12:43:05 [error] 23615#23615: *3010 connect() failed (111: Connection refused) while connecting to upstream, client: 162.158.150.93, server: push.glibre.net, request: "GET /version HTTP/1.1", upstream: "http://[::1]:8080/version", host: "push.glibre.net", referrer: "https://push.glibre.net/"

PS: I don't have IPv6

Does someones see my error and/or had this situation before ?

Updates

The current version is 2.0.21 and yunohost has not been updated for 5 releases.
Is this app without a maintainer?

unable to login after fresh install

Describe the bug

I have same symptoms as issue #9 , when attempting first login with the configured credentials on a fresh install, including the same log messages relating to the POST request for /client :

[...] | 401 |  504.828088ms |       127.0.0.1 | POST     /client
[...] Error #01: you need to provide a valid access token or user credentials to access this api

However, this is a new install and I double checked that the referenced fix from that issue is already applied.

The debug tools in my browser show that an authorization header is sent:

authorization: "Basic [sometokenstring]"

Note that the header name is sent as lower case, but the previous fix refers to the header in title case (Authorization). I'm not sure if this is case sensitive?

Thanks for your help and for this awesome project! Let me know if there is any additional debug or help I can provide! :)

Context

  • Hardware: libvirt/KVM VM running on modern desktop hardware
  • YunoHost version: 11.1.13 (stable)
  • I have access to my server: through the webadmin and direct access via keyboard / screen (VM console)
  • Are you in a special context or did you perform some particular tweaking on your YunoHost instance?: yes
    • I've added my local router to /etc/resolv.dnsmasq.conf, as mDNS resolution of other hosts on my network does not appear to be working in the default YunoHost install and it also appears to ignore my local DNS server in the default config.
  • Using, or trying to install package version/branch: Gotify version 2.2.4@2023-01-10-18:33:52

Steps to reproduce

  • Install Gotify (I'm using self signed certs on yunohost.local/gotify)
  • Browse to the Gotify instance and attempt to log in with the credentials set during install
  • Observe that login fails with these credentials, as well as known defaults, such as admin/admin

Expected behaviour

Login succeeds

Logs

Full log paste: https://paste.yunohost.org/iqulebinib

Unable to login

Hi,

this is similar to #5 but my config files already have 127.0.0.1 instead of localhost set.

I get a 401 response to the POST request. How can I debug that?

Thanks in advance for your help, and for your work on this package!

Cannot start service: commands out of sync

YunoHost 4.3.5
Gotify 2.0.22~ynh1

Service start fails with

Jan 14 12:06:11 gotify-linux-amd64[31403]: Starting Gotify version 2.0.22@2021-04-16-18:16:19
Jan 14 12:06:11 gotify-linux-amd64[31403]: panic: commands out of sync. Did you run multiple statements at once?
Jan 14 12:06:11 gotify-linux-amd64[31403]: goroutine 1 [running]:
Jan 14 12:06:11 gotify-linux-amd64[31403]: main.main()
Jan 14 12:06:11 gotify-linux-amd64[31403]:         /proj/app.go:47 +0x4a6
Jan 14 12:06:11 systemd[1]: gotify.service: Main process exited, code=exited, status=2/INVALIDARGUMENT

May be related to MariaDB issues like YunoHost-Apps/ghost_ynh#99

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.