github-action: Existing workflow - Failed to collect project info. Please contact our support team for help

Describe the bug We have been using this github-action for over two years.

Our crowdin github actions started failing ~4 months ago with the following info. Didn’t notice this until today:
image

We tried using a more recent version of the github-action, and are now getting different “No source found” errors: image

To Reproduce Steps to reproduce the behavior:

  1. Crowdin GitHub Action configuration https://github.com/SimpleMachines/SMF/blob/release-2.1/.github/workflows/crowdin_wf.yml

  2. crowdin.yml file content https://github.com/SimpleMachines/SMF/blob/release-2.1/.github/crowdin.yml

Expected behavior We expected source strings to be copied to CrowdIn, as in the past, and any new strings to become available for translation. (We do not use the features where translations come back to github.)

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Comments: 25 (9 by maintainers)

Most upvoted comments

Closing the loop - yes, recreating the token worked!

Thanks,

When I sent in the code for my test environment to support, they responded saying that my test run is failing because my free CrowdIn plan only supports one branch.

So… To be honest, I don’t know if my production plan is failing for the same reason. (I’m a volunteer! Not too familiar with the account details/history…)

I asked them if this is the reason for my production run failing as well.

This is the main part… If you want me to copy the whole thing let me know… (Not sure how safe it is to publish the whole thing…)

STARTING CROWDIN ACTION UPLOAD SOURCES ✔️ Fetching project info java.lang.RuntimeException: You do not have permission to view/edit project with provided id. at com.crowdin.cli.client.CrowdinClientCore$1.<init>(CrowdinClientCore.java:35) at com.crowdin.cli.client.CrowdinClientCore.<clinit>(CrowdinClientCore.java:28) at com.crowdin.cli.client.Clients.getProjectClient(Clients.java:45) at com.crowdin.cli.commands.picocli.ActCommandWithFiles.getClient(ActCommandWithFiles.java:30) at com.crowdin.cli.commands.picocli.ActCommandWithFiles.getClient(ActCommandWithFiles.java:11) at com.crowdin.cli.commands.picocli.GenericActCommand.run(GenericActCommand.java:37) at picocli.CommandLine.executeUserObject(CommandLine.java:2026) at picocli.CommandLine.access$1500(CommandLine.java:148) at picocli.CommandLine$RunLast.executeUserObjectOfLastSubcommandWithSameParent(CommandLine.java:2461) at picocli.CommandLine$RunLast.handle(CommandLine.java:2453) at picocli.CommandLine$RunLast.handle(CommandLine.java:2415) at picocli.CommandLine$AbstractParseResultHandler.execute(CommandLine.java:2273) at picocli.CommandLine$RunLast.execute(CommandLine.java:2417) at picocli.CommandLine.execute(CommandLine.java:2170) at com.crowdin.cli.commands.picocli.PicocliRunner.execute(PicocliRunner.java:39) at com.crowdin.cli.Cli.main(Cli.java:16) ##[debug]Docker Action run completed with exit code 1 ##[debug]Finishing: crowdin-action

I just sent an email to support@crowdin.com that referenced this ticket that provides the project ID.

Note that the workflow in question is this one: https://github.com/SimpleMachines/SMF/blob/release-2.1/.github/workflows/crowdin_wf_next.yml

Note that it attempts to update the 2nd folder (SMF_2-1_NEXT).

I have reproduced the same issue on a 2nd (private) CrowdIn project and a 2nd (private) GitHub account. That one also produced an erroneous “You don’t have permission …” error like the one above when trying to update the 2nd folder. So the issue is reproducible.

Thanks for your support.

The crowdin.yml location causes the error. It’s located inside the .github directory and as a result, CLI tries to find source files relative to this directory.

There are two ways to fix this:

  • moving the crowdin.yml configuration to the root of the repo.
  • updating the base_path option value: ../.

Hi @sbulen,

Please make sure you’re using the latest version of the Action. The easiest way to do it - is to specify the major version only crowdin/github-action@v1.