[Error] Could not detect project type - when pushing

git push -f balena master
Counting objects: 13, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (13/13), done.
Writing objects: 100% (13/13), 16.88 MiB | 3.38 MiB/s, done.
Total 13 (delta 4), reused 0 (delta 0)

[Info] Starting build for agent-v1, user g_app_dev
[Info] Dashboard link: https://dashboard.balena-cloud.com/apps/111111/devices
[Error] Could not detect project type: Resolution could not be performed
[Error] Not deploying release.

remote: error: hook declined to update refs/heads/master
To git.balena-cloud.com:g_app_dev/agent-v1.git
! [remote rejected] master -> master (hook declined)
error: failed to push some refs to ‘g_app_dev@git.balena-cloud.com:g_app_dev/agent-v1.git’

I have successfully pushed to this repo in the past. Suddenly this error started and i’m not sure why.

1 Like

Hello,

Thanks for posting!

  • What IoT device type have you configured your application with? (ie. Raspberry Pi, balenaFin, etc.)
  • What does your project structure look like? Do you have a Dockerfile or package.json file in the root of your project folder? If you could share the output from tree, that might be useful in determining the root cause.

Cheers,
Trevor Sullivan

Hello Trevor,
Thanks for the response.
I figured out the problem.
I had renamed one of my service folders and forgot to update the docker-compose.yaml.

Thanks

2 Likes

Hi there,

Glad to hear that you resolved the issue. Let us know if you face any other issues.

Regards,
Steve

1 Like

Hi there,
Glad to hear that you resolved the issue. Let us know if you face any other issues.
Regards,
Steve