Questions tagged [unicorn]

A unicorn is a magical weaponized HTTP server for Ruby.

Filter by
Sorted by
Tagged with
0 votes
0 answers
36 views

Fuzzing using Qemu or Unicorn

I'm studying fuzzing and I need to know when to use qemu mode and when to use unicorn mode if I want to fuzz embedded systems software? I expect that the difference will based on the application I'm ...
Msafwat's user avatar
0 votes
0 answers
56 views

How to test unicorn.rb

I've actually been Unicorn for a few years now, but I've never really run any proper tests on my basic code for running a Unicorn application. So one of the first things I want to test is unicorn.rb. ...
tscheingeld's user avatar
0 votes
1 answer
37 views

How do I know which git revision unicorn/rails has currently loaded into memory?

I am debugging a problem where I experience unicorn not picking up code changes on deploys when I use the master re-spawn procedure for upgrading. I need a way to ask unicorn/my rails app which code ...
Niels Kristian's user avatar
0 votes
0 answers
195 views

unicorn engine exception on mapped memory

I'm trying to emulate a MIPS 32 big-endian binary. Unfortunately, it throws an exception on the first instructions. I tried to start it from the second, and third instructions as well: #!/bin/python3 ...
Shpongle's user avatar
0 votes
0 answers
34 views

Questions about Unicorn::ClientShutdown

Can anyone help me better understand Unicorn::ClientShutdown errors? I see them occasionally via my web app's error logs and I have no idea what's causing them, how I can replicate the issue, or ...
JJL's user avatar
  • 116
0 votes
1 answer
66 views

Does Unicorn app server workers goes up and down all the time? or they are long lived? how do they retrieve the request from master?

We have a Rails app inside a Unicorn app server. Unicron works with processes(unlike Puma for example that works with threads). I understand the general architecture, where there's one master process ...
nadavgam's user avatar
  • 2,046
0 votes
2 answers
2k views

Unable to install pwn package for python

I am trying to install the pwn library on my MacBook Air (M2, 2022) but it's failing while building the wheel for unicorn. I'm using python version 3.10.6. This is the command I'm using: python3 -m ...
Kolliden's user avatar
1 vote
0 answers
91 views

Load Python Dependencies With Conflicting Sub-dependencies

I have created two virtual environments (with virtualenv) for two dependencies I will be importing, namely Qiling (a framework for binary emulation based on Unicorn Emulator) and Angr (a binary ...
falhumai96's user avatar
0 votes
1 answer
217 views

Problem Loading Ruby Rails Unicorn in ECS Fargate When Building Image in CircleCI (Works Locally)

I am having issues deploying a Ruby on Rails App to ECS Fargate. When I build the image locally (the same way it is done in the pipeline). I can easily start the web service with this command ["...
Keimille's user avatar
  • 345
1 vote
1 answer
762 views

How to use ruby-debug-ide with unicorn_rails?

I'd like to use VScode as an integrated debugger with Ruby on Rails. There seem to be pretty good guides on how to do this, whether launching the process in VScode or attaching to a running debug ...
Isaiah Shiner's user avatar
1 vote
0 answers
107 views

how to disable rails/unicorn default requests log

We have a rails app(v5.2.6) running inside a unicorn. we are bombarded with log msgs like the following: 24.33.33.243, 12.0.52.41 - - [26/Jun/2022:13:43:39 +0000] "GET /our_path HTTP/1.1" ...
nadavgam's user avatar
  • 2,046
0 votes
1 answer
151 views

How to ensure unicorn disconnects ALL DB connections in rails 6.1?

In unicorn.rb it's common to have clauses like this: before_fork do |server, worker| # Disconnect since the database connection will not carry over if defined? ActiveRecord::Base ActiveRecord::...
Niels Kristian's user avatar
-1 votes
1 answer
405 views

Sitecore or Unicorn auto sync items locally during night on my dev machine?

I have a problem with my branch being clean when I leave work, and when I return the next morning I have a list of 50 Sitecore items that are updated. It is only a Date Last Syncronized value that ...
Michael's user avatar
0 votes
0 answers
208 views

Docker environment variable empty in Sitecore patch file

Following this document: https://doc.sitecore.com/en/developers/101/developer-tools/sync-items-with-a-running-container.html, I tried to set the sourceFolder variable in a Sitecore patch config file ...
Massimo Della Calce's user avatar
1 vote
2 answers
2k views

RoR App: “The asset 'application.css' is not present in the asset pipeline”

Info: Rails 6.1.4 Ruby 3.0.1 PostgreSQL 9.6 NodeJS 11.15.0 Yarn 1.22.5 when I start my APP I always got the same error: I've tried all I saw in others posts but I can´t resolve this problem. Any ...
Harold Alcalde Solarte's user avatar
2 votes
0 answers
417 views

Puma not outperforming Unicorn (Rails 5.0 app) - is this normal?

Trying to make better uses of an AWS server that serves roughly 30,000 users/day. Current server: AWS EC2, t3.xlarge, 4 vCPUs, 16GB memory Rails 5.0 app, Ruby 2.6.7, web server is nginx I was ...
DelPiero's user avatar
  • 489
2 votes
0 answers
2k views

Rails + Nginx - why i should use fail_timeout=0 for multiple nodes?

In nginx example config file here https://github.com/defunkt/unicorn/blob/master/examples/nginx.conf you may see that: # The only setting we feel strongly about is the fail_timeout=0 # directive in ...
Andrey Artemyev's user avatar
0 votes
1 answer
669 views

Unicorn Engine - Emulate ARM and THUMB mode simultaneously

I am fairly new to assembly code, Keystone Engine and Unicorn Engine and I have an issue trying to solve a reverse engineering challenge. I was given some assembly code which consists of both arm and ...
Sanjeev Persad's user avatar
0 votes
1 answer
170 views

Nginx and Unicorn) Cannot access local server

After deploying my Application(Ruby on Rails) to Heroku using Nginx and Unicorn, I cannot access local server. When I run 'rails s' command: % rails s => Booting Unicorn => Rails 5.2.4.5 ...
Hiro Koba's user avatar
0 votes
0 answers
146 views

BeautifulSoup does not work properly on server

I have developed my backend using FastApi, and I am running it with the Unicorn on AWS EC2 ubuntu. In my code, I use BeautifulSoup to work on XML files, but when I pass the large XML file with an ...
Omidkk's user avatar
  • 11
1 vote
1 answer
620 views

502 Bad Gateway on platform.sh with rails 6 app + unicorn

I've deployed my rails 6 application on platform.sh the deployment was successful, but I have a 502 error on home page. 502 Bad Gateway I think that the migration or the database creation fails. I ...
kamate vakaramoko's user avatar
0 votes
1 answer
878 views

How to start Unicorn with systemctl and systemd

I would like to start Unicorn with systemctl on the amazon-linux-2, but the Unicorn doesn't start. I've wrote a /etc/systemd/system/unicorn.service file. [Unit] Description=The unicorn process [...
Kuroineko's user avatar
3 votes
0 answers
508 views

How to setup Rails schema cache with Unicorn, Octopus, and Postgresql

I have this setup: Rails 5.2 Unicorn HTTP server with preload_app true Octopus gem (https://github.com/thiagopradi/octopus) for database sharding Postgresql 12.4 I want to make use of Rails' schema ...
bubiche's user avatar
  • 31
1 vote
0 answers
22 views

How can I run the 2 rails projects with the certificate file of main domain?

I have the SSL certificate file of the main domain - example.com Currently, I am running the one Rails App on AWS EC2 using Rails + Unicorn + Nginx. This is my Nginx config file which works. upstream ...
user avatar
0 votes
1 answer
313 views

rails app hangs when redirect to .pdf url with wicked_pdf middle wear, but generates the pdf file in /tmp after system time out

the problem: both my prod and dev environment is using nginx and unicorn, i am trying to use wicked_pdf gem to generate a pdf version of my user list page, it is working in the dev environment. ...
gkeepa's user avatar
  • 131
0 votes
1 answer
903 views

Nginx and Unicorn not working due to unicorn.sock file error

I am setting up VPS for the first time on upcloud. I am using unicorn 5.5.5 with Nginx. Rails 4.2.8 and ruby 2.4.2. My Nginx service runs fine. Doesn't show any error. Whenever I start unicorn service ...
Muhammad Hamza Altaf's user avatar
1 vote
1 answer
237 views

Singleton disappears when forking unicorn processes in Rails

I've got a rails app running ruby 2.4.4 using Unicorn as a web server which makes use of a singleton to read from Kafka in a background thread. The idea is to have a single instance of the singleton ...
timpwbaker's user avatar
0 votes
1 answer
228 views

How do I configure SSL on Nginx and Unicorn for Rails application?

I am trying to add SLL to my rails app. For that, I am using certbot. Till now I have gone through these articles link 1 and link 2. But both are not working. Let me know what is the issue. As when ...
Sumit Jangra's user avatar
0 votes
1 answer
191 views

Ubuntu + Unicorn: You must use Bundler 2 or greater with this lockfile. (Bundler::LockfileError)

I have a problem to run unicorn on Ubuntu 16. When trying to run it - either manually (service unicorn_myapp_staging restart) or through Capistrano, I get this message: You must use Bundler 2 or ...
user984621's user avatar
  • 46.5k
0 votes
1 answer
197 views

Unicorn different timeout for different controller actions

I have simple question but cannot find the answer. Can I set different timeout for different controller action? The reason is that I am serving one huge json for d3.js chart and unicorn is killing ...
Mi Ro's user avatar
  • 740
0 votes
1 answer
456 views

Sitecore VS project configuration for Unicorn serialization

I have a new Sitecore SXA solution in VS 2017 that follows Helix best practices with Unicorn Serialization. Our Sitecore 9.3 runs in a docker container. I created a first site - EA - in Sitecore CMS ...
Rich Rosiak's user avatar
0 votes
1 answer
87 views

Ruby searching template on old/not existant release

I'm using ruby on rails and I'm sending notifications to the user using a gem called UserNotifier. Lately I tried to change the templates of those notifications, but the sent emails did not change at ...
Gustavo Guimarães's user avatar
1 vote
0 answers
247 views

Unable to start Unicorn(EC2×Nginx×Unicorn)

Overview I making production environment with AWS(EC2)+Nginx+Uniconr on myRailsApp. I completed connection to EC2 and Nginx setting,Unicorn setting. But I can't start to Unicorn. I tried unicorn ...
Ayaka Moronaga's user avatar
1 vote
1 answer
447 views

ActionCable with SSL not working in production environment

I am using ActionCable in rails 5.2 and deployed the code on AWS with nginx server. Previously WebSocket was working when I was working on http but when i have implemented SSL, it stopped working. For ...
Prashant Vardhan Singh's user avatar
0 votes
1 answer
85 views

How do I run a function in only one thread in a multi-threaded Unicorn Sinatra server?

I put my cron task in a module, and then in my Sinatra server. module Cron scheduler = Rufus::Scheduler.new scheduler.every "30m", :first => :now do run_cmd('git pull') puts "pulled ...
Eric's user avatar
  • 2,645
0 votes
0 answers
99 views

How do I turn off error details in Unicorn?

I'm using Ruby and Unicorn for developing my web pages. When there's an error in my page Unicorn displays a page detailing the error and the lines in my code where the error occurs. That's fine for ...
tscheingeld's user avatar
0 votes
1 answer
194 views

unicorn-worker-killer- why is it a problem if multiple Unicorn workers are killed at the same time?

From the unicorn-worker-killer README, I see the following comment in the notes about the Unicorn::WorkerKiller::Oom module: memory_limit_min and memory_limit_max specify the min and max of ...
Richie Thomas's user avatar
1 vote
0 answers
164 views

In Gitlab's "config.ru", why "require 'unicorn'" if it's already defined?

I'm doing a deep-dive into how Gitlab's web application works, and I'm starting by looking at the webserver it uses (Unicorn). The config.ru file looks like the following: if defined?(Unicorn) ...
Richie Thomas's user avatar
1 vote
0 answers
683 views

ruby unicorn as service in docker - uses wrong rake

my problem is that i can start unicorn as a service in docker, though it works just fine if i start it from command line. trying to build ruby with unicorn and nginx web server docker image. using as ...
user2932688's user avatar
  • 1,556
0 votes
1 answer
393 views

monit and unicorn restart command not working in rails 5.2 application

I configured Monit to watch unicorn and restart it when the memory exceeded or the cpu increased above a certain limit , how ever when it happens , monit doesn't restart unicorn , and here is the ...
Remon Amin's user avatar
  • 1,516
0 votes
0 answers
186 views

Selenium web driver issue with rails server

I am facing a very wired issues, with selenium driver and webdrivers. you can see snippet of codebase that I am using. But main issues is that this code working fine at some places like local server, ...
Vik's user avatar
  • 5,931
0 votes
0 answers
409 views

`127.0.0.1' is not a valid domain

I have a rails application running on Nginx server and unicorn as an application server. All of the requests process fine but I am getting an error of `127.0.0.1' is not a valid domain after every ...
Sibgha Samdani's user avatar
0 votes
0 answers
276 views

Rails app deploying with unicorn and Nginx can't load static resources on Kubernetes infraestructure

I'm trying to deploy a Rails application using Kubernetes ... the main container of my application is built using ruby ​​2.5.5 + unicorn ... I used Mongo as DB ... the container works well because I ...
Alejandro Roble Gutiérrez's user avatar
1 vote
0 answers
444 views

Rails slow only with Unicorn / Puma

Running rails 5.0.x, Ruby 2.6.3. And I am having performance problems very specifically when using Unicorn or Puma. Upgrading Rails is going to be quite some work but that's going to be the next thing ...
Dmitriy Likhten's user avatar
0 votes
1 answer
265 views

where to save the unicorn PIDS and sockets path as the folders gets dissappers after mina deploy rails app

I have set up a server for deploying my rails app. I am not able to start unicorn service. It is giving me a failed status. I am totally new to this. So as per this tutorial https://www.digitalocean....
Aaquib Khan's user avatar
1 vote
0 answers
160 views

uninitialized constant Devise (NameError) unicorn

I deployed my rails app with capistrano to digitalocean and after adding new gem gem 'devise_token_auth', '1.0.0' after deploying I faced strange issue in unicorn log. It is bellow E, [2019-05-...
a.kozubenko's user avatar
  • 1,040
1 vote
1 answer
243 views

Rails: Is it possible to auto adjust unicorn worker processes quantity?

I have a rails app running on unicorn & NGINX app&web server. Whenever the system is booted, unicorn is started with the required number of workers which is defined in the config/unicorn.rb ...
Tolga's user avatar
  • 1,307
1 vote
1 answer
380 views

Unicorn fcntl: Errno::EPERM: Operation not permitted

I've been running Rails application on Unicorn 5.5.5 and on certain environments it throws an exception which reads bundler: failed to load command: unicorn (/usr/local/bundle/bin/unicorn) Errno::...
Sid's user avatar
  • 6,144
-1 votes
1 answer
233 views

unicorn production configuration

I see my unicorn error file growing, and I can't find out why. It log some path but when I try them on my browser, I don't see any issue neither redirection. I'm using rails and this is a snippet of ...
user2016483's user avatar
3 votes
2 answers
3k views

Unicorn Refreshing Gem List

Guys I'm trying to restart my unicorn service and seems it get stuck on this [2019-03-06T20:45:05.938802 #7614] INFO -- : Refreshing Gem list /usr/local/rvm/gems/ruby-2.5.1@citius_artis/gems/unicorn-...
Pedro Sturmer's user avatar

1
2 3 4 5
26