MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.

    Black screen after update 2.11 (electron)

    Scheduled Pinned Locked Moved Unsolved Troubleshooting
    24 Posts 2 Posters 5.7k Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • B Offline
      Blackmirror
      last edited by

      Hello I get a black screen after the update.
      The problem is the modul MMM-Buttons.
      It’s need electron but a rebuild will not work it get’s the follow errors

      pi@Mirror:~/MagicMirror/modules/MMM-Buttons $ ./node_modules/.bin/electron-rebuild
      ✖ Rebuild Failed
      
      An unhandled error occurred inside electron-rebuild
      gyp info it worked if it ends with ok
      gyp info using node-gyp@6.1.0
      gyp info using node@6.10.2 | linux | arm
      gyp info find Python using Python version 2.7.9 found at "/usr/bin/python"
      gyp info spawn /usr/bin/python
      gyp info spawn args [ '/home/pi/MagicMirror/modules/MMM-Buttons/node_modules/node-gyp/gyp/gyp_main.py',
      gyp info spawn args   'binding.gyp',
      gyp info spawn args   '-f',
      gyp info spawn args   'make',
      gyp info spawn args   '-I',
      gyp info spawn args   '/home/pi/MagicMirror/modules/MMM-Buttons/node_modules/epoll/build/config.gypi',
      gyp info spawn args   '-I',
      gyp info spawn args   '/home/pi/MagicMirror/modules/MMM-Buttons/node_modules/node-gyp/addon.gypi',
      gyp info spawn args   '-I',
      gyp info spawn args   '/home/pi/.electron-gyp/6.1.9/include/node/common.gypi',
      gyp info spawn args   '-Dlibrary=shared_library',
      gyp info spawn args   '-Dvisibility=default',
      gyp info spawn args   '-Dnode_root_dir=/home/pi/.electron-gyp/6.1.9',
      gyp info spawn args   '-Dnode_gyp_dir=/home/pi/MagicMirror/modules/MMM-Buttons/node_modules/node-gyp',
      gyp info spawn args   '-Dnode_lib_file=/home/pi/.electron-gyp/6.1.9/<(target_arch)/node.lib',
      gyp info spawn args   '-Dmodule_root_dir=/home/pi/MagicMirror/modules/MMM-Buttons/node_modules/epoll',
      gyp info spawn args   '-Dnode_engine=v8',
      gyp info spawn args   '--depth=.',
      gyp info spawn args   '--no-parallel',
      gyp info spawn args   '--generator-output',
      gyp info spawn args   'build',
      gyp info spawn args   '-Goutput_dir=.' ]
      make: Entering directory '/home/pi/MagicMirror/modules/MMM-Buttons/node_modules/epoll/build'
      gyp info spawn make
      gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
        CXX(target) Release/obj.target/epoll/src/epoll.o
      In file included from /home/pi/.electron-gyp/6.1.9/include/node/v8-internal.h:14:0,
                       from /home/pi/.electron-gyp/6.1.9/include/node/v8.h:25,
                       from ../src/epoll.cc:11:
      /home/pi/.electron-gyp/6.1.9/include/node/v8config.h:326:49: warning: ‘MicrotasksCompletedCallback’ is deprecated [-Wdeprecated-declarations]
         declarator __attribute__((deprecated(message)))
                                                       ^
      /home/pi/.electron-gyp/6.1.9/include/node/v8.h:8205:3: note: in expansion of macro ‘V8_DEPRECATE_SOON’
         V8_DEPRECATE_SOON("Use *WithData version.",
         ^
      /home/pi/.electron-gyp/6.1.9/include/node/v8config.h:326:49: warning: ‘MicrotasksCompletedCallback’ is deprecated [-Wdeprecated-declarations]
         declarator __attribute__((deprecated(message)))
                                                       ^
      /home/pi/.electron-gyp/6.1.9/include/node/v8.h:8214:3: note: in expansion of macro ‘V8_DEPRECATE_SOON’
         V8_DEPRECATE_SOON("Use *WithData version.",
         ^
      In file included from ../../nan/nan_converters.h:67:0,
                       from ../../nan/nan.h:202,
                       from ../src/epoll.cc:15:
      ../../nan/nan_converters_43_inl.h: In static member function ‘static Nan::imp::ToFactoryBase<v8::Boolean>::return_t Nan::imp::ToFactory<v8::Boolean>::convert(v8::Local<v8::Value>)’:
      ../../nan/nan_converters_43_inl.h:18:69: error: no matching function for call to ‘v8::Value::ToBoolean(v8::Local<v8::Context>)’
             val->To ## TYPE(v8::Isolate::GetCurrent()->GetCurrentContext())          \
                                                                           ^
      ../../nan/nan_converters_43_inl.h:22:1: note: in expansion of macro ‘X’
       X(Boolean)
       ^
      ../../nan/nan_converters_43_inl.h:18:69: note: candidates are:
             val->To ## TYPE(v8::Isolate::GetCurrent()->GetCurrentContext())          \
                                                                           ^
      ../../nan/nan_converters_43_inl.h:22:1: note: in expansion of macro ‘X’
       X(Boolean)
       ^
      In file included from ../src/epoll.cc:11:0:
      /home/pi/.electron-gyp/6.1.9/include/node/v8.h:2516:18: note: v8::Local<v8::Boolean> v8::Value::ToBoolean(v8::Isolate*) const
         Local<Boolean> ToBoolean(Isolate* isolate) const;
                        ^
      /home/pi/.electron-gyp/6.1.9/include/node/v8.h:2516:18: note:   no known conversion for argument 1 from ‘v8::Local<v8::Context>’ to ‘v8::Isolate*’
      /home/pi/.electron-gyp/6.1.9/include/node/v8.h:10428:16: note: v8::Local<v8::Boolean> v8::Value::ToBoolean() const
       Local<Boolean> Value::ToBoolean() const {
                      ^
      /home/pi/.electron-gyp/6.1.9/include/node/v8.h:10428:16: note:   candidate expects 0 arguments, 1 provided
      In file included from ../../nan/nan_converters.h:67:0,
                       from ../../nan/nan.h:202,
                       from ../src/epoll.cc:15:
      ../../nan/nan_converters_43_inl.h: In static member function ‘static Nan::imp::ValueFactoryBase<bool>::return_t Nan::imp::ToFactory<bool>::convert(v8::Local<v8::Value>)’:
      ../../nan/nan_converters_43_inl.h:37:57: error: no matching function for call to ‘v8::Value::BooleanValue(v8::Local<v8::Context>)’
         return val->NAME ## Value(isolate->GetCurrentContext());                     \
                                                               ^
      ../../nan/nan_converters_43_inl.h:40:1: note: in expansion of macro ‘X’
       X(bool, Boolean)
       ^
      ../../nan/nan_converters_43_inl.h:37:57: note: candidates are:
         return val->NAME ## Value(isolate->GetCurrentContext());                     \
                                                               ^
      ../../nan/nan_converters_43_inl.h:40:1: note: in expansion of macro ‘X’
       X(bool, Boolean)
       ^
      In file included from ../src/epoll.cc:11:0:
      /home/pi/.electron-gyp/6.1.9/include/node/v8.h:2532:8: note: bool v8::Value::BooleanValue(v8::Isolate*) const
         bool BooleanValue(Isolate* isolate) const;
              ^
      /home/pi/.electron-gyp/6.1.9/include/node/v8.h:2532:8: note:   no known conversion for argument 1 from ‘v8::Local<v8::Context>’ to ‘v8::Isolate*’
      In file included from /home/pi/.electron-gyp/6.1.9/include/node/v8-internal.h:14:0,
                       from /home/pi/.electron-gyp/6.1.9/include/node/v8.h:25,
                       from ../src/epoll.cc:11:
      /home/pi/.electron-gyp/6.1.9/include/node/v8.h:2541:43: note: bool v8::Value::BooleanValue() const
         V8_DEPRECATED("Use maybe version", bool BooleanValue() const);
                                                 ^
      /home/pi/.electron-gyp/6.1.9/include/node/v8config.h:311:3: note: in definition of macro ‘V8_DEPRECATED’
         declarator __attribute__((deprecated(message)))
         ^
      /home/pi/.electron-gyp/6.1.9/include/node/v8.h:2541:43: note:   candidate expects 0 arguments, 1 provided
         V8_DEPRECATED("Use maybe version", bool BooleanValue() const);
                                                 ^
      /home/pi/.electron-gyp/6.1.9/include/node/v8config.h:311:3: note: in definition of macro ‘V8_DEPRECATED’
         declarator __attribute__((deprecated(message)))
         ^
      In file included from ../../nan/nan_new.h:189:0,
                       from ../../nan/nan.h:203,
                       from ../src/epoll.cc:15:
      ../../nan/nan_implementation_12_inl.h: In static member function ‘static Nan::imp::FactoryBase<v8::Function>::return_t Nan::imp::Factory<v8::Function>::New(Nan::FunctionCallback, v8::Local<v8::Value>)’:
      ../../nan/nan_implementation_12_inl.h:105:32: error: no matching function for call to ‘v8::Function::New(v8::Isolate*&, void (&)(const v8::FunctionCallbackInfo<v8::Value>&), v8::Local<v8::Object>&)’
                                 , obj));
                                      ^
      ../../nan/nan_implementation_12_inl.h:105:32: note: candidate is:
      In file included from ../src/epoll.cc:11:0:
      /home/pi/.electron-gyp/6.1.9/include/node/v8.h:4094:31: note: static v8::MaybeLocal<v8::Function> v8::Function::New(v8::Local<v8::Context>, v8::FunctionCallback, v8::Local<v8::Value>, int, v8::ConstructorBehavior, v8::SideEffectType)
         static MaybeLocal<Function> New(
                                     ^
      /home/pi/.electron-gyp/6.1.9/include/node/v8.h:4094:31: note:   no known conversion for argument 1 from ‘v8::Isolate*’ to ‘v8::Local<v8::Context>’
      In file included from ../../nan/nan_new.h:189:0,
                       from ../../nan/nan.h:203,
                       from ../src/epoll.cc:15:
      ../../nan/nan_implementation_12_inl.h: In static member function ‘static Nan::imp::FactoryBase<v8::StringObject>::return_t Nan::imp::Factory<v8::StringObject>::New(v8::Local<v8::String>)’:
      ../../nan/nan_implementation_12_inl.h:337:37: warning: ‘static v8::Local<v8::Value> v8::StringObject::New(v8::Local<v8::String>)’ is deprecated (declared at /home/pi/.electron-gyp/6.1.9/include/node/v8.h:5323): Use Isolate* version [-Wdeprecated-declarations]
         return v8::StringObject::New(value).As<v8::StringObject>();
                                           ^
      In file included from ../src/epoll.cc:15:0:
      ../../nan/nan.h: In function ‘v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*)’:
      ../../nan/nan.h:840:60: warning: ‘v8::Local<v8::Value> node::MakeCallback(v8::Isolate*, v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*)’ is deprecated (declared at /home/pi/.electron-gyp/6.1.9/include/node/node.h:174): Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
               v8::Isolate::GetCurrent(), target, func, argc, argv);
                                                                  ^
      ../../nan/nan.h: In function ‘v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object>, v8::Local<v8::String>, int, v8::Local<v8::Value>*)’:
      ../../nan/nan.h:855:62: warning: ‘v8::Local<v8::Value> node::MakeCallback(v8::Isolate*, v8::Local<v8::Object>, v8::Local<v8::String>, int, v8::Local<v8::Value>*)’ is deprecated (declared at /home/pi/.electron-gyp/6.1.9/include/node/node.h:167): Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
               v8::Isolate::GetCurrent(), target, symbol, argc, argv);
                                                                    ^
      ../../nan/nan.h: In function ‘v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object>, const char*, int, v8::Local<v8::Value>*)’:
      ../../nan/nan.h:870:62: warning: ‘v8::Local<v8::Value> node::MakeCallback(v8::Isolate*, v8::Local<v8::Object>, const char*, int, v8::Local<v8::Value>*)’ is deprecated (declared at /home/pi/.electron-gyp/6.1.9/include/node/node.h:160): Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
               v8::Isolate::GetCurrent(), target, method, argc, argv);
                                                                    ^
      ../../nan/nan.h: In constructor ‘Nan::Utf8String::Utf8String(v8::Local<v8::Value>)’:
      ../../nan/nan.h:916:53: warning: ‘v8::Local<v8::String> v8::Value::ToString() const’ is deprecated (declared at /home/pi/.electron-gyp/6.1.9/include/node/v8.h:10433): Use maybe version [-Wdeprecated-declarations]
             v8::Local<v8::String> string = from->ToString();
                                                           ^
      ../../nan/nan.h:926:74: warning: ‘int v8::String::WriteUtf8(char*, int, int*, int) const’ is deprecated (declared at /home/pi/.electron-gyp/6.1.9/include/node/v8.h:2726): Use Isolate* version [-Wdeprecated-declarations]
               length_ = string->WriteUtf8(str_, static_cast<int>(len), 0, flags);
                                                                                ^
      ../../nan/nan.h: In member function ‘v8::Local<v8::Value> Nan::Callback::Call_(v8::Isolate*, v8::Local<v8::Object>, int, v8::Local<v8::Value>*) const’:
      ../../nan/nan.h:1484:5: warning: ‘v8::Local<v8::Value> node::MakeCallback(v8::Isolate*, v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*)’ is deprecated (declared at /home/pi/.electron-gyp/6.1.9/include/node/node.h:174): Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
           ));
           ^
      ../../nan/nan.h: In member function ‘void Nan::AsyncWorker::SaveToPersistent(const char*, const v8::Local<v8::Value>&)’:
      ../../nan/nan.h:1538:64: warning: ‘bool v8::Object::Set(v8::Local<v8::Value>, v8::Local<v8::Value>)’ is deprecated (declared at /home/pi/.electron-gyp/6.1.9/include/node/v8.h:3330): Use maybe version [-Wdeprecated-declarations]
           New(persistentHandle)->Set(New(key).ToLocalChecked(), value);
                                                                      ^
      ../../nan/nan.h: In member function ‘void Nan::AsyncWorker::SaveToPersistent(const v8::Local<v8::String>&, const v8::Local<v8::Value>&)’:
      ../../nan/nan.h:1544:42: warning: ‘bool v8::Object::Set(v8::Local<v8::Value>, v8::Local<v8::Value>)’ is deprecated (declared at /home/pi/.electron-gyp/6.1.9/include/node/v8.h:3330): Use maybe version [-Wdeprecated-declarations]
           New(persistentHandle)->Set(key, value);
                                                ^
      ../../nan/nan.h: In member function ‘void Nan::AsyncWorker::SaveToPersistent(uint32_t, const v8::Local<v8::Value>&)’:
      ../../nan/nan.h:1550:44: warning: ‘bool v8::Object::Set(uint32_t, v8::Local<v8::Value>)’ is deprecated (declared at /home/pi/.electron-gyp/6.1.9/include/node/v8.h:3339): Use maybe version [-Wdeprecated-declarations]
           New(persistentHandle)->Set(index, value);
                                                  ^
      ../../nan/nan.h: In member function ‘v8::Local<v8::Value> Nan::AsyncWorker::GetFromPersistent(const char*) const’:
      ../../nan/nan.h:1556:61: warning: ‘v8::Local<v8::Value> v8::Object::Get(v8::Local<v8::Value>)’ is deprecated (declared at /home/pi/.electron-gyp/6.1.9/include/node/v8.h:3384): Use maybe version [-Wdeprecated-declarations]
               New(persistentHandle)->Get(New(key).ToLocalChecked()));
                                                                   ^
      ../../nan/nan.h: In member function ‘v8::Local<v8::Value> Nan::AsyncWorker::GetFromPersistent(const v8::Local<v8::String>&) const’:
      ../../nan/nan.h:1562:55: warning: ‘v8::Local<v8::Value> v8::Object::Get(v8::Local<v8::Value>)’ is deprecated (declared at /home/pi/.electron-gyp/6.1.9/include/node/v8.h:3384): Use maybe version [-Wdeprecated-declarations]
           return scope.Escape(New(persistentHandle)->Get(key));
                                                             ^
      ../../nan/nan.h: In member function ‘v8::Local<v8::Value> Nan::AsyncWorker::GetFromPersistent(uint32_t) const’:
      ../../nan/nan.h:1567:57: warning: ‘v8::Local<v8::Value> v8::Object::Get(uint32_t)’ is deprecated (declared at /home/pi/.electron-gyp/6.1.9/include/node/v8.h:3388): Use maybe version [-Wdeprecated-declarations]
           return scope.Escape(New(persistentHandle)->Get(index));
                                                               ^
      In file included from /usr/include/c++/4.9/cassert:43:0,
                       from /home/pi/.electron-gyp/6.1.9/include/node/node_object_wrap.h:26,
                       from ../src/epoll.cc:13:
      ../../nan/nan_object_wrap.h: In destructor ‘virtual Nan::ObjectWrap::~ObjectWrap()’:
      ../../nan/nan_object_wrap.h:24:25: error: ‘class Nan::Persistent<v8::Object>’ has no member named ‘IsNearDeath’
           assert(persistent().IsNearDeath());
                               ^
      In file included from ../../nan/nan.h:2365:0,
                       from ../src/epoll.cc:15:
      ../../nan/nan_object_wrap.h: In member function ‘void Nan::ObjectWrap::MakeWeak()’:
      ../../nan/nan_object_wrap.h:67:18: error: ‘class Nan::Persistent<v8::Object>’ has no member named ‘MarkIndependent’
           persistent().MarkIndependent();
                        ^
      In file included from /usr/include/c++/4.9/cassert:43:0,
                       from /home/pi/.electron-gyp/6.1.9/include/node/node_object_wrap.h:26,
                       from ../src/epoll.cc:13:
      ../../nan/nan_object_wrap.h: In static member function ‘static void Nan::ObjectWrap::WeakCallback(const v8::WeakCallbackInfo<Nan::ObjectWrap>&)’:
      ../../nan/nan_object_wrap.h:124:26: error: ‘class Nan::Persistent<v8::Object>’ has no member named ‘IsNearDeath’
           assert(wrap->handle_.IsNearDeath());
                                ^
      ../src/epoll.cc: In static member function ‘static void Epoll::Init(Nan::ADDON_REGISTER_FUNCTION_ARGS_TYPE)’:
      ../src/epoll.cc:175:39: error: no matching function for call to ‘v8::FunctionTemplate::GetFunction()’
         constructor.Reset(ctor->GetFunction());
                                             ^
      ../src/epoll.cc:175:39: note: candidate is:
      In file included from ../src/epoll.cc:11:0:
      /home/pi/.electron-gyp/6.1.9/include/node/v8.h:5891:46: note: v8::MaybeLocal<v8::Function> v8::FunctionTemplate::GetFunction(v8::Local<v8::Context>)
         V8_WARN_UNUSED_RESULT MaybeLocal<Function> GetFunction(
                                                    ^
      /home/pi/.electron-gyp/6.1.9/include/node/v8.h:5891:46: note:   candidate expects 1 argument, 0 provided
      ../src/epoll.cc:177:23: error: no matching function for call to ‘v8::FunctionTemplate::GetFunction()’
           ctor->GetFunction());
                             ^
      ../src/epoll.cc:177:23: note: candidate is:
      In file included from ../src/epoll.cc:11:0:
      /home/pi/.electron-gyp/6.1.9/include/node/v8.h:5891:46: note: v8::MaybeLocal<v8::Function> v8::FunctionTemplate::GetFunction(v8::Local<v8::Context>)
         V8_WARN_UNUSED_RESULT MaybeLocal<Function> GetFunction(
                                                    ^
      /home/pi/.electron-gyp/6.1.9/include/node/v8.h:5891:46: note:   candidate expects 1 argument, 0 provided
      ../src/epoll.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE Epoll::Add(Nan::NAN_METHOD_ARGS_TYPE)’:
      ../src/epoll.cc:210:44: warning: ‘int32_t v8::Value::Int32Value() const’ is deprecated (declared at /home/pi/.electron-gyp/6.1.9/include/node/v8.h:2545): Use maybe version [-Wdeprecated-declarations]
         int err = epoll->Add(info[0]->Int32Value(), info[1]->Int32Value());
                                                  ^
      ../src/epoll.cc:210:67: warning: ‘int32_t v8::Value::Int32Value() const’ is deprecated (declared at /home/pi/.electron-gyp/6.1.9/include/node/v8.h:2545): Use maybe version [-Wdeprecated-declarations]
         int err = epoll->Add(info[0]->Int32Value(), info[1]->Int32Value());
                                                                         ^
      ../src/epoll.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE Epoll::Modify(Nan::NAN_METHOD_ARGS_TYPE)’:
      ../src/epoll.cc:230:47: warning: ‘int32_t v8::Value::Int32Value() const’ is deprecated (declared at /home/pi/.electron-gyp/6.1.9/include/node/v8.h:2545): Use maybe version [-Wdeprecated-declarations]
         int err = epoll->Modify(info[0]->Int32Value(), info[1]->Int32Value());
                                                     ^
      ../src/epoll.cc:230:70: warning: ‘int32_t v8::Value::Int32Value() const’ is deprecated (declared at /home/pi/.electron-gyp/6.1.9/include/node/v8.h:2545): Use maybe version [-Wdeprecated-declarations]
         int err = epoll->Modify(info[0]->Int32Value(), info[1]->Int32Value());
                                                                            ^
      ../src/epoll.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE Epoll::Remove(Nan::NAN_METHOD_ARGS_TYPE)’:
      ../src/epoll.cc:247:47: warning: ‘int32_t v8::Value::Int32Value() const’ is deprecated (declared at /home/pi/.electron-gyp/6.1.9/include/node/v8.h:2545): Use maybe version [-Wdeprecated-declarations]
         int err = epoll->Remove(info[0]->Int32Value());
                                                     ^
      epoll.target.mk:107: recipe for target 'Release/obj.target/epoll/src/epoll.o' failed
      make: Leaving directory '/home/pi/MagicMirror/modules/MMM-Buttons/node_modules/epoll/build'
      make: *** [Release/obj.target/epoll/src/epoll.o] Error 1
      gyp ERR! build error
      gyp ERR! stack Error: `make` failed with exit code: 2
      gyp ERR! stack     at ChildProcess.onExit (/home/pi/MagicMirror/modules/MMM-Buttons/node_modules/node-gyp/lib/build.js:194:23)
      gyp ERR! stack     at emitTwo (events.js:106:13)
      gyp ERR! stack     at ChildProcess.emit (events.js:191:7)
      gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
      gyp ERR! System Linux 4.9.22-v7+
      gyp ERR! command "/usr/bin/nodejs" "/home/pi/MagicMirror/modules/MMM-Buttons/node_modules/.bin/node-gyp" "rebuild" "--target=6.1.9" "--arch=arm" "--dist-url=https://www.electronjs.org/headers" "--build-from-source"
      gyp ERR! cwd /home/pi/MagicMirror/modules/MMM-Buttons/node_modules/epoll
      gyp ERR! node -v v6.10.2
      gyp ERR! node-gyp -v v6.1.0
      gyp ERR! not ok
      
      Failed with exit code: 1
      

      I hope the first part of the error text is enough. The complete text is to long.

      Thanks for some help.

      S 1 Reply Last reply Reply Quote 0
      • S Offline
        sdetweil @Blackmirror
        last edited by

        @Blackmirror did u npm install in the folder first?

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        1 Reply Last reply Reply Quote 0
        • B Offline
          Blackmirror
          last edited by

          yes i have

          S 1 Reply Last reply Reply Quote 0
          • S Offline
            sdetweil @Blackmirror
            last edited by

            @Blackmirror what node version are you one

            node -v

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            1 Reply Last reply Reply Quote 0
            • B Offline
              Blackmirror
              last edited by

              it is v6.10.2

              S 1 Reply Last reply Reply Quote 0
              • S Offline
                sdetweil @Blackmirror
                last edited by

                @Blackmirror hm… you should be on v 10.??

                how did u upgrade? and from what version?

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                1 Reply Last reply Reply Quote 0
                • B Offline
                  Blackmirror
                  last edited by

                  I have only git pull yesterday in cd Magicmirror and in all modules npm install.
                  After this I get a black screen so I have rebuild electron in cd magicmirror and all modules. and npm install again.

                  S 1 Reply Last reply Reply Quote 0
                  • S Offline
                    sdetweil @Blackmirror
                    last edited by

                    @Blackmirror said in Black screen after update 2.11 (electron):

                    rebuild electron in cd magicmirror and all modules. and npm install again.

                    and npm install (in base and module folders) (as this will copy down new files based on the MM changes)
                    and THEN
                    electron-rebuild

                    AND you did npm install in MagicMirror folder, BEFORE all modules

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

                    S 1 Reply Last reply Reply Quote 0
                    • B Offline
                      Blackmirror
                      last edited by

                      yes. first cd magicmirror after this the modules

                      1 Reply Last reply Reply Quote 0
                      • S Offline
                        sdetweil @sdetweil
                        last edited by

                        @sdetweil maybe run my upgrade script …

                        from here
                        https://github.com/sdetweil/MagicMirror_scripts

                        bash -c "$(curl -sL https://raw.githubusercontent.com/sdetweil/MagicMirror_scripts/master/upgrade-script.sh)" force
                        

                        Sam

                        How to add modules

                        learning how to use browser developers window for css changes

                        1 Reply Last reply Reply Quote 0
                        • B Offline
                          Blackmirror
                          last edited by

                          @sdetweil said in Black screen after update 2.11 (electron):

                          bash -c “$(curl -sL https://raw.githubusercontent.com/sdetweil/MagicMirror_scripts/master/upgrade-script.sh)” force

                          ok. Now I have no black screnn but the mirror say i must install a config.js, but my old config.js is in the folder.

                          S 1 Reply Last reply Reply Quote 0
                          • S Offline
                            sdetweil @Blackmirror
                            last edited by

                            @Blackmirror how did u start mm??? pm2 or npm start?

                            open the developers window, ctrl-shift-i on keyboard, select the console tab, and scroll up to find any errors (usually red text)…

                            this same error is displayed in a module crashes hard

                            Sam

                            How to add modules

                            learning how to use browser developers window for css changes

                            B 1 Reply Last reply Reply Quote 0
                            • B Offline
                              Blackmirror @sdetweil
                              last edited by

                              @sdetweil

                              sorry i have not all // delete from the MMM-Buttons module. It the same blank mirror.

                              At I get the same errors in the MMM-Buttons module after npm install. Your script have not wrote that it is make npm install at the MMM-Buttons module

                              S 1 Reply Last reply Reply Quote 0
                              • S Offline
                                sdetweil @Blackmirror
                                last edited by

                                @Blackmirror said in Black screen after update 2.11 (electron):

                                MMM-Buttons

                                it should, there is a package.json file present…

                                please show me upgrade.log

                                ~/MagicMirror/installers/upgrade.log
                                

                                Sam

                                How to add modules

                                learning how to use browser developers window for css changes

                                1 Reply Last reply Reply Quote 0
                                • B Offline
                                  Blackmirror
                                  last edited by

                                  Yes it have it.
                                  I can not open the log file.
                                  No authorization.

                                  S B 2 Replies Last reply Reply Quote 0
                                  • S Offline
                                    sdetweil @Blackmirror
                                    last edited by

                                    @Blackmirror eh? was created in user name running the script

                                    please do

                                    ls -laF ~/MagicMirror/installers
                                    

                                    show results

                                    Sam

                                    How to add modules

                                    learning how to use browser developers window for css changes

                                    1 Reply Last reply Reply Quote 0
                                    • B Offline
                                      Blackmirror @Blackmirror
                                      last edited by

                                      Okay works if it run in single steps

                                      Upgrade started - Sa Apr  4 17:52:55 CEST 2020
                                      system is Linux Mirror 4.9.22-v7+ #987 SMP Fri Apr 14 23:23:05 BST 2017 armv7l GNU/L$
                                      the os is Distributor ID: Raspbian Description: Raspbian GNU/Linux 8.0 (jessie) Rele$
                                      user requested to force apply changes
                                      doing test run = false
                                      
                                      saving custom.css
                                      remote name = origin
                                      upgrading from version 2.11.0 to 2.11.0
                                      fetching latest revisions
                                      git fetch rc=0
                                      current branch = master
                                      On branch master
                                      Your branch is up-to-date with 'origin/master'.
                                      Changes not staged for commit:
                                        (use "git add <file>..." to update what will be committed)
                                        (use "git checkout -- <file>..." to discard changes in working directory)
                                      
                                              modified:   package.json
                                      
                                      Untracked files:
                                        (use "git add <file>..." to include in what will be committed)
                                      
                                              core
                                              css/save_custom.css
                                              modules/default/compliments/compliments.json
                                      
                                      
                                      
                                      S 1 Reply Last reply Reply Quote 0
                                      • S Offline
                                        sdetweil @Blackmirror
                                        last edited by

                                        @Blackmirror there should be more

                                        Sam

                                        How to add modules

                                        learning how to use browser developers window for css changes

                                        B 1 Reply Last reply Reply Quote 0
                                        • B Offline
                                          Blackmirror @sdetweil
                                          last edited by Blackmirror

                                          @sdetweil

                                          Untracked files:
                                            (use "git add <file>..." to include in what will be committed)
                                          
                                                  core
                                                  css/save_custom.css
                                                  modules/default/compliments/compliments.json
                                          
                                          no changes added to commit (use "git add" and/or "git commit -a")
                                          there are 1 local files that are different than the master repo
                                          
                                             package.json
                                          
                                          save/restore files selection = y
                                          Saved working directory and index state WIP on master: 447c0bf Merge pull request #1968 from MichMich/develop
                                          HEAD ist jetzt bei 447c0bf Merge pull request #1968 from MichMich/develop
                                          test merge result rc='' , if empty, no conflicts
                                          executing merge, apply specified
                                          merge result rc= 0
                                           Already up-to-date.
                                          processor architecture is armv7l
                                          updating MagicMirror runtime, please wait
                                          
                                          > magicmirror@2.11.0 install /home/pi/MagicMirror
                                          > echo "Installing vendor files ...
                                          " && cd vendor && npm install --loglevel=error
                                          
                                          Installing vendor files ...
                                          
                                          
                                          > magicmirror@2.11.0 postinstall /home/pi/MagicMirror
                                          > npm run install-fonts && echo "MagicMirror installation finished successfully!
                                          "
                                          
                                          
                                          > magicmirror@2.11.0 install-fonts /home/pi/MagicMirror
                                          > echo "Installing fonts ...
                                          " && cd fonts && npm install --loglevel=error
                                          
                                          Installing fonts ...
                                          
                                          MagicMirror installation finished successfully!
                                          
                                          npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@~2.1.1 (node_modules/chokidar/node_modules/fsevents):
                                          npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.1.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"arm"})
                                          npm WARN ws@7.2.3 requires a peer of bufferutil@^4.0.1 but none was installed.
                                          npm WARN ws@7.2.3 requires a peer of utf-8-validate@^5.0.2 but none was installed.
                                          npm install completed - Sa Apr  4 17:54:21 CEST 2020 on base
                                          downloading dumpactivemodules script
                                          
                                          processing dependency changes for active modules with package.json files
                                          processing for module MMM-Carousel please wait
                                          ----------------------------------
                                          processing complete for module MMM-Carousel
                                          processing for module MMM-Podcast please wait
                                          ----------------------------------
                                          
                                          > Magic-Mirror-Module-Podcast@1.0.1 postinstall /home/pi/MagicMirror/modules/MMM-Podcast
                                          > electron-rebuild -e ../../node_modules/electron
                                          
                                          - Searching dependency tree
                                          ✔ Rebuild Complete
                                          processing complete for module MMM-Podcast
                                          processing for module MMM-DWD-WarnWeather please wait
                                          ----------------------------------
                                          processing complete for module MMM-DWD-WarnWeather
                                          processing for module MMM-Todoist please wait
                                          ----------------------------------
                                          processing complete for module MMM-Todoist
                                          processing for module MMM-FRITZ-Box-Callmonitor please wait
                                          ----------------------------------
                                          processing complete for module MMM-FRITZ-Box-Callmonitor
                                          processing for module MMM-RadioDe please wait
                                          ----------------------------------
                                          processing complete for module MMM-RadioDe
                                          processing for module MMM-Fuel please wait
                                          ----------------------------------
                                          npm WARN eslint-config-airbnb-base@11.1.3 requires a peer of eslint@^3.19.0 but none was installed.
                                          npm WARN eslint-plugin-import@2.2.0 requires a peer of eslint@2.x - 3.x but none was installed.
                                          processing complete for module MMM-Fuel
                                          restoring custom.css
                                          removing git alias
                                          we stashed a set of files that appear changed from the latest repo versions. you should review them
                                          Upgrade ended - Sa Apr  4 17:55:24 CEST 2020
                                          
                                          Upgrade started - Sa Apr  4 17:57:51 CEST 2020
                                          system is Linux Mirror 4.9.22-v7+ #987 SMP Fri Apr 14 23:23:05 BST 2017 armv7l GNU/Linux
                                          the os is Distributor ID: Raspbian Description: Raspbian GNU/Linux 8.0 (jessie) Release: 8.0 Codename: jessie
                                          user requested to force apply changes
                                          doing test run = false
                                          
                                          saving custom.css
                                          remote name = origin
                                          upgrading from version 2.11.0 to 2.11.0
                                          fetching latest revisions
                                          git fetch rc=0
                                          current branch = master
                                          On branch master
                                          Your branch is up-to-date with 'origin/master'.
                                          Untracked files:
                                            (use "git add <file>..." to include in what will be committed)
                                          
                                                  core
                                                  css/save_custom.css
                                                  installers/stashed_files
                                                  modules/default/compliments/compliments.json
                                          
                                          nothing added to commit but untracked files present (use "git add" to track)
                                          no files different from github version
                                          test merge result rc='' , if empty, no conflicts
                                          executing merge, apply specified
                                          merge result rc= 0
                                           Already up-to-date.
                                          processor architecture is armv7l
                                          updating MagicMirror runtime, please wait
                                          
                                          > magicmirror@2.11.0 install /home/pi/MagicMirror
                                          > echo "Installing vendor files ...
                                          " && cd vendor && npm install --loglevel=error
                                          
                                          Installing vendor files ...
                                          
                                          
                                          > magicmirror@2.11.0 postinstall /home/pi/MagicMirror
                                          > npm run install-fonts && echo "MagicMirror installation finished successfully!
                                          "
                                          
                                          
                                          > magicmirror@2.11.0 install-fonts /home/pi/MagicMirror
                                          > echo "Installing fonts ...
                                          " && cd fonts && npm install --loglevel=error
                                          
                                          Installing fonts ...
                                          
                                          MagicMirror installation finished successfully!
                                          
                                          npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@~2.1.1 (node_modules/chokidar/node_modules/fsevents):
                                          npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.1.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"arm"})
                                          npm WARN ws@7.2.3 requires a peer of bufferutil@^4.0.1 but none was installed.
                                          npm WARN ws@7.2.3 requires a peer of utf-8-validate@^5.0.2 but none was installed.
                                          npm install completed - Sa Apr  4 17:58:55 CEST 2020 on base
                                          downloading dumpactivemodules script
                                          no modules found needing npm refresh
                                          restoring custom.css
                                          removing git alias
                                          Upgrade ended - Sa Apr  4 17:58:55 CEST 2020
                                          
                                          S 1 Reply Last reply Reply Quote 0
                                          • S Offline
                                            sdetweil @Blackmirror
                                            last edited by

                                            @Blackmirror can u show me the config.js section for MMM-Button?

                                            my code (dumpActiveModules.js) lists out the modules that are enabled…

                                            Sam

                                            How to add modules

                                            learning how to use browser developers window for css changes

                                            B 1 Reply Last reply Reply Quote 0

                                            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                                            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                                            With your input, this post could be even better 💗

                                            Register Login
                                            • 1
                                            • 2
                                            • 1 / 2
                                            • First post
                                              Last post
                                            Enjoying MagicMirror? Please consider a donation!
                                            MagicMirror created by Michael Teeuw.
                                            Forum managed by Sam, technical setup by Karsten.
                                            This forum is using NodeBB as its core | Contributors
                                            Contact | Privacy Policy