# Movim installation error

**URL:** <https://forum.yunohost.org/t/movim-installation-error/18516>\
**Category:** Support apps\
**Tags:** movim, install, english\
**Created:** [January 17, 2022, 10:04pm UTC](https://forum.yunohost.org/t/movim-installation-error/18516 "2022-01-17T22:04:02Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![afusalan](https://forum.yunohost.org/user_avatar/forum.yunohost.org/afusalan/32/5579_2.png) [@afusalan](https://forum.yunohost.org/u/afusalan)\
**Post date:** [January 17, 2022, 10:04pm UTC](https://forum.yunohost.org/t/movim-installation-error/18516/1 "2022-01-17T22:04:03Z")

</div>

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
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](https://paste.yunohost.org/raw/sugorokaka)

There’s other people that get the same error  
[Fellow 1](https://forum.yunohost.org/t/movim-cross-platform-xmpp-client/14685)  
[Fellow 2](https://forum.yunohost.org/t/solved-movim-installation-failed/16548)

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

---

<div class="post-metadata">

**Author:** ![Aleks](https://forum.yunohost.org/user_avatar/forum.yunohost.org/aleks/32/1704_2.png) [@Aleks](https://forum.yunohost.org/u/Aleks)\
**Post date:** [January 18, 2022, 12:27am UTC](https://forum.yunohost.org/t/movim-installation-error/18516/2 "2022-01-18T00:27:02Z")

</div>

This is a bug in the current app package

As a workaround : installing it from command line should work

---

<div class="post-metadata">

**Author:** ![afusalan](https://forum.yunohost.org/user_avatar/forum.yunohost.org/afusalan/32/5579_2.png) [@afusalan](https://forum.yunohost.org/u/afusalan)\
**Post date:** [January 18, 2022, 3:05pm UTC](https://forum.yunohost.org/t/movim-installation-error/18516/3 "2022-01-18T15:05:04Z")

</div>

Hi Aleks,

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

```auto
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:

```auto
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:

```auto
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]: }

```

---

<div class="post-metadata">

**Author:** ![afusalan](https://forum.yunohost.org/user_avatar/forum.yunohost.org/afusalan/32/5579_2.png) [@afusalan](https://forum.yunohost.org/u/afusalan)\
**Post date:** [January 25, 2022, 1:01pm UTC](https://forum.yunohost.org/t/movim-installation-error/18516/4 "2022-01-25T13:01:14Z")

</div>

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

```auto
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:

```auto
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](https://paste.yunohost.org/ujiparodey)

---

<div class="post-metadata">

**Author:** ![system](https://forum.yunohost.org/uploads/default/original/2X/f/f59fe8e3ee6b100b4f574d30d6e30479c68b89f0.png) [@system](https://forum.yunohost.org/u/system)\
**Post date:** [February 9, 2022, 1:01pm UTC](https://forum.yunohost.org/t/movim-installation-error/18516/5 "2022-02-09T13:01:45Z")

</div>

Closed on February 9, 2022, 1:01pm UTC

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