Rocket.Chat icon indicating copy to clipboard operation
Rocket.Chat copied to clipboard

[5.4.0-rc.0] Administration -> Apps does not work

Open paulchen opened this issue 3 years ago • 6 comments

Description:

After navigating to the "Administration" page, clicking the menu item "Apps" does not work.

Steps to reproduce:

  1. Click on the kebap menu above the channel list and select "Administration".
  2. Click on the menu item "Apps".

Expected behavior:

The page /admin/marketplace/all/list is opened.

Actual behavior:

Nothing happens.

Clicking on "Marketplace" in the kebab menu works, as well as explicitely navigating to the Apps page by entering the URL into the address bar.

Server Setup Information:

  • Version of Rocket.Chat Server: 5.4.0-rc.0
  • Deployment Method: Docker
  • Number of Running Instances: 1
  • MongoDB Version: 5.0.14 / wiredTiger (oplog Enabled)

Client Setup Information

  • Desktop App or Browser Version:
    • Version 107.0.5304.110 (Offizieller Build) Arch Linux (64-Bit)
    • Mozilla Firefox for Arch Linux 107.0 (64-bit)
  • Operating System: Arch Linux

Relevant logs:

Upon clicking the menu item "Apps", the following error is logged in the Browser console:

95bbc042fcc189879df953f0c42d5e017736ef36.js?meteor_js_resource=true:1483 Uncaught Error: redirect needs to be done in sync
    at c (95bbc042fcc189879df953f0c42d5e017736ef36.js?meteor_js_resource=true:1483:1355)
    at s.triggersEnter (95bbc042fcc189879df953f0c42d5e017736ef36.js?meteor_js_resource=true:1580:3634179)
    at h.runTriggers (95bbc042fcc189879df953f0c42d5e017736ef36.js?meteor_js_resource=true:1483:1271)
    at o._actionHandle (95bbc042fcc189879df953f0c42d5e017736ef36.js?meteor_js_resource=true:1483:2874)
    at 95bbc042fcc189879df953f0c42d5e017736ef36.js?meteor_js_resource=true:1483:14766
    at o (95bbc042fcc189879df953f0c42d5e017736ef36.js?meteor_js_resource=true:1483:14186)
    at 95bbc042fcc189879df953f0c42d5e017736ef36.js?meteor_js_resource=true:1483:14773
    at o (95bbc042fcc189879df953f0c42d5e017736ef36.js?meteor_js_resource=true:1483:14186)
    at 95bbc042fcc189879df953f0c42d5e017736ef36.js?meteor_js_resource=true:1483:14773
    at o (95bbc042fcc189879df953f0c42d5e017736ef36.js?meteor_js_resource=true:1483:14186)

paulchen avatar Nov 24 '22 21:11 paulchen

Hi @paulchen thanks for the report here. We tried to replicate the issue, but couldn't, at least on the latest version of 5.4.0. Below gif is our view and all seems ok. marketplace_not_loading

Can you try again with latest version and see if all good? if not, would you mind sharing with us in more details the steps to reproduce? Many thanks!

casalsgh avatar Nov 25 '22 14:11 casalsgh

Hi @casalsgh, thanks for your reply.

I just tried it out with both the current 5.4.0-rc.1 and develop images from Docker Hub. The issue persists, it also occurs when connecting from a Windows machine, both via browser and Electron client.

I'll try it out with a completely fresh set of MongoDB and Rocket.Chat. Maybe something is wrong with the Rocket.Chat instance I'm using for trying out stuff.

Regarding the steps to reproduce: It's exactly what is shown in your GIF.

paulchen avatar Nov 25 '22 16:11 paulchen

Interesting. Ok, when you try with a fresh set let us know. Thanks for feedback and confirming versions and steps to reproduce.

casalsgh avatar Nov 25 '22 19:11 casalsgh

I can reproduce this in a fresh installation of Rocket.Chat using Docker on Arch Linux:

  1. Start MongoDB: docker run --name mongo_test mongo:5.0.14 mongod --oplogSize 128 --replSet rs0 --storageEngine=wiredTiger
  2. Initialize the MongoDB replica set: docker exec -it mongo_test mongo localhost/rocketchat --eval "rs.initiate({ _id: 'rs0', members: [ { _id: 0, host: 'localhost:27017' } ]})"
  3. Run Rocket.Chat: docker run --name rocketchat_test -e MONGO_OPLOG_URL=mongodb://mongo:27017/local?directConnection=true -e MONGO_URL=mongodb://mongo:27017/rocketchat?directConnection=true --link mongo_test:mongo -p 127.0.0.1:3000:3000 rocketchat/rocket.chat:develop
  4. Point the browser to http://localhost:3000 and set up Rocket.Chat as a stand-alone instance.
  5. Follow the steps as described in the initial error report.

I recorded my screen when following these steps:

https://user-images.githubusercontent.com/404840/204060129-17657475-4b63-4a7f-8e2c-a5f81ce55611.mp4

Note the German names:

  • "Arbeitsbereich" translates to "Workspace"
  • "Marktplatz" translates to "Marketplace"
  • "Anwendungen" translates to "Apps"

paulchen avatar Nov 25 '22 22:11 paulchen

Checking and will get back

casalsgh avatar Nov 29 '22 13:11 casalsgh

@paulchen does this happen for on all browsers? ~Aside from trying it on Arch, we have followed your steps exactly and haven't been able to reproduce it for some odd reason. I'm trying to nail down the differences and why this would be happening to you and not for us.~

I misunderstood something. We have been able to reproduce it when using Docker. However, when we go to fix it locally we are unable to reproduce it.

graywolf336 avatar Nov 29 '22 19:11 graywolf336

Hey @paulchen. First of all, thanks a lot for finding and reporting this bug. This issue was caused by a problem between a flow router event called triggersEnter, which we use for rerouting in marketplace, and some production build steps, you can read more about the solution for this in the PR mentioned above. Once again, thanks for your input; this should be solved soon once the PR is merged.

rique223 avatar Dec 01 '22 15:12 rique223

@paulchen fix was merged and will be on the latest version of 5.4.0 release (to be out anytime soon). Thanks for your feedback and engagement here!

casalsgh avatar Dec 01 '22 20:12 casalsgh

@casalsgh @rique223 @graywolf336 Thanks for taking care of this problem!

I just tried out the latest develop image from Docker Hub which already contains the fix. I can confirm that the issue is now fixed.

paulchen avatar Dec 01 '22 21:12 paulchen