Problems getting cwmp to run

GB Overton GBO at dcpud.org
Mon Mar 20 12:52:40 EDT 2017


I'm running redis-cli 3.2.8 and redis at 2.7.1<mailto:redis at 2.7.1>


Here are the commands and output from the screen.


root at GenieACS:/opt# git clone https://github.com/zaidka/genieacs.git
root at GenieACS:/opt# cd genieacs

git checkout $(git tag -l v1.1.* --sort=-v:refname | head -n 1)
error: unknown option `sort=-v:refname'
usage: git tag [-a|-s|-u <key-id>] [-f] [-m <msg>|-F <file>] <tagname> [<head>]
   or: git tag -d <tagname>...
   or: git tag -l [-n[<num>]] [--contains <commit>] [--points-at <object>]
                [<pattern>...]
   or: git tag -v <tagname>...

    -l, --list            list tag names
    -n[<n>]               print <n> lines of each tag message
    -d, --delete          delete tags
    -v, --verify          verify tags

Tag creation options
    -a, --annotate        annotated tag, needs a message
    -m, --message <message>
                          tag message
    -F, --file <file>     read message from file
    -s, --sign            annotated and GPG-signed tag
    --cleanup <mode>      how to strip spaces and #comments from message
    -u, --local-user <key id>
                          use another key to sign the tag
    -f, --force           replace the tag if exists
    --column[=<style>]    show tag list in columns

Tag listing options
    --contains <commit>   print only tags that contain the commit
    --points-at <object>  print only tags of the object

Your branch is up-to-date with 'origin/master'.
root at GenieACS:/opt/genieacs# git tag -l
v0.9.8
v0.9.9
v1.0.0
v1.0.1
v1.0.2
v1.0.3
v1.0.4
v1.0.5
v1.0.6
v1.0.7
v1.1.0

root at GenieACS:/opt/genieacs# git checkout v1.1.0
Note: checking out 'v1.1.0'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:

  git checkout -b new_branch_name

HEAD is now at 6f45042... 1.1.0

root at GenieACS:/opt/genieacs# npm install

> hiredis at 0.5.0 install /opt/genieacs/node_modules/hiredis
> node-gyp rebuild

make: Entering directory `/opt/genieacs/node_modules/hiredis/build'
  CC(target) Release/obj.target/hiredis-c/deps/hiredis/sds.o
  CC(target) Release/obj.target/hiredis-c/deps/hiredis/read.o
  AR(target) Release/obj.target/deps/hiredis-c.a
  COPY Release/hiredis-c.a
  CXX(target) Release/obj.target/hiredis/src/hiredis.o
  CXX(target) Release/obj.target/hiredis/src/reader.o
  SOLINK_MODULE(target) Release/obj.target/hiredis.node
  COPY Release/hiredis.node
make: Leaving directory `/opt/genieacs/node_modules/hiredis/build'

> libxmljs at 0.18.4 install /opt/genieacs/node_modules/libxmljs
> node-pre-gyp install --fallback-to-build --loglevel http

node-pre-gyp http GET https://github.com/libxmljs/libxmljs/releases/download/v0.18.4/node-v51-linux-x64.tar.gz
node-pre-gyp http 404 https://github.com/libxmljs/libxmljs/releases/download/v0.18.4/node-v51-linux-x64.tar.gz
node-pre-gyp ERR! Tried to download(404): https://github.com/libxmljs/libxmljs/releases/download/v0.18.4/node-v51-linux-x64.tar.gz
node-pre-gyp ERR! Pre-built binaries not found for libxmljs at 0.18.4 and node at 7.7.3 (node-v51 ABI) (falling back to source compile with node-gyp)
node-pre-gyp http 404 status code downloading tarball https://github.com/libxmljs/libxmljs/releases/download/v0.18.4/node-v51-linux-x64.tar.gz
make: Entering directory `/opt/genieacs/node_modules/libxmljs/build'
  CC(target) Release/obj.target/libxml/vendor/libxml/buf.o
  CC(target) Release/obj.target/libxml/vendor/libxml/catalog.o
  CC(target) Release/obj.target/libxml/vendor/libxml/chvalid.o
  CC(target) Release/obj.target/libxml/vendor/libxml/dict.o
  CC(target) Release/obj.target/libxml/vendor/libxml/encoding.o
  CC(target) Release/obj.target/libxml/vendor/libxml/entities.o
  CC(target) Release/obj.target/libxml/vendor/libxml/error.o
  CC(target) Release/obj.target/libxml/vendor/libxml/globals.o
  CC(target) Release/obj.target/libxml/vendor/libxml/hash.o
  CC(target) Release/obj.target/libxml/vendor/libxml/HTMLparser.o
  CC(target) Release/obj.target/libxml/vendor/libxml/HTMLtree.o
  CC(target) Release/obj.target/libxml/vendor/libxml/legacy.o
  CC(target) Release/obj.target/libxml/vendor/libxml/list.o
  CC(target) Release/obj.target/libxml/vendor/libxml/parser.o
  CC(target) Release/obj.target/libxml/vendor/libxml/parserInternals.o
  CC(target) Release/obj.target/libxml/vendor/libxml/pattern.o
  CC(target) Release/obj.target/libxml/vendor/libxml/relaxng.o
  CC(target) Release/obj.target/libxml/vendor/libxml/SAX2.o
  CC(target) Release/obj.target/libxml/vendor/libxml/SAX.o
  CC(target) Release/obj.target/libxml/vendor/libxml/tree.o
  CC(target) Release/obj.target/libxml/vendor/libxml/threads.o
  CC(target) Release/obj.target/libxml/vendor/libxml/uri.o
  CC(target) Release/obj.target/libxml/vendor/libxml/valid.o
  CC(target) Release/obj.target/libxml/vendor/libxml/xinclude.o
  CC(target) Release/obj.target/libxml/vendor/libxml/xlink.o
  CC(target) Release/obj.target/libxml/vendor/libxml/xmlIO.o
  CC(target) Release/obj.target/libxml/vendor/libxml/xmlmemory.o
  CC(target) Release/obj.target/libxml/vendor/libxml/xmlmodule.o
  CC(target) Release/obj.target/libxml/vendor/libxml/xmlreader.o
  CC(target) Release/obj.target/libxml/vendor/libxml/xmlregexp.o
  CC(target) Release/obj.target/libxml/vendor/libxml/xmlsave.o
  CC(target) Release/obj.target/libxml/vendor/libxml/xmlschemas.o
  CC(target) Release/obj.target/libxml/vendor/libxml/xmlschemastypes.o
  CC(target) Release/obj.target/libxml/vendor/libxml/xmlstring.o
  CC(target) Release/obj.target/libxml/vendor/libxml/xmlunicode.o
  CC(target) Release/obj.target/libxml/vendor/libxml/xmlwriter.o
  CC(target) Release/obj.target/libxml/vendor/libxml/xpath.o
In file included from ../vendor/libxml/xpath.c:462:0:
../vendor/libxml/timsort.h: In function 'libxml_domnode_tim_sort_collapse':
../vendor/libxml/timsort.h:397:19: warning: variable 'BD' set but not used [-Wunused-but-set-variable]
     int ABC, BCD, BD, CD;
                   ^
../vendor/libxml/xpath.c: In function 'xmlXPathNodeCollectAndTest':
../vendor/libxml/xpath.c:12406:28: warning: comparison between 'xmlElementType' and 'xmlXPathTypeVal' [-Wenum-compare]
       } else if (cur->type == type) {
                            ^
In file included from ../vendor/libxml/xpath.c:476:0:
../vendor/libxml/xpath.c: At top level:
../vendor/libxml/trionan.c:218:1: warning: 'trio_is_negative' defined but not used [-Wunused-function]
trio_is_negative
^
../vendor/libxml/xpath.c: In function 'xmlXPathCastNumberToString':
../vendor/libxml/xpath.c:3197:7: warning: array subscript is above array bounds [-Warray-bounds]
   work[buffersize - 1] = 0;
       ^
  CC(target) Release/obj.target/libxml/vendor/libxml/xpointer.o
../vendor/libxml/xpointer.c: In function 'xmlXPtrNewRangeNodePoint':
../vendor/libxml/xpointer.c:451:21: warning: comparison between 'xmlElementType' and 'enum <anonymous>' [-Wenum-compare]
     if (start->type != XPATH_POINT)
                     ^
  AR(target) Release/obj.target/vendor/libxml/xml.a
  COPY Release/xml.a
  CXX(target) Release/obj.target/xmljs/src/libxmljs.o
  CXX(target) Release/obj.target/xmljs/src/xml_attribute.o
  CXX(target) Release/obj.target/xmljs/src/xml_document.o
  CXX(target) Release/obj.target/xmljs/src/xml_element.o
  CXX(target) Release/obj.target/xmljs/src/xml_comment.o
  CXX(target) Release/obj.target/xmljs/src/xml_namespace.o
  CXX(target) Release/obj.target/xmljs/src/xml_node.o
  CXX(target) Release/obj.target/xmljs/src/xml_sax_parser.o
  CXX(target) Release/obj.target/xmljs/src/xml_syntax_error.o
  CXX(target) Release/obj.target/xmljs/src/xml_text.o
  CXX(target) Release/obj.target/xmljs/src/xml_xpath_context.o
  SOLINK(target) Release/obj.target/xmljs.node
  COPY Release/xmljs.node
make: Leaving directory `/opt/genieacs/node_modules/libxmljs/build'
npm WARN lifecycle genieacs at 1.1.0~install: cannot run in wd %s %s (wd=%s) genieacs at 1.1.0 npm run configure /opt/genieacs
npm WARN prepublish-on-install As of npm at 5, `prepublish` scripts will run only for `npm publish`.
npm WARN prepublish-on-install (In npm at 4 and previous versions, it also runs for `npm install`.)
npm WARN prepublish-on-install See the deprecation note in `npm help scripts` for more information.
npm WARN lifecycle genieacs at 1.1.0~prepublish: cannot run in wd %s %s (wd=%s) genieacs at 1.1.0 npm run compile /opt/genieacs
genieacs at 1.1.0 /opt/genieacs
├── coffeescript at 1.12.4
├─┬ hiredis at 0.5.0
│ ├── bindings at 1.2.1
│ └── nan at 2.5.1
├── later at 1.2.0
├─┬ libxmljs at 0.18.4
│ └─┬ node-pre-gyp at 0.6.33
│   ├─┬ mkdirp at 0.5.1
│   │ └── minimist at 0.0.8
│   ├─┬ nopt at 3.0.6
│   │ └── abbrev at 1.1.0
│   ├─┬ npmlog at 4.0.2
│   │ ├─┬ are-we-there-yet at 1.1.2
│   │ │ ├── delegates at 1.0.0
│   │ │ └── readable-stream at 2.2.6
│   │ ├── console-control-strings at 1.1.0
│   │ ├─┬ gauge at 2.7.3
│   │ │ ├── aproba at 1.1.1
│   │ │ ├── has-unicode at 2.0.1
│   │ │ ├── object-assign at 4.1.1
│   │ │ ├── signal-exit at 3.0.2
│   │ │ ├─┬ string-width at 1.0.2
│   │ │ │ ├── code-point-at at 1.1.0
│   │ │ │ └─┬ is-fullwidth-code-point at 1.0.0
│   │ │ │   └── number-is-nan at 1.0.1
│   │ │ ├─┬ strip-ansi at 3.0.1
│   │ │ │ └── ansi-regex at 2.1.1
│   │ │ └── wide-align at 1.1.0
│   │ └── set-blocking at 2.0.0
│   ├─┬ rc at 1.1.7
│   │ ├── deep-extend at 0.4.1
│   │ ├── ini at 1.3.4
│   │ ├── minimist at 1.2.0
│   │ └── strip-json-comments at 2.0.1
│   ├─┬ request at 2.81.0
│   │ ├── aws-sign2 at 0.6.0
│   │ ├── aws4 at 1.6.0
│   │ ├── caseless at 0.12.0
│   │ ├─┬ combined-stream at 1.0.5
│   │ │ └── delayed-stream at 1.0.0
│   │ ├── extend at 3.0.0
│   │ ├── forever-agent at 0.6.1
│   │ ├─┬ form-data at 2.1.2
│   │ │ └── asynckit at 0.4.0
│   │ ├─┬ har-validator at 4.2.1
│   │ │ ├─┬ ajv at 4.11.5
│   │ │ │ ├── co at 4.6.0
│   │ │ │ └─┬ json-stable-stringify at 1.0.1
│   │ │ │   └── jsonify at 0.0.0
│   │ │ └── har-schema at 1.0.5
│   │ ├─┬ hawk at 3.1.3
│   │ │ ├── boom at 2.10.1
│   │ │ ├── cryptiles at 2.0.5
│   │ │ ├── hoek at 2.16.3
│   │ │ └── sntp at 1.0.9
│   │ ├─┬ http-signature at 1.1.1
│   │ │ ├── assert-plus at 0.2.0
│   │ │ ├─┬ jsprim at 1.4.0
│   │ │ │ ├── assert-plus at 1.0.0
│   │ │ │ ├── extsprintf at 1.0.2
│   │ │ │ ├── json-schema at 0.2.3
│   │ │ │ └── verror at 1.3.6
│   │ │ └─┬ sshpk at 1.11.0
│   │ │   ├── asn1 at 0.2.3
│   │ │   ├── assert-plus at 1.0.0
│   │ │   ├── bcrypt-pbkdf at 1.0.1
│   │ │   ├─┬ dashdash at 1.14.1
│   │ │   │ └── assert-plus at 1.0.0
│   │ │   ├── ecc-jsbn at 0.1.1
│   │ │   ├─┬ getpass at 0.1.6
│   │ │   │ └── assert-plus at 1.0.0
│   │ │   ├── jodid25519 at 1.0.2
│   │ │   ├── jsbn at 0.1.1
│   │ │   └── tweetnacl at 0.14.5
│   │ ├── is-typedarray at 1.0.0
│   │ ├── isstream at 0.1.2
│   │ ├── json-stringify-safe at 5.0.1
│   │ ├─┬ mime-types at 2.1.14
│   │ │ └── mime-db at 1.26.0
│   │ ├── oauth-sign at 0.8.2
│   │ ├── performance-now at 0.2.0
│   │ ├── qs at 6.4.0
│   │ ├── safe-buffer at 5.0.1
│   │ ├── stringstream at 0.0.5
│   │ ├─┬ tough-cookie at 2.3.2
│   │ │ └── punycode at 1.4.1
│   │ ├── tunnel-agent at 0.6.0
│   │ └── uuid at 3.0.1
│   ├─┬ rimraf at 2.5.4
│   │ └─┬ glob at 7.1.1
│   │   ├── fs.realpath at 1.0.0
│   │   ├── inflight at 1.0.6
│   │   ├─┬ minimatch at 3.0.3
│   │   │ └─┬ brace-expansion at 1.1.6
│   │   │   ├── balanced-match at 0.4.2
│   │   │   └── concat-map at 0.0.1
│   │   ├── once at 1.4.0
│   │   └── path-is-absolute at 1.0.1
│   ├── semver at 5.3.0
│   ├─┬ tar at 2.2.1
│   │ ├── block-stream at 0.0.9
│   │ └─┬ fstream at 1.0.11
│   │   └── graceful-fs at 4.1.11
│   └─┬ tar-pack at 3.3.0
│     ├─┬ debug at 2.2.0
│     │ └── ms at 0.7.1
│     ├── fstream-ignore at 1.0.5
│     ├─┬ once at 1.3.3
│     │ └── wrappy at 1.0.2
│     ├── readable-stream at 2.1.5
│     └── uid-number at 0.0.6
├─┬ mongodb at 2.2.25
│ ├── es6-promise at 3.2.1
│ ├─┬ mongodb-core at 2.1.9
│ │ ├── bson at 1.0.4
│ │ └─┬ require_optional at 1.0.0
│ │   └── resolve-from at 2.0.0
│ └─┬ readable-stream at 2.1.5
│   ├── buffer-shims at 1.0.0
│   ├── core-util-is at 1.0.2
│   ├── inherits at 2.0.3
│   ├── isarray at 1.0.0
│   ├── process-nextick-args at 1.0.7
│   ├── string_decoder at 0.10.31
│   └── util-deprecate at 1.0.2
├─┬ redis at 2.7.1
│ ├── double-ended-queue at 2.1.0-0
│ ├── redis-commands at 1.3.1
│ └── redis-parser at 2.5.0
└── seedrandom at 2.4.2

root at GenieACS:/opt/genieacs# npm run compile

> genieacs at 1.1.0 compile /opt/genieacs
> coffee -cb lib/*.coffee

root at GenieACS:/opt/genieacs/bin# ./genieacs-cwmp
2017-03-20T16:34:24.687Z [INFO] GenieACS (genieacs-cwmp) starting; pid=24011 version="1.1.0" dependencies="node at 7.7.3,hiredis at 0.5.0,later at 1.2.0,libxmljs at 0.18.4,mongodb at 2.2.25,redis at 2.7.1,seedrandom at 2.4.2" config="CONFIG_DIR=/opt/genieacs/config,MONGODB_CONNECTION_URL=mongodb://127.0.0.1/genieacs,REDIS_PORT=6379,REDIS_HOST=127.0.0.1,CWMP_INTERFACE=0.0.0.0,CWMP_PORT=7547,CWMP_SSL=false,NBI_INTERFACE=0.0.0.0,NBI_PORT=7557,FS_INTERFACE=0.0.0.0,FS_PORT=7567,FS_HOSTNAME=192.168.0.1,FS_IP=192.168.0.1,LOG_INFORMS=true,DEBUG=false,REDIS_DB=0,CWMP_WORKER_PROCESSES=0,CWMP_LOG_FILE=,CWMP_ACCESS_LOG_FILE=,NBI_WORKER_PROCESSES=0,NBI_SSL=false,NBI_LOG_FILE=,NBI_ACCESS_LOG_FILE=,FS_WORKER_PROCESSES=0,FS_SSL=false,FS_LOG_FILE=,FS_ACCESS_LOG_FILE=,DOWNLOAD_TIMEOUT=3600,EXT_TIMEOUT=3000,MAX_CACHE_TTL=86400,RETRY_DELAY=300,SESSION_TIMEOUT=30,CONNECTION_REQUEST_TIMEOUT=2000,GPN_NEXT_LEVEL=0,GPV_BATCH_SIZE=32,MAX_DEPTH=16,LOG_FORMAT=simple,ACCESS_LOG_FORMAT=,XML_RECOVER=false,XML_IGNORE_ENC=false,XML_FORMAT=false,XML_NO_DECL=false,XML_NO_EMPTY=false,XML_IGNORE_NAMESPACE=false,DEVICE_ONLINE_THRESHOLD=4000"
2017-03-20T16:34:25.430Z [INFO] Worker listening; pid=24032 address="0.0.0.0" port=7547
2017-03-20T16:34:25.433Z [INFO] Worker listening; pid=24033 address="0.0.0.0" port=7547
2017-03-20T16:34:29.419Z [ERROR] Uncaught exception; exceptionName="ReplyError" exceptionMessage="ERR invalid expire time in setex" exceptionStack="ReplyError: ERR invalid expire time in setex\n    at parseError (/opt/genieacs/node_modules/redis-parser/lib/parser.js:182:12)\n    at parseType (/opt/genieacs/node_modules/redis-parser/lib/parser.js:292:14)"
events.js:163
      throw er; // Unhandled 'error' event
      ^

Error: write after end
    at writeAfterEnd (_stream_writable.js:191:12)
    at WriteStream.Writable.write (_stream_writable.js:238:5)
    at log (/opt/genieacs/lib/logger.js:260:15)
    at Object.error (/opt/genieacs/lib/logger.js:279:3)
    at process.<anonymous> (/opt/genieacs/lib/server.js:77:10)
    at emitOne (events.js:96:13)
    at process.emit (events.js:191:7)
    at process._fatalException (bootstrap_node.js:299:26)
2017-03-20T16:34:29.508Z [ERROR] Worker died; pid=24032 exitCode=7
2017-03-20T16:34:29.557Z [ERROR] Uncaught exception; exceptionName="ReplyError" exceptionMessage="ERR invalid expire time in setex" exceptionStack="ReplyError: ERR invalid expire time in setex\n    at parseError (/opt/genieacs/node_modules/redis-parser/lib/parser.js:182:12)\n    at parseType (/opt/genieacs/node_modules/redis-parser/lib/parser.js:292:14)"
events.js:163
      throw er; // Unhandled 'error' event
      ^



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.genieacs.com/pipermail/users/attachments/20170320/65e7d52f/attachment-0001.html>


More information about the Users mailing list