ioBroker: installer does not work for FreeBSD

As written here the installer doesn’t work for FreeBSD.

root@iobroker-v2:~ # curl -sL https://iobroker.net/install.sh | bash -

==========================================================================

    Welcome to the ioBroker installer!
    Installer version: 2019-07-21

    You might need to enter your password a couple of times.

==========================================================================


==========================================================================
    Installing prerequisites (1/4)
==========================================================================

Installed sudo
Installed unzip
Installed avahi-libdns
Installed nss_mdns
Installed gcc
dbus_enable:  -> YES
avahi_daemon_enable:  -> YES
Starting dbus.
Starting avahi-daemon.

==========================================================================
    Creating ioBroker user and directory (2/4)
==========================================================================

tty:*:4
Directory /opt/iobroker created

==========================================================================
    Installing ioBroker (3/4)
==========================================================================

../src/serialport.cpp:41:25: warning: 'Utf8Value' is deprecated [-Wdeprecated-declarations]
  v8::String::Utf8Value path(info[0]->ToString());
                        ^
/root/.node-gyp/10.16.0/include/node/v8.h:2891:5: note: 'Utf8Value' has been explicitly marked deprecated here
    V8_DEPRECATED("Use Isolate version",
    ^
/root/.node-gyp/10.16.0/include/node/v8config.h:327:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated))
                            ^
../src/serialport.cpp:48:44: warning: 'ToObject' is deprecated [-Wdeprecated-declarations]
  v8::Local<v8::Object> options = info[1]->ToObject();
                                           ^
/root/.node-gyp/10.16.0/include/node/v8.h:2455:10: note: 'ToObject' has been explicitly marked deprecated here
  inline V8_DEPRECATED("Use maybe version", Local<Object> ToObject() const);
         ^
/root/.node-gyp/10.16.0/include/node/v8config.h:327:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated))
                            ^
../src/serialport.cpp:95:18: warning: 'Call' is deprecated [-Wdeprecated-declarations]
  data->callback.Call(2, argv);
                 ^
../../nan/nan.h:1739:3: note: 'Call' has been explicitly marked deprecated here
  NAN_DEPRECATED inline v8::Local<v8::Value>
  ^
../../nan/nan.h:104:40: note: expanded from macro 'NAN_DEPRECATED'
# define NAN_DEPRECATED __attribute__((deprecated))
                                       ^
../src/serialport.cpp:113:44: warning: 'ToObject' is deprecated [-Wdeprecated-declarations]
  v8::Local<v8::Object> options = info[1]->ToObject();
                                           ^
/root/.node-gyp/10.16.0/include/node/v8.h:2455:10: note: 'ToObject' has been explicitly marked deprecated here
  inline V8_DEPRECATED("Use maybe version", Local<Object> ToObject() const);
         ^
/root/.node-gyp/10.16.0/include/node/v8config.h:327:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated))
                            ^
../src/serialport.cpp:150:18: warning: 'Call' is deprecated [-Wdeprecated-declarations]
  data->callback.Call(1, argv);
                 ^
../../nan/nan.h:1739:3: note: 'Call' has been explicitly marked deprecated here
  NAN_DEPRECATED inline v8::Local<v8::Value>
  ^
../../nan/nan.h:104:40: note: expanded from macro 'NAN_DEPRECATED'
# define NAN_DEPRECATED __attribute__((deprecated))
                                       ^
../src/serialport.cpp:188:18: warning: 'Call' is deprecated [-Wdeprecated-declarations]
  data->callback.Call(1, argv);
                 ^
../../nan/nan.h:1739:3: note: 'Call' has been explicitly marked deprecated here
  NAN_DEPRECATED inline v8::Local<v8::Value>
  ^
../../nan/nan.h:104:40: note: expanded from macro 'NAN_DEPRECATED'
# define NAN_DEPRECATED __attribute__((deprecated))
                                       ^
../src/serialport.cpp:231:18: warning: 'Call' is deprecated [-Wdeprecated-declarations]
  data->callback.Call(1, argv);
                 ^
../../nan/nan.h:1739:3: note: 'Call' has been explicitly marked deprecated here
  NAN_DEPRECATED inline v8::Local<v8::Value>
  ^
../../nan/nan.h:104:40: note: expanded from macro 'NAN_DEPRECATED'
# define NAN_DEPRECATED __attribute__((deprecated))
                                       ^
../src/serialport.cpp:250:44: warning: 'ToObject' is deprecated [-Wdeprecated-declarations]
  v8::Local<v8::Object> options = info[1]->ToObject();
                                           ^
/root/.node-gyp/10.16.0/include/node/v8.h:2455:10: note: 'ToObject' has been explicitly marked deprecated here
  inline V8_DEPRECATED("Use maybe version", Local<Object> ToObject() const);
         ^
/root/.node-gyp/10.16.0/include/node/v8config.h:327:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated))
                            ^
../src/serialport.cpp:285:18: warning: 'Call' is deprecated [-Wdeprecated-declarations]
  data->callback.Call(1, argv);
                 ^
../../nan/nan.h:1739:3: note: 'Call' has been explicitly marked deprecated here
  NAN_DEPRECATED inline v8::Local<v8::Value>
  ^
../../nan/nan.h:104:40: note: expanded from macro 'NAN_DEPRECATED'
# define NAN_DEPRECATED __attribute__((deprecated))
                                       ^
../src/serialport.cpp:336:18: warning: 'Call' is deprecated [-Wdeprecated-declarations]
  data->callback.Call(2, argv);
                 ^
../../nan/nan.h:1739:3: note: 'Call' has been explicitly marked deprecated here
  NAN_DEPRECATED inline v8::Local<v8::Value>
  ^
../../nan/nan.h:104:40: note: expanded from macro 'NAN_DEPRECATED'
# define NAN_DEPRECATED __attribute__((deprecated))
                                       ^
../src/serialport.cpp:383:18: warning: 'Call' is deprecated [-Wdeprecated-declarations]
  data->callback.Call(2, argv);
                 ^
../../nan/nan.h:1739:3: note: 'Call' has been explicitly marked deprecated here
  NAN_DEPRECATED inline v8::Local<v8::Value>
  ^
../../nan/nan.h:104:40: note: expanded from macro 'NAN_DEPRECATED'
# define NAN_DEPRECATED __attribute__((deprecated))
                                       ^
../src/serialport.cpp:424:18: warning: 'Call' is deprecated [-Wdeprecated-declarations]
  data->callback.Call(1, argv);
                 ^
../../nan/nan.h:1739:3: note: 'Call' has been explicitly marked deprecated here
  NAN_DEPRECATED inline v8::Local<v8::Value>
  ^
../../nan/nan.h:104:40: note: expanded from macro 'NAN_DEPRECATED'
# define NAN_DEPRECATED __attribute__((deprecated))
                                       ^
12 warnings generated.
../src/serialport_unix.cpp:384:20: warning: variable 'outbaud' is uninitialized when used here [-Wuninitialized]
  data->baudRate = outbaud;
                   ^~~~~~~
../src/serialport_unix.cpp:369:14: note: initialize the variable 'outbaud' to silence this warning
  int outbaud;
             ^
              = 0
1 warning generated.
../src/poller.cpp:69:17: warning: 'Call' is deprecated [-Wdeprecated-declarations]
  obj->callback.Call(2, argv);
                ^
../../nan/nan.h:1739:3: note: 'Call' has been explicitly marked deprecated here
  NAN_DEPRECATED inline v8::Local<v8::Value>
  ^
../../nan/nan.h:104:40: note: expanded from macro 'NAN_DEPRECATED'
# define NAN_DEPRECATED __attribute__((deprecated))
                                       ^
1 warning generated.

==========================================================================
    Finalizing installation (4/4)
==========================================================================

Enabling autostart...
iobroker_enable:  -> YES
Illegal variable name.
Autostart enabled!

Even

iobroker start
Starting iobroker controller daemon...
iobroker controller daemon failed to start:  Failed to write pidfile (EACCES)
Error: Failed to write pidfile (EACCES)

or

node iobroker start
internal/modules/cjs/loader.js:638
    throw err;
    ^

Error: Cannot find module '/root/iobroker'
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:636:15)
    at Function.Module._load (internal/modules/cjs/loader.js:562:25)
    at Function.Module.runMain (internal/modules/cjs/loader.js:829:12)
    at startup (internal/bootstrap/node.js:283:19)
    at bootstrapNodeJSCore (internal/bootstrap/node.js:622:3)


does not work. #

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 42 (1 by maintainers)

Commits related to this issue

Most upvoted comments

Yes, installer is working now! Autostart is working.

@mrMuppet This is a log output from the CI server (the lines prefixed with + are the commands):

I get the same log output. And when i installed iobroker.lovelace i used the wrong guide. Now i was able to install it.

I use pkg install npm-node10 www/npm-node10

I’ve found a way to do automatic tests on virtual FreeBSD machines: https://github.com/AlCalzone/ioBroker/pull/1 I’ll be using that approach to get it working. Afterwards we should probably include CirrusCI in our test setup here.