Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to enable apps after upgrading to 6.11.1 #33140

Open
paulchen opened this issue Aug 23, 2024 · 69 comments
Open

Unable to enable apps after upgrading to 6.11.1 #33140

paulchen opened this issue Aug 23, 2024 · 69 comments
Labels
Tasked Added to the internal issue tracking

Comments

@paulchen
Copy link

paulchen commented Aug 23, 2024

On my server, something similar to #32761 reappeared some days ago. However, I'm running a Docker installation instead of a manual setup.

Description:

The apps GIPHY and Tenor have been installed for a long time on my instance (they're grandfathered). Since a few days, both of them are disabled and can't be enabled.

When trying to enable them, an error message is shown:

image

See below for the error log.

Steps to reproduce:

  1. Set up Rocket.Chat 3.16.0.
  2. Install and enable the apps Tenor and Giphy.
  3. Update Rocket.Chat step-by-step all the way up to 6.11.1.
  4. Observe that Tenor and/or Giphy are no longer enabled.
  5. Try to enable one of them which is currently disabled.

Expected behavior:

The app is now enabled.

Actual behavior:

An error message is shown:

image

Server Setup Information:

  • Version of Rocket.Chat Server: 6.11.1
  • License Type: Starter
  • Number of Users: 22
  • Deployment Method: Docker
  • Number of Running Instances: 1
  • MongoDB Version: 6.0.17 / wiredTiger (oplog Enabled)

Client Setup Information

  • Desktop App or Browser Version:
    • Electron client 4.0.1
    • Google Chrome Version 128.0.6613.85 (Offizieller Build) (64-Bit)
  • Operating System: Windows 10

Additional context

On a test instance, only Tenor was installed. I am unable to enable Tenor, but I was able to make GIPHY running.

On the same test instance, I uninstalled Tenor, but now I'm unable to reinstall it. When trying it, another error message is shown:

image

Error log:

2024-08-23T18:17:13.206986+02:00 alpha rocketchat-dev[1711287]: {"level":35,"time":"2024-08-23T16:17:13.206Z","pid":1,"hostname":"8e55b7fffd06","name":"API","method":"POST","url":"/api/apps","userId":"xq7oE4mtb2nEcfe2m","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Rocket.Chat/4.0.1 Chrome/124.0.6367.243 Electron/30.1.2 Safari/537.36","length":"85","host":"localhost:3001","referer":"https://<domain>/marketplace/explore","remoteIP":"2001:871:261:eab7:4d0a:c1cc:690a:3b10","err":{"type":"Error","message":"App already has an associated runtime","stack":"Error: App already has an associated runtime\n    at AppRuntimeManager.<anonymous> (/app/bundle/programs/server/npm/node_modules/@rocket.chat/apps-engine/server/managers/AppRuntimeManager.js:23:23)\n    at Generator.next (<anonymous>)\n    at /app/bundle/programs/server/npm/node_modules/@rocket.chat/apps-engine/server/managers/AppRuntimeManager.js:8:71\n    at new Promise (<anonymous>)\n    at __awaiter (/app/bundle/programs/server/npm/node_modules/@rocket.chat/apps-engine/server/managers/AppRuntimeManager.js:4:12)\n    at AppRuntimeManager.startRuntimeForApp (/app/bundle/programs/server/npm/node_modules/@rocket.chat/apps-engine/server/managers/AppRuntimeManager.js:20:16)\n    at AppCompiler.<anonymous> (/app/bundle/programs/server/npm/node_modules/@rocket.chat/apps-engine/server/compiler/AppCompiler.js:28:56)\n    at Generator.next (<anonymous>)\n    at /app/bundle/programs/server/npm/node_modules/@rocket.chat/apps-engine/server/compiler/AppCompiler.js:8:71\n    at new Promise (<anonymous>)\n    at __awaiter (/app/bundle/programs/server/npm/node_modules/@rocket.chat/apps-engine/server/compiler/AppCompiler.js:4:12)\n    at AppCompiler.toSandBox (/app/bundle/programs/server/npm/node_modules/@rocket.chat/apps-engine/server/compiler/AppCompiler.js:24:16)\n    at AppManager.<anonymous> (/app/bundle/programs/server/npm/node_modules/@rocket.chat/apps-engine/server/AppManager.js:398:50)\n    at Generator.next (<anonymous>)\n    at fulfilled (/app/bundle/programs/server/npm/node_modules/@rocket.chat/apps-engine/server/AppManager.js:5:58)\n    at /app/bundle/programs/server/npm/node_modules/meteor/promise/node_modules/meteor-promise/fiber_pool.js:43:40\n => awaited here:\n    at Function.Promise.await (/app/bundle/programs/server/npm/node_modules/meteor/promise/node_modules/meteor-promise/promise_server.js:56:12)\n    at ee/server/apps/communication/rest.ts:402:15\n    at /app/bundle/programs/server/npm/node_modules/meteor/promise/node_modules/meteor-promise/fiber_pool.js:43:40\n => awaited here:\n    at Function.Promise.await (/app/bundle/programs/server/npm/node_modules/meteor/promise/node_modules/meteor-promise/promise_server.js:56:12)\n    at packages/meteor.js:367:22\n    at Meteor.EnvironmentVariable.EVp.withValue (packages/meteor.js:1389:31)\n    at app/api/server/api.ts:649:39\n    at /app/bundle/programs/server/npm/node_modules/meteor/promise/node_modules/meteor-promise/fiber_pool.js:43:40"},"status":400,"responseTime":1659,"msg":"App already has an associated runtime"}

On 2024-08-31 around 21:30, I rebooted the server running Docker. Afterwards, Giphy and Tenor started working on both Rocket.Chat instances. See below for the logs.

Relevant logs

Nothing is logged on client side.

Contents of the log file on server side:

2024-08-23T18:23:17.205137+02:00 alpha rocketchat[1711287]: {"level":35,"time":"2024-08-23T16:23:17.204Z","pid":1,"hostname":"9ad73d11caf9","name":"API","method":"POST","url":"/api/apps/ab4728ec-613e-472f-a24c-b48a77aacfff/status","userId":"L86W8h2Xtrpystbnd","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Rocket.Chat/4.0.1 Chrome/124.0.6367.243 Electron/30.1.2 Safari/537.36","length":"29","host":"localhost:3000","referer":"https://<domain>/marketplace/installed/list","remoteIP":"2001:871:261:eab7:4d0a:c1cc:690a:3b10","err":{"type":"Error","message":"The App had compiler errors, can not enable it.","stack":"Error: The App had compiler errors, can not enable it.\n    at AppManager.<anonymous> (/app/bundle/programs/server/npm/node_modules/@rocket.chat/apps-engine/server/AppManager.js:313:23)\n    at Generator.next (<anonymous>)\n    at fulfilled (/app/bundle/programs/server/npm/node_modules/@rocket.chat/apps-engine/server/AppManager.js:5:58)\n    at /app/bundle/programs/server/npm/node_modules/meteor/promise/node_modules/meteor-promise/fiber_pool.js:43:40\n => awaited here:\n    at Function.Promise.await (/app/bundle/programs/server/npm/node_modules/meteor/promise/node_modules/meteor-promise/promise_server.js:56:12)\n    at ee/server/apps/communication/rest.ts:1187:18\n    at /app/bundle/programs/server/npm/node_modules/meteor/promise/node_modules/meteor-promise/fiber_pool.js:43:40\n => awaited here:\n    at Function.Promise.await (/app/bundle/programs/server/npm/node_modules/meteor/promise/node_modules/meteor-promise/promise_server.js:56:12)\n    at packages/meteor.js:367:22\n    at Meteor.EnvironmentVariable.EVp.withValue (packages/meteor.js:1389:31)\n    at app/api/server/api.ts:649:39\n    at /app/bundle/programs/server/npm/node_modules/meteor/promise/node_modules/meteor-promise/fiber_pool.js:43:40"},"status":400,"responseTime":6,"msg":"The App had compiler errors, can not enable it."}

As suggested in one of the comments, I fired up the server with the environment variable, DEBUG=appsEngine:runtime:*:

2024-08-28T11:34:20.443607+02:00 alpha rocketchat[2340872]: 2024-08-28T09:34:20.443Z appsEngine:runtime:deno:ab4728ec-613e-472f-a24c-b48a77aacfff Setting up app subprocess
2024-08-28T11:34:20.491979+02:00 alpha rocketchat[2340872]: 2024-08-28T09:34:20.491Z appsEngine:runtime:deno:ab4728ec-613e-472f-a24c-b48a77aacfff Started subprocess 21 with options [
2024-08-28T11:34:20.492080+02:00 alpha rocketchat[2340872]:   'run',
2024-08-28T11:34:20.492148+02:00 alpha rocketchat[2340872]:   '--allow-net',
2024-08-28T11:34:20.492214+02:00 alpha rocketchat[2340872]:   '--allow-read=/app/bundle/programs/server/npm/node_modules/@rocket.chat/apps-engine,/app/bundle/programs/server/npm/node_modules',
2024-08-28T11:34:20.492283+02:00 alpha rocketchat[2340872]:   '--allow-env=NODE_EXTRA_CA_CERTS',
2024-08-28T11:34:20.492346+02:00 alpha rocketchat[2340872]:   '/app/bundle/programs/server/npm/node_modules/@rocket.chat/apps-engine/deno-runtime/main.ts',
2024-08-28T11:34:20.492408+02:00 alpha rocketchat[2340872]:   '--subprocess',
2024-08-28T11:34:20.492467+02:00 alpha rocketchat[2340872]:   'ab4728ec-613e-472f-a24c-b48a77aacfff'
2024-08-28T11:34:20.492533+02:00 alpha rocketchat[2340872]: ]
2024-08-28T11:34:31.731836+02:00 alpha rocketchat[2340872]: Error while compiling the App "Tenor (ab4728ec-613e-472f-a24c-b48a77aacfff)":
2024-08-28T11:34:31.732135+02:00 alpha rocketchat[2340872]: Error: [ab4728ec-613e-472f-a24c-b48a77aacfff] Timeout: app process not ready
2024-08-28T11:34:31.732354+02:00 alpha rocketchat[2340872]:     at Timeout._onTimeout (/app/bundle/programs/server/npm/node_modules/@rocket.chat/apps-engine/server/runtime/deno/AppsEngineDenoRuntime.js:216:55)
2024-08-28T11:34:31.732603+02:00 alpha rocketchat[2340872]:     at listOnTimeout (internal/timers.js:557:17)
2024-08-28T11:34:31.734683+02:00 alpha rocketchat[2340872]:     at processTimers (internal/timers.js:500:7)
2024-08-28T11:34:31.735122+02:00 alpha rocketchat[2340872]: 2024-08-28T09:34:30.570Z appsEngine:runtime:deno:8b882242-0cb7-419f-87d8-93b1d09e1ec2 Setting up app subprocess
2024-08-28T11:34:31.735395+02:00 alpha rocketchat[2340872]: 2024-08-28T09:34:30.622Z appsEngine:runtime:deno:8b882242-0cb7-419f-87d8-93b1d09e1ec2 Started subprocess 42 with options [
2024-08-28T11:34:31.735851+02:00 alpha rocketchat[2340872]:   'run',
2024-08-28T11:34:31.736248+02:00 alpha rocketchat[2340872]:   '--allow-net',
2024-08-28T11:34:31.736483+02:00 alpha rocketchat[2340872]:   '--allow-read=/app/bundle/programs/server/npm/node_modules/@rocket.chat/apps-engine,/app/bundle/programs/server/npm/node_modules',
2024-08-28T11:34:31.737509+02:00 alpha rocketchat[2340872]:   '--allow-env=NODE_EXTRA_CA_CERTS',
2024-08-28T11:34:31.737684+02:00 alpha rocketchat[2340872]:   '/app/bundle/programs/server/npm/node_modules/@rocket.chat/apps-engine/deno-runtime/main.ts',
2024-08-28T11:34:31.737997+02:00 alpha rocketchat[2340872]:   '--subprocess',
2024-08-28T11:34:31.739250+02:00 alpha rocketchat[2340872]:   '8b882242-0cb7-419f-87d8-93b1d09e1ec2'
2024-08-28T11:34:31.739599+02:00 alpha rocketchat[2340872]: ]
2024-08-28T11:35:23.631807+02:00 alpha rocketchat[2340872]: 2024-08-28T09:35:23.631Z appsEngine:runtime:deno:ab4728ec-613e-472f-a24c-b48a77aacfff Received message from subprocess { jsonrpc: '2.0', method: 'ready' }
2024-08-28T11:35:23.632516+02:00 alpha rocketchat[2340872]: 2024-08-28T09:35:23.632Z appsEngine:runtime:deno:ab4728ec-613e-472f-a24c-b48a77aacfff Sending message to subprocess '_zPING'
2024-08-28T11:35:23.634405+02:00 alpha rocketchat[2340872]: 2024-08-28T09:35:23.634Z appsEngine:runtime:deno:ab4728ec-613e-472f-a24c-b48a77aacfff Received message from subprocess '_zPONG'
2024-08-28T11:35:23.634479+02:00 alpha rocketchat[2340872]: 2024-08-28T09:35:23.634Z appsEngine:runtime:deno:ab4728ec-613e-472f-a24c-b48a77aacfff Ping successful in 2 ms
2024-08-28T11:35:25.404171+02:00 alpha rocketchat[2340872]: 2024-08-28T09:35:25.403Z appsEngine:runtime:deno:8b882242-0cb7-419f-87d8-93b1d09e1ec2 Received message from subprocess { jsonrpc: '2.0', method: 'ready' }
2024-08-28T11:35:25.445454+02:00 alpha rocketchat[2340872]: 2024-08-28T09:35:25.404Z appsEngine:runtime:deno:8b882242-0cb7-419f-87d8-93b1d09e1ec2 Sending message to subprocess '_zPING'
2024-08-28T11:35:25.445505+02:00 alpha rocketchat[2340872]: 2024-08-28T09:35:25.406Z appsEngine:runtime:deno:8b882242-0cb7-419f-87d8-93b1d09e1ec2 Received message from subprocess '_zPONG'
2024-08-28T11:35:25.445553+02:00 alpha rocketchat[2340872]: 2024-08-28T09:35:25.406Z appsEngine:runtime:deno:8b882242-0cb7-419f-87d8-93b1d09e1ec2 Ping successful in 2 ms
2024-08-28T11:35:33.637924+02:00 alpha rocketchat[2340872]: 2024-08-28T09:35:33.634Z appsEngine:runtime:deno:ab4728ec-613e-472f-a24c-b48a77aacfff Sending message to subprocess '_zPING'
2024-08-28T11:35:33.640342+02:00 alpha rocketchat[2340872]: 2024-08-28T09:35:33.639Z appsEngine:runtime:deno:ab4728ec-613e-472f-a24c-b48a77aacfff Received message from subprocess '_zPONG'
2024-08-28T11:35:33.640428+02:00 alpha rocketchat[2340872]: 2024-08-28T09:35:33.639Z appsEngine:runtime:deno:ab4728ec-613e-472f-a24c-b48a77aacfff Ping successful in 5 ms
2024-08-28T11:35:35.407096+02:00 alpha rocketchat[2340872]: 2024-08-28T09:35:35.406Z appsEngine:runtime:deno:8b882242-0cb7-419f-87d8-93b1d09e1ec2 Sending message to subprocess '_zPING'
2024-08-28T11:35:35.543278+02:00 alpha rocketchat[2340872]: 2024-08-28T09:35:35.410Z appsEngine:runtime:deno:8b882242-0cb7-419f-87d8-93b1d09e1ec2 Received message from subprocess '_zPONG'
2024-08-28T11:35:35.543994+02:00 alpha rocketchat[2340872]: 2024-08-28T09:35:35.410Z appsEngine:runtime:deno:8b882242-0cb7-419f-87d8-93b1d09e1ec2 Ping successful in 4 ms
[...]

Both apps were not enabled, but they were periodically pinged with success.

After the reboot at 2024-08-31 around 21:30, there were a lot more log entries:

2024-08-31T21:39:53.672328+02:00 alpha rocketchat[6256]: 2024-08-31T19:39:53.672Z appsEngine:runtime:deno:ab4728ec-613e-472f-a24c-b48a77aacfff Setting up app subprocess
2024-08-31T21:39:54.025840+02:00 alpha rocketchat[6256]: 2024-08-31T19:39:54.025Z appsEngine:runtime:deno:ab4728ec-613e-472f-a24c-b48a77aacfff Started subprocess 89 with options [
2024-08-31T21:40:06.697159+02:00 alpha rocketchat[6256]: 2024-08-31T19:40:06.696Z appsEngine:runtime:deno:ab4728ec-613e-472f-a24c-b48a77aacfff Received message from subprocess { jsonrpc: '2.0', method: 'ready' }
2024-08-31T21:40:06.697813+02:00 alpha rocketchat[6256]: 2024-08-31T19:40:06.697Z appsEngine:runtime:deno:ab4728ec-613e-472f-a24c-b48a77aacfff Sending message to subprocess '_zPING'
2024-08-31T21:40:06.700111+02:00 alpha rocketchat[6256]: 2024-08-31T19:40:06.699Z appsEngine:runtime:deno:ab4728ec-613e-472f-a24c-b48a77aacfff Sending message to subprocess RequestObject { jsonrpc: '2.0', id: 'amce6xsjbz5', method: 'app:construct', params: [ { info: [Object], files: [Object], languageContent: [Object], implemented: [AppImplements] } ] }
2024-08-31T21:40:06.747056+02:00 alpha rocketchat[6256]: 2024-08-31T19:40:06.746Z appsEngine:runtime:deno:ab4728ec-613e-472f-a24c-b48a77aacfff Received message from subprocess '_zPONG'
2024-08-31T21:40:06.747523+02:00 alpha rocketchat[6256]: 2024-08-31T19:40:06.746Z appsEngine:runtime:deno:ab4728ec-613e-472f-a24c-b48a77aacfff Ping successful in 49 ms
2024-08-31T21:40:07.042890+02:00 alpha rocketchat[6256]: 2024-08-31T19:40:07.042Z appsEngine:runtime:deno:ab4728ec-613e-472f-a24c-b48a77aacfff Received message from subprocess { jsonrpc: '2.0', id: 'amce6xsjbz5', result: { value: true, logs: { appId: 'ab4728ec-613e-472f-a24c-b48a77aacfff', method: 'app:construct', entries: [Array], startTime: 2024-08-31T19:40:07.015Z, endTime: 2024-08-31T19:40:07.040Z, totalTime: 25, _createdAt: 2024-08-31T19:40:07.040Z } } }
2024-08-31T21:40:07.194494+02:00 alpha rocketchat[6256]: 2024-08-31T19:40:07.194Z appsEngine:runtime:deno:ab4728ec-613e-472f-a24c-b48a77aacfff Request amce6xsjbz5 for method app:construct took 496ms
2024-08-31T21:40:07.200881+02:00 alpha rocketchat[6256]: 2024-08-31T19:40:07.200Z appsEngine:runtime:deno:8b882242-0cb7-419f-87d8-93b1d09e1ec2 Setting up app subprocess
2024-08-31T21:40:07.223578+02:00 alpha rocketchat[6256]: 2024-08-31T19:40:07.223Z appsEngine:runtime:deno:8b882242-0cb7-419f-87d8-93b1d09e1ec2 Started subprocess 127 with options [
2024-08-31T21:40:07.319124+02:00 alpha rocketchat[6256]: 2024-08-31T19:40:07.318Z appsEngine:runtime:deno:8b882242-0cb7-419f-87d8-93b1d09e1ec2 Received message from subprocess { jsonrpc: '2.0', method: 'ready' }
2024-08-31T21:40:07.319234+02:00 alpha rocketchat[6256]: 2024-08-31T19:40:07.319Z appsEngine:runtime:deno:8b882242-0cb7-419f-87d8-93b1d09e1ec2 Sending message to subprocess '_zPING'
2024-08-31T21:40:07.319792+02:00 alpha rocketchat[6256]: 2024-08-31T19:40:07.319Z appsEngine:runtime:deno:8b882242-0cb7-419f-87d8-93b1d09e1ec2 Sending message to subprocess RequestObject { jsonrpc: '2.0', id: 'c074teii8kk', method: 'app:construct', params: [ { info: [Object], files: [Object], languageContent: [Object], implemented: [AppImplements] } ] }
2024-08-31T21:40:07.322799+02:00 alpha rocketchat[6256]: 2024-08-31T19:40:07.322Z appsEngine:runtime:deno:8b882242-0cb7-419f-87d8-93b1d09e1ec2 Received message from subprocess '_zPONG'
2024-08-31T21:40:07.322888+02:00 alpha rocketchat[6256]: 2024-08-31T19:40:07.322Z appsEngine:runtime:deno:8b882242-0cb7-419f-87d8-93b1d09e1ec2 Ping successful in 3 ms
2024-08-31T21:40:07.345288+02:00 alpha rocketchat[6256]: 2024-08-31T19:40:07.345Z appsEngine:runtime:deno:8b882242-0cb7-419f-87d8-93b1d09e1ec2 Received message from subprocess { jsonrpc: '2.0', id: 'c074teii8kk', result: { value: true, logs: { appId: '8b882242-0cb7-419f-87d8-93b1d09e1ec2', method: 'app:construct', entries: [Array], startTime: 2024-08-31T19:40:07.324Z, endTime: 2024-08-31T19:40:07.343Z, totalTime: 19, _createdAt: 2024-08-31T19:40:07.343Z } } }
2024-08-31T21:40:07.567655+02:00 alpha rocketchat[6256]: 2024-08-31T19:40:07.567Z appsEngine:runtime:deno:8b882242-0cb7-419f-87d8-93b1d09e1ec2 Request c074teii8kk for method app:construct took 248ms
2024-08-31T21:40:07.571829+02:00 alpha rocketchat[6256]: 2024-08-31T19:40:07.571Z appsEngine:runtime:deno:ab4728ec-613e-472f-a24c-b48a77aacfff Sending message to subprocess RequestObject { jsonrpc: '2.0', id: 'du17abyh6a', method: 'app:initialize', params: [] }
2024-08-31T21:40:07.573975+02:00 alpha rocketchat[6256]: 2024-08-31T19:40:07.573Z appsEngine:runtime:deno:ab4728ec-613e-472f-a24c-b48a77aacfff Received message from subprocess { jsonrpc: '2.0', id: '4yc1au6je2q', method: 'accessor:getConfigurationExtend:settings:provideSetting', params: [ { id: 'tenor_apikey', type: 'string', packageValue: '', required: true, public: false, i18nLabel: 'Customize_Tenor_APIKey', i18nDescription: 'Customize_Tenor_APIKey_Description' } ] }
2024-08-31T21:40:07.574369+02:00 alpha rocketchat[6256]: 2024-08-31T19:40:07.574Z appsEngine:runtime:deno:ab4728ec-613e-472f-a24c-b48a77aacfff Handling accessor message [ 'getConfigurationExtend', 'settings', 'provideSetting' ] with params [ { id: 'tenor_apikey', type: 'string', packageValue: '', required: true, public: false, i18nLabel: 'Customize_Tenor_APIKey', i18nDescription: 'Customize_Tenor_APIKey_Description' } ]
2024-08-31T21:40:07.575558+02:00 alpha rocketchat[6256]: 2024-08-31T19:40:07.575Z appsEngine:runtime:deno:ab4728ec-613e-472f-a24c-b48a77aacfff Sending message to subprocess SuccessObject { jsonrpc: '2.0', id: '4yc1au6je2q', result: null }
2024-08-31T21:40:07.577907+02:00 alpha rocketchat[6256]: 2024-08-31T19:40:07.577Z appsEngine:runtime:deno:ab4728ec-613e-472f-a24c-b48a77aacfff Received message from subprocess { jsonrpc: '2.0', id: '9j9jecimpeo', method: 'accessor:getConfigurationExtend:settings:provideSetting', params: [ { id: 'tenor_lang_code', type: 'string', packageValue: 'en_US', required: true, public: false, i18nLabel: 'Customize_Tenor_Language', i18nDescription: 'Customize_Tenor_Language_Description' } ] }
2024-08-31T21:40:07.578080+02:00 alpha rocketchat[6256]: 2024-08-31T19:40:07.577Z appsEngine:runtime:deno:ab4728ec-613e-472f-a24c-b48a77aacfff Handling accessor message [ 'getConfigurationExtend', 'settings', 'provideSetting' ] with params [ { id: 'tenor_lang_code', type: 'string', packageValue: 'en_US', required: true, public: false, i18nLabel: 'Customize_Tenor_Language', i18nDescription: 'Customize_Tenor_Language_Description' } ]
2024-08-31T21:40:07.578309+02:00 alpha rocketchat[6256]: 2024-08-31T19:40:07.578Z appsEngine:runtime:deno:ab4728ec-613e-472f-a24c-b48a77aacfff Sending message to subprocess SuccessObject { jsonrpc: '2.0', id: '9j9jecimpeo', result: null }
2024-08-31T21:40:07.579234+02:00 alpha rocketchat[6256]: 2024-08-31T19:40:07.579Z appsEngine:runtime:deno:ab4728ec-613e-472f-a24c-b48a77aacfff Received message from subprocess { jsonrpc: '2.0', id: '52bjyh17n3f', method: 'accessor:getConfigurationExtend:settings:provideSetting', params: [ { id: 'tenor_content_filter', type: 'string', packageValue: 'low', required: true, public: false, i18nLabel: 'Customize_Tenor_ContentFilter', i18nDescription: 'Customize_Tenor_ContentFilter_Description' } ] }
2024-08-31T21:40:07.579414+02:00 alpha rocketchat[6256]: 2024-08-31T19:40:07.579Z appsEngine:runtime:deno:ab4728ec-613e-472f-a24c-b48a77aacfff Handling accessor message [ 'getConfigurationExtend', 'settings', 'provideSetting' ] with params [ { id: 'tenor_content_filter', type: 'string', packageValue: 'low', required: true, public: false, i18nLabel: 'Customize_Tenor_ContentFilter', i18nDescription: 'Customize_Tenor_ContentFilter_Description' } ]
2024-08-31T21:40:07.579623+02:00 alpha rocketchat[6256]: 2024-08-31T19:40:07.579Z appsEngine:runtime:deno:ab4728ec-613e-472f-a24c-b48a77aacfff Sending message to subprocess SuccessObject { jsonrpc: '2.0', id: '52bjyh17n3f', result: null }
2024-08-31T21:40:07.580509+02:00 alpha rocketchat[6256]: 2024-08-31T19:40:07.580Z appsEngine:runtime:deno:ab4728ec-613e-472f-a24c-b48a77aacfff Received message from subprocess { jsonrpc: '2.0', id: 'n61ew3h7pd', method: 'accessor:getConfigurationExtend:settings:provideSetting', params: [ { id: 'tenor_show_title', type: 'boolean', packageValue: true, required: true, public: false, i18nLabel: 'Customize_Tenor_Show_Title', i18nDescription: 'Customize_Tenor_Show_Title_Description' } ] }
2024-08-31T21:40:07.580656+02:00 alpha rocketchat[6256]: 2024-08-31T19:40:07.580Z appsEngine:runtime:deno:ab4728ec-613e-472f-a24c-b48a77aacfff Handling accessor message [ 'getConfigurationExtend', 'settings', 'provideSetting' ] with params [ { id: 'tenor_show_title', type: 'boolean', packageValue: true, required: true, public: false, i18nLabel: 'Customize_Tenor_Show_Title', i18nDescription: 'Customize_Tenor_Show_Title_Description' } ]
2024-08-31T21:40:07.580866+02:00 alpha rocketchat[6256]: 2024-08-31T19:40:07.580Z appsEngine:runtime:deno:ab4728ec-613e-472f-a24c-b48a77aacfff Sending message to subprocess SuccessObject { jsonrpc: '2.0', id: 'n61ew3h7pd', result: null }
2024-08-31T21:40:07.616415+02:00 alpha rocketchat[6256]: 2024-08-31T19:40:07.616Z appsEngine:runtime:deno:ab4728ec-613e-472f-a24c-b48a77aacfff Received message from subprocess { jsonrpc: '2.0', id: 'z8f2s1wxnld', method: 'accessor:getConfigurationExtend:settings:provideSetting', params: [ { id: 'tenor_show_link', type: 'boolean', packageValue: true, required: true, public: false, i18nLabel: 'Customize_Tenor_Show_Link', i18nDescription: 'Customize_Tenor_Show_Link_Description' } ] }
2024-08-31T21:40:07.616533+02:00 alpha rocketchat[6256]: 2024-08-31T19:40:07.616Z appsEngine:runtime:deno:ab4728ec-613e-472f-a24c-b48a77aacfff Handling accessor message [ 'getConfigurationExtend', 'settings', 'provideSetting' ] with params [ { id: 'tenor_show_link', type: 'boolean', packageValue: true, required: true, public: false, i18nLabel: 'Customize_Tenor_Show_Link', i18nDescription: 'Customize_Tenor_Show_Link_Description' } ]
2024-08-31T21:40:07.616754+02:00 alpha rocketchat[6256]: 2024-08-31T19:40:07.616Z appsEngine:runtime:deno:ab4728ec-613e-472f-a24c-b48a77aacfff Sending message to subprocess SuccessObject { jsonrpc: '2.0', id: 'z8f2s1wxnld', result: null }
2024-08-31T21:40:07.886810+02:00 alpha rocketchat[6256]: 2024-08-31T19:40:07.886Z appsEngine:runtime:deno:ab4728ec-613e-472f-a24c-b48a77aacfff Received message from subprocess { jsonrpc: '2.0', id: '7rqez6fto2', method: 'accessor:getConfigurationExtend:slashCommands:provideSlashCommand', params: [ { app: undefined, command: 'tenor', i18nParamsExample: 'Tenor_Search_Term', i18nDescription: 'Tenor_Command_Description', providesPreview: true } ] }
2024-08-31T21:40:07.987565+02:00 alpha rocketchat[6256]: 2024-08-31T19:40:07.886Z appsEngine:runtime:deno:ab4728ec-613e-472f-a24c-b48a77aacfff Handling accessor message [ 'getConfigurationExtend', 'slashCommands', 'provideSlashCommand' ] with params [ { app: undefined, command: 'tenor', i18nParamsExample: 'Tenor_Search_Term', i18nDescription: 'Tenor_Command_Description', providesPreview: true } ]
2024-08-31T21:40:07.987685+02:00 alpha rocketchat[6256]: 2024-08-31T19:40:07.888Z appsEngine:runtime:deno:ab4728ec-613e-472f-a24c-b48a77aacfff Sending message to subprocess SuccessObject { jsonrpc: '2.0', id: '7rqez6fto2', result: null }
2024-08-31T21:40:07.987735+02:00 alpha rocketchat[6256]: 2024-08-31T19:40:07.890Z appsEngine:runtime:deno:ab4728ec-613e-472f-a24c-b48a77aacfff Received message from subprocess { jsonrpc: '2.0', id: 'du17abyh6a', result: { value: true, logs: { appId: 'ab4728ec-613e-472f-a24c-b48a77aacfff', method: 'app:initialize', entries: [Array], startTime: 2024-08-31T19:40:07.571Z, endTime: 2024-08-31T19:40:07.888Z, totalTime: 317, _createdAt: 2024-08-31T19:40:07.888Z } } }
2024-08-31T21:40:08.402769+02:00 alpha rocketchat[6256]: 2024-08-31T19:40:08.402Z appsEngine:runtime:deno:ab4728ec-613e-472f-a24c-b48a77aacfff Request du17abyh6a for method app:initialize took 831ms
2024-08-31T21:40:08.403173+02:00 alpha rocketchat[6256]: 2024-08-31T19:40:08.402Z appsEngine:runtime:deno:ab4728ec-613e-472f-a24c-b48a77aacfff Sending message to subprocess RequestObject { jsonrpc: '2.0', id: '4ynkre6a5na', method: 'app:setStatus', params: [ 'initialized' ] }
2024-08-31T21:40:08.405298+02:00 alpha rocketchat[6256]: 2024-08-31T19:40:08.405Z appsEngine:runtime:deno:ab4728ec-613e-472f-a24c-b48a77aacfff Received message from subprocess { jsonrpc: '2.0', id: '4ynkre6a5na', result: { value: null, logs: { appId: 'ab4728ec-613e-472f-a24c-b48a77aacfff', method: 'app:setStatus', entries: [Array], startTime: 2024-08-31T19:40:08.403Z, endTime: 2024-08-31T19:40:08.404Z, totalTime: 1, _createdAt: 2024-08-31T19:40:08.404Z } } }
2024-08-31T21:40:08.698105+02:00 alpha rocketchat[6256]: 2024-08-31T19:40:08.697Z appsEngine:runtime:deno:ab4728ec-613e-472f-a24c-b48a77aacfff Request 4ynkre6a5na for method app:setStatus took 295ms
2024-08-31T21:40:08.702670+02:00 alpha rocketchat[6256]: 2024-08-31T19:40:08.702Z appsEngine:runtime:deno:ab4728ec-613e-472f-a24c-b48a77aacfff Sending message to subprocess RequestObject { jsonrpc: '2.0', id: '9r4d8wr4sqr', method: 'app:getStatus', params: [] }
2024-08-31T21:40:08.703591+02:00 alpha rocketchat[6256]: 2024-08-31T19:40:08.703Z appsEngine:runtime:deno:ab4728ec-613e-472f-a24c-b48a77aacfff Sending message to subprocess RequestObject { jsonrpc: '2.0', id: 'iamuq1hdgcq', method: 'app:getStatus', params: [] }
2024-08-31T21:40:08.704186+02:00 alpha rocketchat[6256]: 2024-08-31T19:40:08.703Z appsEngine:runtime:deno:ab4728ec-613e-472f-a24c-b48a77aacfff Received message from subprocess { jsonrpc: '2.0', id: '9r4d8wr4sqr', result: { value: 'initialized' } }
2024-08-31T21:40:08.704643+02:00 alpha rocketchat[6256]: 2024-08-31T19:40:08.704Z appsEngine:runtime:deno:ab4728ec-613e-472f-a24c-b48a77aacfff Request 9r4d8wr4sqr for method app:getStatus took 2ms
2024-08-31T21:40:08.706479+02:00 alpha rocketchat[6256]: 2024-08-31T19:40:08.706Z appsEngine:runtime:deno:ab4728ec-613e-472f-a24c-b48a77aacfff Received message from subprocess { jsonrpc: '2.0', id: 'iamuq1hdgcq', result: { value: 'initialized' } }
2024-08-31T21:40:08.706855+02:00 alpha rocketchat[6256]: 2024-08-31T19:40:08.706Z appsEngine:runtime:deno:ab4728ec-613e-472f-a24c-b48a77aacfff Request iamuq1hdgcq for method app:getStatus took 3ms
2024-08-31T21:40:08.709344+02:00 alpha rocketchat[6256]: 2024-08-31T19:40:08.709Z appsEngine:runtime:deno:ab4728ec-613e-472f-a24c-b48a77aacfff Sending message to subprocess RequestObject { jsonrpc: '2.0', id: 'vv4z8fip1q', method: 'app:onEnable', params: [] }
2024-08-31T21:40:08.712512+02:00 alpha rocketchat[6256]: 2024-08-31T19:40:08.712Z appsEngine:runtime:deno:ab4728ec-613e-472f-a24c-b48a77aacfff Received message from subprocess { jsonrpc: '2.0', id: 'vv4z8fip1q', result: { value: true, logs: { appId: 'ab4728ec-613e-472f-a24c-b48a77aacfff', method: 'app:onEnable', entries: [Array], startTime: 2024-08-31T19:40:08.709Z, endTime: 2024-08-31T19:40:08.710Z, totalTime: 1, _createdAt: 2024-08-31T19:40:08.710Z } } }
2024-08-31T21:40:09.084025+02:00 alpha rocketchat[6256]: 2024-08-31T19:40:09.083Z appsEngine:runtime:deno:ab4728ec-613e-472f-a24c-b48a77aacfff Request vv4z8fip1q for method app:onEnable took 375ms
2024-08-31T21:40:09.086071+02:00 alpha rocketchat[6256]: 2024-08-31T19:40:09.085Z appsEngine:runtime:deno:ab4728ec-613e-472f-a24c-b48a77aacfff Sending message to subprocess RequestObject { jsonrpc: '2.0', id: 'm4bmltnyqns', method: 'app:setStatus', params: [ 'manually_enabled' ] }
2024-08-31T21:40:09.087450+02:00 alpha rocketchat[6256]: 2024-08-31T19:40:09.087Z appsEngine:runtime:deno:ab4728ec-613e-472f-a24c-b48a77aacfff Received message from subprocess { jsonrpc: '2.0', id: 'm4bmltnyqns', result: { value: null, logs: { appId: 'ab4728ec-613e-472f-a24c-b48a77aacfff', method: 'app:setStatus', entries: [Array], startTime: 2024-08-31T19:40:09.086Z, endTime: 2024-08-31T19:40:09.086Z, totalTime: 0, _createdAt: 2024-08-31T19:40:09.086Z } } }
2024-08-31T21:40:09.263893+02:00 alpha rocketchat[6256]: 2024-08-31T19:40:09.263Z appsEngine:runtime:deno:ab4728ec-613e-472f-a24c-b48a77aacfff Request m4bmltnyqns for method app:setStatus took 178ms
2024-08-31T21:40:09.496402+02:00 alpha rocketchat[6256]: 2024-08-31T19:40:09.496Z appsEngine:runtime:deno:ab4728ec-613e-472f-a24c-b48a77aacfff Sending message to subprocess RequestObject { jsonrpc: '2.0', id: 'yv9qrrcylwd', method: 'app:getStatus', params: [] }
2024-08-31T21:40:09.498202+02:00 alpha rocketchat[6256]: 2024-08-31T19:40:09.498Z appsEngine:runtime:deno:8b882242-0cb7-419f-87d8-93b1d09e1ec2 Sending message to subprocess RequestObject { jsonrpc: '2.0', id: '6qljo0t2qir', method: 'app:initialize', params: [] }
2024-08-31T21:40:09.498569+02:00 alpha rocketchat[6256]: 2024-08-31T19:40:09.498Z appsEngine:runtime:deno:ab4728ec-613e-472f-a24c-b48a77aacfff Received message from subprocess { jsonrpc: '2.0', id: 'yv9qrrcylwd', result: { value: 'manually_enabled' } }
2024-08-31T21:40:09.498756+02:00 alpha rocketchat[6256]: 2024-08-31T19:40:09.498Z appsEngine:runtime:deno:ab4728ec-613e-472f-a24c-b48a77aacfff Request yv9qrrcylwd for method app:getStatus took 2ms
2024-08-31T21:40:09.500257+02:00 alpha rocketchat[6256]: 2024-08-31T19:40:09.500Z appsEngine:runtime:deno:8b882242-0cb7-419f-87d8-93b1d09e1ec2 Received message from subprocess { jsonrpc: '2.0', id: 'n2obu49fdq', method: 'accessor:getConfigurationExtend:settings:provideSetting', params: [ { id: 'giphy_apikey', type: 'string', packageValue: '', required: true, public: false, i18nLabel: 'Customize_GIPHY_APIKey', i18nDescription: 'Customize_GIPHY_APIKey_Description' } ] }
2024-08-31T21:40:09.500421+02:00 alpha rocketchat[6256]: 2024-08-31T19:40:09.500Z appsEngine:runtime:deno:8b882242-0cb7-419f-87d8-93b1d09e1ec2 Handling accessor message [ 'getConfigurationExtend', 'settings', 'provideSetting' ] with params [ { id: 'giphy_apikey', type: 'string', packageValue: '', required: true, public: false, i18nLabel: 'Customize_GIPHY_APIKey', i18nDescription: 'Customize_GIPHY_APIKey_Description' } ]
2024-08-31T21:40:09.500663+02:00 alpha rocketchat[6256]: 2024-08-31T19:40:09.500Z appsEngine:runtime:deno:8b882242-0cb7-419f-87d8-93b1d09e1ec2 Sending message to subprocess SuccessObject { jsonrpc: '2.0', id: 'n2obu49fdq', result: null }
2024-08-31T21:40:09.502627+02:00 alpha rocketchat[6256]: 2024-08-31T19:40:09.502Z appsEngine:runtime:deno:8b882242-0cb7-419f-87d8-93b1d09e1ec2 Received message from subprocess { jsonrpc: '2.0', id: 'k4dehtmb3cs', method: 'accessor:getConfigurationExtend:settings:provideSetting', params: [ { id: 'giphy_lang_code', type: 'string', packageValue: 'en', required: true, public: false, i18nLabel: 'Customize_GIPHY_Language', i18nDescription: 'Customize_GIPHY_Language_Description' } ] }
2024-08-31T21:40:09.502766+02:00 alpha rocketchat[6256]: 2024-08-31T19:40:09.502Z appsEngine:runtime:deno:8b882242-0cb7-419f-87d8-93b1d09e1ec2 Handling accessor message [ 'getConfigurationExtend', 'settings', 'provideSetting' ] with params [ { id: 'giphy_lang_code', type: 'string', packageValue: 'en', required: true, public: false, i18nLabel: 'Customize_GIPHY_Language', i18nDescription: 'Customize_GIPHY_Language_Description' } ]
2024-08-31T21:40:09.503003+02:00 alpha rocketchat[6256]: 2024-08-31T19:40:09.502Z appsEngine:runtime:deno:8b882242-0cb7-419f-87d8-93b1d09e1ec2 Sending message to subprocess SuccessObject { jsonrpc: '2.0', id: 'k4dehtmb3cs', result: null }
2024-08-31T21:40:09.504177+02:00 alpha rocketchat[6256]: 2024-08-31T19:40:09.504Z appsEngine:runtime:deno:8b882242-0cb7-419f-87d8-93b1d09e1ec2 Received message from subprocess { jsonrpc: '2.0', id: '4ywfplpwwmn', method: 'accessor:getConfigurationExtend:settings:provideSetting', params: [ { id: 'giphy_rating', type: 'string', packageValue: 'G', required: true, public: false, i18nLabel: 'Customize_GIPHY_Rating', i18nDescription: 'Customize_GIPHY_Rating_Description' } ] }
2024-08-31T21:40:09.504321+02:00 alpha rocketchat[6256]: 2024-08-31T19:40:09.504Z appsEngine:runtime:deno:8b882242-0cb7-419f-87d8-93b1d09e1ec2 Handling accessor message [ 'getConfigurationExtend', 'settings', 'provideSetting' ] with params [ { id: 'giphy_rating', type: 'string', packageValue: 'G', required: true, public: false, i18nLabel: 'Customize_GIPHY_Rating', i18nDescription: 'Customize_GIPHY_Rating_Description' } ]
2024-08-31T21:40:09.504564+02:00 alpha rocketchat[6256]: 2024-08-31T19:40:09.504Z appsEngine:runtime:deno:8b882242-0cb7-419f-87d8-93b1d09e1ec2 Sending message to subprocess SuccessObject { jsonrpc: '2.0', id: '4ywfplpwwmn', result: null }
2024-08-31T21:40:09.505732+02:00 alpha rocketchat[6256]: 2024-08-31T19:40:09.505Z appsEngine:runtime:deno:8b882242-0cb7-419f-87d8-93b1d09e1ec2 Received message from subprocess { jsonrpc: '2.0', id: 'cwzqaawf46d', method: 'accessor:getConfigurationExtend:settings:provideSetting', params: [ { id: 'giphy_show_title', type: 'boolean', packageValue: true, required: true, public: false, i18nLabel: 'Customize_GIPHY_Show_Title', i18nDescription: 'Customize_GIPHY_Show_Title_Description' } ] }
2024-08-31T21:40:09.505921+02:00 alpha rocketchat[6256]: 2024-08-31T19:40:09.505Z appsEngine:runtime:deno:8b882242-0cb7-419f-87d8-93b1d09e1ec2 Handling accessor message [ 'getConfigurationExtend', 'settings', 'provideSetting' ] with params [ { id: 'giphy_show_title', type: 'boolean', packageValue: true, required: true, public: false, i18nLabel: 'Customize_GIPHY_Show_Title', i18nDescription: 'Customize_GIPHY_Show_Title_Description' } ]
2024-08-31T21:40:09.506157+02:00 alpha rocketchat[6256]: 2024-08-31T19:40:09.506Z appsEngine:runtime:deno:8b882242-0cb7-419f-87d8-93b1d09e1ec2 Sending message to subprocess SuccessObject { jsonrpc: '2.0', id: 'cwzqaawf46d', result: null }
2024-08-31T21:40:09.507221+02:00 alpha rocketchat[6256]: 2024-08-31T19:40:09.507Z appsEngine:runtime:deno:8b882242-0cb7-419f-87d8-93b1d09e1ec2 Received message from subprocess { jsonrpc: '2.0', id: 'b1sd3lravch', method: 'accessor:getConfigurationExtend:slashCommands:provideSlashCommand', params: [ { app: undefined, command: 'giphy', i18nParamsExample: 'GIPHY_Search_Term', i18nDescription: 'GIPHY_Command_Description', providesPreview: true } ] }
2024-08-31T21:40:09.507398+02:00 alpha rocketchat[6256]: 2024-08-31T19:40:09.507Z appsEngine:runtime:deno:8b882242-0cb7-419f-87d8-93b1d09e1ec2 Handling accessor message [ 'getConfigurationExtend', 'slashCommands', 'provideSlashCommand' ] with params [ { app: undefined, command: 'giphy', i18nParamsExample: 'GIPHY_Search_Term', i18nDescription: 'GIPHY_Command_Description', providesPreview: true } ]
2024-08-31T21:40:09.507771+02:00 alpha rocketchat[6256]: 2024-08-31T19:40:09.507Z appsEngine:runtime:deno:8b882242-0cb7-419f-87d8-93b1d09e1ec2 Sending message to subprocess SuccessObject { jsonrpc: '2.0', id: 'b1sd3lravch', result: null }
2024-08-31T21:40:09.509384+02:00 alpha rocketchat[6256]: 2024-08-31T19:40:09.509Z appsEngine:runtime:deno:8b882242-0cb7-419f-87d8-93b1d09e1ec2 Received message from subprocess { jsonrpc: '2.0', id: '6qljo0t2qir', result: { value: true, logs: { appId: '8b882242-0cb7-419f-87d8-93b1d09e1ec2', method: 'app:initialize', entries: [Array], startTime: 2024-08-31T19:40:09.498Z, endTime: 2024-08-31T19:40:09.508Z, totalTime: 10, _createdAt: 2024-08-31T19:40:09.508Z } } }
2024-08-31T21:40:09.847003+02:00 alpha rocketchat[6256]: 2024-08-31T19:40:09.846Z appsEngine:runtime:deno:8b882242-0cb7-419f-87d8-93b1d09e1ec2 Request 6qljo0t2qir for method app:initialize took 349ms
2024-08-31T21:40:09.847213+02:00 alpha rocketchat[6256]: 2024-08-31T19:40:09.847Z appsEngine:runtime:deno:8b882242-0cb7-419f-87d8-93b1d09e1ec2 Sending message to subprocess RequestObject { jsonrpc: '2.0', id: 'tf7oaepxy3s', method: 'app:setStatus', params: [ 'initialized' ] }
2024-08-31T21:40:09.849895+02:00 alpha rocketchat[6256]: 2024-08-31T19:40:09.849Z appsEngine:runtime:deno:8b882242-0cb7-419f-87d8-93b1d09e1ec2 Received message from subprocess { jsonrpc: '2.0', id: 'tf7oaepxy3s', result: { value: null, logs: { appId: '8b882242-0cb7-419f-87d8-93b1d09e1ec2', method: 'app:setStatus', entries: [Array], startTime: 2024-08-31T19:40:09.847Z, endTime: 2024-08-31T19:40:09.848Z, totalTime: 1, _createdAt: 2024-08-31T19:40:09.848Z } } }
2024-08-31T21:40:10.134108+02:00 alpha rocketchat[6256]: 2024-08-31T19:40:10.132Z appsEngine:runtime:deno:8b882242-0cb7-419f-87d8-93b1d09e1ec2 Request tf7oaepxy3s for method app:setStatus took 286ms
2024-08-31T21:40:10.181240+02:00 alpha rocketchat[6256]: 2024-08-31T19:40:10.181Z appsEngine:runtime:deno:8b882242-0cb7-419f-87d8-93b1d09e1ec2 Sending message to subprocess RequestObject { jsonrpc: '2.0', id: 'taukjf0qcbb', method: 'app:getStatus', params: [] }
2024-08-31T21:40:10.182966+02:00 alpha rocketchat[6256]: 2024-08-31T19:40:10.182Z appsEngine:runtime:deno:8b882242-0cb7-419f-87d8-93b1d09e1ec2 Sending message to subprocess RequestObject { jsonrpc: '2.0', id: 'cls4rvvriij', method: 'app:getStatus', params: [] }
2024-08-31T21:40:10.185193+02:00 alpha rocketchat[6256]: 2024-08-31T19:40:10.185Z appsEngine:runtime:deno:8b882242-0cb7-419f-87d8-93b1d09e1ec2 Received message from subprocess { jsonrpc: '2.0', id: 'taukjf0qcbb', result: { value: 'initialized' } }
2024-08-31T21:40:10.185403+02:00 alpha rocketchat[6256]: 2024-08-31T19:40:10.185Z appsEngine:runtime:deno:8b882242-0cb7-419f-87d8-93b1d09e1ec2 Request taukjf0qcbb for method app:getStatus took 5ms
2024-08-31T21:40:10.185525+02:00 alpha rocketchat[6256]: 2024-08-31T19:40:10.185Z appsEngine:runtime:deno:8b882242-0cb7-419f-87d8-93b1d09e1ec2 Received message from subprocess { jsonrpc: '2.0', id: 'cls4rvvriij', result: { value: 'initialized' } }
2024-08-31T21:40:10.185702+02:00 alpha rocketchat[6256]: 2024-08-31T19:40:10.185Z appsEngine:runtime:deno:8b882242-0cb7-419f-87d8-93b1d09e1ec2 Request cls4rvvriij for method app:getStatus took 3ms
2024-08-31T21:40:10.187502+02:00 alpha rocketchat[6256]: 2024-08-31T19:40:10.187Z appsEngine:runtime:deno:8b882242-0cb7-419f-87d8-93b1d09e1ec2 Sending message to subprocess RequestObject { jsonrpc: '2.0', id: 'qvpx6pzw8fg', method: 'app:onEnable', params: [] }
2024-08-31T21:40:10.189154+02:00 alpha rocketchat[6256]: 2024-08-31T19:40:10.188Z appsEngine:runtime:deno:8b882242-0cb7-419f-87d8-93b1d09e1ec2 Received message from subprocess { jsonrpc: '2.0', id: 'qvpx6pzw8fg', result: { value: true, logs: { appId: '8b882242-0cb7-419f-87d8-93b1d09e1ec2', method: 'app:onEnable', entries: [Array], startTime: 2024-08-31T19:40:10.187Z, endTime: 2024-08-31T19:40:10.188Z, totalTime: 1, _createdAt: 2024-08-31T19:40:10.188Z } } }
2024-08-31T21:40:10.548144+02:00 alpha rocketchat[6256]: 2024-08-31T19:40:10.547Z appsEngine:runtime:deno:8b882242-0cb7-419f-87d8-93b1d09e1ec2 Request qvpx6pzw8fg for method app:onEnable took 360ms
2024-08-31T21:40:10.548933+02:00 alpha rocketchat[6256]: 2024-08-31T19:40:10.548Z appsEngine:runtime:deno:8b882242-0cb7-419f-87d8-93b1d09e1ec2 Sending message to subprocess RequestObject { jsonrpc: '2.0', id: '8gzkzbii0h5', method: 'app:setStatus', params: [ 'manually_enabled' ] }
2024-08-31T21:40:10.559485+02:00 alpha rocketchat[6256]: 2024-08-31T19:40:10.559Z appsEngine:runtime:deno:8b882242-0cb7-419f-87d8-93b1d09e1ec2 Received message from subprocess { jsonrpc: '2.0', id: '8gzkzbii0h5', result: { value: null, logs: { appId: '8b882242-0cb7-419f-87d8-93b1d09e1ec2', method: 'app:setStatus', entries: [Array], startTime: 2024-08-31T19:40:10.549Z, endTime: 2024-08-31T19:40:10.549Z, totalTime: 0, _createdAt: 2024-08-31T19:40:10.549Z } } }
2024-08-31T21:40:10.990246+02:00 alpha rocketchat[6256]: 2024-08-31T19:40:10.989Z appsEngine:runtime:deno:8b882242-0cb7-419f-87d8-93b1d09e1ec2 Request 8gzkzbii0h5 for method app:setStatus took 441ms
2024-08-31T21:40:11.271891+02:00 alpha rocketchat[6256]: 2024-08-31T19:40:11.267Z appsEngine:runtime:deno:8b882242-0cb7-419f-87d8-93b1d09e1ec2 Sending message to subprocess RequestObject { jsonrpc: '2.0', id: '210u911pfrfi', method: 'app:getStatus', params: [] }
2024-08-31T21:40:11.271995+02:00 alpha rocketchat[6256]: 2024-08-31T19:40:11.268Z appsEngine:runtime:deno:ab4728ec-613e-472f-a24c-b48a77aacfff Sending message to subprocess RequestObject { jsonrpc: '2.0', id: 'r5j6h6syja', method: 'app:getStatus', params: [] }
2024-08-31T21:40:11.272047+02:00 alpha rocketchat[6256]: 2024-08-31T19:40:11.270Z appsEngine:runtime:deno:8b882242-0cb7-419f-87d8-93b1d09e1ec2 Received message from subprocess { jsonrpc: '2.0', id: '210u911pfrfi', result: { value: 'manually_enabled' } }
2024-08-31T21:40:11.272118+02:00 alpha rocketchat[6256]: 2024-08-31T19:40:11.270Z appsEngine:runtime:deno:8b882242-0cb7-419f-87d8-93b1d09e1ec2 Request 210u911pfrfi for method app:getStatus took 3ms
2024-08-31T21:40:11.272173+02:00 alpha rocketchat[6256]: 2024-08-31T19:40:11.270Z appsEngine:runtime:deno:ab4728ec-613e-472f-a24c-b48a77aacfff Received message from subprocess { jsonrpc: '2.0', id: 'r5j6h6syja', result: { value: 'manually_enabled' } }
2024-08-31T21:40:11.272222+02:00 alpha rocketchat[6256]: 2024-08-31T19:40:11.270Z appsEngine:runtime:deno:ab4728ec-613e-472f-a24c-b48a77aacfff Request r5j6h6syja for method app:getStatus took 2ms
2024-08-31T21:40:11.272278+02:00 alpha rocketchat[6256]: 2024-08-31T19:40:11.271Z appsEngine:runtime:deno:8b882242-0cb7-419f-87d8-93b1d09e1ec2 Sending message to subprocess RequestObject { jsonrpc: '2.0', id: 'o85b4bui2ri', method: 'app:getStatus', params: [] }
2024-08-31T21:40:11.278080+02:00 alpha rocketchat[6256]: 2024-08-31T19:40:11.273Z appsEngine:runtime:deno:8b882242-0cb7-419f-87d8-93b1d09e1ec2 Received message from subprocess { jsonrpc: '2.0', id: 'o85b4bui2ri', result: { value: 'manually_enabled' } }
2024-08-31T21:40:11.278136+02:00 alpha rocketchat[6256]: 2024-08-31T19:40:11.273Z appsEngine:runtime:deno:8b882242-0cb7-419f-87d8-93b1d09e1ec2 Request o85b4bui2ri for method app:getStatus took 2ms
2024-08-31T21:40:16.748532+02:00 alpha rocketchat[6256]: 2024-08-31T19:40:16.747Z appsEngine:runtime:deno:ab4728ec-613e-472f-a24c-b48a77aacfff Sending message to subprocess '_zPING'
2024-08-31T21:40:16.768085+02:00 alpha rocketchat[6256]: 2024-08-31T19:40:16.767Z appsEngine:runtime:deno:ab4728ec-613e-472f-a24c-b48a77aacfff Received message from subprocess '_zPONG'
2024-08-31T21:40:16.768329+02:00 alpha rocketchat[6256]: 2024-08-31T19:40:16.767Z appsEngine:runtime:deno:ab4728ec-613e-472f-a24c-b48a77aacfff Ping successful in 20 ms
2024-08-31T21:40:17.323070+02:00 alpha rocketchat[6256]: 2024-08-31T19:40:17.322Z appsEngine:runtime:deno:8b882242-0cb7-419f-87d8-93b1d09e1ec2 Sending message to subprocess '_zPING'
2024-08-31T21:40:17.330387+02:00 alpha rocketchat[6256]: 2024-08-31T19:40:17.330Z appsEngine:runtime:deno:8b882242-0cb7-419f-87d8-93b1d09e1ec2 Received message from subprocess '_zPONG'
2024-08-31T21:40:17.330547+02:00 alpha rocketchat[6256]: 2024-08-31T19:40:17.330Z appsEngine:runtime:deno:8b882242-0cb7-419f-87d8-93b1d09e1ec2 Ping successful in 8 ms
2024-08-31T21:40:51.893877+02:00 alpha rocketchat[6256]: 2024-08-31T19:40:26.768Z appsEngine:runtime:deno:ab4728ec-613e-472f-a24c-b48a77aacfff Sending message to subprocess '_zPING'
2024-08-31T21:40:51.893917+02:00 alpha rocketchat[6256]: 2024-08-31T19:40:26.786Z appsEngine:runtime:deno:ab4728ec-613e-472f-a24c-b48a77aacfff Received message from subprocess '_zPONG'
2024-08-31T21:40:51.895283+02:00 alpha rocketchat[6256]: 2024-08-31T19:40:26.787Z appsEngine:runtime:deno:ab4728ec-613e-472f-a24c-b48a77aacfff Ping successful in 19 ms
2024-08-31T21:40:51.895324+02:00 alpha rocketchat[6256]: 2024-08-31T19:40:27.331Z appsEngine:runtime:deno:8b882242-0cb7-419f-87d8-93b1d09e1ec2 Sending message to subprocess '_zPING'
2024-08-31T21:40:51.895648+02:00 alpha rocketchat[6256]: 2024-08-31T19:40:27.342Z appsEngine:runtime:deno:8b882242-0cb7-419f-87d8-93b1d09e1ec2 Received message from subprocess '_zPONG'
2024-08-31T21:40:51.895735+02:00 alpha rocketchat[6256]: 2024-08-31T19:40:27.342Z appsEngine:runtime:deno:8b882242-0cb7-419f-87d8-93b1d09e1ec2 Ping successful in 11 ms
[...]
@reetp
Copy link

reetp commented Aug 24, 2024

I'm running a Docker installation instead of a manual setup.

Please fill out a bug template.

We can't help you without it.

https://github.com/RocketChat/Rocket.Chat/issues/new?assignees=&labels=&projects=&template=bug_report.md

@RavuAlHemio
Copy link

Given that the bug template contains a section "Steps to reproduce": how exactly does one, on a clean instance, reproduce an app being grandfathered?

@reetp
Copy link

reetp commented Aug 24, 2024

Given that the bug template contains a section "Steps to reproduce": how exactly does one, on a clean instance, reproduce an app being grandfathered?

Most likely you can't..... quite probably the devs can, or will know why this occurs.

Steps to reproduce (which is the information I was after) will likely be:

  • Originally Installed vx.x.x
  • Installed apps
  • Upgraded several version until vx.x.x
  • Apps then failed after upgrade from vx.x.x to v6.11.1

But that may be hard to reproduce with old apps that are no longer available.

@tapiarafael
Copy link
Member

@paulchen Can you run your setup using DEBUG=appsEngine:runtime:* variable? This will enable some logs that may help us to understand what's happening. Please, be aware that this will show a lot of logs depending on the number of apps that you have installed. You can also use DEBUG=appsEngine:runtime:deno:[APP_ID] to show logs only for a single app.

@Mal0815
Copy link

Mal0815 commented Aug 30, 2024

Hi! I'm having the same problem. I updated the server from <6.10 to 6.11 directly without updating to 6.10.
I tried to get this debug running. Here is the output after trying to (re)install an app.
I hope this helps you.
debug_rocketchat.txt

@reetp
Copy link

reetp commented Aug 30, 2024

Hi! I'm having the same problem. I updated the server from <6.10 to 6.11 directly without updating to 6.10.

Please fill out a bug template with your server details and your update history. Which version did you upgrade from? It may be the same issue, and it may not.

@Mal0815
Copy link

Mal0815 commented Aug 30, 2024

I did. :) Is there a way to get the actual update history of the rocketchat server?

@reetp
Copy link

reetp commented Aug 30, 2024

I did. :)

Why on earth did you open a duplicate issue? All you had to do was put the server info here so we could see that you were using the same setup. Like this:

Version 6.11.1
Version der Anwendungs-Engine 1.44.0
Node-Version v14.21.3
Datenbankmigration 304 (30. August 2024 10:57)
MongoDB 5.0.28 / wiredTiger (oplog Deaktiviert)
Details festschreiben HEAD: (12e000d)
Zweig: HEAD Release 6.11.1

Starter license 1 instance
approx. 10 Users
OS: Debian 11
Deployment on Debian

Is there a way to get the actual update history of the rocketchat server?

Only via your logs as far as I remember.

@Mal0815
Copy link

Mal0815 commented Aug 30, 2024

Sorry, I'm new to this. I used the link above for the template as you said fill out the template.

@paulchen
Copy link
Author

paulchen commented Aug 31, 2024

I'm running a Docker installation instead of a manual setup.

Please fill out a bug template.

@reetp I updated my initial comment to include the sections that I initially left out.

@paulchen Can you run your setup using DEBUG=appsEngine:runtime:* variable? This will enable some logs that may help us to understand what's happening. Please, be aware that this will show a lot of logs depending on the number of apps that you have installed. You can also use DEBUG=appsEngine:runtime:deno:[APP_ID] to show logs only for a single app.

@tapiarafael I ran my setup with that environment variable. I added the log output to the initial comment.

Hi! I'm having the same problem. I updated the server from <6.10 to 6.11 directly without updating to 6.10. I tried to get this debug running. Here is the output after trying to (re)install an app. I hope this helps you. debug_rocketchat.txt

@Mal0815 This is in fact possibly related. Your log contains the error Timeout: app process not ready that I observed as well.

However, my current "problem" is that after a reboot of the server running Docker, the apps work as expected and I do not experience the problem reported in this issue anymore.

Please be aware that due to various professional and private obligations, my replies to comments in this issue might be severely delayed in the next few weeks.

@Mal0815
Copy link

Mal0815 commented Sep 3, 2024

Good morning!
For me, a reboot didn't solve the problem.
Can I do something else?
The logs from @paulchen look different. I guess, I set the DEBUG=appsEngine:runtime:* option wrong.
I added

[Service]
ENVIRONMENT=DEBUG=appsEngine:runtime:*

by running systemctl edit rocketchat.service for my deployment on debian. Is this correct?

@keithdanielll
Copy link

Copy link
Contributor

This issue has been marked as stale because there has been no further activity in the last 10 days. If the issue remains stale for the next 4 days (a total of 14 days with no activity), then it will be assumed that the question has been resolved and the issue will be automatically closed.

@github-actions github-actions bot added the stat: no response Issue with no response after a given time label Sep 23, 2024
@paulchen
Copy link
Author

I guess, I set the DEBUG=appsEngine:runtime:* option wrong. I added

[Service]
ENVIRONMENT=DEBUG=appsEngine:runtime:*

by running systemctl edit rocketchat.service for my deployment on debian. Is this correct?

I think so.

This issue has been marked as stale because there has been no further activity in the last 10 days. If the issue remains stale for the next 4 days (a total of 14 days with no activity), then it will be assumed that the question has been resolved and the issue will be automatically closed.

The issue still persists. Today, I updated my setup to Rocket.Chat 6.12.1.

@github-actions github-actions bot removed the stat: no response Issue with no response after a given time label Sep 24, 2024
@Mal0815
Copy link

Mal0815 commented Sep 24, 2024

The issue still persists. Today, I updated my setup to Rocket.Chat 6.12.1.

Yep

Copy link
Contributor

github-actions bot commented Oct 8, 2024

This issue has been marked as stale because there has been no further activity in the last 10 days. If the issue remains stale for the next 4 days (a total of 14 days with no activity), then it will be assumed that the question has been resolved and the issue will be automatically closed.

@github-actions github-actions bot added the stat: no response Issue with no response after a given time label Oct 8, 2024
@paulchen
Copy link
Author

paulchen commented Oct 8, 2024

This issue has been marked as stale because there has been no further activity in the last 10 days. If the issue remains stale for the next 4 days (a total of 14 days with no activity), then it will be assumed that the question has been resolved and the issue will be automatically closed.

The issue still persists. No Rocket.Chat update was released in the meantime.

The fact that I have to write a comment in this thread every two weeks because there is no activity by the Rocket.Chat team is slightly annoying.

@reetp
Copy link

reetp commented Oct 8, 2024

Rocket is a big org and paid customers come first.

If you have a paid subscription you can contact support directly.

Otherwise, as you know, it is open source. YMMV. There are no guarantees.

I know devs have been putting in hours on v7 which is their focus right now. Doesn't help.

Also difficult to reproduce so hard to debug.

@RavuAlHemio
Copy link

If the Rocket team cannot get to this issue within ten days, they should turn off the bot.

@paulchen
Copy link
Author

paulchen commented Oct 8, 2024

If the Rocket team cannot get to this issue within ten days, they should turn off the bot.

This.

Just to be clear, I don't expect anything to happen within any timeframe. I'm also fine with closing issues that have been waiting for input from the reporter for a long time. However, I don't see any point in generating two comments in this issue every two weeks just to make sure it doesn't get closed.

@reetp
Copy link

reetp commented Oct 8, 2024

Regrettably a large number of issues are just left and not closed by the OPs even if they have a solution, or possibly fixed but not tagged.

Hence umpteen thousand open issues, most of which in reality could be closed.

This is an exception to the rule.

Note. When I worked at Rocket we did take the bot off, which is fine if managed continuously.

But I left, and again, no one in the community steps up to help. If the community isn't bothered to help? 🤷‍♂️

You reap what you sow.

I do what I can, as and when I can. Currently trying to relax with a glass of wine on the sofa after a long day :-)


The dev did respond, but without being able to recreate this it will be difficult, and I'd imagine the short answer might be to remove apps and install fresh versions to see if it clears it.

You did that on the test vm and it worked?

@github-actions github-actions bot removed the stat: no response Issue with no response after a given time label Oct 9, 2024
@paulchen
Copy link
Author

paulchen commented Oct 9, 2024

The dev did respond, but without being able to recreate this it will be difficult, and I'd imagine the short answer might be to remove apps and install fresh versions to see if it clears it.

You did that on the test vm and it worked?

I just tried that once more, to no avail. This error showed up:

image

From the logs:

2024-10-09T19:48:07.426320+02:00 alpha rocketchat-dev[6250]: {"level":35,"time":"2024-10-09T17:48:07.426Z","pid":1,"hostname":"47edcc1048c6","name":"API","method":"POST","url":"/api/apps","userId":"xq7oE4mtb2nEcfe2m","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Rocket.Chat/4.1.1 Chrome/126.0.6478.234 Electron/31.6.0 Safari/537.36","length":"85","host":"localhost:3001","referer":"https://chat-dev.rueckgr.at/marketplace/explore","remoteIP":"188.23.44.241","err":{"type":"Error","message":"App already has an associated runtime","stack":"Error: App already has an associated runtime\n    at AppRuntimeManager.<anonymous> (/app/bundle/programs/server/npm/node_modules/@rocket.chat/apps-engine/server/managers/AppRuntimeManager.js:23:23)\n    at Generator.next (<anonymous>)\n    at /app/bundle/programs/server/npm/node_modules/@rocket.chat/apps-engine/server/managers/AppRuntimeManager.js:8:71\n    at new Promise (<anonymous>)\n    at __awaiter (/app/bundle/programs/server/npm/node_modules/@rocket.chat/apps-engine/server/managers/AppRuntimeManager.js:4:12)\n    at AppRuntimeManager.startRuntimeForApp (/app/bundle/programs/server/npm/node_modules/@rocket.chat/apps-engine/server/managers/AppRuntimeManager.js:20:16)\n    at AppCompiler.<anonymous> (/app/bundle/programs/server/npm/node_modules/@rocket.chat/apps-engine/server/compiler/AppCompiler.js:28:56)\n    at Generator.next (<anonymous>)\n    at /app/bundle/programs/server/npm/node_modules/@rocket.chat/apps-engine/server/compiler/AppCompiler.js:8:71\n    at new Promise (<anonymous>)\n    at __awaiter (/app/bundle/programs/server/npm/node_modules/@rocket.chat/apps-engine/server/compiler/AppCompiler.js:4:12)\n    at AppCompiler.toSandBox (/app/bundle/programs/server/npm/node_modules/@rocket.chat/apps-engine/server/compiler/AppCompiler.js:24:16)\n    at AppManager.<anonymous> (/app/bundle/programs/server/npm/node_modules/@rocket.chat/apps-engine/server/AppManager.js:398:50)\n    at Generator.next (<anonymous>)\n    at fulfilled (/app/bundle/programs/server/npm/node_modules/@rocket.chat/apps-engine/server/AppManager.js:5:58)\n    at /app/bundle/programs/server/npm/node_modules/meteor/promise/node_modules/meteor-promise/fiber_pool.js:43:40\n => awaited here:\n    at Function.Promise.await (/app/bundle/programs/server/npm/node_modules/meteor/promise/node_modules/meteor-promise/promise_server.js:56:12)\n    at ee/server/apps/communication/rest.ts:402:15\n    at /app/bundle/programs/server/npm/node_modules/meteor/promise/node_modules/meteor-promise/fiber_pool.js:43:40\n => awaited here:\n    at Function.Promise.await (/app/bundle/programs/server/npm/node_modules/meteor/promise/node_modules/meteor-promise/promise_server.js:56:12)\n    at packages/meteor.js:367:22\n    at Meteor.EnvironmentVariable.EVp.withValue (packages/meteor.js:1389:31)\n    at app/api/server/api.ts:649:39\n    at /app/bundle/programs/server/npm/node_modules/meteor/promise/node_modules/meteor-promise/fiber_pool.js:43:40"},"status":400,"responseTime":2857,"msg":"App already has an associated runtime"}

Copy link
Contributor

This issue has been marked as stale because there has been no further activity in the last 10 days. If the issue remains stale for the next 4 days (a total of 14 days with no activity), then it will be assumed that the question has been resolved and the issue will be automatically closed.

@github-actions github-actions bot added the stat: no response Issue with no response after a given time label Oct 23, 2024
@amsnek
Copy link

amsnek commented Nov 11, 2024

Did you try updating deno on RC 7.0.0? For me it didnt work until I updated to version
"deno 1.43.6 (release, x86_64-unknown-linux-gnu)" -> this one worked for me
deno 2.x had issues for me too (?)
Since I am airgapped I need to re-consider if allowing RC access to internet (also there seems no documentation what it needs to be able to access) or purchase a license for it.

@Gummikavalier
Copy link

@amsnek Yes, I did run deno upgrade --version 1.43.6. I'll continue testing at some point but will take a while.

Airgapped is our requirement too, and we'd prefer deno to be bundled with RC directly. We download apps using an online instance and then upload those apps as private apps into airgapped ones.

@amsnek
Copy link

amsnek commented Nov 11, 2024

@Gummikavalier ah, I build and package an RPM for an rhel8 install -> similiar to TAR install I suppose. I use rc-apps deploy to install locally.
Starting with 7.0.0 it seems not possible anymore to use an airgapped install though, at least not with community license.
Some (old) apps on my Test Instance didnt compile (things I dont actually use, just installed for testing at some point) but the most important component "jitsi" works.
I addded the PATH to the deno binary in my custom "sysconfig" file used by systemd

EnvironmentFile=-/etc/rocketchat/sysconfig
PATH=$PATH:/rocketchat/bin

@reetp
Copy link

reetp commented Nov 11, 2024

Deno - see here. I have asked that all the docs be updated.

Deploying Rocket.Chat requires Deno.  

Only Deno versions >=1.37.1 and <2.0.0 are supported.

https://docs.rocket.chat/docs/deploy-with-ubuntu

For airgapped please see this:

https://docs.rocket.chat/v1/docs/rocketchat-release-notes

@d-gubert
Copy link
Member

@Mal0815 can you try downgrading Deno to 1.37.1? deno upgrade --version 1.37.1 The errors look like deno is not being able to correctly read the cached dependencies

@Mal0815
Copy link

Mal0815 commented Nov 11, 2024

Hi! I did the downgrade:

user@webserver:~$ sudo -u rocketchat deno --version
deno 1.37.1 (release, x86_64-unknown-linux-gnu)
v8 11.8.172.6
typescript 5.2.2

Now, I can successfully install a new app. Giphy works, too! Great step forward. :)
But Poll doesn't work (other error than "Timeout: app process not ready"):

{"level":20,"time":"2024-11-11T15:53:34.538Z","pid":666,"hostname":"webserver","name":"System","msg":"Workspace credentials cache hit using scope: workspace:license:read workspace:client:write workspace:stats:write workspace:push:send marketplace:read marketplace:download fedhub:register. Avoiding generating a new access token from cloud services."} 
{"level":35,"time":"2024-11-11T15:53:35.431Z","pid":666,"hostname":"webserver","name":"API","method":"POST","url":"/api/apps","userId":"qEYeqtt5vbZeqwuTZ","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36 Edg/130.0.0.0","length":"85","host":"server","referer":"https://server/marketplace/explore/list","remoteIP":"192.168.2.34","err":{"type":"Error","message":"App already has an associated runtime","stack":"Error: App already has an associated runtime<br>    at AppRuntimeManager.<anonymous> (/opt/Rocket.Chat/programs/server/npm/node_modules/@rocket.chat/apps-engine/src/server/managers/AppRuntimeManager.ts:28:19)<br>    at Generator.next (<anonymous>)<br>    at /opt/Rocket.Chat/programs/server/npm/node_modules/@rocket.chat/apps-engine/server/managers/AppRuntimeManager.js:8:71<br>    at new Promise (<anonymous>)<br>    at __awaiter (/opt/Rocket.Chat/programs/server/npm/node_modules/@rocket.chat/apps-engine/server/managers/AppRuntimeManager.js:4:12)<br>    at AppRuntimeManager.startRuntimeForApp (/opt/Rocket.Chat/programs/server/npm/node_modules/@rocket.chat/apps-engine/server/managers/AppRuntimeManager.js:20:16)<br>    at AppCompiler.<anonymous> (/opt/Rocket.Chat/programs/server/npm/node_modules/@rocket.chat/apps-engine/src/server/compiler/AppCompiler.ts:24:52)<br>    at Generator.next (<anonymous>)<br>    at /opt/Rocket.Chat/programs/server/npm/node_modules/@rocket.chat/apps-engine/server/compiler/AppCompiler.js:8:71<br>    at new Promise (<anonymous>)<br>    at __awaiter (/opt/Rocket.Chat/programs/server/npm/node_modules/@rocket.chat/apps-engine/server/compiler/AppCompiler.js:4:12)<br>    at AppCompiler.toSandBox (/opt/Rocket.Chat/programs/server/npm/node_modules/@rocket.chat/apps-engine/server/compiler/AppCompiler.js:24:16)<br>    at AppManager.<anonymous> (/opt/Rocket.Chat/programs/server/npm/node_modules/@rocket.chat/apps-engine/src/server/AppManager.ts:585:46)<br>    at Generator.next (<anonymous>)<br>    at fulfilled (/opt/Rocket.Chat/programs/server/npm/node_modules/@rocket.chat/apps-engine/server/AppManager.js:5:58)<br>    at processTicksAndRejections (node:internal/process/task_queues:95:5)"},"status":400,"responseTime":1301,"msg":"App already has an associated runtime"} 

Edit:
I did a license resync. Now Poll is running, too.

Thank you very much! :)))

Edit:
Upgrade from 1.37.1 to 1.46.3 doesn't work. I will check other versions later.

@d-gubert
Copy link
Member

That's great! So apparently the version of Deno that installations must get should be exactly 1.37.1? Let's see if this solves the problems for others as well

@paulchen
Copy link
Author

Unfortunately, my Docker-based setup still doesn't work as expected. I managed to get both GIPHY and Tenor running by executing these steps:

  • Uninstall both apps.
  • Restart the Docker container.
  • Reinstall both apps.

However, after restarting the container once more, I once more get the "Timeout: app process not ready" error message. I tried reapplying the above steps once more, but now the apps won't at all. When installing them, I get the "Timeout: app process not ready" error. The situation is basically the same as initially reported.

I'll give it a try whether I can replicate this in a separate Docker Compose setup like in #33140 (comment). However, this might take some time as I have a lot of other stuff to do.

@paulchen @amsnek what version of the apps are you on?

  • Rocket.Chat 7.0.0
  • GIPHY 0.0.6
  • Tenor 0.0.5

These are the most recent versions.

@d-gubert
Copy link
Member

Hey @paulchen, that's really weird for a Docker deployment to not be able to start the process, as we package the very version of Deno we used for development with Rocket.Chat.

One thing that crosses my mind is the possibility that the server isn't able to retrieve the actual zip package from where it is stored. By default this is configured to be the database, which shouldn't pose any problems when switching to docker deployment, but if you happen to have changed that previously the container might not be able to access the files after restart.

@Gummikavalier
Copy link

Gummikavalier commented Nov 11, 2024

There is good info here and I'm sure I'll get deno working alright if I download it from deno.land site and set it up that way.

But I also understood that deno runtime is packaged with RC 7.0.0 tar but just needs compiling with correct commands and path variable in place.

I'm still puzzled why if I follow this instruction with RHEL8, and I assume this is the way it should be done from now on with RHEL based tar installs:
https://docs.rocket.chat/docs/deploy-with-centos

su - rocketchat (or should I use root?)
cd /opt/rocketchat/programs/server/npm/node_modules/@rocket.chat/apps-engine/
mkdir -p /home/rocketchat/.cache
npm install --production

With above I get end result:

[rocketchat@testserver apps-engine]$ npm install --production
npm warn config production Use `--omit=dev` instead.
npm error code EUNSUPPORTEDPROTOCOL
npm error Unsupported URL Type "workspace:": workspace:~

But when I compile RC 7.0.0 (and any other previous versions of RC by far) works ok but does not seem to compile deno:

cd /opt/rocketchat/programs/server
npm install

So I'm just puzzled now whether the new apps-engine path for starting compiling works for RHEL8 at all.

@d-gubert
Copy link
Member

https://docs.rocket.chat/docs/deploy-with-centos does seem to be missing the Deno installation instructions, I'll check with the team.

But I also understood that deno runtime is packaged with RC 7.0.0 tar

Not exactly, what we do is package the dependencies used by the deno program that serves as the runtime, but the executable itself needs to be installed in the host system. Also note, as we seem to have found above, it seems that Deno should be on version 1.37.1 to properly work with the dependencies (detail to be updated in the docs).

With above I get end result:

This step should not be taken for 7.0. There was a change in the internals of the apps-engine, that's why you're seeing the "Unsupported URL Type "workspace:": workspace:~" error.

@Mal0815
Copy link

Mal0815 commented Nov 12, 2024

Hi again. FYI:
Upgrade 1.37.1 --> 1.38.0 ok
Upgrade 1.37.1 --> 1.39.0 not ok

I'll stick with 1.37.1

Bye. :)

@Gummikavalier
Copy link

@d-gubert Thanks for clarifying these out. Appreciated! 🤗

@paulchen
Copy link
Author

I'll give it a try whether I can replicate this in a separate Docker Compose setup like in #33140 (comment). However, this might take some time as I have a lot of other stuff to do.

I used the above docker-compose.yml file, but immediately started with Rocket.Chat 7.0.0.

  • On my local machine, I could not reproduce the problem. Both GIPHY and Tenor work as expected.
  • On the server (where my main Rocket.Chat instance is running as well), I can reproduce the problem.

I don't know what's going on. However, I have a suspicion: My local machine is not under load, my server is.

So my question: May the problem simply be that nothing is broken, but something is simply taking too long?

When installing an application fails, the log looks like this:

2024-11-12T20:40:36.081Z appsEngine:runtime:deno:ab4728ec-613e-472f-a24c-b48a77aacfff Setting up app subprocess
2024-11-12T20:40:36.090Z appsEngine:runtime:deno:ab4728ec-613e-472f-a24c-b48a77aacfff Started subprocess 18 with options [
  'run',
  '--allow-net',
  '--allow-read=/app/bundle/programs/server/npm/node_modules/@rocket.chat/apps-engine,/app/bundle/programs/server/npm/node_modules',
  '--allow-env=NODE_EXTRA_CA_CERTS',
  '/app/bundle/programs/server/npm/node_modules/@rocket.chat/apps-engine/deno-runtime/main.ts',
  '--subprocess',
  'ab4728ec-613e-472f-a24c-b48a77aacfff'
] and env {
  env: {
    PATH: '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin',
    DENO_DIR: '/app/bundle/programs/server/npm/node_modules/@rocket.chat/apps-engine/.deno-cache'
  }
}
{"level":35,"time":"2024-11-12T20:40:46.110Z","pid":1,"hostname":"50fa7c8c7536","name":"API","method":"POST","url":"/api/apps","userId":"xq7oE4mtb2nEcfe2m","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36","length":"85","host":"localhost:3001","referer":"https://chat-dev.rueckgr.at/marketplace/explore/info/ab4728ec-613e-472f-a24c-b48a77aacfff/0.0.5/details","remoteIP":"2001:871:261:9c1a:ef5c:1ac:edce:13fe","err":{"type":"Error","message":"[ab4728ec-613e-472f-a24c-b48a77aacfff] Timeout: app process not ready","stack":"Error: [ab4728ec-613e-472f-a24c-b48a77aacfff] Timeout: app process not ready\n    at Timeout._onTimeout (/app/bundle/programs/server/npm/node_modules/@rocket.chat/apps-engine/src/server/runtime/deno/AppsEngineDenoRuntime.ts:277:55)\n    at listOnTimeout (node:internal/timers:581:17)\n    at processTimers (node:internal/timers:519:7)"},"status":400,"responseTime":11123,"msg":"[ab4728ec-613e-472f-a24c-b48a77aacfff] Timeout: app process not ready"}
2024-11-12T20:41:04.959Z appsEngine:runtime:deno:ab4728ec-613e-472f-a24c-b48a77aacfff Received message from subprocess { jsonrpc: '2.0', method: 'ready' }

At 20:40:36.090, the subprocess for the app is started. At 20:40:46.110 (about 10s later), the "Timeout: app process not ready" error occurs. At 20:41:04.959, the subprocess sends a message about being ready (which is too late).

However, when installing the app succeeds (which happens every now and then), the logs look like this:

2024-11-12T20:41:19.930Z appsEngine:runtime:deno:8b882242-0cb7-419f-87d8-93b1d09e1ec2 Setting up app subprocess
2024-11-12T20:41:19.933Z appsEngine:runtime:deno:8b882242-0cb7-419f-87d8-93b1d09e1ec2 Started subprocess 57 with options [
  'run',
  '--allow-net',
  '--allow-read=/app/bundle/programs/server/npm/node_modules/@rocket.chat/apps-engine,/app/bundle/programs/server/npm/node_modules',
  '--allow-env=NODE_EXTRA_CA_CERTS',
  '/app/bundle/programs/server/npm/node_modules/@rocket.chat/apps-engine/deno-runtime/main.ts',
  '--subprocess',
  '8b882242-0cb7-419f-87d8-93b1d09e1ec2'
] and env {
  env: {
    PATH: '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin',
    DENO_DIR: '/app/bundle/programs/server/npm/node_modules/@rocket.chat/apps-engine/.deno-cache'
  }
}
2024-11-12T20:41:20.040Z appsEngine:runtime:deno:8b882242-0cb7-419f-87d8-93b1d09e1ec2 Received message from subprocess { jsonrpc: '2.0', method: 'ready' }
2024-11-12T20:41:20.040Z appsEngine:runtime:deno:8b882242-0cb7-419f-87d8-93b1d09e1ec2 Sending message to subprocess '_zPING'
2024-11-12T20:41:20.041Z appsEngine:runtime:deno:8b882242-0cb7-419f-87d8-93b1d09e1ec2 Sending message to subprocess RequestObject { jsonrpc: '2.0', id: 'kzr26b1moo', method: 'app:construct', params: [ { info: [Object], files: [Object], languageContent: [Object], implemented: [AppImplements] } ] }
2024-11-12T20:41:20.045Z appsEngine:runtime:deno:8b882242-0cb7-419f-87d8-93b1d09e1ec2 Received message from subprocess '_zPONG'

At 20:41:19.933, the subprocess for the app is started. At 20:41:20.040, the subprocess is ready. Subsequently, additional methods can be called.

However, I have no idea on how to deal with this.

@Gummikavalier
Copy link

Gummikavalier commented Nov 13, 2024

I had now time to study my RHEL8 + TAR case more.

Got it working. To find deno binary I had used DENO_DIR= when actually rocketchat.service file requires PATH= in the end of the Environment= string.

Deno in RHEL8 with RC TAR install:

Deno install:
-------------
# su - rocketchat

$ curl -fsSL https://deno.land/install.sh > install.sh
$ sh install.sh
 * select your shells with space when requested!

Ctrl-d to go back as root and again:
# su - rocketchat

$ deno upgrade --version 1.37.1


RC install (after copying bundle to your install location):
-----------------------------------------------------------
Note! Remember that required node.js version changes in RC 7.0.0 to 20.17.0!

# su - rocketchat

cd YOURINSTALLPATH/rocketchat/programs/server
npm install


Starting RC:
------------
As root:

Edit /usr/lib/systemd/system/rocketchat.service file:
 * At the end of the Environment= line add PATH=/home/rocketchat/.deno/bin

# systemctl daemon-reload
# systemctl start rocketchat.service

sandrotanner added a commit to sandrotanner/Docker.Official.Image that referenced this issue Nov 26, 2024
Apparently deno is now required to run some apps from the marketplace (like jitsi) https://docs.rocket.chat/docs/deploy-with-ubuntu#install-deno

It has to be exactly version 1.37.1 as per RocketChat/Rocket.Chat#33140
Copy link
Contributor

This issue has been marked as stale because there has been no further activity in the last 10 days. If the issue remains stale for the next 4 days (a total of 14 days with no activity), then it will be assumed that the question has been resolved and the issue will be automatically closed.

@github-actions github-actions bot added the stat: no response Issue with no response after a given time label Dec 18, 2024
@paulchen
Copy link
Author

The issue persists, I'm now on 7.1.0.

@github-actions github-actions bot removed the stat: no response Issue with no response after a given time label Dec 18, 2024
@reetp
Copy link

reetp commented Dec 18, 2024

The issue persists, I'm now on 7.1.0.

Reminder sent.

@reetp reetp added Tasked Added to the internal issue tracking and removed stat: waiting response labels Dec 18, 2024
@dullahan8
Copy link

Got this working with deno --upgrade 1.43.6 and RC 7.1.0. and Rocky 9.2.

It would be great if the instructions at https://docs.rocket.chat/docs/deploy-with-centos (and others if applicable) were updated because my road to get here was quite rocky (pun intended), particularly with the following:

  • how to upgrade to the correct deno version
  • npm install --production > yarn install --production
  • removing npm run postinstall
  • adding deno's bin directory to the Environment=PATH in the service file

@reetp
Copy link

reetp commented Dec 23, 2024

First note right at the top of the page it says:

The recommended deployment methods are Docker, AWS, and Kubernetes.

That's it. Otherwise YMMV.

how to upgrade to the correct deno version

In the doc there is a link to the deno guide:

"Install Deno: Only Deno versions >=1.37.1 and <2.0.0 are supported.
Follow the Deno installation guide to install the correct version."

adding deno's bin directory to the Environment=PATH in the service file

See:

"Additional steps for installing 6.10 release"

(Should probably say 6.10+)

Eg

export DENO_DIR=/home/rocketchat/.cache/deno
npm install --production 
npm run postinstall

removing npm run postinstall

Not everyone may want too...

You can add notes to docs where it says

"Was this article helpful?"

Unless you follow the recommended deployment methods you may face issues.

Also note it always helps to read all the docs for all the deployment methods.

@dullahan8
Copy link

dullahan8 commented Dec 23, 2024

First note right at the top of the page it says:

The recommended deployment methods are Docker, AWS, and Kubernetes.

That's it. Otherwise YMMV.

Yes, but if you are going to supply a page to support CentOS, then it should be maintained as well.

how to upgrade to the correct deno version

In the doc there is a link to the deno guide:

"Install Deno: Only Deno versions >=1.37.1 and <2.0.0 are supported. Follow the Deno installation guide to install the correct version."

Fair enough. That was my mistake.

adding deno's bin directory to the Environment=PATH in the service file

See:

"Additional steps for installing 6.10 release"

(Should probably say 6.10+)

Eg

export DENO_DIR=/home/rocketchat/.cache/deno
npm install --production 
npm run postinstall

This was not sufficient. I had to export PATH=/home/rocketchat/.cache/deno/bin:$PATH as well to make it run otherwise it would not find the deno binary to compile the apps when you try to install them.

removing npm run postinstall

Not everyone may want too...

npm run postinstall is completely missing from package.json, it will not work in any situation.

You can add notes to docs where it says

"Was this article helpful?"

Unless you follow the recommended deployment methods you may face issues.

Also note it always helps to read all the docs for all the deployment methods.

I appreciate the time taken for the response though. I'll submit a request to improve the article through the feedback link.

@reetp
Copy link

reetp commented Dec 24, 2024

I did say quite clearly their docs tell you:

"The recommended deployment methods are Docker, AWS, and Kubernetes.

That's it. Otherwise YMMV. <<

Yes, but if you are going to supply a page to support CentOS, then it should be maintained as well.

Unfortunately it doesn't work like that.... They could just as easily pull it as it isn't a supported install..... They have slowly deprecated unsupported stuff over time.

They maintain as and when on a " best effort" basis... It is what it is. (note I don't work here so don't shoot the messenger!!)

 I'll submit a request to improve the article through the feedback link.

Cool. Please also post your notes on open.rocket.chat - you'll find me there - and I'll try and push the team to get it updated (There is a lot of stuff out of date)

@dullahan8
Copy link

dullahan8 commented Dec 24, 2024

They maintain as and when on a " best effort" basis... It is what it is. (note I don't work here so don't shoot the messenger!!)

I apologize if I came across harsh. I was at the peak of frustration with the install. I do appreciate that there being any documentation at all, I would have been more lost if there had been none.

Happy holidays.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Tasked Added to the internal issue tracking
Projects
None yet
Development

No branches or pull requests