• Categories
    • Recent
    • Tags
    • Popular
    • Register
    • Login

    Scratch Analytics enabled

    Scheduled Pinned Locked Moved Troubleshooting
    29 Posts 2 Posters 2.2k Views 1 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.
    • J Offline
      JeeLet
      last edited by

      Hello
      a little feedback on a problem.

      • when I turn off my Web Router at night.
        MyController stops a time after,
        the morning I must start it again with the command :
        executable/mcctl.sh start ( it is normal )

      • in the file mycontroller.yaml I deactivate the function
        "analytics: / enabled: false"

      I have no more problem, MyController continues to run.

      the part of the logs :

      2022-03-30T20:21:01.484+0200	info	gateway/service.go:48	started a gateway	{"id": "GatewayUsb", "timeTaken": "8.431508ms"}
      2022-03-30T20:21:03.055+0200	warn	provider/service.go:195	failed to parse	{"gateway": "GatewayUsb", "rawMessage": {"Data":"\ufffd#0;255;3;0;9;0 MCO:BGN:INIT GW,CP=RSNGA---,FQ=16,REL=255,VER=2.3.2","id":"","isReceived":true,"isAckEnabled":false,
      "data":"nCMwOzI1NTszOzA7OTswIE1DTzpCR046SU5JVCBHVyxDUD1SU05HQS0tLSxGUT0xNixSRUw9MjU1LFZFUj0yLjMuMg==","timestamp":"2022-03-30T20:21:03.054987624+02:00",
      "others":{}}, "error": "invalid node id: \ufffd#0"}
      panic: runtime error: invalid memory address or nil pointer dereference
      [signal SIGSEGV: segmentation violation code=0x1 addr=0x30 pc=0xb9ce48]
      
      goroutine 56643 [running]:
      github.com/mycontroller-org/server/v2/pkg/utils/http_client_json.(*ResponseConfig).StringBody(...)
      	/home/runner/work/server/server/pkg/utils/http_client_json/client.go:31
      github.com/mycontroller-org/server/v2/pkg/analytics.ReportAnalyticsData()
      	/home/runner/work/server/server/pkg/analytics/mycontroller.go:114 +0xbc8
      github.com/robfig/cron/v3.FuncJob.Run(0xe92e70)
      	/home/runner/go/pkg/mod/github.com/robfig/cron/v3@v3.0.2-0.20210106135023-bc59245fe10e/cron.go:136 +0x28
      github.com/robfig/cron/v3.(*Cron).startJob.func1(0x4000312780, {0x10780a0, 0xe92e70})
      	/home/runner/go/pkg/mod/github.com/robfig/cron/v3@v3.0.2-0.20210106135023-bc59245fe10e/cron.go:312 +0x60
      created by github.com/robfig/cron/v3.(*Cron).startJob
      	/home/runner/go/pkg/mod/github.com/robfig/cron/v3@v3.0.2-0.20210106135023-bc59245fe10e/cron.go:310 +0x68
      	
      
      *************** Relaunch of Mycontroller after scratch of analytics: enabled  false ou true ?? *************************
      	
      2022-03-31T07:57:25.292+0200	info	logger/load.go:15	welcome to the MyController world :)
      
      jkandasaJ 2 Replies Last reply Reply Quote 0
      • jkandasaJ Offline
        jkandasa @JeeLet
        last edited by

        @jeelet Thanks to report this issue.
        I will work on this soon
        https://github.com/mycontroller-org/server/issues/11

        1 Reply Last reply Reply Quote 0
        • jkandasaJ Offline
          jkandasa @JeeLet
          last edited by

          @jeelet fixed and rebuild

          1 Reply Last reply Reply Quote 0
          • J Offline
            JeeLet
            last edited by JeeLet

            fast as lightning 🙂

            I will test at the next update.

            1 Reply Last reply Reply Quote 0
            • J Offline
              JeeLet
              last edited by

              a return after this upgrade

              the problem of MyC shutdown is still there
              with : "analytics: / enabled: true"

              2022-04-05T20:45:50.251+0200    info    settings/update_geo_location.go:78      location data to be updated     {"location": {"autoUpdate":true,"locationName":"Paris"$
              panic: runtime error: invalid memory address or nil pointer dereference
              [signal SIGSEGV: segmentation violation code=0x1 addr=0x38 pc=0xb131ec]
              
              goroutine 26549 [running]:
              github.com/mycontroller-org/server/v2/pkg/utils/http_client_json.(*ResponseConfig).StringBody(...)
                      /home/runner/work/server/server/pkg/utils/http_client_json/client.go:31
              github.com/mycontroller-org/server/v2/pkg/analytics.ReportAnalyticsData()
                      /home/runner/work/server/server/pkg/analytics/mycontroller.go:114 +0xaac
              github.com/robfig/cron/v3.FuncJob.Run(0x40000a7310?)
                      /home/runner/go/pkg/mod/github.com/robfig/cron/v3@v3.0.2-0.20210106135023-bc59245fe10e/cron.go:136 +0x28
              github.com/robfig/cron/v3.(*Cron).startJob.func1()
                      /home/runner/go/pkg/mod/github.com/robfig/cron/v3@v3.0.2-0.20210106135023-bc59245fe10e/cron.go:312 +0x64
              created by github.com/robfig/cron/v3.(*Cron).startJob
                      /home/runner/go/pkg/mod/github.com/robfig/cron/v3@v3.0.2-0.20210106135023-bc59245fe10e/cron.go:310 +0xb4
              #=========================================================================
              # Restart 
              #=========================================================================
              2022-04-06T09:32:50.875+0200    info    logger/load.go:15       welcome to the MyController world :)
              2022-04-06T09:32:50.877+0200    info    mcbus/client.go:48      bus service paused
              

              I will test to see with the router off.
              is the hub/switch that stays on.
              maybe the Odroid C2 card ?

              (already with JeeDom the same problem)

              jkandasaJ 1 Reply Last reply Reply Quote 0
              • jkandasaJ Offline
                jkandasa @JeeLet
                last edited by

                @jeelet looks like you are in old version, can you check the version details in GUI?

                1 Reply Last reply Reply Quote 0
                • J Offline
                  JeeLet
                  last edited by JeeLet

                  Server
                  Host ID : 91ffb52xxx
                  Version : master
                  Git Commit : 839118ff5xx
                  Build Date : 2022-04-04T11:31:36+00:00
                  GoLang Version : go1.18 (linux, arm64)
                  Web Console
                  Version : master
                  Git Commit : xxxbd0c44896dd
                  Build Date ; 2022-04-04T11:29:47+00:00
                  React Version : 17.0.2
                  
                  jkandasaJ 1 Reply Last reply Reply Quote 0
                  • jkandasaJ Offline
                    jkandasa @JeeLet
                    last edited by jkandasa

                    @jeelet my bad, I didn't fix it properly
                    I believe I have fixed it correctly now, kindly update to the latest version and verify it tonight
                    Thanks!

                    1 Reply Last reply Reply Quote 0
                    • J Offline
                      JeeLet
                      last edited by

                      Hello

                      the problem is solved, Mycontroller did not stop.

                      Impecable 👍

                      Thank you for the information, for the sckect with V_STATUS on the forum of MySensors.
                      I give you more work than I help you.

                      Have a nice day.
                      .... go on I continue 🙂

                      1 Reply Last reply Reply Quote 1
                      • J Offline
                        JeeLet
                        last edited by JeeLet

                        not sure if this is the right place to post, but still create a new thread it might be a lot
                        tell me what to do
                        ???? ;(

                        Hello jkandasa
                        Finally a nice scratch of MyController, Finally it was time.

                        Explanation:
                        after playing with adding and removing new gateway and node
                        (usb1 usb2 usb3 ...ectc)

                        a blocking of MyC happened
                        Image:https://nsm09.casimages.com/img/2022/04/27//22042702002423870817878495.png
                        the solution to get back in control is to quit the browser and reopen a new one.

                        But now it is impossible to delete the elements that existed
                        ( GW Node Fields ...)

                        the total restart of the system does not give anything
                        how to make MyS find the Reason 🙂

                        jkandasaJ 1 Reply Last reply Reply Quote 0
                        • jkandasaJ Offline
                          jkandasa @JeeLet
                          last edited by

                          @jeelet when do you face this issue? loading of the Resource >> Sources page? or clicking on a link in Resource >> Sources page?

                          I have a created a GitHub issue to track this: https://github.com/mycontroller-org/server/issues/12

                          1 Reply Last reply Reply Quote 0
                          • J Offline
                            JeeLet
                            last edited by

                            https://v1.casimages.com/v/2022/04/27//ydIJNb-MyC-Danger-alertTypeError-2022-04-27.mkv

                            physically nothing is connected to my controller anymore

                            J 1 Reply Last reply Reply Quote 0
                            • J Offline
                              JeeLet @JeeLet
                              last edited by

                              it's good I could finally delete the old entries (Resources)

                              I had to reconnect a usb gateway for the action to take effect.

                              morality: delete the entries of the resources before disconnecting the gateway.

                              jkandasaJ 1 Reply Last reply Reply Quote 0
                              • jkandasaJ Offline
                                jkandasa @JeeLet
                                last edited by

                                @jeelet We have to fix it. If we delete a gateway, all nodes, sources, fields belongs to the gateway should be removed

                                1 Reply Last reply Reply Quote 0
                                • jkandasaJ Offline
                                  jkandasa
                                  last edited by

                                  @JeeLet I have added fix to delete dependent resources. the existing missing resources should be deleted manually. Fix is available in the most recent build.

                                  1 Reply Last reply Reply Quote 0
                                  • J Offline
                                    JeeLet
                                    last edited by

                                    yes, thank you

                                    I start again on a new version/base of MyC.

                                    I delete the mycontroller directory in /opt/apps/

                                    there is nothing hidden elsewhere ???

                                    I leave with a blank database ?? is that it ?

                                    jkandasaJ 1 Reply Last reply Reply Quote 0
                                    • jkandasaJ Offline
                                      jkandasa @JeeLet
                                      last edited by

                                      @jeelet your mycontroller.yaml file has all the details
                                      example:

                                      directories:
                                        data: ...
                                        logs: ...
                                        tmp: ...
                                        secure_share: ...
                                        insecure_share: ...
                                      

                                      But you do not have to delete everything. You can delete the Nodes, Sources, and Fields manually from the UI.

                                      another workaround: Just create a Gateway with the same name and delete the gateway. It is recommended to disable the gateway then delete it. In your case: GWusb0.

                                      1 Reply Last reply Reply Quote 0
                                      • J Offline
                                        JeeLet
                                        last edited by

                                        yes to delete yaml files in
                                        it's good, MyC is all clean 🙂

                                        for influxDB nothing to delete ?

                                        a question of cosmetic:
                                        how to fade the background of the main page of MyC
                                        the white color starts to hurt my eyes.
                                        and I can't see the widgets frame
                                        a value in a css file to modify ?

                                        jkandasaJ 3 Replies Last reply Reply Quote 0
                                        • jkandasaJ Offline
                                          jkandasa @JeeLet
                                          last edited by

                                          @jeelet

                                          for influxDB nothing to delete ?

                                          for now MyController v2 will not touch influx db for deletion, you have to do it manually.

                                          a question of cosmetic:
                                          how to fade the background of the main page of MyC
                                          the white color starts to hurt my eyes.
                                          and I can't see the widgets frame
                                          a value in a css file to modify ?

                                          You can not modify it permanently. I will try to provide an option for that in the future build.

                                          1 Reply Last reply Reply Quote 0
                                          • jkandasaJ Offline
                                            jkandasa @JeeLet
                                            last edited by jkandasa

                                            @jeelet to support multiple themes, I have created GH issue. https://github.com/mycontroller-org/console-web/issues/10
                                            I will implement those, when i get time

                                            1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post

                                            0

                                            Online

                                            586

                                            Users

                                            529

                                            Topics

                                            3.4k

                                            Posts
                                            Copyright © 2015-2025 MyController.org | Contributors | Localization