YunoHost-Apps / mautrix_telegram_ynh

Matrix Telegram pupetting bridge for YunoHost
https://github.com/mautrix/telegram
GNU General Public License v3.0
14 stars 4 forks source link

install fails #2

Closed Gredin67 closed 2 years ago

Gredin67 commented 3 years ago

@benneti I am getting following error at install, any clue? *https://paste.yunohost.org/raw/axuniqutav

benneti commented 3 years ago

COuld you try whether the pip commands work in some dorectory (using root like the installer does). It seems like pip does not like that HOME is not set. If it also happens without the script we might need to report it upstream.

Gredin67 commented 3 years ago

I manage to install mautrix_signal_ynh and the install steps are pretty much the same. Thus I suspect an error in the config file.

Did the package work for you? With what config? Depending on this it could be upstream related, but I don't think so because it is very active. Maybe we should try 0.9.0 rather than the RC

benneti commented 3 years ago

0.9 fails to install right now because one depemdemcy package was not pinned and got incompatible with an update, i don't want to fix this manually so i would prefer to keep on the rc. For me the log looks like it fails in the pip steps, which are independent of the configuration, but maybe I misread the logs.

Do the pip steps work on their own? I have this package installed and as far as i understand it also worked for someone else according to the comments in the PR. I basically use the default config from yunohost or are you interested in tthe settings i have therein?

benneti commented 3 years ago

you could try with the new version if you want

benneti commented 3 years ago

because the upgrade script was broken (hopefully fixed now) i just reinstalled and it works

Gredin67 commented 3 years ago

indeed it works :)

benneti commented 3 years ago

great!

kuba-orlik commented 2 years ago

I'm experiencing the same issue now: https://paste.yunohost.org/raw/silezebudu

benneti commented 2 years ago

with which user do you run the install script and does this user have his $HOME set

kuba-orlik commented 2 years ago

I'm running this via the web panel, so not sure what user is running that on the server 🤔

benneti commented 2 years ago

also I think this is a problem with pip and I do not understand why it complains about a missing $HOME when there should be nothing done in home.

Ah this could be the problem, but I have no Idea how to fix it, you can however try to install it via ssh, please report if it works there

kuba-orlik commented 2 years ago

huh. works when installed via CLI 🤔

kuba-orlik commented 2 years ago

Thanks for being so responsive!

benneti commented 2 years ago

No problem, I will leave this open until HOME being set is no longer required!

Gredin67 commented 2 years ago

Telegram is a python bridge, it should work the same as the signal bridge. At some point I had the same problem with the webadmin. Just use what I did here https://github.com/YunoHost-Apps/mautrix_signal_ynh/blob/master/scripts/install#L216-L226

SpiderOnTheNet commented 2 years ago

Hi YunoHoster's !

As admin in home directory, I tried to install it via ssh on my RPI after cloning the repo by using : gh repo clone YunoHost-Apps/mautrix_telegram_ynh

I executed the intall script by using :

cd mautrix_telegram_ynh/scripts/
sudo ./install

But I got again this variable error : ./install: line 27: YNH_APP_ARG_SYNAPSENUMBER: unbound variable

Did I miss something ?

Thanks

benneti commented 2 years ago

please try to install it via yunohost command: sudo yunohost app install mautrix_telegram

SpiderOnTheNet commented 2 years ago

It's working ! You are my hero <3

benneti commented 2 years ago

no problem