Movim installation error

Hi YUHOSTİANS,
I’m one of you now and i’m fucking proud. Planning on to creating a merch but that’s for another discussion.

My YunoHost server

**I run a Lightsail instance on AWS, it’s 1 GB RAM, 1 vCPU, 40 GB SSD Debian 10.8
YunoHost version: 4.3.6
I have access to my server : through the webadmin
Are you in a special context or did you perform some particular tweaking on your YunoHost instance ? : no

Description of my issue

I created a fresh Yunohost installation with 0 errors and i just installed Movim without doing anything special. No modifications to Yunohost or anything whatsoever. I get this error:

2022-01-17 21:48:11,609: WARNING -   The HOME or COMPOSER_HOME environment variable must be set for composer to run correctly

Error Log Link

There’s other people that get the same error
Fellow 1
Fellow 2

It seems that fellow 2 solved this issue, he says:

I guess I installed composer, setup the composer.json file, updated, tried to install Movim again through terminal and it all worked.

But i lack the technical knowledge so i couldn’t do what he did without instructions. It looks like an easy fix, i looked up on the net there are some ways to do this but i wanted a Yunohost specific solution so that i don’t encounter any more problems.

Thanks in advance have a beautiful day

This is a bug in the current app package

As a workaround : installing it from command line should work

2 Likes

Hi Aleks,

Thanks for your response. :pray: I installed it from the command line and it installed. :star_struck:
After installing it i got this error:

an 18 14:56:57 movim[31366]: movim.ERROR: fopen(/var/www/movim/cache/ach.po.cache): failed to open stream: Permission denied in /var/www/movim/src/Movim/i18n/Locale.php (line 63) Trace 

Then i entered this in the command line:

sudo chmod -R 777 /var/www/movim/cache/

It started but now i received this in the syslog and i’m not sure how to do this:

Jan 18 14:57:28 movim[31568]: --- Server Configuration - Apache ---
Jan 18 14:57:28 movim[31568]: Enable the Secure WebSocket to WebSocket tunneling
Jan 18 14:57:28 movim[31568]: # a2enmod proxy_wstunnel
Jan 18 14:57:28 movim[31568]: Add this in your configuration file (default-ssl.conf)
Jan 18 14:57:28 movim[31568]: ProxyPass /ws/ ws://127.0.0.1:9537/
Jan 18 14:57:28 movim[31568]: --- Server Configuration - nginx ---
Jan 18 14:57:28 movim[31568]: Add this in your configuration file
Jan 18 14:57:28 movim[31568]: location /ws/ {
Jan 18 14:57:28 movim[31568]:     proxy_pass http://127.0.0.1:9537/;
Jan 18 14:57:28 movim[31568]:     proxy_http_version 1.1;
Jan 18 14:57:28 movim[31568]:     proxy_set_header Upgrade $http_upgrade;
Jan 18 14:57:28 movim[31568]:     proxy_set_header Connection "Upgrade";
Jan 18 14:57:28 movim[31568]:     proxy_set_header Host $host;
Jan 18 14:57:28 movim[31568]:     proxy_set_header X-Real-IP $remote_addr;
Jan 18 14:57:28 movim[31568]:     proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
Jan 18 14:57:28 movim[31568]:     proxy_set_header X-Forwarded-Proto https;
Jan 18 14:57:28 movim[31568]:     proxy_redirect off;
Jan 18 14:57:28 movim[31568]: }

Hi again,
After some realization, i added the following lines:

location /ws/ {
proxy_pass http://127.0.0.1:9537/;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto https;
proxy_redirect off;
 }

To

/etc/nginx/conf.d/mydomain.com.conf

Now i am receiving this error:

movim.ERROR: Error: Call to undefined function GuzzleHttp\Psr7\uri_for() in /var/www/movim/vendor/ratchet/pawl/src/Connector.php (line 126) Trace #0 /var/www/movim/vendor/ratchet/pawl/src/Connector.php(38): Ratchet\Client\Connector->generateRequest('ws://127.0.0.1:...', Array, Array) #1 /var/www/movim/linker.php(323): Ratchet\Client\Connector->__invoke('ws://127.0.0.1:...', Array, Array) #2 {main} [] []

Error Logs

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.