# EmonCMS Install Script Error

**URL:** <https://community.openenergymonitor.org/t/emoncms-install-script-error/18369>\
**Category:** Installation\
**Created:** [12 August 2021 14:10 UTC](https://community.openenergymonitor.org/t/emoncms-install-script-error/18369 "2021-08-12T14:10:05Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Oddi\_Ferreira](https://community.openenergymonitor.org/user_avatar/community.openenergymonitor.org/oddi_ferreira/32/18501_2.png) [@Oddi\_Ferreira](https://community.openenergymonitor.org/u/Oddi_Ferreira)\
**Post date:** [12 August 2021 14:10 UTC](https://community.openenergymonitor.org/t/emoncms-install-script-error/18369/1 "2021-08-12T14:10:05Z")

</div>

please can someone help I get the following error when I run the install script on ubuntu 20 system

```auto
-------------------------------------------------------------
Install Emoncms Core Modules
-------------------------------------------------------------
/opt/openenergymonitor/EmonScripts/install/emoncms_modules.sh: line 8: cd: /var/www/emoncms/Modules: No such file or directory
- Module dashboard already exists
- Module device already exists
- Module app already exists
- Module graph already exists
- Module postprocess already exists
- Module demandshaper already exists
- Module backup already exists
- Module sync already exists
- Module usefulscripts already exists
Update Emoncms database
PHP Warning: chdir(): No such file or directory (errno 2) in /opt/openenergymonitor/EmonScripts/common/emoncmsdbupdate.php on line 8
PHP Warning: require(process_settings.php): failed to open stream: No such file or directory in /opt/openenergymonitor/EmonScripts/common/emoncmsdbupdate.php on line 9
PHP Fatal error: require(): Failed opening required 'process_settings.php' (include_path='.:/usr/share/php') in /opt/openenergymonitor/EmonScripts/common/emoncmsdbupdate.php on line 9

```

---

<div class="post-metadata">

**Author:** ![TrystanLea](https://community.openenergymonitor.org/user_avatar/community.openenergymonitor.org/trystanlea/32/31_2.png) [@TrystanLea](https://community.openenergymonitor.org/u/TrystanLea)\
**Post date:** [12 August 2021 17:46 UTC](https://community.openenergymonitor.org/t/emoncms-install-script-error/18369/2 "2021-08-12T17:46:27Z")

</div>

Hello @Oddi_Ferreira Im not sure what has gone wrong here to cause this. It maybe that earlier in the process one of the steps did not complete correctly resulting in a broken install further down the line. Could you try the script again to see if it passes a second time?

If it persists I will have to run the script here to see if I can replicate the issue.

---

<div class="post-metadata">

**Author:** ![Oddi\_Ferreira](https://community.openenergymonitor.org/user_avatar/community.openenergymonitor.org/oddi_ferreira/32/18501_2.png) [@Oddi\_Ferreira](https://community.openenergymonitor.org/u/Oddi_Ferreira)\
**Post date:** [13 August 2021 05:49 UTC](https://community.openenergymonitor.org/t/emoncms-install-script-error/18369/3 "2021-08-13T05:49:50Z")

</div>

@TrystanLea yes the script had failed in between few times and had to restart finally after completing it started giving this error, the issue was resolved after a clean install of ubuntu.(Maybe due to the user not having full rights to the root directory, later done with the root user)

---

<div class="post-metadata">

**Author:** ![borpin](https://community.openenergymonitor.org/user_avatar/community.openenergymonitor.org/borpin/32/193_2.png) [@borpin](https://community.openenergymonitor.org/u/borpin)\
**Post date:** [13 August 2021 16:51 UTC](https://community.openenergymonitor.org/t/emoncms-install-script-error/18369/4 "2021-08-13T16:51:06Z")

</div>

> [@Oddi\_Ferreira](#):
>
> (Maybe due to the user not having full rights to the root directory, later done with the root user)

The script instructions give a method to create a ‘pi’ user on the Ubuntu instance, and add it to SUDO to avoid that. Not tested with latest release of Ubuntu.

---

<div class="post-metadata">

**Author:** ![Bill.Thomson](https://community.openenergymonitor.org/user_avatar/community.openenergymonitor.org/bill.thomson/32/1834_2.png) [@Bill.Thomson](https://community.openenergymonitor.org/u/Bill.Thomson)\
**Post date:** [13 August 2021 19:53 UTC](https://community.openenergymonitor.org/t/emoncms-install-script-error/18369/5 "2021-08-13T19:53:55Z")

</div>

> [@Oddi\_Ferreira](#):
>
> later done with the root use

From what I’ve read, it’s _bad juju_ to install anything as the root user.  
With some things, you have no choice. But it’s not a habit one wants to get into.
