# How to update to lastest fixes branch?

**URL:** <https://forum.genieacs.com/t/how-to-update-to-lastest-fixes-branch/671>\
**Category:** Uncategorized\
**Created:** [March 27, 2020, 11:29pm UTC](https://forum.genieacs.com/t/how-to-update-to-lastest-fixes-branch/671 "2020-03-27T23:29:42Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![mtarifa](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.genieacs.com/mtarifa/32/848_2.png) [@mtarifa](https://forum.genieacs.com/u/mtarifa)\
**Post date:** [March 27, 2020, 11:29pm UTC](https://forum.genieacs.com/t/how-to-update-to-lastest-fixes-branch/671/1 "2020-03-27T23:29:42Z")

</div>

Hello

I had installed the1.2.0 with “sudo npm install -g --unsafe-perm genieacs@1.2.0-beta.0” and had on “/usr/local/lib/node\_modules/genieacs” (it go automatically there, i had debian 10) .

My question is how to update with the lastest fixes using git clone command? i see that many fixes are on .ts files that i no had… (one is to change session.ts, i can not find this file in my instalation… to fix too many rpc, per example)

Thanks you in advance, sorry my english.

---

<div class="post-metadata">

**Author:** ![chmutoff](https://avatars.discourse-cdn.com/v4/letter/c/74df32/32.png) [@chmutoff](https://forum.genieacs.com/u/chmutoff)\
**Post date:** [April 1, 2020, 3:12pm UTC](https://forum.genieacs.com/t/how-to-update-to-lastest-fixes-branch/671/2 "2020-04-01T15:12:06Z")

</div>

Hi.  
First of all, copy the configuration of the npm version (genieacs.env) then uninstall the npm version and download the latest version from git and build it, something like:

```
# clone github project
cd /usr/src
git clone https://github.com/genieacs/genieacs

# build the project from the sources
npm run build

mv dist /opt/genieacs
mkdir /var/log/genieacs

# install npm dependencies
cd /opt/genieacs
npm install --unsafe-perm

```

In order to update, you need to do:

```
cd /usr/src
git fetch
git pull

```

and then continue with the build and install process

Install the systemd services as described here:  
[http://docs.genieacs.com/en/latest/installation-guide.html#configure-systemd](http://docs.genieacs.com/en/latest/installation-guide.html#configure-systemd)

Then you will be able to start the services:

```
service genieacs-cwmp start
service genieacs-fs start
service genieacs-nbi start
service genieacs-ui start

```

Regards.

---

<div class="post-metadata">

**Author:** ![mtarifa](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.genieacs.com/mtarifa/32/848_2.png) [@mtarifa](https://forum.genieacs.com/u/mtarifa)\
**Post date:** [April 1, 2020, 6:31pm UTC](https://forum.genieacs.com/t/how-to-update-to-lastest-fixes-branch/671/3 "2020-04-01T18:31:32Z")

</div>

Hello and thanks for the help!!

i was do all the step but the services does not works:

root@GenieACS2:~# sudo systemctl status genieacs-cwmp  
â— genieacs-cwmp.service - GenieACS CWMP  
Loaded: loaded (/etc/systemd/system/genieacs-cwmp.service; enabled; vendor preset: enabled)  
Active: failed (Result: exit-code) since Wed 2020-04-01 15:29:55 -03; 819ms ago  
Process: 751 ExecStart=/usr/src/genieacs/bin/genieacs-cwmp (code=exited, status=1/FAILURE)  
Main PID: 751 (code=exited, status=1/FAILURE)

abr 01 15:29:55 GenieACS2 genieacs-cwmp[751]: at Module.require (internal/modules/cjs/loader.js:1044:19)  
abr 01 15:29:55 GenieACS2 genieacs-cwmp[751]: at Module.\_preloadModules (internal/modules/cjs/loader.js:1298:12)  
abr 01 15:29:55 GenieACS2 genieacs-cwmp[751]: at loadPreloadModules (internal/bootstrap/pre\_execution.js:444:5)  
abr 01 15:29:55 GenieACS2 genieacs-cwmp[751]: at prepareMainThreadExecution (internal/bootstrap/pre\_execution.js:68:3)  
abr 01 15:29:55 GenieACS2 genieacs-cwmp[751]: at internal/main/run\_main\_module.js:7:1 {  
abr 01 15:29:55 GenieACS2 genieacs-cwmp[751]: code: ‘MODULE\_NOT\_FOUND’,  
abr 01 15:29:55 GenieACS2 genieacs-cwmp[751]: requireStack: [‘internal/preload’]  
abr 01 15:29:55 GenieACS2 genieacs-cwmp[751]: }  
abr 01 15:29:55 GenieACS2 systemd[1]: genieacs-cwmp.service: Main process exited, code=exited, status=1/FAILURE  
abr 01 15:29:55 GenieACS2 systemd[1]: genieacs-cwmp.service: Failed with result ‘exit-code’.

i dont know if is missing something else

---

<div class="post-metadata">

**Author:** ![mtarifa](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.genieacs.com/mtarifa/32/848_2.png) [@mtarifa](https://forum.genieacs.com/u/mtarifa)\
**Post date:** [April 1, 2020, 6:44pm UTC](https://forum.genieacs.com/t/how-to-update-to-lastest-fixes-branch/671/4 "2020-04-01T18:44:52Z")

</div>

also when i run without a service like “./genieacs-cwmp … etc” it opens a blank webpage, like http server is listening but does not get any of the UI

---

<div class="post-metadata">

**Author:** ![chmutoff](https://avatars.discourse-cdn.com/v4/letter/c/74df32/32.png) [@chmutoff](https://forum.genieacs.com/u/chmutoff)\
**Post date:** [April 1, 2020, 7:56pm UTC](https://forum.genieacs.com/t/how-to-update-to-lastest-fixes-branch/671/5 "2020-04-01T19:56:22Z")

</div>

Can you see anything in the logs or when running the ./genieacs-cwmp and other binaries? Did you place your genieacs.env in /opt/genieacs folder?

---

<div class="post-metadata">

**Author:** ![mtarifa](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.genieacs.com/mtarifa/32/848_2.png) [@mtarifa](https://forum.genieacs.com/u/mtarifa)\
**Post date:** [April 1, 2020, 8:23pm UTC](https://forum.genieacs.com/t/how-to-update-to-lastest-fixes-branch/671/6 "2020-04-01T20:23:30Z")

</div>

Yes i have the genieacs.env in the folder.

All log that i have are when i run as serivice and try to check the status:

root@GenieACS2:~# sudo systemctl status genieacs-cwmp  
sudo systemctl status genieacs-nbi  
sudo systemctl status genieacs-fs  
â— genieacs-cwmp.service - GenieACS CWMP  
Loaded: loaded (/etc/systemd/system/genieacs-cwmp.service; enabled; vendor preset: enabled)  
Active: failed (Result: exit-code) since Wed 2020-04-01 17:20:56 -03; 41s ago  
Process: 800 ExecStart=/usr/src/genieacs/bin/genieacs-cwmp (code=exited, status=1/FAILURE)  
Main PID: 800 (code=exited, status=1/FAILURE)

abr 01 17:20:54 GenieACS2 genieacs-cwmp[800]: Error: Cannot find module ‘esm’  
abr 01 17:20:54 GenieACS2 genieacs-cwmp[800]: at Function.Module.\_resolveFilename (internal/modules/cjs/loader.js:636:15)  
abr 01 17:20:54 GenieACS2 genieacs-cwmp[800]: at Function.Module.\_load (internal/modules/cjs/loader.js:562:25)  
abr 01 17:20:54 GenieACS2 genieacs-cwmp[800]: at Module.require (internal/modules/cjs/loader.js:692:17)  
abr 01 17:20:54 GenieACS2 genieacs-cwmp[800]: at Module.\_preloadModules (internal/modules/cjs/loader.js:901:12)  
abr 01 17:20:54 GenieACS2 genieacs-cwmp[800]: at preloadModules (internal/bootstrap/node.js:602:7)  
abr 01 17:20:54 GenieACS2 genieacs-cwmp[800]: at startup (internal/bootstrap/node.js:273:9)  
abr 01 17:20:54 GenieACS2 genieacs-cwmp[800]: at bootstrapNodeJSCore (internal/bootstrap/node.js:623:3)  
abr 01 17:20:56 GenieACS2 systemd[1]: genieacs-cwmp.service: Main process exited, code=exited, status=1/FAILURE  
abr 01 17:20:56 GenieACS2 systemd[1]: genieacs-cwmp.service: Failed with result ‘exit-code’.  
root@GenieACS2:~# sudo systemctl status genieacs-nbi  
â— genieacs-nbi.service - GenieACS NBI  
Loaded: loaded (/etc/systemd/system/genieacs-nbi.service; enabled; vendor preset: enabled)  
Active: failed (Result: exit-code) since Wed 2020-04-01 17:20:59 -03; 38s ago  
Process: 860 ExecStart=/usr/src/genieacs/bin/genieacs-nbi (code=exited, status=1/FAILURE)  
Main PID: 860 (code=exited, status=1/FAILURE)

abr 01 17:20:58 GenieACS2 genieacs-nbi[860]: Error: Cannot find module ‘esm’  
abr 01 17:20:58 GenieACS2 genieacs-nbi[860]: at Function.Module.\_resolveFilename (internal/modules/cjs/loader.js:636:15)  
abr 01 17:20:58 GenieACS2 genieacs-nbi[860]: at Function.Module.\_load (internal/modules/cjs/loader.js:562:25)  
abr 01 17:20:58 GenieACS2 genieacs-nbi[860]: at Module.require (internal/modules/cjs/loader.js:692:17)  
abr 01 17:20:58 GenieACS2 genieacs-nbi[860]: at Module.\_preloadModules (internal/modules/cjs/loader.js:901:12)  
abr 01 17:20:58 GenieACS2 genieacs-nbi[860]: at preloadModules (internal/bootstrap/node.js:602:7)  
abr 01 17:20:58 GenieACS2 genieacs-nbi[860]: at startup (internal/bootstrap/node.js:273:9)  
abr 01 17:20:58 GenieACS2 genieacs-nbi[860]: at bootstrapNodeJSCore (internal/bootstrap/node.js:623:3)  
abr 01 17:20:59 GenieACS2 systemd[1]: genieacs-nbi.service: Main process exited, code=exited, status=1/FAILURE  
abr 01 17:20:59 GenieACS2 systemd[1]: genieacs-nbi.service: Failed with result ‘exit-code’.  
root@GenieACS2:~# sudo systemctl status genieacs-fs  
â— genieacs-fs.service - GenieACS FS  
Loaded: loaded (/etc/systemd/system/genieacs-fs.service; enabled; vendor preset: enabled)  
Active: failed (Result: exit-code) since Wed 2020-04-01 17:20:57 -03; 39s ago  
Process: 830 ExecStart=/usr/src/genieacs/bin/genieacs-fs (code=exited, status=1/FAILURE)  
Main PID: 830 (code=exited, status=1/FAILURE)

abr 01 17:20:56 GenieACS2 genieacs-fs[830]: Error: Cannot find module ‘esm’  
abr 01 17:20:56 GenieACS2 genieacs-fs[830]: at Function.Module.\_resolveFilename (internal/modules/cjs/loader.js:636:15)  
abr 01 17:20:56 GenieACS2 genieacs-fs[830]: at Function.Module.\_load (internal/modules/cjs/loader.js:562:25)  
abr 01 17:20:56 GenieACS2 genieacs-fs[830]: at Module.require (internal/modules/cjs/loader.js:692:17)  
abr 01 17:20:56 GenieACS2 genieacs-fs[830]: at Module.\_preloadModules (internal/modules/cjs/loader.js:901:12)  
abr 01 17:20:56 GenieACS2 genieacs-fs[830]: at preloadModules (internal/bootstrap/node.js:602:7)  
abr 01 17:20:56 GenieACS2 genieacs-fs[830]: at startup (internal/bootstrap/node.js:273:9)  
abr 01 17:20:56 GenieACS2 genieacs-fs[830]: at bootstrapNodeJSCore (internal/bootstrap/node.js:623:3)  
abr 01 17:20:57 GenieACS2 systemd[1]: genieacs-fs.service: Main process exited, code=exited, status=1/FAILURE  
abr 01 17:20:57 GenieACS2 systemd[1]: genieacs-fs.service: Failed with result ‘exit-code’.  
root@GenieACS2:~# sudo systemctl status genieacs-ui  
â— genieacs-ui.service - GenieACS UI  
Loaded: loaded (/etc/systemd/system/genieacs-ui.service; enabled; vendor preset: enabled)  
Active: failed (Result: exit-code) since Wed 2020-04-01 17:20:59 -03; 38s ago  
Process: 890 ExecStart=/usr/src/genieacs/bin/genieacs-ui (code=exited, status=1/FAILURE)  
Main PID: 890 (code=exited, status=1/FAILURE)

abr 01 17:20:59 GenieACS2 genieacs-ui[890]: Error: Cannot find module ‘esm’  
abr 01 17:20:59 GenieACS2 genieacs-ui[890]: at Function.Module.\_resolveFilename (internal/modules/cjs/loader.js:636:15)  
abr 01 17:20:59 GenieACS2 genieacs-ui[890]: at Function.Module.\_load (internal/modules/cjs/loader.js:562:25)  
abr 01 17:20:59 GenieACS2 genieacs-ui[890]: at Module.require (internal/modules/cjs/loader.js:692:17)  
abr 01 17:20:59 GenieACS2 genieacs-ui[890]: at Module.\_preloadModules (internal/modules/cjs/loader.js:901:12)  
abr 01 17:20:59 GenieACS2 genieacs-ui[890]: at preloadModules (internal/bootstrap/node.js:602:7)  
abr 01 17:20:59 GenieACS2 genieacs-ui[890]: at startup (internal/bootstrap/node.js:273:9)  
abr 01 17:20:59 GenieACS2 genieacs-ui[890]: at bootstrapNodeJSCore (internal/bootstrap/node.js:623:3)  
abr 01 17:20:59 GenieACS2 systemd[1]: genieacs-ui.service: Main process exited, code=exited, status=1/FAILURE  
abr 01 17:20:59 GenieACS2 systemd[1]: genieacs-ui.service: Failed with result ‘exit-code’.

---

<div class="post-metadata">

**Author:** ![chmutoff](https://avatars.discourse-cdn.com/v4/letter/c/74df32/32.png) [@chmutoff](https://forum.genieacs.com/u/chmutoff)\
**Post date:** [April 1, 2020, 8:46pm UTC](https://forum.genieacs.com/t/how-to-update-to-lastest-fixes-branch/671/7 "2020-04-01T20:46:56Z")

</div>

Looks like you are missing some modules, did you install them inside of /opt/genieacs?

```
cd /opt/genieacs
npm install --unsafe-perm
```

---

<div class="post-metadata">

**Author:** ![mtarifa](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.genieacs.com/mtarifa/32/848_2.png) [@mtarifa](https://forum.genieacs.com/u/mtarifa)\
**Post date:** [April 1, 2020, 9:19pm UTC](https://forum.genieacs.com/t/how-to-update-to-lastest-fixes-branch/671/8 "2020-04-01T21:19:57Z")

</div>

yes, i do.

May be you can help me with the part of uninstall npm version…

Currently i have a working instalation of 1.2.0, but this is only happen when i try to install the git version, that have some fixes. I don know what is happen, with that version services does not run an got always modules not found. I dont know wich modules need this version.

---

<div class="post-metadata">

**Author:** ![chmutoff](https://avatars.discourse-cdn.com/v4/letter/c/74df32/32.png) [@chmutoff](https://forum.genieacs.com/u/chmutoff)\
**Post date:** [April 1, 2020, 9:21pm UTC](https://forum.genieacs.com/t/how-to-update-to-lastest-fixes-branch/671/9 "2020-04-01T21:21:55Z")

</div>

Well, to uninstall, just run

`sudo npm uniinstall -g --unsafe-perm genieacs@1.2.0-beta.0`

Anyway, if you still having problems, send me a PM and I could SSH into your server and set it up tomorrow.

---

<div class="post-metadata">

**Author:** ![mtarifa](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.genieacs.com/mtarifa/32/848_2.png) [@mtarifa](https://forum.genieacs.com/u/mtarifa)\
**Post date:** [April 1, 2020, 11:20pm UTC](https://forum.genieacs.com/t/how-to-update-to-lastest-fixes-branch/671/10 "2020-04-01T23:20:25Z")

</div>

thanks i was able to install!. I was not understand the part that the dist has the “compiled” genieacs to move on opt and then do the install.

But this version wont fix the rpc issue, only hide, by modify the value on session.ts (first at all). Still not having all the tree from my ONT

---

<div class="post-metadata">

**Author:** ![chmutoff](https://avatars.discourse-cdn.com/v4/letter/c/74df32/32.png) [@chmutoff](https://forum.genieacs.com/u/chmutoff)\
**Post date:** [April 2, 2020, 8:16am UTC](https://forum.genieacs.com/t/how-to-update-to-lastest-fixes-branch/671/11 "2020-04-02T08:16:41Z")

</div>

Oh, good to hear that you finaly got it. I think that you need to do something like

`GENIEACS_MAX_COMMIT_ITERATIONS=128`

The RPC sounds familiar to me, but I can’t remember if I had this problem.

---

<div class="post-metadata">

**Author:** ![mtarifa](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.genieacs.com/mtarifa/32/848_2.png) [@mtarifa](https://forum.genieacs.com/u/mtarifa)\
**Post date:** [April 2, 2020, 1:53pm UTC](https://forum.genieacs.com/t/how-to-update-to-lastest-fixes-branch/671/12 "2020-04-02T13:53:06Z")

</div>

Yes thanks! i add for 1.2 on config: cwmp.maxCommitIterations “32768”, seems to be a bigger number but i dont know wich is big or small value.

---

<div class="post-metadata">

**Author:** ![chmutoff](https://avatars.discourse-cdn.com/v4/letter/c/74df32/32.png) [@chmutoff](https://forum.genieacs.com/u/chmutoff)\
**Post date:** [April 2, 2020, 2:15pm UTC](https://forum.genieacs.com/t/how-to-update-to-lastest-fixes-branch/671/13 "2020-04-02T14:15:39Z")

</div>

Why are you trying to get the full tree?

BTW, are you Spanish? I’m from Spain.

---

<div class="post-metadata">

**Author:** ![mtarifa](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.genieacs.com/mtarifa/32/848_2.png) [@mtarifa](https://forum.genieacs.com/u/mtarifa)\
**Post date:** [April 2, 2020, 2:30pm UTC](https://forum.genieacs.com/t/how-to-update-to-lastest-fixes-branch/671/14 "2020-04-02T14:30:24Z")

</div>

Hope you and your family are ok! I am from Argentina, here we was on quarentine from mid of march to until mid of april…  
( I dont know if is ok to write in spanish here, so im stick on english.)

I begining to do some test with TR069, and try to see how it works. I always work with snmp for Docsis modems (im from a ISP for QA team). We are also testing Axiros, but for my side im try to learn with this software and try to do some test.  
For SNMP we normally do some walk but here seems to be quite different.  
On version 1.1.3, i don have this problem with the “tree scan” of all “Device.”

---

<div class="post-metadata">

**Author:** ![chmutoff](https://avatars.discourse-cdn.com/v4/letter/c/74df32/32.png) [@chmutoff](https://forum.genieacs.com/u/chmutoff)\
**Post date:** [April 3, 2020, 8:02am UTC](https://forum.genieacs.com/t/how-to-update-to-lastest-fixes-branch/671/15 "2020-04-03T08:02:11Z")

</div>

Yes, we are fine for now but still on quarantine for the next few weeks.

I think that you are using TR069 in a way that it was not designed to be used. The main approach is to set/get the necesary settings, not to do a walk on a whole tree. So you should have a provision script which goes step by step, get an interesting wifi part, change wifi name, encryption, etc… Then get the interfaces and add the necesary wan configuration. I don’t think that you need to get the whole information tree with one request. Try going step by step. Here you have an example of provisioning script:

[https://github.com/genieacs/genieacs/wiki/Example-of-a-Provisioning-Flow](https://github.com/genieacs/genieacs/wiki/Example-of-a-Provisioning-Flow)
