nextcloud-keeweb icon indicating copy to clipboard operation
nextcloud-keeweb copied to clipboard

Doesn't work on YunoHost

Open ChrissW-R1 opened this issue 4 years ago • 35 comments

Hi guys,

I can't get it working. Everytime I select the app on the tab or click on an KeePass Database file The server sends an empty response: image

I didn't find any option to solve this problem. The log contains no error at all.

Thanks for your help Chriss

ChrissW-R1 avatar Apr 30 '20 15:04 ChrissW-R1

This seems to have something to do with your setup (probably reverse proxy configuration) as it is working on other setups running NC18.0.4. This is probably unrelated to NC18.0.4.

Can you provide further information about your setup?

maurerle avatar May 13 '20 13:05 maurerle

On Nextcloud 18.0.4, after installing Keeweb 0.6.2, all I get is this screen:

image

Nextcloud was installed using Yunohost, I don't know if it's related, but everything else (all other nextcloud apps) are working fine. I got this error on 2 differents servers.

farvardin avatar Jun 09 '20 08:06 farvardin

@farvardin this looks like the error you get when you use an unsupported php version.

maurerle avatar Jun 09 '20 10:06 maurerle

@maurerle Nextcloud says the PHP Version is 7.3.18 and MySQL version is 10.1.44 (on both servers)

image

farvardin avatar Jun 09 '20 13:06 farvardin

Then I don't know whats wrong here, maybe @jhass knows something? There is this issue #136 by other people running on YunoHost who run into this issue. In the meantime YunoHost upgraded it's Nextcloud to NC18, so it generelly should be supported now.

There must be something missing in the NC image provided by YunoHost.

maurerle avatar Jun 09 '20 15:06 maurerle

I can test further if you send me some commands to try

farvardin avatar Jun 10 '20 10:06 farvardin

Exactly the same issue here. Any idea ?

Limezy avatar Jun 20 '20 09:06 Limezy

@Limezy are you using yunohost or not?

farvardin avatar Jun 20 '20 14:06 farvardin

Yes I am !

Limezy avatar Jun 20 '20 15:06 Limezy

I am experiencing the same issue reported by @farvardin Also running Yunohost.

djibux avatar Jun 23 '20 15:06 djibux

There is no new information from the issue-opener but people running YunoHost seem to run into the second issue here. Maybe this should be renamed to "Not working on YunoHost". Someone running YunoHost should investigate this a little further what package is missing there.

maurerle avatar Jul 03 '20 15:07 maurerle

I've looked at the nextcloud-keeweb source code but I'm not very aware what are really required to run it. I've also tried to trace the code displaying on my server (like on my first screenshot), but because of all those minified code, it's very difficult to find the relevant files.

I'm willing to install on my server any extra dependency which could be needed, if you can think of some.

farvardin avatar Jul 03 '20 16:07 farvardin

This seems to have something to do with your setup (probably reverse proxy configuration) as it is working on other setups running NC18.0.4. This is probably unrelated to NC18.0.4.

Can you provide further information about your setup?

We're now on Nextcloud version 18.0.6 and the issue is still the same.

The server don't use a Reverse Proxy in this setup. We run an Apache HTTP server with PHP-FPM to use multiple PHP versions in one setup. The Nextcloud instance is powered by PHP 7.3.19.

YunoHost? No, I've never heard about it!

ChrissW-R1 avatar Jul 04 '20 10:07 ChrissW-R1

I've installed a fresh vanilla Nextcloud instance on my desktop computer, it is running Apache, I've installed keeweb and everything works as expected.

The yunohost servers are running nginx. Is nextcloud-keeweb supposed to work both on apache and nginx?

@ChrissW-R1 have you tried on both firefox and chrome? How did you install nextcloud on your server? Is there a specific setup?

farvardin avatar Jul 04 '20 22:07 farvardin

Even though this is an issue with JS I can imagine that there is a php-extension missing or some other package missing on the server. Maybe @ChrissW-R1 can check what is different between his host and a newly setup NC. Then we could tell the YunoHost people what is missing?

I am using nc as docker-fpm behind NGINX, it should be no problem..

maurerle avatar Jul 05 '20 10:07 maurerle

@ChrissW-R1 have you tried on both firefox and chrome? How did you install nextcloud on your server? Is there a specific setup?

I tested it now in Firefox, too: image And yes, it is still the same error: image

Even though this is an issue with JS I can imagine that there is a php-extension missing or some other package missing on the server. Maybe @ChrissW-R1 can check what is different between his host and a newly setup NC. Then we could tell the YunoHost people what is missing?

Possibly there is an missing PHP extension. Where could I find a list of necessary extensions, to compare it to the list of installed ones?

ChrissW-R1 avatar Jul 06 '20 10:07 ChrissW-R1

Oh you have the first issue in this thread. This seems to be a misconfigured Apache/SSL certs, as the connection can not be secured. Maybe it is accessing the server in a weird way?

The users on YunoHost have the second one provided by farvardin which could be php related. List of php-packages can be found here to check: https://docs.nextcloud.com/server/19/admin_manual/installation/source_installation.html#prerequisites-for-manual-installation

maurerle avatar Jul 06 '20 11:07 maurerle

Oh you have the first issue in this thread. This seems to be a misconfigured Apache/SSL certs, as the connection can not be secured. Maybe it is accessing the server in a weird way?

No. The SSL/TLS configuration works. The empty response was also transported in the right and secure way. Every other app and Nextcloud functions works as expected.

https://docs.nextcloud.com/server/19/admin_manual/installation/source_installation.html#prerequisites-for-manual-installation

I've checked the entire list. All extensions/modules are installed in the newest version.

ChrissW-R1 avatar Jul 06 '20 11:07 ChrissW-R1

I wonder why it then says "Secure connection failed". But it is hard to debug as you are the only one with this specific problem :/

maurerle avatar Jul 06 '20 12:07 maurerle

I wonder why it then says "Secure connection failed".

Me too. It looks as an "common error"

But it is hard to debug as you are the only one with this specific problem :/ Sure, but I've no good plan how I could help you with more information.

The app is loaded by open the path "/apps/keeweb/keeweb?config=config" in a subdocument below the heading bar. If I open the url directly in the browser I got the same error.

ChrissW-R1 avatar Jul 06 '20 13:07 ChrissW-R1

I face the same issue. Nextcloud 18 on YUnohost... I get the same screen than farvardin.

Thatoo avatar Sep 06 '20 09:09 Thatoo

Hello, same for me with nextcloud 19.03, keeweb 0.6.3, PHP 7.3.19. Here are some messages in the console

nextcloud-keeweb

tantic avatar Sep 30 '20 08:09 tantic

@tantic The HTTP error 502 indicates that the webserver acts as a proxy and did not get a valid answer from the upstream which it wants to contact. So there is something broken with the server setup.

arnowelzel avatar Sep 30 '20 08:09 arnowelzel

It also seems, YunoHost has this problem with other applications as well, not just Nextcloud:

https://forum.yunohost.org/t/502-bad-gateway-after-trying-to-install-app-yunohost-3-3-2/6422 https://forum.yunohost.org/t/lutim-502-bad-gateway-suite-a-migration-yunohost-2-7-14-5-3-0-0-1/5132 https://forum.yunohost.org/t/all-services-hosted-by-yunohost-vm-return-502-connection-refused/7321

I use Keeweb 0.6.3 on Nextcloud 19.0.3 without any issue on a regular webserver based on Apache 2.4 and PHP 7.4 as FPM. So it may be a good idea to check what is so special with the YunoHost setup. I'll set up YunoHost on a VM and will check if I find out what's wrong.

arnowelzel avatar Sep 30 '20 09:09 arnowelzel

Ok thanks for your answer, I'm gonna check the configuration of my yunohost instance and try to find the solution

tantic avatar Sep 30 '20 09:09 tantic

I had the same issue as @farvardin ; I solved it by downgrading keeweb as I had already did: https://github.com/jhass/nextcloud-keeweb/issues/136#issuecomment-591058354

euZebe avatar Sep 30 '20 18:09 euZebe

thanks a lot euZebe, I did what you recommended, it seems to work. What is strange is after I've untared the archive into /var/www/nextcloud/apps then I got a message on my nextcloud saying "upgrade to 18.0.7, gallery and keeweb will be desactivated". Then nextcloud performed a few tasks and I could use it again. I've reactivated keepass without upgrading it, and could access my keepass file, modify it and save it. The modification was correct on my desktop as well.

farvardin avatar Oct 01 '20 15:10 farvardin

@farvardin FYI this is because you are installing to the apps folder, which includes system apps. Installing from the store would install to custom_apps which is the folder you should untar the app too. Upgrading a system app results the nextcloud upgrade behavior.

maurerle avatar Oct 02 '20 08:10 maurerle

A solution has been given in here to use last version of keeweb in nextcloud on Yunohost : https://github.com/YunoHost-Apps/nextcloud_ynh/issues/317#issuecomment-702596438

I have tested and it works. So it is possible to install keeweb from the store if you follow this solution.

Thatoo avatar Oct 02 '20 15:10 Thatoo