Recalbox Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • recalbox.com
    • Gitlab repository
    • Documentation
    • Discord
    1. Home
    2. thehive
    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 6
    • Best 0
    • Controversial 0
    • Groups 0

    thehive

    @thehive

    0
    Reputation
    340
    Profile views
    6
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    thehive Unfollow Follow

    Latest posts made by thehive

    • RE: Recalbox API not starting - RecalboxOS 4.0.1

      @Substring

      I'm not sure to understand what you mean ... The new manager (v2) can't launch roms, that feature has been disable as far as I remember (@DjLeChuck can you confirm ?).

      No, it's definitely not disabled, it's just broken, because the API is broken.
      Now I've got the API working in 4.1 it will launch ROMS from within the V2 manager, but as @kjbstar pointed out, it fails to relaunch ES after the ROM is quit. I'm going to have a stab at fixing the way that the API handles ROM launching, because, as you point out, at the moment it's not performed by configgen.

      posted in Recalbox General
      thehive
      thehive
    • RE: Recalbox API not starting - RecalboxOS 4.0.1

      @Substring I will gather together what the information regarding what I've changed and we can discuss. I didn't take notes as I went along so I'll need to work backwards. I don't actually think I changed too much though.

      As an aside, I took a look at S94manager and I see that it also uses the API in some instances (for example launching a ROM), so some of those things are also broken in 4.1.

      I've being playing around with the API node module and it runs on 4.1 directly as a node process with just a few minor fixes to to the solfegejs node module.
      I am going to patch S95api to start this process without PM2. If you'd like me to share the changes I'm happy to do so.

      posted in Recalbox General
      thehive
      thehive
    • RE: Recalbox API not starting - RecalboxOS 4.0.1

      @Substring I've modified 2 or three configgen scripts, yes. It's quite a hack at the moment as there's no way of providing the many parameters that you can supply to Daphne - I just pass a set that suit me - so some hard coding sadly.
      I would certainly be willing to help get this implemented properly, yes.

      Regarding the API, this is for something else I was working on. I was hoping I could get it working in 4.1 and you might know of a quick(ish) fix, but if not I suppose I could drop back to 4.0.1.

      posted in Recalbox General
      thehive
      thehive
    • RE: Recalbox API not starting - RecalboxOS 4.0.1

      @Substring

      I built this myself from source as I've added some tweaks to get Daphne working.

      Would updating PM2 to the latest version resolve this?

      posted in Recalbox General
      thehive
      thehive
    • RE: Recalbox API not starting - RecalboxOS 4.0.1

      @substring Sorry, I can't read, or type or both.
      It's 4.1.0

      posted in Recalbox General
      thehive
      thehive
    • Recalbox API not starting - RecalboxOS 4.0.1

      Recalbox API not starting - RecalboxOS 4.0.1

      Much like this problem
      https://github.com/recalbox/recalbox-os/issues/1009

      The PM2 process just hangs. Although this fix appears to be present in my 4.0.1 build.

      https://github.com/recalbox/recalbox-buildroot/pull/432

      The log for PM2 indicates an error;

      2017-04-24 16:35:33: [PM2][WORKER] Started with refreshing interval: 30000
      2017-04-24 16:35:33: [[[[ PM2/God daemon launched ]]]]
      2017-04-24 16:35:33: BUS system [READY] on port /var/.pm2/pub.sock
      2017-04-24 16:35:33: RPC interface [READY] on port /var/.pm2/rpc.sock
      2017-04-24 16:35:33: Starting execution sequence in -cluster mode- for app name:api id:0
      2017-04-24 16:35:34: App name:api id:0 online
      2017-04-24 16:35:34: [PM2] Error caught by domain:
      TypeError: obj.hasOwnProperty is not a function
      at safeDeepClone (/usr/recalbox-api/node_modules/pm2/lib/tools/safeclonedeep.js:49:13)
      at safeDeepClone (/usr/recalbox-api/node_modules/pm2/lib/tools/safeclonedeep.js:53:22)
      at safeDeepClone (/usr/recalbox-api/node_modules/pm2/lib/tools/safeclonedeep.js:53:22)
      at cloneWrap (/usr/recalbox-api/node_modules/pm2/lib/tools/safeclonedeep.js:65:10)
      at Object.clone (/usr/recalbox-api/node_modules/pm2/lib/Utility.js:42:12)
      at Object.Common.deepCopy.Common.serialize.Common.clone (/usr/recalbox-api/node_modules/pm2/lib/Common.js:218:18)
      at /usr/recalbox-api/node_modules/pm2/lib/God.js:372:25
      at Worker.cluOnline (/usr/recalbox-api/node_modules/pm2/lib/God.js:186:17)
      at Worker.g (events.js:291:16)
      at emitNone (events.js:86:13)
      2017-04-24 16:35:34: [PM2] Trying to update PM2...
      2017-04-24 16:35:34: App name:api id:0 disconnected
      2017-04-24 16:35:34: App [api] with id [0] and pid [1294], exited with code [0] via signal [SIGINT]
      2017-04-24 16:35:34: Starting execution sequence in -cluster mode- for app name:api id:0
      2017-04-24 16:35:35: App name:api id:0 online
      2017-04-24 16:35:35: App name:api id:0 disconnected
      2017-04-24 16:35:35: App [api] with id [0] and pid [1314], exited with code [0] via signal [SIGINT]
      2017-04-24 16:35:35: Starting execution sequence in -cluster mode- for app name:api id:0
      Be sure to have the latest version by doing npm install pm2@latest -g before doing this procedure.
      /usr/recalbox-api/node_modules/pm2/lib/tools/safeclonedeep.js:49
      if (obj.hasOwnProperty(attr)) {
      ^

      TypeError: obj.hasOwnProperty is not a function
      at safeDeepClone (/usr/recalbox-api/node_modules/pm2/lib/tools/safeclonedeep.js:49:13)
      at safeDeepClone (/usr/recalbox-api/node_modules/pm2/lib/tools/safeclonedeep.js:53:22)
      at safeDeepClone (/usr/recalbox-api/node_modules/pm2/lib/tools/safeclonedeep.js:53:22)
      at cloneWrap (/usr/recalbox-api/node_modules/pm2/lib/tools/safeclonedeep.js:65:10)
      at Object.clone (/usr/recalbox-api/node_modules/pm2/lib/Utility.js:42:12)
      at Object.Common.deepCopy.Common.serialize.Common.clone (/usr/recalbox-api/node_modules/pm2/lib/Common.js:218:18)
      at Object.getFormatedProcesses (/usr/recalbox-api/node_modules/pm2/lib/God/Methods.js:68:21)
      at getMonitorData (/usr/recalbox-api/node_modules/pm2/lib/God/ActionMethods.js:42:25)
      at Server.onmessage (/usr/recalbox-api/node_modules/pm2-axon-rpc/lib/server.js:105:6)
      at emitTwo (events.js:106:13)

      posted in Recalbox General
      thehive
      thehive