"An error occurred: It is necessary that each device..." during git push


#1

Hi,
I am currently trying to push a new version of my application to my devices with

git push -f resin master

Unfortunately I get an error message and I don’t know how to solve this problem (I already searched the forums, too, but haven’t found a solution for this):

Delta compression using up to 8 threads.
Compressing objects: 100% (4/4), done.
Writing objects: 100% (4/4), 2.20 KiB | 0 bytes/s, done.
Total 4 (delta 2), reused 0 (delta 0)

[Error] An error occurred: It is necessary that each device that should be running a release, should be running a release that belongs to an application that the device belongs to.
[Error] Not deploying release.

remote: error: hook declined to update refs/heads/master
To username@git.resin.io:username/appname.git
! [remote rejected] master -> master (hook declined)
error: failed to push some refs to ‘username@git.resin.io:username/appname.git’

Any ideas on how to solve this issue? I already tried to reboot all devices and also purged the data, but this didn’t worked.


#4

Hi @Octoate, can you try repushing. I believe your push was triggered we were experiencing an outage, that we have since corrected. So I think your push should succeed now.


#5

I pushed the changes again and it worked. Bad timing ;-). Thanks!


#6

glad to hear!