# Components update working on shared servers (without REDIS or service-runner)

**URL:** <https://community.openenergymonitor.org/t/components-update-working-on-shared-servers-without-redis-or-service-runner/18621>\
**Category:** Development\
**Created:** [15 September 2021 22:18 UTC](https://community.openenergymonitor.org/t/components-update-working-on-shared-servers-without-redis-or-service-runner/18621 "2021-09-15T22:18:50Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![nchaveiro](https://community.openenergymonitor.org/user_avatar/community.openenergymonitor.org/nchaveiro/32/12392_2.png) [@nchaveiro](https://community.openenergymonitor.org/u/nchaveiro)\
**Post date:** [15 September 2021 22:18 UTC](https://community.openenergymonitor.org/t/components-update-working-on-shared-servers-without-redis-or-service-runner/18621/1 "2021-09-15T22:18:50Z")

</div>

A very useful feature that is not working for me as i’m on a shared server, so I’m trying to make the components update run without redis or service-runner.

## Issues to solve:

##### 1 - Use git directly from PHP when service runner is not available, or always?

##### 2 - How is this file updated? Why not make this a universal github RAW url to the latest file?

- /opt/openenergymonitor/EmonScripts/components\_available.json

##### 3 -Remove hardcoded absolute paths:

Are they used in any place ?

> <https://github.com/emoncms/emoncms/blob/f1c5ee0c58b722e128961cf0ceac6175a7c2d0e7/version.json#L4>

> <https://github.com/emoncms/device/blob/28fb5f6dfb9282d0dee9c8cd76fc981792888d4c/module.json#L4>

##### 4 - Where are the source for this files?

- /opt/openenergymonitor/EmonScripts/update/update\_component.sh
- /opt/openenergymonitor/EmonScripts/update/update\_all\_components.sh

@TrystanLea please comment on the topics above.

---

<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:** [16 September 2021 10:19 UTC](https://community.openenergymonitor.org/t/components-update-working-on-shared-servers-without-redis-or-service-runner/18621/2 "2021-09-16T10:19:40Z")

</div>

Hello @nchaveiro is there any reason that you cant run on VM environment like a DigitalOcean droplet? and so can install the full system according to the EmonScripts specification?

---

<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:** [16 September 2021 10:22 UTC](https://community.openenergymonitor.org/t/components-update-working-on-shared-servers-without-redis-or-service-runner/18621/3 "2021-09-16T10:22:25Z")

</div>

E.g [https://www.digitalocean.com/pricing](https://www.digitalocean.com/pricing) $5/month for a basic droplet, 1GB memory, 25GB SSD, SSH, Ubuntu. You can then install using the EmonScripts install script and get the full stack following a common build structure that is easier to support.

---

<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:** [16 September 2021 10:41 UTC](https://community.openenergymonitor.org/t/components-update-working-on-shared-servers-without-redis-or-service-runner/18621/4 "2021-09-16T10:41:52Z")

</div>

Or even [https://www.ionos.co.uk/](https://www.ionos.co.uk/) £1/month! for a linux VPS…

---

<div class="post-metadata">

**Author:** ![nchaveiro](https://community.openenergymonitor.org/user_avatar/community.openenergymonitor.org/nchaveiro/32/12392_2.png) [@nchaveiro](https://community.openenergymonitor.org/u/nchaveiro)\
**Post date:** [16 September 2021 12:59 UTC](https://community.openenergymonitor.org/t/components-update-working-on-shared-servers-without-redis-or-service-runner/18621/5 "2021-09-16T12:59:36Z")

</div>

That is a nice idea and the ionos offer seem very cheap. Will take a look at that later.  
The main drawback for not changing to a VPS until now is that i have a growing 30GB mysql database that i think would be more expensive and also having to administer the VM, upgrading it, security patches, etc, that on a shared server are given.  
The current traditional hosting i use charges me $7 month with a free yearly domain renew and unlimited of everything (Disk, Database and network).

Anyway, are you suggesting that emoncms might drop support for shared installations without Redis ?  
Please advice also where is the git repo for that EmonScripts/update/ files as i could not find it ☹

Update: Dreamhost now has a limit of 3GB per database… time to change.

---

<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:** [16 September 2021 19:04 UTC](https://community.openenergymonitor.org/t/components-update-working-on-shared-servers-without-redis-or-service-runner/18621/6 "2021-09-16T19:04:42Z")

</div>

Interesting, seems like you have a good deal there!

> [@nchaveiro](#):
>
> Anyway, are you suggesting that emoncms might drop support for shared installations without Redis ?

Yes that is what I would like to do. We havent really actively supported it in terms of providing an up to date guide or developing with it in mind for years. With limited resources I think its best to focus on a target platform and just get things working as well as possible on that.

The emonscripts repo can be found here:

[GitHub - openenergymonitor/EmonScripts: Emoncms Stack Installation and Update scripts](https://github.com/openenergymonitor/EmonScripts/)

and this is the script that updates particular components  
[EmonScripts/update/update\_component.sh at master · openenergymonitor/EmonScripts · GitHub](https://github.com/openenergymonitor/EmonScripts/blob/master/update/update_component.sh)

do you have SSH on your shared hosting, can you use git?

---

<div class="post-metadata">

**Author:** ![nchaveiro](https://community.openenergymonitor.org/user_avatar/community.openenergymonitor.org/nchaveiro/32/12392_2.png) [@nchaveiro](https://community.openenergymonitor.org/u/nchaveiro)\
**Post date:** [16 September 2021 22:46 UTC](https://community.openenergymonitor.org/t/components-update-working-on-shared-servers-without-redis-or-service-runner/18621/7 "2021-09-16T22:46:44Z")

</div>

Thanks for the links.  
The hosting is dreamhost have ssh, git just can’t run local daemons.

---

<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:** [16 September 2021 22:52 UTC](https://community.openenergymonitor.org/t/components-update-working-on-shared-servers-without-redis-or-service-runner/18621/8 "2021-09-16T22:52:33Z")

</div>

> [@nchaveiro](#):
>
> The current traditional hosting i use charges me $7 month with a free yearly domain renew and unlimited of everything (Disk, Database and network).

That _is_ indeed one hell of a deal!  
I thought I had a pretty sweet deal at 16.55 USD per _year_ for 4 TB of bandwidth per month on a VPS,  
but yours is unlimited and they give you a free domain too. NICE!

---

<div class="post-metadata">

**Author:** ![nchaveiro](https://community.openenergymonitor.org/user_avatar/community.openenergymonitor.org/nchaveiro/32/12392_2.png) [@nchaveiro](https://community.openenergymonitor.org/u/nchaveiro)\
**Post date:** [16 September 2021 23:44 UTC](https://community.openenergymonitor.org/t/components-update-working-on-shared-servers-without-redis-or-service-runner/18621/9 "2021-09-16T23:44:54Z")

</div>

They are doing $2.95 month promo for new accounts. [Start the New Year with savings. - DreamHost](https://www.dreamhost.com/holiday2020/#hosting)

---

<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:** [17 September 2021 12:15 UTC](https://community.openenergymonitor.org/t/components-update-working-on-shared-servers-without-redis-or-service-runner/18621/10 "2021-09-17T12:15:52Z")

</div>

Can you see any way: [EmonScripts/update\_component.sh at master · openenergymonitor/EmonScripts · GitHub](https://github.com/openenergymonitor/EmonScripts/blob/master/update/update_component.sh) could run on a shared server @nchaveiro?

Or would it all need to move away from using git?

---

<div class="post-metadata">

**Author:** ![nchaveiro](https://community.openenergymonitor.org/user_avatar/community.openenergymonitor.org/nchaveiro/32/12392_2.png) [@nchaveiro](https://community.openenergymonitor.org/u/nchaveiro)\
**Post date:** [17 September 2021 14:08 UTC](https://community.openenergymonitor.org/t/components-update-working-on-shared-servers-without-redis-or-service-runner/18621/11 "2021-09-17T14:08:08Z")

</div>

I think it will run, the only problem are the hardcoded absolute paths, optimally the scripts should reference to a local user folder.  
Will take a look further on adding the support by calling from php directly.

Also, what is currently the usage for the /admin/components-available.json API, is there an UI that goes with it?

---

<div class="post-metadata">

**Author:** ![nchaveiro](https://community.openenergymonitor.org/user_avatar/community.openenergymonitor.org/nchaveiro/32/12392_2.png) [@nchaveiro](https://community.openenergymonitor.org/u/nchaveiro)\
**Post date:** [30 September 2021 08:18 UTC](https://community.openenergymonitor.org/t/components-update-working-on-shared-servers-without-redis-or-service-runner/18621/12 "2021-09-30T08:18:46Z")

</div>

Update on this topic, added the new features to the components page to install/uninstall modules working with php at [Revamp Admin Module by chaveiro · Pull Request #1732 · emoncms/emoncms · GitHub](https://github.com/emoncms/emoncms/pull/1732) :

 ![image](https://community.openenergymonitor.org/uploads/default/original/3X/d/8/d8d3b28bd51b8d6064343d60d52955ea3ad12125.png)
