From martin.riedl.92 at googlemail.com Tue Mar 6 19:36:07 2018 From: martin.riedl.92 at googlemail.com (Martin Riedl) Date: Tue, 6 Mar 2018 19:36:07 +0000 Subject: Memory allocation failed In-Reply-To: References: Message-ID: Hi, I?m getting the following response when trying to create a new application (of type ?go?) { "error": "Memory allocation failed." } Found the following in the unit.log: [crit] 5217#5217 *32 memfd_create(/unit.5217.19d4f81) failed (38: Function not implemented) Any idea, what I?m doing wrong? I?m using the Debian 8 pre-compiled package. Thanks and regards, Martin -------------- next part -------------- An HTML attachment was scrubbed... URL: From vbart at nginx.com Tue Mar 6 20:34:36 2018 From: vbart at nginx.com (Valentin V. Bartenev) Date: Tue, 06 Mar 2018 23:34:36 +0300 Subject: Memory allocation failed In-Reply-To: References: Message-ID: <3395803.0bn2U9GnxA@vbart-laptop> On Tuesday, 6 March 2018 22:36:07 MSK Martin Riedl via unit wrote: > Hi, > > I?m getting the following response when trying to create a new application > (of type ?go?) > { > "error": "Memory allocation failed." > } > > Found the following in the unit.log: > [crit] 5217#5217 *32 memfd_create(/unit.5217.19d4f81) failed (38: Function > not implemented) > > Any idea, what I?m doing wrong? > I?m using the Debian 8 pre-compiled package. Hello. What kernel version do you use? Could you show the uname -a output? wbr, Valentin V. Bartenev From martin.riedl.92 at googlemail.com Wed Mar 7 17:43:01 2018 From: martin.riedl.92 at googlemail.com (Martin Riedl) Date: Wed, 7 Mar 2018 12:43:01 -0500 Subject: Memory allocation failed In-Reply-To: <3395803.0bn2U9GnxA@vbart-laptop> References: <3395803.0bn2U9GnxA@vbart-laptop> Message-ID: Hello, The output is: Linux 3.14.32-xxxx-grs-ipv6-64 #7 SMP Wed Jan 27 18:05:09 CET 2016 x86_64 GNU/Linux Regards, Martin Am 6. M?rz 2018 um 21:33:42, Valentin V. Bartenev (vbart at nginx.com) schrieb: On Tuesday, 6 March 2018 22:36:07 MSK Martin Riedl via unit wrote: > Hi, > > I?m getting the following response when trying to create a new application > (of type ?go?) > { > "error": "Memory allocation failed." > } > > Found the following in the unit.log: > [crit] 5217#5217 *32 memfd_create(/unit.5217.19d4f81) failed (38: Function > not implemented) > > Any idea, what I?m doing wrong? > I?m using the Debian 8 pre-compiled package. Hello. What kernel version do you use? Could you show the uname -a output? wbr, Valentin V. Bartenev _______________________________________________ unit mailing list unit at nginx.org https://mailman.nginx.org/mailman/listinfo/unit -------------- next part -------------- An HTML attachment was scrubbed... URL: From vbart at nginx.com Wed Mar 7 20:48:36 2018 From: vbart at nginx.com (Valentin V. Bartenev) Date: Wed, 07 Mar 2018 23:48:36 +0300 Subject: Memory allocation failed In-Reply-To: References: <3395803.0bn2U9GnxA@vbart-laptop> Message-ID: <1854121.vLIZ3QTqih@vbart-laptop> Thanks for the information. As I expected you're using a non-standard outdated kernel for Debian 8 distribution that doesn't support the memfd_create() syscall. Unit package was built in Debian 8 with default kernel that is 3.16 and memfd_create() support. As a result, such binary won't work in your system. I recommend you to update the kernel, otherwise you may experience various problems with other software as well. The other option is to build Unit on your system without memfd_create(). wbr, Valentin V. Bartenev On Wednesday, 7 March 2018 20:43:01 MSK Martin Riedl via unit wrote: > Hello, > > The output is: > Linux 3.14.32-xxxx-grs-ipv6-64 #7 SMP Wed Jan 27 18:05:09 CET > 2016 x86_64 GNU/Linux > > Regards, > Martin > > Am 6. M?rz 2018 um 21:33:42, Valentin V. Bartenev (vbart at nginx.com) schrieb: > > On Tuesday, 6 March 2018 22:36:07 MSK Martin Riedl via unit wrote: > > Hi, > > > > I?m getting the following response when trying to create a new application > > (of type ?go?) > > { > > "error": "Memory allocation failed." > > } > > > > Found the following in the unit.log: > > [crit] 5217#5217 *32 memfd_create(/unit.5217.19d4f81) failed (38: Function > > not implemented) > > > > Any idea, what I?m doing wrong? > > I?m using the Debian 8 pre-compiled package. > > > Hello. > > What kernel version do you use? Could you show the uname -a output? > > wbr, Valentin V. Bartenev > > _______________________________________________ > unit mailing list > unit at nginx.org > https://mailman.nginx.org/mailman/listinfo/unit From martin.riedl.92 at googlemail.com Sun Mar 11 00:37:10 2018 From: martin.riedl.92 at googlemail.com (Martin Riedl) Date: Sat, 10 Mar 2018 19:37:10 -0500 Subject: Memory allocation failed In-Reply-To: <1854121.vLIZ3QTqih@vbart-laptop> References: <3395803.0bn2U9GnxA@vbart-laptop> <1854121.vLIZ3QTqih@vbart-laptop> Message-ID: Thanks. Kernel update solved it. You?re doing a great job with unit ? Am 7. M?rz 2018 um 21:47:41, Valentin V. Bartenev (vbart at nginx.com) schrieb: Thanks for the information. As I expected you're using a non-standard outdated kernel for Debian 8 distribution that doesn't support the memfd_create() syscall. Unit package was built in Debian 8 with default kernel that is 3.16 and memfd_create() support. As a result, such binary won't work in your system. I recommend you to update the kernel, otherwise you may experience various problems with other software as well. The other option is to build Unit on your system without memfd_create(). wbr, Valentin V. Bartenev On Wednesday, 7 March 2018 20:43:01 MSK Martin Riedl via unit wrote: > Hello, > > The output is: > Linux 3.14.32-xxxx-grs-ipv6-64 #7 SMP Wed Jan 27 18:05:09 CET > 2016 x86_64 GNU/Linux > > Regards, > Martin > > Am 6. M?rz 2018 um 21:33:42, Valentin V. Bartenev (vbart at nginx.com) schrieb: > > On Tuesday, 6 March 2018 22:36:07 MSK Martin Riedl via unit wrote: > > Hi, > > > > I?m getting the following response when trying to create a new application > > (of type ?go?) > > { > > "error": "Memory allocation failed." > > } > > > > Found the following in the unit.log: > > [crit] 5217#5217 *32 memfd_create(/unit.5217.19d4f81) failed (38: Function > > not implemented) > > > > Any idea, what I?m doing wrong? > > I?m using the Debian 8 pre-compiled package. > > > Hello. > > What kernel version do you use? Could you show the uname -a output? > > wbr, Valentin V. Bartenev > > _______________________________________________ > unit mailing list > unit at nginx.org > https://mailman.nginx.org/mailman/listinfo/unit _______________________________________________ unit mailing list unit at nginx.org https://mailman.nginx.org/mailman/listinfo/unit -------------- next part -------------- An HTML attachment was scrubbed... URL: From vbart at nginx.com Fri Mar 23 13:34:19 2018 From: vbart at nginx.com (Valentin V. Bartenev) Date: Fri, 23 Mar 2018 16:34:19 +0300 Subject: Unit 0.7 beta release Message-ID: <6619980.0BaP2Wpb1W@vbart-workstation> Hello, I'm glad to announce a new beta of NGINX Unit with a number of bugfixes and Ruby/Rack support. Now you can easily run applications like Redmine with Unit. The full list of supported languages today is PHP, Python, Go, Perl, and Ruby. More languages are coming. Changes with Unit 0.7 22 Mar 2018 *) Feature: Ruby application module. *) Bugfix: in discovering modules. *) Bugfix: various race conditions on reconfiguration and during shutting down. *) Bugfix: tabs and trailing spaces were not allowed in header fields values. *) Bugfix: a segmentation fault occurred in Python module if start_response() was called outside of WSGI callable. *) Bugfix: a segmentation fault might occur in PHP module if there was an error while initialization. Binary Linux packages and Docker images are available here: - Packages: https://unit.nginx.org/installation/#precompiled-packages - Docker: https://hub.docker.com/r/nginx/unit/tags/ Packages and images for the new Ruby module will be built next week. wbr, Valentin V. Bartenev From evilqaz at gmail.com Mon Mar 26 14:16:56 2018 From: evilqaz at gmail.com (Qaz) Date: Mon, 26 Mar 2018 17:16:56 +0300 Subject: =?UTF-8?Q?RAILS_ENV_=D0=B2_unit?= Message-ID: ?????? ????, ????? ???? ?????? ????????? nginx unit'?? ruby. ?? ??? ??? ????? ? ? ?????????? ? ?????????, ?? ???? ??????? production environment ??? ??????????. ??????????, ??? ??? ???????, ???????! -------------- next part -------------- An HTML attachment was scrubbed... URL: From vbart at nginx.com Mon Mar 26 14:59:43 2018 From: vbart at nginx.com (=?utf-8?B?0JLQsNC70LXQvdGC0LjQvSDQkdCw0YDRgtC10L3QtdCy?=) Date: Mon, 26 Mar 2018 17:59:43 +0300 Subject: =?UTF-8?Q?Re=3A_RAILS_ENV_=D0=B2_unit?= In-Reply-To: References: Message-ID: <2605244.ZRJfjCosnS@vbart-workstation> On Monday 26 March 2018 17:16:56 Qaz wrote: > ?????? ????, ????? ???? ?????? ????????? nginx unit'?? ruby. ?? ??? ??? > ????? ? ? ?????????? ? ?????????, ?? ???? ??????? production environment > ??? ??????????. ??????????, ??? ??? ???????, ???????! ????????????? ?????????? ????????? ????? ???????????? ? ????????? ?????? ??????. ?? ????? ??????? ??? ? ????? Rackup-???????, ??????? ???????????? ??? ??????? ??????????. ???????? ???: app = Proc.new do |env| ['200', { 'Env' => ENV["RAILS_ENV"] }, ['']] end ENV["RAILS_ENV"] = "production" run app -- ???????? ????????