# Hangfire Server on Linux

**URL:** https://discuss.hangfire.io/t/hangfire-server-on-linux/4619
**Category:** question
**Created:** [May 2, 2018, 12:30pm UTC](https://discuss.hangfire.io/t/hangfire-server-on-linux/4619 "2018-05-02T12:30:21Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![robing6](https://avatars.discourse-cdn.com/v4/letter/r/ccd318/32.png) [@robing6](https://discuss.hangfire.io/u/robing6)
#### Post date: [May 2, 2018, 12:30pm UTC](https://discuss.hangfire.io/t/hangfire-server-on-linux/4619/1 "2018-05-02T12:30:21Z")

</div>

Hi,

My organisation is currently trying to step from the [ASP.NET](http://ASP.NET) Web API 2 in Windows to .NET Core in Linux.  
We currently have a [ASP.NET](http://ASP.NET) MVC application which hosts a Hangfire dashboard and several Windows Services which all host a Hangfire Server.

I was wondering, is there anyone who currently have experience with developing an application which should have Hangfire Servers on Linux? I’m wondering if there is a possibility the Hangfire Server could be hosted as a Linux service or something.

---

<div class="post-metadata">

### Author: ![pieceofsummer](https://dub1.discourse-cdn.com/flex017/user_avatar/discuss.hangfire.io/pieceofsummer/32/785_2.png) [@pieceofsummer](https://discuss.hangfire.io/u/pieceofsummer)
#### Post date: [May 2, 2018, 2:29pm UTC](https://discuss.hangfire.io/t/hangfire-server-on-linux/4619/2 "2018-05-02T14:29:24Z")

</div>

I’m running Hangfire with [ASP.NET](http://ASP.NET) Core 2 on Linux for half a year already. Not without issues though 🙂

The first significant problem was storage selection. For the reason of running purely on Linux, I haven’t used MSSQL storage, and many other 3rd-party storages have troubles on their own, like faulty distributed lock implementations, or freezing the entire process after some time (I’ve tried MongoDB, MySQL, and PostgreSQL storages at that time). The only storage that worked reliably in my case was actually Redis, but it also had some issues (I’ve pushed a few pull requests for those, so the latest version is actually working okay).

The other [problem with timezones](https://github.com/HangfireIO/Hangfire/issues/1167) may arise if you’re running some servers on Linux while the Dashboard and/or other servers are still on Windows.

But it actually works 🙂

---

<div class="post-metadata">

### Author: ![funky81](https://dub1.discourse-cdn.com/flex017/user_avatar/discuss.hangfire.io/funky81/32/1206_2.png) [@funky81](https://discuss.hangfire.io/u/funky81)
#### Post date: [May 8, 2018, 10:31pm UTC](https://discuss.hangfire.io/t/hangfire-server-on-linux/4619/3 "2018-05-08T22:31:41Z")

</div>

Hi @pieceofsummer, do you use premium hangfire or just use the free hangfire to use it in Linux OS?

---

<div class="post-metadata">

### Author: ![pieceofsummer](https://dub1.discourse-cdn.com/flex017/user_avatar/discuss.hangfire.io/pieceofsummer/32/785_2.png) [@pieceofsummer](https://discuss.hangfire.io/u/pieceofsummer)
#### Post date: [May 8, 2018, 10:35pm UTC](https://discuss.hangfire.io/t/hangfire-server-on-linux/4619/4 "2018-05-08T22:35:06Z")

</div>

Just a free one, with an open source Hangfire.Redis.StackExchange package for Redis storage.

---

<div class="post-metadata">

### Author: ![funky81](https://dub1.discourse-cdn.com/flex017/user_avatar/discuss.hangfire.io/funky81/32/1206_2.png) [@funky81](https://discuss.hangfire.io/u/funky81)
#### Post date: [May 8, 2018, 10:38pm UTC](https://discuss.hangfire.io/t/hangfire-server-on-linux/4619/5 "2018-05-08T22:38:30Z")

</div>

Thanks for the info. Will try it.

---

<div class="post-metadata">

### Author: ![Jason\_Witty](https://avatars.discourse-cdn.com/v4/letter/j/8797f3/32.png) [@Jason\_Witty](https://discuss.hangfire.io/u/Jason_Witty)
#### Post date: [May 23, 2018, 9:58am UTC](https://discuss.hangfire.io/t/hangfire-server-on-linux/4619/6 "2018-05-23T09:58:59Z")

</div>

are you building to linux containers ?

---

<div class="post-metadata">

### Author: ![pieceofsummer](https://dub1.discourse-cdn.com/flex017/user_avatar/discuss.hangfire.io/pieceofsummer/32/785_2.png) [@pieceofsummer](https://discuss.hangfire.io/u/pieceofsummer)
#### Post date: [May 23, 2018, 4:46pm UTC](https://discuss.hangfire.io/t/hangfire-server-on-linux/4619/7 "2018-05-23T16:46:49Z")

</div>

Nope, just to a VPS. But publishing to a container shouldn’t be much different.

---

<div class="post-metadata">

### Author: ![Emanuel\_Marques](https://dub1.discourse-cdn.com/flex017/user_avatar/discuss.hangfire.io/emanuel_marques/32/1696_2.png) [@Emanuel\_Marques](https://discuss.hangfire.io/u/Emanuel_Marques)
#### Post date: [July 25, 2019, 2:57pm UTC](https://discuss.hangfire.io/t/hangfire-server-on-linux/4619/9 "2019-07-25T14:57:12Z")

</div>

@pieceofsummer can you elaborate what problems you had with MongoDb while on linux?
