# \[solved\] 500 page when selecting initialize repository

**URL:** <https://forum.gitea.com/t/solved-500-page-when-selecting-initialize-repository/2398>\
**Category:** Install/Maintain/Configure\
**Created:** [August 9, 2020, 12:07pm UTC](https://forum.gitea.com/t/solved-500-page-when-selecting-initialize-repository/2398 "2020-08-09T12:07:14Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Johan](https://avatars.discourse-cdn.com/v4/letter/j/dec6dc/32.png) [@Johan](https://forum.gitea.com/u/Johan)\
**Post date:** [August 9, 2020, 12:07pm UTC](https://forum.gitea.com/t/solved-500-page-when-selecting-initialize-repository/2398/1 "2020-08-09T12:07:15Z")

</div>

Hello all.  
I just installed gitea and the gui seems to work ok. This install is on a FreeBSD 12.1 Machine.  
I can create a new repository through the web UI but when i select initialize Repository i get an 500 page.  
The error i see is:

```auto
2020/08/06 13:54:01 ...s/repository/init.go:157:initRepoCommit() [E] Failed to push back to master: Stdout:
        Error: exit status 1 - fatal: cannot exec 'hooks/pre-receive': Permission denied
        To /var/db/gitea/gitea-repositories/odmin/hello_world.git
         ! [remote rejected] master -> master (pre-receive hook declined)
        error: failed to push some refs to '/var/db/gitea/gitea-repositories/odmin/hello_world.git'

```

I can mirror other repository’s fine but creating a new with the Initialize Repository option fails.  
Did i miss something on the installation part?

---

<div class="post-metadata">

**Author:** ![Johan](https://avatars.discourse-cdn.com/v4/letter/j/dec6dc/32.png) [@Johan](https://forum.gitea.com/u/Johan)\
**Post date:** [August 11, 2020, 9:00am UTC](https://forum.gitea.com/t/solved-500-page-when-selecting-initialize-repository/2398/2 "2020-08-11T09:00:43Z")

</div>

I reply to myself.

I have found the issue, as i am on a ZFS based system and we use a large set of zfs datasets, it turns out that the dataset /var/db/ had the flag exec set to no. So that was the reason that it could not execute the pre-recieve file.

---

<div class="post-metadata">

**Author:** ![techknowlogick](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/techknowlogick/32/4706_2.png) [@techknowlogick](https://forum.gitea.com/u/techknowlogick)\
**Post date:** [August 11, 2020, 4:18pm UTC](https://forum.gitea.com/t/solved-500-page-when-selecting-initialize-repository/2398/3 "2020-08-11T16:18:34Z")

</div>


