I’ve now moved the dynmap web files out of the servers directories. (Which will make my backups easier too.)
I’ve also removed a few non server directories I had in the servers directory. (Homemade tools for backing up to Gdrive, and login notifications.)
Now the WebUI is staying up without crashing.
However, along the way I also deleted the /usr/games/minecraft directory and reinstalled it. Now the UI has the same Javascript errors as this post.
Uncaught Error: [$injector:modulerr] http://errors.angularjs.org/1.8.0/$injector/modulerr?p0=mineos&p1=Error%3A%20%5B%24injector%3Amodulerr%5D%20http%3A%2F%2Ferrors.angularjs.org%2F1.8.0%2F%24injector%2Fmodulerr%3Fp0%3DngSanitize%26p1%3DTypeError%253A%2520q%2520is%2520not%2520a%2520function%250A%2520%2520%2520%2520at%2520k%2520(https%253A%252F%252F10.0.0.120%253A8443%252Fangular-sanitize%252Fangular-sanitize.min.js%253A6%253A259)%250A%2520%2520%2520%2520at%2520new%2520%253Canonymous%253E%2520(https%253A%252F%252F10.0.0.120%253A8443%252Fangular-sanitize%252Fangular-sanitize.min.js%253A12%253A3)%250A%2520%2520%2520%2520at%2520Object.instantiate%2520(https%253A%252F%252F10.0.0.120%253A8443%252Fangular%252Fangular.min.js%253A45%253A365)%250A%2520%2520%2520%2520at%2520c%2520(https%253A%252F%252F10.0.0.120%253A8443%252Fangular%252Fangular.min.js%253A42%253A266)%250A%2520%2520%2520%2520at%2520Object.provider%2520(https%253A%252F%252F10.0.0.120%253A8443%252Fangular%252Fangular.min.js%253A42%253A208)%250A%2520%2520%2520%2520at%2520d%2520(https%253A%252F%252F10.0.0.120%253A8443%252Fangular%252Fangular.min.js%253A43%253A148)%250A%2520%2520%2520%2520at%2520https%253A%252F%252F10.0.0.120%253A8443%252Fangular%252Fangular.min.js%253A43%253A269%250A%2520%2520%2520%2520at%2520r%2520(https%253A%252F%252F10.0.0.120%253A8443%252Fangular%252Fangular.min.js%253A8%253A76)%250A%2520%2520%2520%2520at%2520g%2520(https%253A%252F%252F10.0.0.120%253A8443%252Fangular%252Fangular.min.js%253A43%253A49)%250A%2520%2520%2520%2520at%2520https%253A%252F%252F10.0.0.120%253A8443%252Fangular%252Fangular.min.js%253A43%253A233%0A%20%20%20%20at%20https%3A%2F%2F10.0.0.120%3A8443%2Fangular%2Fangular.min.js%3A7%3A168%0A%20%20%20%20at%20https%3A%2F%2F10.0.0.120%3A8443%2Fangular%2Fangular.min.js%3A43%3A491%0A%20%20%20%20at%20r%20(https%3A%2F%2F10.0.0.120%3A8443%2Fangular%2Fangular.min.js%3A8%3A76)%0A%20%20%20%20at%20g%20(https%3A%2F%2F10.0.0.120%3A8443%2Fangular%2Fangular.min.js%3A43%3A49)%0A%20%20%20%20at%20https%3A%2F%2F10.0.0.120%3A8443%2Fangular%2Fangular.min.js%3A43%3A233%0A%20%20%20%20at%20r%20(https%3A%2F%2F10.0.0.120%3A8443%2Fangular%2Fangular.min.js%3A8%3A76)%0A%20%20%20%20at%20g%20(https%3A%2F%2F10.0.0.120%3A8443%2Fangular%2Fangular.min.js%3A43%3A49)%0A%20%20%20%20at%20fb%20(https%3A%2F%2F10.0.0.120%3A8443%2Fangular%2Fangular.min.js%3A47%3A153)%0A%20%20%20%20at%20c%20(https%3A%2F%2F10.0.0.120%3A8443%2Fangular%2Fangular.min.js%3A22%3A57)%0A%20%20%20%20at%20Wc%20(https%3A%2F%2F10.0.0.120%3A8443%2Fangular%2Fangular.min.js%3A22%3A370)
at angular.js:99
at angular.js:5127
at r (angular.js:388)
at g (angular.js:5087)
at fb (angular.js:5004)
at c (angular.js:1963)
at Wc (angular.js:1984)
at Ee (angular.js:1869)
at HTMLDocument.<anonymous> (angular.js:36491)
at j (jquery-2.1.4.min.js:2)
Grammarly.js:2 [DEFAULT]: WARN : Using DEFAULT root logger
There are also errors running reset_webui.sh
pault@minecraft:/usr/games/minecraft$ sudo ./reset_webui.sh
Script execution started on: Fri Jul 3 14:15:46 AEST 2020
Updating mineos-node repository...OK
Checking out master branch...Already on 'master'
OK
Resetting directory to official contents...OK
In file included from ../src/posix.cc:1:
../../nan/nan.h: In function ‘void Nan::AsyncQueueWorker(Nan::AsyncWorker*)’:
../../nan/nan.h:2298:62: warning: cast between incompatible function types from ‘void (*)(uv_work_t*)’ {aka ‘void (*)(uv_work_s*)’} to ‘uv_after_work_cb’ {aka ‘void (*)(uv_work_s*, int)’} [-Wcast-function-type]
2298 | , reinterpret_cast<uv_after_work_cb>(AsyncExecuteComplete)
| ^
In file included from ../../nan/nan.h:54,
from ../src/posix.cc:1:
../src/posix.cc: At global scope:
/usr/include/nodejs/src/node.h:573:43: warning: cast between incompatible function types from ‘void (*)(v8::Local<v8::Object>)’ to ‘node::addon_register_fun ’ {aka ‘void (*)(v8::Local<v8::Object>, v8::Local<v8::Value>, void*)’} [-Wcast-function-type]
573 | (node::addon_register_func) (regfunc), \
| ^
/usr/include/nodejs/src/node.h:607:3: note: in expansion of macro ‘NODE_MODULE_X’
607 | NODE_MODULE_X(modname, regfunc, NULL, 0) // NOLINT (readability/null_usage)
| ^~~~~~~~~~~~~
../src/posix.cc:709:1: note: in expansion of macro ‘NODE_MODULE’
709 | NODE_MODULE(posix, init);
| ^~~~~~~~~~~
In file included from /usr/include/nodejs/src/node.h:63,
from ../../nan/nan.h:54,
from ../src/posix.cc:1:
/usr/include/nodejs/deps/v8/include/v8.h: In instantiation of ‘void v8::PersistentBase<T>::SetWeak(P*, typename v8::WeakCallbackInfo<P>::Callback, v8::WeakCallbackType) [with P = node::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo<P>::Callback = void (*)(const v8::WeakCallbackInfo<node::ObjectWrap>&) ’:
/usr/include/nodejs/src/node_object_wrap.h:84:78: required from here
/usr/include/nodejs/deps/v8/include/v8.h:9502:16: warning: cast between incompatible function types from ‘v8::WeakCallbackInfo<node::ObjectWrap>::Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<node::ObjectWrap>&)’} to ‘Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<void>&)’} [-Wcast-function-type]
9502 | reinterpret_cast<Callback>(callback), type);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/nodejs/deps/v8/include/v8.h: In instantiation of ‘void v8::PersistentBase<T>::SetWeak(P*, typename v8::WeakCallbackInfo<P>::Callback, v8::WeakCallbackType) [with P = Nan::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo<P>::Callback = void (*)(const v8::WeakCallbackInfo<Nan::ObjectWrap>&)]’:
../../nan/nan_object_wrap.h:65:61: required from here
/usr/include/nodejs/deps/v8/include/v8.h:9502:16: warning: cast between incompatible function types from ‘v8::WeakCallbackInfo<Nan::ObjectWrap>::Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<Nan::ObjectWrap>&)’} to ‘Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<void>&)’} [-Wcast-function-type]
In file included from ../src/userid.cc:11:
../../nan/nan.h: In function ‘void Nan::AsyncQueueWorker(Nan::AsyncWorker*)’:
../../nan/nan.h:2298:62: warning: cast between incompatible function types from ‘void (*)(uv_work_t*)’ {aka ‘void (*)(uv_work_s*)’} to ‘uv_after_work_cb’ {aka ‘void (*)(uv_work_s*, int)’} [-Wcast-function-type]
2298 | , reinterpret_cast<uv_after_work_cb>(AsyncExecuteComplete)
| ^
../src/userid.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE GroupName(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/userid.cc:47:42: warning: ‘int32_t v8::Value::Int32Value() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
47 | group = getgrgid(info[0]->Int32Value());
| ^
In file included from /usr/include/nodejs/deps/v8/include/v8.h:26,
from /usr/include/nodejs/src/node.h:63,
from ../../nan/nan.h:54,
from ../src/userid.cc:11:
/usr/include/nodejs/deps/v8/include/v8.h:2478:46: note: declared here
2478 | V8_DEPRECATED("Use maybe version", int32_t Int32Value() const);
| ^~~~~~~~~~
/usr/include/nodejs/deps/v8/include/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’
324 | declarator __attribute__((deprecated(message)))
| ^~~~~~~~~~
../src/userid.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE Gids(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/userid.cc:75:48: warning: ‘v8::String::Utf8Value::Utf8Value(v8::Local<v8::Value>)’ is deprecated: Use Isolate version [-Wdeprecated-declarations]
75 | String::Utf8Value utfname(info[0]->ToString());
| ^
In file included from /usr/include/nodejs/deps/v8/include/v8.h:26,
from /usr/include/nodejs/src/node.h:63,
from ../../nan/nan.h:54,
from ../src/userid.cc:11:
/usr/include/nodejs/deps/v8/include/v8.h:2892:28: note: declared here
2892 | explicit Utf8Value(Local<v8::Value> obj));
| ^~~~~~~~~
/usr/include/nodejs/deps/v8/include/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’
324 | declarator __attribute__((deprecated(message)))
| ^~~~~~~~~~
../src/userid.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE Gid(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/userid.cc:118:50: warning: ‘v8::String::Utf8Value::Utf8Value(v8::Local<v8::Value>)’ is deprecated: Use Isolate version [-Wdeprecated-declarations]
118 | String::Utf8Value utfname(info[0]->ToString());
| ^
In file included from /usr/include/nodejs/deps/v8/include/v8.h:26,
from /usr/include/nodejs/src/node.h:63,
from ../../nan/nan.h:54,
from ../src/userid.cc:11:
/usr/include/nodejs/deps/v8/include/v8.h:2892:28: note: declared here
2892 | explicit Utf8Value(Local<v8::Value> obj));
| ^~~~~~~~~
/usr/include/nodejs/deps/v8/include/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’
324 | declarator __attribute__((deprecated(message)))
| ^~~~~~~~~~
../src/userid.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE UserName(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/userid.cc:137:41: warning: ‘int32_t v8::Value::Int32Value() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
137 | user = getpwuid(info[0]->Int32Value());
| ^
In file included from /usr/include/nodejs/deps/v8/include/v8.h:26,
from /usr/include/nodejs/src/node.h:63,
from ../../nan/nan.h:54,
from ../src/userid.cc:11:
/usr/include/nodejs/deps/v8/include/v8.h:2478:46: note: declared here
2478 | V8_DEPRECATED("Use maybe version", int32_t Int32Value() const);
| ^~~~~~~~~~
/usr/include/nodejs/deps/v8/include/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’
324 | declarator __attribute__((deprecated(message)))
| ^~~~~~~~~~
../src/userid.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE Uid(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/userid.cc:155:50: warning: ‘v8::String::Utf8Value::Utf8Value(v8::Local<v8::Value>)’ is deprecated: Use Isolate version [-Wdeprecated-declarations]
155 | String::Utf8Value utfname(info[0]->ToString());
| ^
In file included from /usr/include/nodejs/deps/v8/include/v8.h:26,
from /usr/include/nodejs/src/node.h:63,
from ../../nan/nan.h:54,
from ../src/userid.cc:11:
/usr/include/nodejs/deps/v8/include/v8.h:2892:28: note: declared here
2892 | explicit Utf8Value(Local<v8::Value> obj));
| ^~~~~~~~~
/usr/include/nodejs/deps/v8/include/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’
324 | declarator __attribute__((deprecated(message)))
| ^~~~~~~~~~
In file included from ../../nan/nan.h:54,
from ../src/userid.cc:11:
../src/userid.cc: At global scope:
/usr/include/nodejs/src/node.h:573:43: warning: cast between incompatible function types from ‘void (*)(Nan::ADDON_REGISTER_FUNCTION_ARGS_TYPE)’ {aka ‘void (*)(v8::Local<v8::Object>)’} to ‘node::addon_register_func’ {aka ‘void (*)(v8::Local<v8::Object>, v8::Local<v8::Value>, void*)’} [-Wcast-function-type]
573 | (node::addon_register_func) (regfunc), \
| ^
/usr/include/nodejs/src/node.h:607:3: note: in expansion of macro ‘NODE_MODULE_X’
607 | NODE_MODULE_X(modname, regfunc, NULL, 0) // NOLINT (readability/null_usage)
| ^~~~~~~~~~~~~
../src/userid.cc:174:1: note: in expansion of macro ‘NODE_MODULE’
174 | NODE_MODULE(userid, Init);
| ^~~~~~~~~~~
In file included from /usr/include/nodejs/src/node.h:63,
from ../../nan/nan.h:54,
from ../src/userid.cc:11:
/usr/include/nodejs/deps/v8/include/v8.h: In instantiation of ‘void v8::PersistentBase<T>::SetWeak(P*, typename v8::WeakCallbackInfo<P>::Callback, v8::WeakCallbackType) [with P = node::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo<P>::Callback = void (*)(const v8::WeakCallbackInfo<node::ObjectWrap>&) ’:
/usr/include/nodejs/src/node_object_wrap.h:84:78: required from here
/usr/include/nodejs/deps/v8/include/v8.h:9502:16: warning: cast between incompatible function types from ‘v8::WeakCallbackInfo<node::ObjectWrap>::Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<node::ObjectWrap>&)’} to ‘Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<void>&)’} [-Wcast-function-type]
9502 | reinterpret_cast<Callback>(callback), type);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/nodejs/deps/v8/include/v8.h: In instantiation of ‘void v8::PersistentBase<T>::SetWeak(P*, typename v8::WeakCallbackInfo<P>::Callback, v8::WeakCallbackType) [with P = Nan::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo<P>::Callback = void (*)(const v8::WeakCallbackInfo<Nan::ObjectWrap>&)]’:
../../nan/nan_object_wrap.h:65:61: required from here
/usr/include/nodejs/deps/v8/include/v8.h:9502:16: warning: cast between incompatible function types from ‘v8::WeakCallbackInfo<Nan::ObjectWrap>::Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<Nan::ObjectWrap>&)’} to ‘Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<void>&)’} [-Wcast-function-type]
OK
Setting node javascript files to executable...OK
Script execution ended on: Fri Jul 3 14:16:11 AEST 2020