Mailtrain-org / mailtrain

Self hosted newsletter app
GNU General Public License v3.0
5.51k stars 692 forks source link

Error on Ubuntu 18.04 and CentOS 7 -> Failed to start mailtrain.service: Unit not found. #776

Closed kalak-sudo closed 6 months ago

kalak-sudo commented 4 years ago

Hi everyone,

I have tried on both system (fresh install) and after typing "systemctl start mailtrain" I always get the following error:

Failed to start mailtrain.service: Unit not found.

What is wrong?

Thanks!

martialblog commented 4 years ago

Have you checked if the Unit file exists?

A file like this: https://github.com/Mailtrain-org/mailtrain/blob/master/setup/mailtrain.service

Needs to be in /etc/systemd/system

kalak-sudo commented 4 years ago

I have created manually, and assigned sudo chmod a+x to the file, and I get the same error.

What else can I try?

talheim-it commented 4 years ago

@kalak-sudo

put the systemd file /lib/systemd/system

Creat the mailtrain.service file:

[Unit]
Description=Mailtrain server
After=syslog.target network.target mariadb.service redis.service mongod.service

[Service]
Environment="NODE_ENV=production"
WorkingDirectory=/opt/mailtrain/server
ExecStart=/usr/bin/node index.js
Type=simple
Restart=always
RestartSec=10

[Install]
WantedBy=multi-user.target

After that: systemctl enable mailtrain.service

systemctl start mailtrain.service

martialblog commented 4 years ago

Also might need at systemctl daemon-reload

You can use journalctl to get logs

kalak-sudo commented 4 years ago

@kalak-sudo

put the systemd file /lib/systemd/system

Creat the mailtrain.service file:

[Unit]
Description=Mailtrain server
After=syslog.target network.target mariadb.service redis.service mongod.service

[Service]
Environment="NODE_ENV=production"
WorkingDirectory=/opt/mailtrain/server
ExecStart=/usr/bin/node index.js
Type=simple
Restart=always
RestartSec=10

[Install]
WantedBy=multi-user.target

After that: systemctl enable mailtrain.service

systemctl start mailtrain.service

@talheim-it

I have tried it, creating:

systemd-mailtrain.service

and

mailtrain.servie

And the same error.

Also might need at systemctl daemon-reload

You can use journalctl to get logs

@martialblog

I have tried it, and the same error.

Do you want me to paste the logs? Which ones?

talheim-it commented 4 years ago

@kalak-sudo

can you run: /usr/bin/node index.js

where the index.js is located of mailtrain?

kalak-sudo commented 4 years ago

@kalak-sudo

can you run: /usr/bin/node index.js

where the index.js is located of mailtrain?

@talheim-it

I get this:

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

Error: Cannot find module '/usr/lib/systemd/system/index.js' 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:831:12) at startup (internal/bootstrap/node.js:283:19) at bootstrapNodeJSCore (internal/bootstrap/node.js:623:3)

talheim-it commented 4 years ago

@kalak-sudo I had the issue that the package was not completely installed

Did the install process ran without any errors?

kalak-sudo commented 4 years ago

@kalak-sudo I had the issue that the package was not completely installed

Did the install process ran without any errors?

@talheim-it

I think there weren't errors, but I am not totally sure about it.

How do I reinstall in an easy way?? Or just try it again on a new server?

talheim-it commented 4 years ago

@kalak-sudo Run the local install from here: https://github.com/Mailtrain-org/mailtrain/tree/development

Just do not run it with the http, just the local istaller.

Keep an eye on the modules install.

kalak-sudo commented 4 years ago

Ok, I have done it, and I get some errors:

Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile

  • epel: ftp.plusline.net Package epel-release-7-12.noarch already installed and latest version Nothing to do

Installing the NodeSource Node.js 10.x repo...

Inspecting system...

Confirming "el7-x86_64" is supported...

Downloading release setup RPM...

Installing release setup RPM...

Cleaning up...

Checking for existing installations...

Run sudo yum install -y nodejs to install Node.js 10.x and npm.

You may also need development tools to build native addons:

 sudo yum install gcc-c++ make

To install the Yarn package manager, run:

 curl -sL https://dl.yarnpkg.com/rpm/yarn.repo | sudo tee /etc/yum.repos.d/yarn.repo
 sudo yum install yarn

Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile

node-sass@4.12.0 install /opt/mailtrain/client/node_modules/node-sass node scripts/install.js

Downloading binary from https://github.com/sass/node-sass/releases/download/v4.12.0/linux-x64-64_binding.node Download complete..] - : Binary saved to /opt/mailtrain/client/node_modules/node-sass/vendor/linux-x64-64/binding.node Caching binary to /root/.npm/node-sass/4.12.0/linux-x64-64_binding.node

core-js@3.1.4 postinstall /opt/mailtrain/client/node_modules/@coreui/coreui/node_modules/core-js node scripts/postinstall || echo "ignore"

Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!

The project needs your help! Please consider supporting of core-js on Open Collective or Patreon:

https://opencollective.com/core-js https://www.patreon.com/zloirock

Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)

core-js-pure@3.1.4 postinstall /opt/mailtrain/client/node_modules/core-js-pure node scripts/postinstall || echo "ignore"

Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!

The project needs your help! Please consider supporting of core-js on Open Collective or Patreon:

https://opencollective.com/core-js https://www.patreon.com/zloirock

Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)

@coreui/coreui@2.1.12 postinstall /opt/mailtrain/client/node_modules/@coreui/coreui coreui-plugin-npm-postinstall || exit 0

Thank you for using free version of CoreUI! CoreUI is an MIT licensed open source project and completely free to use. However, the amount of effort needed to maintain and develop new features for the project is not sustainable without proper financial backing. You can support development by buying CoreUI Pro Version: https://coreui.io/pro/

node-sass@4.12.0 postinstall /opt/mailtrain/client/node_modules/node-sass node scripts/build.js

Binary found at /opt/mailtrain/client/node_modules/node-sass/vendor/linux-x64-64/binding.node Testing binary Binary is fine

nodemon@1.19.1 postinstall /opt/mailtrain/client/node_modules/nodemon node bin/postinstall || exit 0

Love nodemon? You can now support the project via the open collective:

https://opencollective.com/nodemon/donate

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.7 (node_modules/fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.7: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})

added 1309 packages from 1421 contributors and audited 24766 packages in 27.365s found 1 low severity vulnerability run npm audit fix to fix them, or npm audit for details Reinstalling modules in shared

node-sass@4.12.0 install /opt/mailtrain/shared/node_modules/node-sass node scripts/install.js

Cached binary found at /root/.npm/node-sass/4.12.0/linux-x64-64_binding.node

core-js-pure@3.1.4 postinstall /opt/mailtrain/shared/node_modules/core-js-pure node scripts/postinstall || echo "ignore"

Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!

The project needs your help! Please consider supporting of core-js on Open Collective or Patreon:

https://opencollective.com/core-js https://www.patreon.com/zloirock

Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)

node-sass@4.12.0 postinstall /opt/mailtrain/shared/node_modules/node-sass node scripts/build.js

Binary found at /opt/mailtrain/shared/node_modules/node-sass/vendor/linux-x64-64/binding.node Testing binary Binary is fine npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.9 (node_modules/fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.9: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})

added 727 packages from 352 contributors and audited 9897 packages in 12.327s found 0 vulnerabilities

Reinstalling modules in server

phantomjs-prebuilt@2.1.16 install /opt/mailtrain/server/node_modules/phantomjs-prebuilt node install.js

PhantomJS not found on PATH Downloading https://github.com/Medium/phantomjs/releases/download/v2.1.1/phantomjs-2.1.1-linux-x86_64.tar.bz2 Saving to /tmp/phantomjs/phantomjs-2.1.1-linux-x86_64.tar.bz2 Receiving... [==========================--------------] 66% Received 22866K total. Extracting tar contents (via spawned process) Removing /opt/mailtrain/server/node_modules/phantomjs-prebuilt/lib/phantom Copying extracted folder /tmp/phantomjs/phantomjs-2.1.1-linux-x86_64.tar.bz2-extract-1573650780818/phantomjs-2.1.1-linux-x86_64 -> /opt/mailtrain/server/node_modules/phantomjs-prebuilt/lib/phantom Writing location.js file Done. Phantomjs binary available at /opt/mailtrain/server/node_modules/phantomjs-prebuilt/lib/phantom/bin/phantomjs

posix@4.1.2 install /opt/mailtrain/server/node_modules/posix node-gyp rebuild

make: Entering directory /opt/mailtrain/server/node_modules/posix/build' CXX(target) Release/obj.target/posix/src/posix.o ../src/posix.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE node_getpgid(Nan::NAN_METHOD_ARGS_TYPE)’: ../src/posix.cc:48:100: warning: ‘int64_t v8::Value::IntegerValue() const’ is deprecated (declared at /root/.cache/node-gyp/10.17.0/include/node/v8.h:2476): Use maybe version [-Wdeprecated-declarations] info.GetReturnValue().Set(Nan::New<Integer>(static_cast<int32_t>(getpgid(info[0]->IntegerValue())))); ^ ../src/posix.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE node_setpgid(Nan::NAN_METHOD_ARGS_TYPE)’: ../src/posix.cc:66:39: warning: ‘int64_t v8::Value::IntegerValue() const’ is deprecated (declared at /root/.cache/node-gyp/10.17.0/include/node/v8.h:2476): Use maybe version [-Wdeprecated-declarations] if (setpgid(info[0]->IntegerValue(), info[1]->IntegerValue()) < 0) { ^ ../src/posix.cc:66:64: warning: ‘int64_t v8::Value::IntegerValue() const’ is deprecated (declared at /root/.cache/node-gyp/10.17.0/include/node/v8.h:2476): Use maybe version [-Wdeprecated-declarations] if (setpgid(info[0]->IntegerValue(), info[1]->IntegerValue()) < 0) { ^ ../src/posix.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE node_chroot(Nan::NAN_METHOD_ARGS_TYPE)’: ../src/posix.cc:121:51: warning: ‘v8::String::Utf8Value::Utf8Value(v8::Local<v8::Value>)’ is deprecated (declared at /root/.cache/node-gyp/10.17.0/include/node/v8.h:2891): Use Isolate version [-Wdeprecated-declarations] String::Utf8Value dir_path(info[0]->ToString()); ^ ../src/posix.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE node_getrlimit(Nan::NAN_METHOD_ARGS_TYPE)’: ../src/posix.cc:177:54: warning: ‘v8::String::Utf8Value::Utf8Value(v8::Local<v8::Value>)’ is deprecated (declared at /root/.cache/node-gyp/10.17.0/include/node/v8.h:2891): Use Isolate version [-Wdeprecated-declarations] String::Utf8Value rlimit_name(info[0]->ToString()); ^ ../src/posix.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE node_setrlimit(Nan::NAN_METHOD_ARGS_TYPE)’: ../src/posix.cc:217:54: warning: ‘v8::String::Utf8Value::Utf8Value(v8::Local<v8::Value>)’ is deprecated (declared at /root/.cache/node-gyp/10.17.0/include/node/v8.h:2891): Use Isolate version [-Wdeprecated-declarations] String::Utf8Value rlimit_name(info[0]->ToString()); ^ ../src/posix.cc:230:48: warning: ‘v8::Local<v8::Object> v8::Value::ToObject() const’ is deprecated (declared at /root/.cache/node-gyp/10.17.0/include/node/v8.h:10046): Use maybe version [-Wdeprecated-declarations] Local<Object> limit_in = info[1]->ToObject(); // Cast ^ ../src/posix.cc:239:68: warning: ‘int64_t v8::Value::IntegerValue() const’ is deprecated (declared at /root/.cache/node-gyp/10.17.0/include/node/v8.h:2476): Use maybe version [-Wdeprecated-declarations] limit.rlim_cur = limit_in->Get(soft_key)->IntegerValue(); ^ ../src/posix.cc:249:68: warning: ‘int64_t v8::Value::IntegerValue() const’ is deprecated (declared at /root/.cache/node-gyp/10.17.0/include/node/v8.h:2476): Use maybe version [-Wdeprecated-declarations] limit.rlim_max = limit_in->Get(hard_key)->IntegerValue(); ^ ../src/posix.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE node_getpwnam(Nan::NAN_METHOD_ARGS_TYPE)’: ../src/posix.cc:283:44: warning: ‘int32_t v8::Value::Int32Value() const’ is deprecated (declared at /root/.cache/node-gyp/10.17.0/include/node/v8.h:2478): Use maybe version [-Wdeprecated-declarations] pwd = getpwuid(info[0]->Int32Value()); ^ ../src/posix.cc:288:52: warning: ‘v8::String::Utf8Value::Utf8Value(v8::Local<v8::Value>)’ is deprecated (declared at /root/.cache/node-gyp/10.17.0/include/node/v8.h:2891): Use Isolate version [-Wdeprecated-declarations] String::Utf8Value pwnam(info[0]->ToString()); ^ ../src/posix.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE node_getgrnam(Nan::NAN_METHOD_ARGS_TYPE)’: ../src/posix.cc:328:44: warning: ‘int32_t v8::Value::Int32Value() const’ is deprecated (declared at /root/.cache/node-gyp/10.17.0/include/node/v8.h:2478): Use maybe version [-Wdeprecated-declarations] grp = getgrgid(info[0]->Int32Value()); ^ ../src/posix.cc:333:52: warning: ‘v8::String::Utf8Value::Utf8Value(v8::Local<v8::Value>)’ is deprecated (declared at /root/.cache/node-gyp/10.17.0/include/node/v8.h:2891): Use Isolate version [-Wdeprecated-declarations] String::Utf8Value pwnam(info[0]->ToString()); ^ ../src/posix.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE node_initgroups(Nan::NAN_METHOD_ARGS_TYPE)’: ../src/posix.cc:373:47: warning: ‘v8::String::Utf8Value::Utf8Value(v8::Local<v8::Value>)’ is deprecated (declared at /root/.cache/node-gyp/10.17.0/include/node/v8.h:2891): Use Isolate version [-Wdeprecated-declarations] String::Utf8Value unam(info[0]->ToString()); ^ ../src/posix.cc:374:47: warning: ‘int32_t v8::Value::Int32Value() const’ is deprecated (declared at /root/.cache/node-gyp/10.17.0/include/node/v8.h:2478): Use maybe version [-Wdeprecated-declarations] if (initgroups(*unam, info[1]->Int32Value())) { ^ ../src/posix.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE node_seteuid(Nan::NAN_METHOD_ARGS_TYPE)’: ../src/posix.cc:388:37: warning: ‘int32_t v8::Value::Int32Value() const’ is deprecated (declared at /root/.cache/node-gyp/10.17.0/include/node/v8.h:2478): Use maybe version [-Wdeprecated-declarations] if (seteuid(info[0]->Int32Value())) { ^ ../src/posix.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE node_setegid(Nan::NAN_METHOD_ARGS_TYPE)’: ../src/posix.cc:402:37: warning: ‘int32_t v8::Value::Int32Value() const’ is deprecated (declared at /root/.cache/node-gyp/10.17.0/include/node/v8.h:2478): Use maybe version [-Wdeprecated-declarations] if (setegid(info[0]->Int32Value())) { ^ ../src/posix.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE node_setregid(Nan::NAN_METHOD_ARGS_TYPE)’: ../src/posix.cc:416:38: warning: ‘int32_t v8::Value::Int32Value() const’ is deprecated (declared at /root/.cache/node-gyp/10.17.0/include/node/v8.h:2478): Use maybe version [-Wdeprecated-declarations] if (setregid(info[0]->Int32Value(), info[1]->Int32Value())) { ^ ../src/posix.cc:416:61: warning: ‘int32_t v8::Value::Int32Value() const’ is deprecated (declared at /root/.cache/node-gyp/10.17.0/include/node/v8.h:2478): Use maybe version [-Wdeprecated-declarations] if (setregid(info[0]->Int32Value(), info[1]->Int32Value())) { ^ ../src/posix.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE node_setreuid(Nan::NAN_METHOD_ARGS_TYPE)’: ../src/posix.cc:430:38: warning: ‘int32_t v8::Value::Int32Value() const’ is deprecated (declared at /root/.cache/node-gyp/10.17.0/include/node/v8.h:2478): Use maybe version [-Wdeprecated-declarations] if (setreuid(info[0]->Int32Value(), info[1]->Int32Value())) { ^ ../src/posix.cc:430:61: warning: ‘int32_t v8::Value::Int32Value() const’ is deprecated (declared at /root/.cache/node-gyp/10.17.0/include/node/v8.h:2478): Use maybe version [-Wdeprecated-declarations] if (setreuid(info[0]->Int32Value(), info[1]->Int32Value())) { ^ ../src/posix.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE node_openlog(Nan::NAN_METHOD_ARGS_TYPE)’: ../src/posix.cc:449:48: warning: ‘v8::String::Utf8Value::Utf8Value(v8::Local<v8::Value>)’ is deprecated (declared at /root/.cache/node-gyp/10.17.0/include/node/v8.h:2891): Use Isolate version [-Wdeprecated-declarations] String::Utf8Value ident(info[0]->ToString()); ^ ../src/posix.cc:456:47: warning: ‘int32_t v8::Value::Int32Value() const’ is deprecated (declared at /root/.cache/node-gyp/10.17.0/include/node/v8.h:2478): Use maybe version [-Wdeprecated-declarations] openlog(syslog_ident, info[1]->Int32Value(), info[2]->Int32Value()); ^ ../src/posix.cc:456:70: warning: ‘int32_t v8::Value::Int32Value() const’ is deprecated (declared at /root/.cache/node-gyp/10.17.0/include/node/v8.h:2478): Use maybe version [-Wdeprecated-declarations] openlog(syslog_ident, info[1]->Int32Value(), info[2]->Int32Value()); ^ ../src/posix.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE node_syslog(Nan::NAN_METHOD_ARGS_TYPE)’: ../src/posix.cc:481:50: warning: ‘v8::String::Utf8Value::Utf8Value(v8::Local<v8::Value>)’ is deprecated (declared at /root/.cache/node-gyp/10.17.0/include/node/v8.h:2891): Use Isolate version [-Wdeprecated-declarations] String::Utf8Value message(info[1]->ToString()); ^ ../src/posix.cc:483:32: warning: ‘int32_t v8::Value::Int32Value() const’ is deprecated (declared at /root/.cache/node-gyp/10.17.0/include/node/v8.h:2478): Use maybe version [-Wdeprecated-declarations] syslog(info[0]->Int32Value(), "%s", *message); ^ ../src/posix.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE node_setlogmask(Nan::NAN_METHOD_ARGS_TYPE)’: ../src/posix.cc:495:80: warning: ‘int32_t v8::Value::Int32Value() const’ is deprecated (declared at /root/.cache/node-gyp/10.17.0/include/node/v8.h:2478): Use maybe version [-Wdeprecated-declarations] info.GetReturnValue().Set(Nan::New<Integer>(setlogmask(info[0]->Int32Value()))); ^ ../src/posix.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE node_update_syslog_constants(Nan::NAN_METHOD_ARGS_TYPE)’: ../src/posix.cc:513:43: warning: ‘v8::Local<v8::Object> v8::Value::ToObject() const’ is deprecated (declared at /root/.cache/node-gyp/10.17.0/include/node/v8.h:10046): Use maybe version [-Wdeprecated-declarations] Local<Object> obj = info[0]->ToObject(); ^ ../src/posix.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE node_sethostname(Nan::NAN_METHOD_ARGS_TYPE)’: ../src/posix.cc:591:34: warning: ‘v8::String::Utf8Value::Utf8Value(v8::Local<v8::Value>)’ is deprecated (declared at /root/.cache/node-gyp/10.17.0/include/node/v8.h:2891): Use Isolate version [-Wdeprecated-declarations] String::Utf8Value str(info[0]); ^ ../src/posix.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE node_swapon(Nan::NAN_METHOD_ARGS_TYPE)’: ../src/posix.cc:618:34: warning: ‘v8::String::Utf8Value::Utf8Value(v8::Local<v8::Value>)’ is deprecated (declared at /root/.cache/node-gyp/10.17.0/include/node/v8.h:2891): Use Isolate version [-Wdeprecated-declarations] String::Utf8Value str(info[0]); ^ ../src/posix.cc:620:49: warning: ‘int64_t v8::Value::IntegerValue() const’ is deprecated (declared at /root/.cache/node-gyp/10.17.0/include/node/v8.h:2476): Use maybe version [-Wdeprecated-declarations] int rc = swapon(*str, info[1]->IntegerValue()); ^ ../src/posix.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE node_swapoff(Nan::NAN_METHOD_ARGS_TYPE)’: ../src/posix.cc:639:34: warning: ‘v8::String::Utf8Value::Utf8Value(v8::Local<v8::Value>)’ is deprecated (declared at /root/.cache/node-gyp/10.17.0/include/node/v8.h:2891): Use Isolate version [-Wdeprecated-declarations] String::Utf8Value str(info[0]); ^ ../src/posix.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE node_update_swap_constants(Nan::NAN_METHOD_ARGS_TYPE)’: ../src/posix.cc:660:43: warning: ‘v8::Local<v8::Object> v8::Value::ToObject() const’ is deprecated (declared at /root/.cache/node-gyp/10.17.0/include/node/v8.h:10046): Use maybe version [-Wdeprecated-declarations] Local<Object> obj = info[0]->ToObject(); ^ SOLINK_MODULE(target) Release/obj.target/posix.node COPY Release/posix.node make: Leaving directory/opt/mailtrain/server/node_modules/posix/build' npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.0.7 (node_modules/fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.0.7: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})

added 937 packages from 1078 contributors and audited 12605 packages in 36.698s found 12 vulnerabilities (3 moderate, 6 high, 3 critical) run npm audit fix to fix them, or npm audit for details Reinstalling modules in zone-mta

dtrace-provider@0.8.7 install /opt/mailtrain/zone-mta/node_modules/dtrace-provider node-gyp rebuild || node suppress-error.js

make: Entering directory /opt/mailtrain/zone-mta/node_modules/dtrace-provider/build' TOUCH Release/obj.target/DTraceProviderStub.stamp make: Leaving directory/opt/mailtrain/zone-mta/node_modules/dtrace-provider/build' added 203 packages from 272 contributors and audited 330 packages in 3.834s found 1 high severity vulnerability run npm audit fix to fix them, or npm audit for details Reinstalling modules in mvis/client npm WARN deprecated fsevents@1.2.9: One of your dependencies needs to upgrade to fsevents v2: 1) Proper nodejs v10+ support 2) No more fetching binaries from AWS, smaller package size

node-sass@4.13.0 install /opt/mailtrain/mvis/client/node_modules/node-sass node scripts/install.js

Downloading binary from https://github.com/sass/node-sass/releases/download/v4.13.0/linux-x64-64_binding.node Download complete..] - : Binary saved to /opt/mailtrain/mvis/client/node_modules/node-sass/vendor/linux-x64-64/binding.node Caching binary to /root/.npm/node-sass/4.13.0/linux-x64-64_binding.node

core-js@3.4.1 postinstall /opt/mailtrain/mvis/client/node_modules/core-js node postinstall || echo "ignore"

Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!

The project needs your help! Please consider supporting of core-js on Open Collective or Patreon:

https://opencollective.com/core-js https://www.patreon.com/zloirock

Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)

@coreui/coreui@2.1.16 postinstall /opt/mailtrain/mvis/client/node_modules/@coreui/coreui coreui-plugin-npm-postinstall || exit 0

Thank you for using free version of CoreUI! CoreUI is an MIT licensed open source project and completely free to use. However, the amount of effort needed to maintain and develop new features for the project is not sustainable without proper financial backing. You can support development by buying CoreUI Pro Version: https://coreui.io/pro/

node-sass@4.13.0 postinstall /opt/mailtrain/mvis/client/node_modules/node-sass node scripts/build.js

Binary found at /opt/mailtrain/mvis/client/node_modules/node-sass/vendor/linux-x64-64/binding.node Testing binary Binary is fine

nodemon@1.19.4 postinstall /opt/mailtrain/mvis/client/node_modules/nodemon node bin/postinstall || exit 0

npm notice created a lockfile as package-lock.json. You should commit this file. npm WARN @coreui/coreui@2.1.16 requires a peer of jquery@1.9.1 - 3 but none is installed. You must install peer dependencies yourself. npm WARN @coreui/coreui@2.1.16 requires a peer of perfect-scrollbar@^1.3.0 but none is installed. You must install peer dependencies yourself. npm WARN @coreui/coreui@2.1.16 requires a peer of popper.js@^1.14.3 but none is installed. You must install peer dependencies yourself. npm WARN bootstrap@4.3.1 requires a peer of jquery@1.9.1 - 3 but none is installed. You must install peer dependencies yourself. npm WARN bootstrap@4.3.1 requires a peer of popper.js@^1.14.7 but none is installed. You must install peer dependencies yourself. npm WARN mailtrain-ivis-client@1.0.0 No description npm WARN mailtrain-ivis-client@1.0.0 No repository field. npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.9 (node_modules/fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.9: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})

added 772 packages from 357 contributors and audited 12213 packages in 17.665s found 0 vulnerabilities

Reinstalling modules in mvis/server

core-js@2.6.10 postinstall /opt/mailtrain/mvis/server/node_modules/core-js node postinstall || echo "ignore"

Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!

The project needs your help! Please consider supporting of core-js on Open Collective or Patreon:

https://opencollective.com/core-js https://www.patreon.com/zloirock

Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)

npm notice created a lockfile as package-lock.json. You should commit this file. npm WARN mailtrain-ivis-server@1.0.0 No description npm WARN mailtrain-ivis-server@1.0.0 No repository field.

added 206 packages from 170 contributors and audited 1057 packages in 4.74s found 0 vulnerabilities

Reinstalling modules in mvis/test-embed npm notice created a lockfile as package-lock.json. You should commit this file. npm WARN test-embed@1.0.0 No description npm WARN test-embed@1.0.0 No repository field.

added 70 packages from 83 contributors and audited 152 packages in 1.942s found 1 moderate severity vulnerability run npm audit fix to fix them, or npm audit for details

mailtrain-client@2.0.0 build /opt/mailtrain/client npm-run-all --parallel css js

mailtrain-client@2.0.0 css /opt/mailtrain/client npm-run-all --sequential css-compile css-minify

mailtrain-client@2.0.0 js /opt/mailtrain/client webpack

mailtrain-client@2.0.0 css-compile /opt/mailtrain/client node-sass --output-style expanded --source-map true --source-map-contents true --precision 6 src/scss/mailtrain.scss dist/mailtrain.css

Rendering Complete, saving .css file... Wrote CSS to /opt/mailtrain/client/dist/mailtrain.css Wrote Source Map to /opt/mailtrain/client/dist/mailtrain.css.map

mailtrain-client@2.0.0 css-minify /opt/mailtrain/client cleancss --level 1 --source-map --source-map-inline-sources --output dist/mailtrain.min.css dist/mailtrain.css

WARNING: Skipping remote @import of "https://fonts.googleapis.com/css?family=Ubuntu+Mono:400,400i,700,700i|Ubuntu:300,300i,400,400i,700,700i&subset=latin-ext" as resource is not allowed. Hash: a75896198a4456346351 Version: webpack 4.36.1 Time: 19463ms Built at: 11/13/2019 2:14:00 PM Asset Size Chunks Chunk Names ckeditor-root.js 1.82 MiB ckeditor-root [emitted] ckeditor-root codeeditor-root.js 6.44 MiB codeeditor-root [emitted] codeeditor-root grapesjs-root.js 8.93 MiB grapesjs-root [emitted] grapesjs-root mosaico-root.js 2.7 MiB mosaico-root [emitted] mosaico-root root.js 12 MiB root [emitted] root Entrypoint root = root.js Entrypoint mosaico-root = mosaico-root.js Entrypoint ckeditor-root = ckeditor-root.js Entrypoint grapesjs-root = grapesjs-root.js Entrypoint codeeditor-root = codeeditor-root.js [0] multi ./src/root.js 28 bytes {root} [built] [2] multi ./src/lib/sandboxed-mosaico-root.js 28 bytes {mosaico-root} [built] [3] multi ./src/lib/sandboxed-ckeditor-root.js 28 bytes {ckeditor-root} [built] [4] multi ./src/lib/sandboxed-grapesjs-root.js 28 bytes {grapesjs-root} [built] [5] multi ./src/lib/sandboxed-codeeditor-root.js 28 bytes {codeeditor-root} [built] [../shared/templates.js] 3.21 KiB {root} {mosaico-root} {ckeditor-root} {grapesjs-root} {codeeditor-root} [built] [./src/Home.js] 672 bytes {root} [built] [./src/account/root.js] 418 bytes {root} [built] [./src/blacklist/root.js] 249 bytes {root} [built] [./src/campaigns/root.js] 12.3 KiB {root} [built] [./src/lib/sandboxed-ckeditor-root.js] 4.36 KiB {ckeditor-root} [built] [./src/lib/sandboxed-codeeditor-root.js] 7.07 KiB {codeeditor-root} [built] [./src/lib/sandboxed-grapesjs-root.js] 20.6 KiB {grapesjs-root} [built] [./src/lib/sandboxed-mosaico-root.js] 6.53 KiB {mosaico-root} [built] [./src/root.js] 6.94 KiB {root} [built]

Success!

talheim-it commented 4 years ago

Didn't seem to break it.

Did you check to run /usr/bin/node index.js again?

kalak-sudo commented 4 years ago

Didn't seem to break it.

Did you check to run /usr/bin/node index.js again?

@talheim-it

I get this:

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

Error: Cannot find module '/root/index.js' 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:831:12) at startup (internal/bootstrap/node.js:283:19) at bootstrapNodeJSCore (internal/bootstrap/node.js:623:3)

talheim-it commented 6 months ago

We are going to start with the development and testing of mailtrain v3 in the next weeks.

You are welcome to help us with the testing as soon as the first release candidate is available.