./hooks/pre-receive.d/gitea: line 2 #1498

Closed
opened 2025-11-02 04:02:35 -06:00 by GiteaMirror · 5 comments
Owner

Originally created by @ShalokShalom on GitHub (Feb 3, 2018).

  • Gitea version (or commit ref): 1.3.2 and 1.4.0-rc1
  • Git version: 2.14.1
  • Operating system: Linux (Matelimo 17.10)
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
    • Not relevant
  • Log gist:
2018/02/03 02:50:51 [...ules/context/repo.go:641 func1()] [E] GetCommitsCount: Unsupported cached value type: <nil>
2018/02/03 08:32:13 [...s/context/context.go:117 NotFoundOrServerError()] [E] Repo.Commit.GetTreeEntryByPath: object does not exist [id: , rel_path: MYSQL]
2018/02/03 08:32:45 [...s/context/context.go:117 NotFoundOrServerError()] [E] Repo.Commit.GetTreeEntryByPath: object does not exist [id: , rel_path: MYSQL]
2018/02/03 08:34:09 [...s/context/context.go:117 NotFoundOrServerError()] [E] Repo.Commit.GetTreeEntryByPath: object does not exist [id: , rel_path: mysql]
2018/02/03 09:24:52 [I] Log Mode: File(Info)
2018/02/03 09:24:52 [I] XORM Log Mode: File(Info)
2018/02/03 09:24:52 [I] Cache Service Enabled
2018/02/03 09:24:52 [I] Session Service Enabled
2018/02/03 09:24:53 [I] Migration: add lfs lock table
2018/02/03 09:24:53 [I] Migration: add reactions
2018/02/03 09:24:53 [I] Migration: add pull request options
2018/02/03 09:24:53 [I] Migration: add writable deploy keys
2018/02/03 09:24:54 [I] Migration: remove is_owner, num_teams columns from org_user
2018/02/03 09:24:54 [I] Git Version: 2.15.1
2018/02/03 09:25:01 [I] SQLite3 Supported
2018/02/03 09:25:01 [I] Run Mode: Production
2018/02/03 09:25:02 [I] Listen: http://0.0.0.0:64223
2018/02/03 09:25:02 [I] LFS server enabled
  • Description
➜  dev.sender.fm git:(master) LC_ALL=C git push
Username for 'https://sml.uber.space': ShalokShalom
Password for 'https://ShalokShalom@sml.uber.space': 
Counting objects: 2, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (2/2), done.
Writing objects: 100% (2/2), 227 bytes | 227.00 KiB/s, done.
Total 2 (delta 1), reused 0 (delta 0)
remote: ./hooks/pre-receive.d/gitea: line 2: /home/sml/gitea: No such file or directory
To https://sml.uber.space/sender.fm/dev.sender.fm
 ! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://sml.uber.space/sender.fm/dev.sender.fm'

alexgiteaissue

Originally created by @ShalokShalom on GitHub (Feb 3, 2018). - Gitea version (or commit ref): 1.3.2 and 1.4.0-rc1 - Git version: 2.14.1 - Operating system: Linux (Matelimo 17.10) - Database (use `[x]`): - [ ] PostgreSQL - [x] MySQL - [ ] MSSQL - [ ] SQLite - Can you reproduce the bug at https://try.gitea.io: - [ ] Yes (provide example URL) - [x] No - [ ] Not relevant - Log gist: ``` 2018/02/03 02:50:51 [...ules/context/repo.go:641 func1()] [E] GetCommitsCount: Unsupported cached value type: <nil> 2018/02/03 08:32:13 [...s/context/context.go:117 NotFoundOrServerError()] [E] Repo.Commit.GetTreeEntryByPath: object does not exist [id: , rel_path: MYSQL] 2018/02/03 08:32:45 [...s/context/context.go:117 NotFoundOrServerError()] [E] Repo.Commit.GetTreeEntryByPath: object does not exist [id: , rel_path: MYSQL] 2018/02/03 08:34:09 [...s/context/context.go:117 NotFoundOrServerError()] [E] Repo.Commit.GetTreeEntryByPath: object does not exist [id: , rel_path: mysql] 2018/02/03 09:24:52 [I] Log Mode: File(Info) 2018/02/03 09:24:52 [I] XORM Log Mode: File(Info) 2018/02/03 09:24:52 [I] Cache Service Enabled 2018/02/03 09:24:52 [I] Session Service Enabled 2018/02/03 09:24:53 [I] Migration: add lfs lock table 2018/02/03 09:24:53 [I] Migration: add reactions 2018/02/03 09:24:53 [I] Migration: add pull request options 2018/02/03 09:24:53 [I] Migration: add writable deploy keys 2018/02/03 09:24:54 [I] Migration: remove is_owner, num_teams columns from org_user 2018/02/03 09:24:54 [I] Git Version: 2.15.1 2018/02/03 09:25:01 [I] SQLite3 Supported 2018/02/03 09:25:01 [I] Run Mode: Production 2018/02/03 09:25:02 [I] Listen: http://0.0.0.0:64223 2018/02/03 09:25:02 [I] LFS server enabled ``` - Description ``` ➜ dev.sender.fm git:(master) LC_ALL=C git push Username for 'https://sml.uber.space': ShalokShalom Password for 'https://ShalokShalom@sml.uber.space': Counting objects: 2, done. Delta compression using up to 4 threads. Compressing objects: 100% (2/2), done. Writing objects: 100% (2/2), 227 bytes | 227.00 KiB/s, done. Total 2 (delta 1), reused 0 (delta 0) remote: ./hooks/pre-receive.d/gitea: line 2: /home/sml/gitea: No such file or directory To https://sml.uber.space/sender.fm/dev.sender.fm ! [remote rejected] master -> master (pre-receive hook declined) error: failed to push some refs to 'https://sml.uber.space/sender.fm/dev.sender.fm' ``` ![alexgiteaissue](https://user-images.githubusercontent.com/6344099/35765849-0f531c1c-08cd-11e8-8a52-f2951665d58b.jpeg)
Author
Owner

@lafriks commented on GitHub (Feb 3, 2018):

What filename did you enter?

@lafriks commented on GitHub (Feb 3, 2018): What filename did you enter?
Author
Owner

@ShalokShalom commented on GitHub (Feb 3, 2018):

I just updated the original post.

@ShalokShalom commented on GitHub (Feb 3, 2018): I just updated the original post.
Author
Owner

@lunny commented on GitHub (Feb 4, 2018):

seems cache config error?

@lunny commented on GitHub (Feb 4, 2018): seems cache config error?
Author
Owner

@techknowlogick commented on GitHub (May 10, 2018):

@ShalokShalom what happens when you run the Resynchronize pre-receive, update and post-receive hooks of all repositories. task in the admin panel to regenerate all hooks?

Note: please make sure you have no customization in your hooks as this will overwrite them.

@techknowlogick commented on GitHub (May 10, 2018): @ShalokShalom what happens when you run the `Resynchronize pre-receive, update and post-receive hooks of all repositories.` task in the admin panel to regenerate all hooks? Note: please make sure you have no customization in your hooks as this will overwrite them.
Author
Owner

@ShalokShalom commented on GitHub (May 10, 2018):

I am closing this, since no access anymore to that instance. Thanks

@ShalokShalom commented on GitHub (May 10, 2018): I am closing this, since no access anymore to that instance. Thanks
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#1498