YunoHost-Apps / excalidraw_ynh

Excalidraw package for YunoHost
https://excalidraw.com/
GNU General Public License v3.0
4 stars 3 forks source link

The app doesn't work after a fresh install #3

Closed Tagadda closed 2 years ago

Tagadda commented 2 years ago

Describe the bug

After the installation, when you browse the app, the page displays "Loading scenes..." and nothing else matters happens.

image

Context

Steps to reproduce

Expected behavior

The app should load.

Logs

Install logs

mdic commented 2 years ago

same setup, same problem here; I've tried fiddling with the server, and noticed that - from the browser console - .js file that should reside in DOMAIN.LTD/static/js/*.js are not present - the folder "static" does not exist in the excalidraw www folder - and they redirect to YNH SSO.

CodeFreezr commented 2 years ago

Same Problem here. Anybody able to fix this?

CodeFreezr commented 2 years ago

Ok. Sounds there is a solution somewhere. Great! But how can I get it on my Ynh-Server? Should I simply wait for QA'ing, should I do something on myself for this? Sorry, totally new in YNH^^

mdic commented 2 years ago

many thanks @yalh76 for all the work; I have tried installing the example branch on my ynh (from scratch, without upgrading an existing master installation) using the command below but unfortunately the same issue faces up.

sudo yunohost app install https://github.com/YunoHost-Apps/excalidraw_ynh/tree/example --debug

It is highly likely I have made mistakes along the way; any suggestions? Thanks in advance!

CodeFreezr commented 2 years ago

I'm really impressed with the depth and scope of the testing, as seen in PR-4, but now how do we get this done?

ericgaspar commented 2 years ago

I am testing the example branch. It seems to fix the issue.

@CodeFreezr you can try sudo yunohost app install https://github.com/YunoHost-Apps/excalidraw_ynh/tree/example If you have an issue, feel free to provide logs

mdic commented 2 years ago

I have tried using the command suggested by @ericgaspar but unfortunately the app is still not working; this time, rather than showing the Loading scene message, it goes to a 404.

Here is the full log of the installation: I'm not really tech savvy, so I can't evaluate what's happening. Looking at the /var/www/excalidraw folder from ssh, it appears that it contains a further folder called live where all the files are stored. This path (which I didn't notice in the master branch, where all the file were residing inside of the /var/www/excalidraw main folder) appears to be correctly set in /etc/nginx/conf.d/lavagnetta.DOMAIN.LTD.d/excalidraw.conf:

#sub_path_only rewrite ^/$ / permanent;
location / {

  # Path to source
  alias /var/www/excalidraw/live/ ;

  index index.html;

  # Common parameter to increase upload size limit in conjunction with dedicated php-fpm file
  #client_max_body_size 50M;

  try_files $uri $uri/ index.html;

  # Include SSOWAT user panel.
  include conf.d/yunohost_panel.conf.inc;
}

any suggestions? Thanks in advance! :)

CodeFreezr commented 2 years ago

sudo yunohost app install https://github.com/YunoHost-Apps/excalidraw_ynh/tree/example

Yes this works. Now I can elaborate excalidraw. It feels like FOSS of the month / year. thx-a-lot.