Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pre-receive hook not working as intended after last server-side software update #106

Open
brightrim opened this issue Jan 6, 2024 · 2 comments

Comments

@brightrim
Copy link
Member

The following happens when trying to push a tag to the resources master branch, which is required to make the release client make use of newly added resources such as sounds and graphics:

git -c diff.mnemonicprefix=false -c core.quotepath=false --no-optional-locks push -v --tags resources master:master
Pushing to ssh://illarion/client-content
remote: PHP Warning:  Undefined array key 1 in /var/lib/git/repositories/client-content.git/hooks/pre-receive on line 26        
remote: PHP Stack trace:        
remote: PHP   1. {main}() /var/lib/git/repositories/client-content.git/hooks/pre-receive:0        
remote: PHP   2. parseCommit($oldrev = '0000000000000000000000000000000000000000', $newrev = '0169a85a3a838d09e5a39b1e8ce5b9bdbb40d5cf') /var/lib/git/repositories/client-content.git/hooks/pre-receive:82        
remote: PHP   3. parseDiff($oldrev = '0000000000000000000000000000000000000000', $newrev = '0169a85a3a838d09e5a39b1e8ce5b9bdbb40d5cf', $diffcmd = 'git diff-tree --root --abbrev=40 0169a85a3a838d09e5a39b1e8ce5b9bdbb40d5cf', $regex = '/\\:\\w+ \\w+ \\w+ (\\w+) \\w (.+)/') /var/lib/git/repositories/client-content.git/hooks/pre-receive:75        
remote: PHP Warning:  Undefined array key 2 in /var/lib/git/repositories/client-content.git/hooks/pre-receive on line 27        
remote: PHP Stack trace:        
remote: PHP   1. {main}() /var/lib/git/repositories/client-content.git/hooks/pre-receive:0        
remote: PHP   2. parseCommit($oldrev = '0000000000000000000000000000000000000000', $newrev = '0169a85a3a838d09e5a39b1e8ce5b9bdbb40d5cf') /var/lib/git/repositories/client-content.git/hooks/pre-receive:82        
remote: PHP   3. parseDiff($oldrev = '0000000000000000000000000000000000000000', $newrev = '0169a85a3a838d09e5a39b1e8ce5b9bdbb40d5cf', $diffcmd = 'git diff-tree --root --abbrev=40 0169a85a3a838d09e5a39b1e8ce5b9bdbb40d5cf', $regex = '/\\:\\w+ \\w+ \\w+ (\\w+) \\w (.+)/') /var/lib/git/repositories/client-content.git/hooks/pre-receive:75        








remote: PHP Warning:  Undefined array key 1 in /var/lib/git/repositories/client-content.git/hooks/pre-receive on line 26        
remote: PHP Stack trace:        
remote: PHP   1. {main}() /var/lib/git/repositories/client-content.git/hooks/pre-receive:0        
remote: PHP   2. parseCommit($oldrev = '0000000000000000000000000000000000000000', $newrev = '0169a85a3a838d09e5a39b1e8ce5b9bdbb40d5cf') /var/lib/git/repositories/client-content.git/hooks/pre-receive:82        
remote: PHP   3. parseDiff($oldrev = '0000000000000000000000000000000000000000', $newrev = '0169a85a3a838d09e5a39b1e8ce5b9bdbb40d5cf', $diffcmd = 'git diff-tree --root --abbrev=40 0169a85a3a838d09e5a39b1e8ce5b9bdbb40d5cf', $regex = '/\\:\\w+ \\w+ \\w+ (\\w+) \\w (.+)/') /var/lib/git/repositories/client-content.git/hooks/pre-receive:75        
remote: PHP Warning:  Undefined array key 2 in /var/lib/git/repositories/client-content.git/hooks/pre-receive on line 27        
remote: PHP Stack trace:        
remote: PHP   1. {main}() /var/lib/git/repositories/client-content.git/hooks/pre-receive:0        
remote: PHP   2. parseCommit($oldrev = '0000000000000000000000000000000000000000', $newrev = '0169a85a3a838d09e5a39b1e8ce5b9bdbb40d5cf') /var/lib/git/repositories/client-content.git/hooks/pre-receive:82        
remote: PHP   3. parseDiff($oldrev = '0000000000000000000000000000000000000000', $newrev = '0169a85a3a838d09e5a39b1e8ce5b9bdbb40d5cf', $diffcmd = 'git diff-tree --root --abbrev=40 0169a85a3a838d09e5a39b1e8ce5b9bdbb40d5cf', $regex = '/\\:\\w+ \\w+ \\w+ (\\w+) \\w (.+)/') /var/lib/git/repositories/client-content.git/hooks/pre-receive:75        







remote: FATAL: W refs/tags/2.2.0 client-content brightrim DENIED by fallthru        
remote: error: hook declined to update refs/tags/2.2.0        
To ssh://illarion/client-content
 = [up to date]          master -> master
 = [up to date]          2.0 -> 2.0
 = [up to date]          2.1.10 -> 2.1.10
 = [up to date]          2.1.11 -> 2.1.11
 = [up to date]          2.1.12 -> 2.1.12
 = [up to date]          2.1.12.1 -> 2.1.12.1
 = [up to date]          2.1.13 -> 2.1.13
 = [up to date]          2.1.14.1 -> 2.1.14.1
 = [up to date]          2.1.14.2 -> 2.1.14.2
 = [up to date]          2.1.15 -> 2.1.15
 = [up to date]          2.1.16 -> 2.1.16
 = [up to date]          2.1.17 -> 2.1.17
 = [up to date]          2.1.18 -> 2.1.18
 = [up to date]          2.1.19 -> 2.1.19
 = [up to date]          2.1.20 -> 2.1.20
 = [up to date]          2.1.21 -> 2.1.21
 = [up to date]          2.1.22 -> 2.1.22
 = [up to date]          2.1.23 -> 2.1.23
 = [up to date]          2.1.24 -> 2.1.24
 = [up to date]          2.1.25 -> 2.1.25
 = [up to date]          2.1.25.1 -> 2.1.25.1
 = [up to date]          2.1.25.10 -> 2.1.25.10
 = [up to date]          2.1.25.11 -> 2.1.25.11
 = [up to date]          2.1.25.12 -> 2.1.25.12
 = [up to date]          2.1.25.13 -> 2.1.25.13
 = [up to date]          2.1.25.14 -> 2.1.25.14
 = [up to date]          2.1.25.15 -> 2.1.25.15
 = [up to date]          2.1.25.16 -> 2.1.25.16
 = [up to date]          2.1.25.2 -> 2.1.25.2
 = [up to date]          2.1.25.3 -> 2.1.25.3
 = [up to date]          2.1.25.4 -> 2.1.25.4
 = [up to date]          2.1.25.5 -> 2.1.25.5
 = [up to date]          2.1.25.6 -> 2.1.25.6
 = [up to date]          2.1.25.7 -> 2.1.25.7
 = [up to date]          2.1.25.8 -> 2.1.25.8
 = [up to date]          2.1.26 -> 2.1.26
 = [up to date]          2.1.27 -> 2.1.27
 = [up to date]          2.1.28 -> 2.1.28
 = [up to date]          2.1.4 -> 2.1.4
 = [up to date]          2.1.5 -> 2.1.5
 = [up to date]          2.1.6 -> 2.1.6
 = [up to date]          2.1.6.1 -> 2.1.6.1
 = [up to date]          2.1.7 -> 2.1.7
 = [up to date]          2.1.8 -> 2.1.8
 = [up to date]          2.1.9 -> 2.1.9
 ! [remote rejected]     2.2.0 -> 2.2.0 (hook declined)
updating local tracking ref 'refs/remotes/resources/master'
error: failed to push some refs to 'ssh://illarion/client-content'

Similar happens when trying to change certain binary files in illarion-content that appear to be "protected"(?), such as the file found here: npc/base/talk.lua

@brightrim
Copy link
Member Author

While we still have you here @mkaring , you wouldn't happen to still have access to the folder the pre-receive file is stored in, have the knowledge on how to fix it and the willingness and time to do so or to direct us in the way it should be resolved? 😇

@mkaring
Copy link
Member

mkaring commented Jan 6, 2024

I don't have root access to the server and my old public key is not valid anymore. I fear I can't help with that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants