Recent searches


No recent searches

Unable to update (already installed) custom sidebar app with zcli



Posted Apr 15, 2024

Hello,

I've been having a lot of trouble trying to update a zendesk custom app through my CLI (as well as through github actions).

I've set up my zcli using this guide, however every time I run "zcli apps:update dist" the process hangs.

This is what I see on the terminal:

Uploading app... Uploaded
Deploying app... ⣷


Can't find many references online for this issue, the only one I found was this, which prompted me to triple-check the app-id, and it is indeed correct. The post had a proposed github gist that would update the custom app via a shell script, but even though I can get that gist to run in its completion, the app does not actually update. Sometimes, it will eventually just give me the following timeout error:

Deploying app... done
node:internal/process/promises:288
triggerUncaughtException(err, true /* fromPromise */);
AxiosError: read ETIMEDOUT


Just noting that manually uploading the packaged app-XXXXXXX.zip file from the admin console by clicking "Update", the process works as expected, but ideally I'd like to do that via cli.

I have tried re-authenticating my zcli by doing:
zcli logout
and then:
zcli login -i
email: my@email.com/token
password: ***MY***API***TOKEN***"
Which did successfully log me in again, however I keep running into the same issue, unfortunately.

I'd like to note that what I'm more interested in is getting this to work via Github Actions. I followed this guide on how to set up a Github action for automatic app deployment/updating, which that too is failing.

This is what my zcli-update.yml file looks like, but the actions are failing with the following console message:

Uploading app... Failed
9› Error: Failed to upload app Organization Info
10Error: Process completed with exit code 2.

When I replace the zcli apps:update dist command with zcli apps:validate dist, I get the following non-descriptive error message:

Run zcli apps:validate dist
8› Error: Error
9Error: Process completed with exit code 2.

Please advise on how to proceed about this, I'm having a hard time finding any help online.

Thank you in advance.


2

7

7 comments

I too am experiencing the same problem.

 

Please advise on how to proceed about this, I'm having a hard time finding any help online.

Thank you in advance.

1


image avatar

Greg Katechis

Zendesk Developer Advocacy

Hi all, thanks for reporting this issue. I'm investigating this right now to see what may be causing the issue. As a starting point, could you just confirm that you are in fact building your apps with React?

0


Hi Greg

Yes, I created it with "zcli apps:new --scaffold=react" and it works fine when I run "zcli apps:update dist" in the local terminal.

0


image avatar

Greg Katechis

Zendesk Developer Advocacy

Just a quick update...the team that owns ZCLI has started an investigation into this issue. While I am able to reproduce it myself, they haven't been able to do so yet. I'll keep working with them and I'll keep everyone in the loop as I hear more.

0


image avatar

Greg Katechis

Zendesk Developer Advocacy

Thanks for your patience...this issue has been resolved in the newest version of zcli. Just run npm install -g @zendesk/zcli, reload/restart your terminal and you should be all set. Let me know if you still experience any issues though!

0


I am executing "npm i @zendesk/zcli -g" as the first task order of github actions. After testing again, we found that the update is still not possible.

As mentioned in another ticket (#12540020), the update runs and completes fine on the local terminal.

0


Hello Greg Katechis 

 

As 김소라 mentioned above, the issue is not resolved yet. 

Are there any updates?

 

Thanks for your assistance.

 

Donghyun

0


Please sign in to leave a comment.

Didn't find what you're looking for?

New post