ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Solved log.io on Fedora 26 Cannot Fine logging

    IT Discussion
    log.io linux fedora fedora 26 npm logging
    4
    13
    2.1k
    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.
    • stacksofplatesS
      stacksofplates @scottalanmiller
      last edited by

      @scottalanmiller said in log.io on Fedora 26 Cannot Fine logging:

      I have log.io installed on Fedora 26 but I cannot get the log.io-server to start. Here is the error that I get:

      /usr/lib/node_modules/log.io/bin/log.io-server:10
      webConf.logging = logging;
                      ^
      
      TypeError: Cannot set property 'logging' of undefined
          at Object.<anonymous> (/usr/lib/node_modules/log.io/bin/log.io-server:10:17)
          at Module._compile (module.js:570:32)
          at Object.Module._extensions..js (module.js:579:10)
          at Module.load (module.js:487:32)
          at tryModuleLoad (module.js:446:12)
          at Function.Module._load (module.js:438:3)
          at Module.runMain (module.js:604:10)
          at run (bootstrap_node.js:389:7)
          at startup (bootstrap_node.js:149:9)
          at bootstrap_node.js:504:3
      

      Is it using syslog? Fedora doesn't have syslog enabled by default any more. You have to enable journald sending to syslog.

      1 Reply Last reply Reply Quote 0
      • scottalanmillerS
        scottalanmiller
        last edited by

        This is not the harvester, so in theory it should not be looking to any logs at all yet.

        stacksofplatesS 1 Reply Last reply Reply Quote 0
        • stacksofplatesS
          stacksofplates @scottalanmiller
          last edited by

          @scottalanmiller said in log.io on Fedora 26 Cannot Fine logging:

          This is not the harvester, so in theory it should not be looking to any logs at all yet.

          Oh ok.

          1 Reply Last reply Reply Quote 0
          • scottalanmillerS
            scottalanmiller
            last edited by

            Same thing works fine immediately on Ubuntu 17.04

            black3dynamiteB 1 Reply Last reply Reply Quote 0
            • black3dynamiteB
              black3dynamite @scottalanmiller
              last edited by black3dynamite

              @scottalanmiller said in log.io on Fedora 26 Cannot Fine logging:

              Same thing works fine immediately on Ubuntu 17.04

              Isn't syslog enabled on ubuntu by default?
              Does it work on ubuntu after stopping syslog?

              scottalanmillerS 1 Reply Last reply Reply Quote 0
              • jmooreJ
                jmoore
                last edited by

                I like the idea of this program. Going to install and try it out.

                1 Reply Last reply Reply Quote 0
                • scottalanmillerS
                  scottalanmiller @black3dynamite
                  last edited by

                  @black3dynamite said in log.io on Fedora 26 Cannot Fine logging:

                  @scottalanmiller said in log.io on Fedora 26 Cannot Fine logging:

                  Same thing works fine immediately on Ubuntu 17.04

                  Isn't syslog enabled on ubuntu by default?
                  Does it work on ubuntu after stopping syslog?

                  Runs the same with it started or stopped. It's looking for a bit of logging code that it can't load.

                  1 Reply Last reply Reply Quote 0
                  • scottalanmillerS
                    scottalanmiller
                    last edited by

                    Got it, this one is weird. The /root/.log.io/web_server.conf file is empty and it cannot be. Add this into it and voila:

                    exports.config = {
                      host: '0.0.0.0',
                      port: 28778,
                    
                      /* 
                      // Enable HTTP Basic Authentication
                      auth: {
                        user: "admin",
                        pass: "1234"
                      },
                      */
                    
                      /* 
                      // Enable HTTPS/SSL
                      ssl: {
                        key: '/path/to/privatekey.pem',
                        cert: '/path/to/certificate.pem'
                      },
                      */
                    
                      /*
                      // Restrict access to websocket (socket.io)
                      // Uses socket.io 'origins' syntax
                      restrictSocket: '*:*',
                      */
                    
                      /*
                      // Restrict access to http server (express)
                      restrictHTTP: [
                        "192.168.29.39",
                        "10.0.*"
                      ]
                      */
                    
                    }
                    
                    1 Reply Last reply Reply Quote 0
                    • jmooreJ
                      jmoore
                      last edited by

                      Nice catch. Is that .conf file empty on a Ubuntu system as well ?

                      scottalanmillerS 1 Reply Last reply Reply Quote 0
                      • scottalanmillerS
                        scottalanmiller @jmoore
                        last edited by

                        @jmoore said in log.io on Fedora 26 Cannot Fine logging:

                        Nice catch. Is that .conf file empty on a Ubuntu system as well ?

                        No, Ubuntu populates it with the sample data. Fedora does not. But it is the same npm command on both, so it is something wrong with their own install scripts.

                        1 Reply Last reply Reply Quote 0
                        • jmooreJ
                          jmoore
                          last edited by

                          Oh ok, that sure is weird.

                          scottalanmillerS 1 Reply Last reply Reply Quote 0
                          • scottalanmillerS
                            scottalanmiller @jmoore
                            last edited by

                            @jmoore said in log.io on Fedora 26 Cannot Fine logging:

                            Oh ok, that sure is weird.

                            Just a bit.

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