pierre-alain-b / rainloop-nextcloud

Rainloop plugin for Nextcloud
110 stars 37 forks source link

NC 20.0.1 and Rainloop 7.0.3 blank Screen #215

Closed franzpro closed 3 years ago

franzpro commented 3 years ago

Hi,

i saw the issue 201 . It sounds like it is already solved after NC19 and Rainloop 7.0.1, but i have the exactly same error pattern (blank screen, only the Top Menue is visible) with NC 20.0.1 and Rainloop 7.0.3 http://xxxxxx:8282/apps/rainloop/

Additionally the admin Page is blank with this URL: http://xxxxxx:8282/apps/rainloop/app/?admin
If i change it to: http://xxxxxxx:8282/**index.php**/apps/rainloop/app/?admin the admin page works.

NC is running as jails plugin in a trunas12. Webserver is Nginx I tried Firefox and Edge

does someone have a tip for me?

thx Franz

gymnae commented 3 years ago

Same issue for me, hasn't been working since NC 19.

pierre-alain-b commented 3 years ago

I have not been able to replicate this issue under NC20 since the patch. Anything else you could report to try to understand the problem here?

gymnae commented 3 years ago

I try to gather some input:

'apps_paths' =>
  array (
    0 =>
    array (
      'path' => '/usr/share/webapps/nextcloud/apps',
      'url' => '/apps',
      'writable' => false,
    ),
    1 =>
    array (
      'path' => '/media/owncloud/apps',
      'url' => '/apps2',
      'writable' => true,
    ),
  ),

Rainloop installs in apps2

The error message the dev console creates: Resource interpreted as Stylesheet but transferred with MIME type text/html: "https://sub.domain.tld/apps/rainloop/app/rainloop/v/1.14.0/static/css/app.min.css?community".

I see the following red texts in the network tab Name | Status | Type | Initiator | Size rainloop/ | (canceled) | document | /core/js/dist/main.js?v=c8712013-27:1 | Size ?OwnCloudAuth | 500 | document | (index) | 3.4 kB | 112 ms

I tried adjusting access rights but it didn't change the problem. Only rainloop seems to have problems.

pierre-alain-b commented 3 years ago

@franzpro is the app also installed in a custom folder in your setting?

pierre-alain-b commented 3 years ago

This really seems like a "derivative" of https://github.com/pierre-alain-b/rainloop-nextcloud/issues/210

franzpro commented 3 years ago

Hi, for me the rainloop app folder is located in: /usr/local/www/nextcloud/apps/

the config.php looks like:

$CONFIG = array ( 'apps_paths' => array ( 0 => array ( 'path' => '/usr/local/www/nextcloud/apps', 'url' => '/apps', 'writable' => true, ), 1 => array ( 'path' => '/usr/local/www/nextcloud/apps-pkg', 'url' => '/apps-pkg', 'writable' => true, ),

franzpro commented 3 years ago

Hi, is this screenshot helpful?

Screenshot 2020-11-03 175032

ryba84 commented 3 years ago

Hello. I've this same problem. When try to access admin interface I'm receiving HTTP error 500, or empty page. It depends which web browser is used.

In attachment NGINX error.log: error.log and configuration: nginx.txt

pierre-alain-b commented 3 years ago

thanks @ryba84, the nginx log is useful, we see where the error is:

`Stack trace:

0 /var/www/html/nc/apps/rainloop/app/rainloop/v/1.14.0/include.php(57): __get_custom_data_full_path()

1 /var/www/html/nc/apps/rainloop/app/index.php(23): include('/var/www/html/n...')

2 {main}

thrown in /var/www/html/nc/apps/rainloop/app/index.php on line 8"`

pierre-alain-b commented 3 years ago

and 2020/12/01 08:47:56 [error] 125#125: *32 FastCGI sent in stderr: "PHP message: PHP Fatal error: Uncaught Error: Class 'OC' not found in /var/www/html/nc/apps/rainloop/app/index.php:8

has the OC class disappeared in NC 20?

ryba84 commented 3 years ago

Ok. I've managed to overcome this issue. The problem is in nginx configuration. If I use configuration from latest documentation Rainloop app gives errors like above. But when I use configuration from Nextcloud 19 documentation it's working as expected. I've no time to more tests, but it needs deeper investigate. Seems the nginx configuration from latest (v20) documentation creates problems not only with Rainloop app #23387. My nginx version is: 1.14.2 from official Debian 10 repositories.

daddydaycare commented 3 years ago

I only have been using Nextcloud since 19. Rainloop has always been a blank white screen going to admin or the app. I show it installing in the proper folder. None of the solutions I have read work. I am using caddyv2 as webserver.

gymnae commented 3 years ago

I also switched to caddy2, but also switched to the official nextcloud docker image. Since then I have no more issues. rainloop now resides in custom_apps

daddydaycare commented 3 years ago

I also switched to caddy2, but also switched to the official nextcloud docker image. Since then I have no more issues. rainloop now resides in custom_apps

I am hosting on truenas in a freebsd jail.

dupgit commented 3 years ago

I Found how to correct this bug in nginx file configuration from latest documentation:: Change line index index.php index.html /index.php$request_uri; into index /index.php /index.html /index.php$request_uri; and then restart nginx.

jolly-jump commented 3 years ago

I used the fix: https://github.com/nextcloud/documentation/pull/2197#issuecomment-721432337 while they say, that the fix of my previous poster might give delays: https://github.com/nextcloud/documentation/pull/2197#discussion_r530570586

Anyway, I'll cross-reference the LDAP-Problem which originates in the same changes (and somehow wrong documentation): https://github.com/nextcloud/server/issues/16194

pierre-alain-b commented 3 years ago

OK, thank you for posting solutions, I am therefore closing the issue.

nokoa77 commented 3 years ago

Hi, thank you @jolly-jump your solution rocks !! I had the same issue on NC21, just after switching to official nginx config for NC21