# Update 1.21.0 to 1.21.8 on W10 fails with "unable to create mail queue"

**URL:** <https://forum.gitea.com/t/update-1-21-0-to-1-21-8-on-w10-fails-with-unable-to-create-mail-queue/8792>\
**Category:** Install/Maintain/Configure\
**Created:** [March 18, 2024, 7:24am UTC](https://forum.gitea.com/t/update-1-21-0-to-1-21-8-on-w10-fails-with-unable-to-create-mail-queue/8792 "2024-03-18T07:24:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Motronic](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/motronic/32/4505_2.png) [@Motronic](https://forum.gitea.com/u/Motronic)\
**Post date:** [March 18, 2024, 7:24am UTC](https://forum.gitea.com/t/update-1-21-0-to-1-21-8-on-w10-fails-with-unable-to-create-mail-queue/8792/1 "2024-03-18T07:24:47Z")

</div>

Hi  
Gitea runs here via Chocolatey on a W10 Server. After the Update from 1.21.0 to 1.21.7 or 1.21.8 it no longer starts…

If i start it without Admin rights (common case) it shows:  
C:\Users\Server\>C:\ProgramData\chocolatey\lib\gitea\tools\gitea.exe web --config “C:\ProgramData\chocolatey\lib\gitea\tools\custom\conf\app.ini”  
2024/03/16 15:31:47 …etting/repository.go:292:loadRepositoryFrom() [W] SCRIPT\_TYPE “bash” is not on the current PATH. Are you sure that this is the correct SCRIPT\_TYPE?  
2024/03/16 15:31:47 cmd/web.go:242:runWeb() [I] Starting Gitea on PID: 15012  
2024/03/16 15:31:47 …etting/repository.go:292:loadRepositoryFrom() [W] SCRIPT\_TYPE “bash” is not on the current PATH. Are you sure that this is the correct SCRIPT\_TYPE?  
2024/03/16 15:31:47 cmd/web.go:111:showWebStartupMessage() [I] Gitea version: 1.21.8 built with GNU Make 4.3, go1.21.8 : bindata, sqlite, sqlite\_unlock\_notify  
2024/03/16 15:31:47 cmd/web.go:112:showWebStartupMessage() [I] \* RunMode: prod  
2024/03/16 15:31:47 cmd/web.go:113:showWebStartupMessage() [I] \* AppPath: C:/ProgramData/chocolatey/lib/gitea/tools/gitea.exe  
2024/03/16 15:31:47 cmd/web.go:114:showWebStartupMessage() [I] \* WorkPath: C:\ProgramData\chocolatey\lib\gitea\tools  
2024/03/16 15:31:47 cmd/web.go:115:showWebStartupMessage() [I] \* CustomPath: C:\ProgramData\chocolatey\lib\gitea\tools\custom  
2024/03/16 15:31:47 cmd/web.go:116:showWebStartupMessage() [I] \* ConfigFile: C:\ProgramData\chocolatey\lib\gitea\tools\custom\conf\app.ini  
2024/03/16 15:31:47 cmd/web.go:117:showWebStartupMessage() [I] Prepare to run web server  
2024/03/16 15:31:48 routers/init.go:112:InitWebInstalled() [I] Git version: 2.44.0, Wire Protocol Version 2 Enabled (home: C:\ProgramData\chocolatey\lib\gitea\tools\data\home)  
2024/03/16 15:31:48 …les/setting/cache.go:75:loadCacheFrom() [I] Cache Service Enabled  
2024/03/16 15:31:48 …les/setting/cache.go:90:loadCacheFrom() [I] Last Commit Cache Service Enabled  
2024/03/16 15:31:48 …s/setting/session.go:77:loadSessionFrom() [I] Session Service Enabled  
2024/03/16 15:31:48 …es/setting/mailer.go:203:loadMailerFrom() [W] connecting over insecure SMTP protocol to non-local address is not recommended  
2024/03/16 15:31:48 …es/setting/mailer.go:237:loadMailerFrom() [I] Mail Service Enabled  
2024/03/16 15:31:48 …s/storage/storage.go:176:initAttachments() [I] Initialising Attachment storage with type: local  
2024/03/16 15:31:48 …les/storage/local.go:33:NewLocalStorage() [I] Creating new Local Storage at C:\ProgramData\chocolatey\lib\gitea\tools\data\attachments  
2024/03/16 15:31:48 …s/storage/storage.go:166:initAvatars() [I] Initialising Avatar storage with type: local  
2024/03/16 15:31:48 …les/storage/local.go:33:NewLocalStorage() [I] Creating new Local Storage at C:\ProgramData\chocolatey\lib\gitea\tools\data\avatars  
2024/03/16 15:31:48 …s/storage/storage.go:192:initRepoAvatars() [I] Initialising Repository Avatar storage with type: local  
2024/03/16 15:31:48 …les/storage/local.go:33:NewLocalStorage() [I] Creating new Local Storage at C:\ProgramData\chocolatey\lib\gitea\tools\data\repo-avatars  
2024/03/16 15:31:48 …s/storage/storage.go:186:initLFS() [I] Initialising LFS storage with type: local  
2024/03/16 15:31:48 …les/storage/local.go:33:NewLocalStorage() [I] Creating new Local Storage at O:\GitLfs  
2024/03/16 15:31:48 …s/storage/storage.go:198:initRepoArchives() [I] Initialising Repository Archive storage with type: local  
2024/03/16 15:31:48 …les/storage/local.go:33:NewLocalStorage() [I] Creating new Local Storage at C:\ProgramData\chocolatey\lib\gitea\tools\data\repo-archive  
2024/03/16 15:31:48 …s/storage/storage.go:208:initPackages() [I] Initialising Packages storage with type: local  
2024/03/16 15:31:48 …les/storage/local.go:33:NewLocalStorage() [I] Creating new Local Storage at C:\ProgramData\chocolatey\lib\gitea\tools\data\packages  
2024/03/16 15:31:48 …s/storage/storage.go:219:initActions() [I] Initialising Actions storage with type: local  
2024/03/16 15:31:48 …les/storage/local.go:33:NewLocalStorage() [I] Creating new Local Storage at C:\ProgramData\chocolatey\lib\gitea\tools\data\actions\_log  
2024/03/16 15:31:48 …s/storage/storage.go:223:initActions() [I] Initialising ActionsArtifacts storage with type: local  
2024/03/16 15:31:48 …les/storage/local.go:33:NewLocalStorage() [I] Creating new Local Storage at C:\ProgramData\chocolatey\lib\gitea\tools\data\actions\_artifacts  
2024/03/16 15:31:58 …les/queue/manager.go:108:]() [E] Failed to create queue “mail”: unable to open level db at C:/ProgramData/chocolatey/lib/gitea/tools/data/queues/common: Zugriff verweigert  
2024/03/16 15:31:58 …ces/mailer/mailer.go:424:NewContext() [F] Unable to create mail queue

And with admin rights:  
C:\WINDOWS\system32\>C:\ProgramData\chocolatey\lib\gitea\tools\gitea.exe web --config “C:\ProgramData\chocolatey\lib\gitea\tools\custom\conf\app.ini”  
2024/03/16 15:29:21 …etting/repository.go:292:loadRepositoryFrom() [W] SCRIPT\_TYPE “bash” is not on the current PATH. Are you sure that this is the correct SCRIPT\_TYPE?  
2024/03/16 15:29:21 cmd/web.go:242:runWeb() [I] Starting Gitea on PID: 13956  
2024/03/16 15:29:21 …etting/repository.go:292:loadRepositoryFrom() [W] SCRIPT\_TYPE “bash” is not on the current PATH. Are you sure that this is the correct SCRIPT\_TYPE?  
2024/03/16 15:29:21 cmd/web.go:111:showWebStartupMessage() [I] Gitea version: 1.21.8 built with GNU Make 4.3, go1.21.8 : bindata, sqlite, sqlite\_unlock\_notify  
2024/03/16 15:29:21 cmd/web.go:112:showWebStartupMessage() [I] \* RunMode: prod  
2024/03/16 15:29:21 cmd/web.go:113:showWebStartupMessage() [I] \* AppPath: C:/ProgramData/chocolatey/lib/gitea/tools/gitea.exe  
2024/03/16 15:29:21 cmd/web.go:114:showWebStartupMessage() [I] \* WorkPath: C:\ProgramData\chocolatey\lib\gitea\tools  
2024/03/16 15:29:21 cmd/web.go:115:showWebStartupMessage() [I] \* CustomPath: C:\ProgramData\chocolatey\lib\gitea\tools\custom  
2024/03/16 15:29:21 cmd/web.go:116:showWebStartupMessage() [I] \* ConfigFile: C:\ProgramData\chocolatey\lib\gitea\tools\custom\conf\app.ini  
2024/03/16 15:29:21 cmd/web.go:117:showWebStartupMessage() [I] Prepare to run web server  
2024/03/16 15:29:22 routers/init.go:112:InitWebInstalled() [I] Git version: 2.44.0, Wire Protocol Version 2 Enabled (home: C:\ProgramData\chocolatey\lib\gitea\tools\data\home)  
2024/03/16 15:29:22 …les/setting/cache.go:75:loadCacheFrom() [I] Cache Service Enabled  
2024/03/16 15:29:22 …les/setting/cache.go:90:loadCacheFrom() [I] Last Commit Cache Service Enabled  
2024/03/16 15:29:22 …s/setting/session.go:77:loadSessionFrom() [I] Session Service Enabled  
2024/03/16 15:29:22 …es/setting/mailer.go:203:loadMailerFrom() [W] connecting over insecure SMTP protocol to non-local address is not recommended  
2024/03/16 15:29:22 …es/setting/mailer.go:237:loadMailerFrom() [I] Mail Service Enabled  
2024/03/16 15:29:22 …s/storage/storage.go:176:initAttachments() [I] Initialising Attachment storage with type: local  
2024/03/16 15:29:22 …les/storage/local.go:33:NewLocalStorage() [I] Creating new Local Storage at C:\ProgramData\chocolatey\lib\gitea\tools\data\attachments  
2024/03/16 15:29:22 …s/storage/storage.go:166:initAvatars() [I] Initialising Avatar storage with type: local  
2024/03/16 15:29:22 …les/storage/local.go:33:NewLocalStorage() [I] Creating new Local Storage at C:\ProgramData\chocolatey\lib\gitea\tools\data\avatars  
2024/03/16 15:29:22 …s/storage/storage.go:192:initRepoAvatars() [I] Initialising Repository Avatar storage with type: local  
2024/03/16 15:29:22 …les/storage/local.go:33:NewLocalStorage() [I] Creating new Local Storage at C:\ProgramData\chocolatey\lib\gitea\tools\data\repo-avatars  
2024/03/16 15:29:22 …s/storage/storage.go:186:initLFS() [I] Initialising LFS storage with type: local  
2024/03/16 15:29:22 …les/storage/local.go:33:NewLocalStorage() [I] Creating new Local Storage at O:\GitLfs  
2024/03/16 15:29:22 …s/storage/storage.go:198:initRepoArchives() [I] Initialising Repository Archive storage with type: local  
2024/03/16 15:29:22 …les/storage/local.go:33:NewLocalStorage() [I] Creating new Local Storage at C:\ProgramData\chocolatey\lib\gitea\tools\data\repo-archive  
2024/03/16 15:29:22 …s/storage/storage.go:208:initPackages() [I] Initialising Packages storage with type: local  
2024/03/16 15:29:22 …les/storage/local.go:33:NewLocalStorage() [I] Creating new Local Storage at C:\ProgramData\chocolatey\lib\gitea\tools\data\packages  
2024/03/16 15:29:22 …s/storage/storage.go:219:initActions() [I] Initialising Actions storage with type: local  
2024/03/16 15:29:22 …les/storage/local.go:33:NewLocalStorage() [I] Creating new Local Storage at C:\ProgramData\chocolatey\lib\gitea\tools\data\actions\_log  
2024/03/16 15:29:22 …s/storage/storage.go:223:initActions() [I] Initialising ActionsArtifacts storage with type: local  
2024/03/16 15:29:22 …les/storage/local.go:33:NewLocalStorage() [I] Creating new Local Storage at C:\ProgramData\chocolatey\lib\gitea\tools\data\actions\_artifacts  
2024/03/16 15:29:22 routers/init.go:131:InitWebInstalled() [I] SQLite3 support is enabled  
2024/03/16 15:29:22 routers/common/db.go:23:InitDBEngine() [I] Beginning ORM engine initialization.  
2024/03/16 15:29:22 routers/common/db.go:30:InitDBEngine() [I] ORM engine initialization attempt #1/10…  
2024/03/16 15:29:22 cmd/web.go:194:serveInstalled() [I] PING DATABASE sqlite3  
2024/03/16 15:29:22 cmd/web.go:194:serveInstalled() [W] Table system\_setting Column version db default is , struct default is 1  
2024/03/16 15:29:22 cmd/web.go:194:serveInstalled() [W] Table project Column card\_type db default is 0, struct default is  
2024/03/16 15:29:22 cmd/web.go:194:serveInstalled() [W] Table project Column card\_type db nullable is false, struct nullable is true  
2024/03/16 15:29:22 cmd/web.go:194:serveInstalled() [W] Table hook\_task has column repo\_id but struct has not related field  
2024/03/16 15:29:22 routers/init.go:137:InitWebInstalled() [I] ORM engine initialization successful!  
2024/03/16 15:29:22 …er/issues/indexer.go:77:func1() [I] PID 13956: Initializing Issue Indexer: bleve  
2024/03/16 15:29:22 …xer/stats/indexer.go:39:populateRepoIndexer() [I] Populating the repo stats indexer with existing repositories  
2024/03/16 15:29:22 …er/issues/indexer.go:97:func1() [F] Unable to initialize Bleve Issue Indexer at path: C:/ProgramData/chocolatey/lib/gitea/tools/data/indexers/issues.bleve Error: cannot open index, metadata missing

I tried this:

> <https://github.com/go-gitea/gitea/issues/28388>
>
> \### Description
> 
> When I use ./gitea web to run Gitea 
> 
> The following is the lo…g:
> 
> \`\`\`
> 2023/12/08 01:48:10 cmd/web.go:242:runWeb() \[I\] Starting Gitea on PID: 14657
> 2023/12/08 01:48:10 cmd/web.go:111:showWebStartupMessage() \[I\] Gitea version: 1.21.1 built with GNU Make 4.3, go1.21.4 : bindata, sqlite, sqlite\_unlock\_notify
> 2023/12/08 01:48:10 cmd/web.go:112:showWebStartupMessage() \[I\] \* RunMode: prod
> 2023/12/08 01:48:10 cmd/web.go:113:showWebStartupMessage() \[I\] \* AppPath: /home/git/gitea/gitea
> 2023/12/08 01:48:10 cmd/web.go:114:showWebStartupMessage() \[I\] \* WorkPath: /home/git/gitea
> 2023/12/08 01:48:10 cmd/web.go:115:showWebStartupMessage() \[I\] \* CustomPath: /home/git/gitea/custom
> 2023/12/08 01:48:10 cmd/web.go:116:showWebStartupMessage() \[I\] \* ConfigFile: /home/git/gitea/custom/conf/app.ini
> 2023/12/08 01:48:10 cmd/web.go:117:showWebStartupMessage() \[I\] Prepare to run web server
> 2023/12/08 01:48:10 routers/init.go:112:InitWebInstalled() \[I\] Git version: 2.34.1, Wire Protocol Version 2 Enabled (home: /home/git/gitea/data/home)
> 2023/12/08 01:48:20 ...les/queue/manager.go:108:\]() \[E\] Failed to create queue "mail": unable to lock level db at /home/git/gitea/data/queues/common: resource temporarily unavailable
> 2023/12/08 01:48:20 ...ces/mailer/mailer.go:424:NewContext() \[F\] Unable to create mail queue
> \`\`\`
> 
> \### Gitea Version
> 
> Gitea version 1.21.1 built with GNU Make 4.3, go1.21.4 : bindata, sqlite, sqlite\_unlock\_notify
> 
> \### Can you reproduce the bug on the Gitea demo site?
> 
> No
> 
> \### Log Gist
> 
> \_No response\_
> 
> \### Screenshots
> 
> \_No response\_
> 
> \### Git Version
> 
> \_No response\_
> 
> \### Operating System
> 
> \_No response\_
> 
> \### How are you running Gitea?
> 
> prod
> 
> \### Database
> 
> MySQL/MariaDB

But with no success. Any ideas?

Thanks  
Ralf

---

<div class="post-metadata">

**Author:** ![Motronic](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/motronic/32/4505_2.png) [@Motronic](https://forum.gitea.com/u/Motronic)\
**Post date:** [March 26, 2024, 8:43pm UTC](https://forum.gitea.com/t/update-1-21-0-to-1-21-8-on-w10-fails-with-unable-to-create-mail-queue/8792/2 "2024-03-26T20:43:52Z")

</div>

It was solved here [https://github.com/go-gitea/gitea/issues/30080#issuecomment-2021432268](https://github.com/go-gitea/gitea/issues/30080#issuecomment-2021432268)

---

<div class="post-metadata">

**Author:** ![blade10101](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/blade10101/32/6411_2.png) [@blade10101](https://forum.gitea.com/u/blade10101)\
**Post date:** [November 15, 2024, 6:16pm UTC](https://forum.gitea.com/t/update-1-21-0-to-1-21-8-on-w10-fails-with-unable-to-create-mail-queue/8792/3 "2024-11-15T18:16:56Z")

</div>

that didn’t solve it, I have too much work in gitea… so rm -rf and just stick with github? it seems the update killed gitea
