<div dir="ltr">The built in rails web server is not for production purposes. Please use something like passenger and apache, or nginx to run the GUI.</div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Nov 7, 2016 at 5:16 AM, Kris Germann <span dir="ltr"><<a href="mailto:kgermann@portal.net.co" target="_blank">kgermann@portal.net.co</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><u></u>

    
<div><p></p><div class="m_727264091244463699io-ox-signature"><p>I find the whole server crashes now, and I've only got three live devices on it for testing:</p><p>[2016-11-07 09:12:01] FATAL SignalException: SIGTERM</p><p>/usr/local/lib/ruby/2.1.0/<wbr>webrick/server.rb:170:in `select'</p><p>/usr/local/lib/ruby/2.1.0/<wbr>webrick/server.rb:170:in `block in start'</p><p>/usr/local/lib/ruby/2.1.0/<wbr>webrick/server.rb:32:in `start'</p><p>/usr/local/lib/ruby/2.1.0/<wbr>webrick/server.rb:160:in `start'</p><p>/usr/local/lib/ruby/gems/2.1.<wbr>0/gems/rack-1.5.2/lib/rack/<wbr>handler/webrick.rb:14:in `run'</p><p>/usr/local/lib/ruby/gems/2.1.<wbr>0/gems/rack-1.5.2/lib/rack/<wbr>server.rb:264:in `start'</p><p>/usr/local/lib/ruby/gems/2.1.<wbr>0/gems/railties-4.1.4/lib/<wbr>rails/commands/server.rb:69:in `start'</p><p>/usr/local/lib/ruby/gems/2.1.<wbr>0/gems/railties-4.1.4/lib/<wbr>rails/commands/commands_tasks.<wbr>rb:81:in `block in server'</p><p>/usr/local/lib/ruby/gems/2.1.<wbr>0/gems/railties-4.1.4/lib/<wbr>rails/commands/commands_tasks.<wbr>rb:76:in `tap'</p><p>/usr/local/lib/ruby/gems/2.1.<wbr>0/gems/railties-4.1.4/lib/<wbr>rails/commands/commands_tasks.<wbr>rb:76:in `server'</p><p>/usr/local/lib/ruby/gems/2.1.<wbr>0/gems/railties-4.1.4/lib/<wbr>rails/commands/commands_tasks.<wbr>rb:40:in `run_command!'</p><p>/usr/local/lib/ruby/gems/2.1.<wbr>0/gems/railties-4.1.4/lib/<wbr>rails/commands.rb:17:in `<top (required)>'</p><p>bin/rails:4:in `require'</p><p>bin/rails:4:in `<main>'</p><p>[2016-11-07 09:12:01] INFO  going to shutdown ...</p><p>[2016-11-07 09:12:01] INFO  WEBrick::HTTPServer#start done.d</p><p>Kris <br></p></div><div><div class="h5"><blockquote type="cite">On November 2, 2016 at 8:46 AM Kris Germann <<a href="mailto:kgermann@portal.net.co" target="_blank">kgermann@portal.net.co</a>> wrote:<br><br><div class="m_727264091244463699ox-e1eba287d7-io-ox-signature"><p> <br></p>Typically I'll see the terminal output below when I load the web app on my end indicating the web server is serving the content to my browser:</div><div class="m_727264091244463699ox-e1eba287d7-io-ox-signature"><p>Started GET "/devices?query=%7B%7D&sort=-<wbr>summary.lastInform" for 208.79.61.232 at 2016-11-02 08:41:23 -0400</p><p>Processing by DevicesController#index as HTML</p><p>  Parameters: {"query"=>"{}", "sort"=>"-summary.lastInform"}</p><p>  Rendered application/_pagination.html.<wbr>erb (5.9ms)</p><p>  Rendered devices/index.html.erb within layouts/application (16.6ms)</p><p>  Rendered layouts/_menu.html.erb (0.7ms)</p><p>Completed 200 OK in 53ms (Views: 25.2ms | ActiveRecord: 0.0ms)</p><p>However, sometimes when I load GenieACS I just get a blank page, and there are no output logs like the one above in the console.</p><p>It seems the only way to remedy this is to reset GenieACS services - which, frankly is fine, but if that's the ONLY way to fix it is there a way I can reset just the rails app via cron every few hours?</p><p>Starting the rails with:</p><p>"cd /opt/genieacs-gui</p><p>/usr/local/bin/rails server &</p><p>sleep 3"</p><p>Kris</p></div></blockquote><p><br> </p></div></div><blockquote type="cite">______________________________<wbr>_________________ Users mailing list <a href="mailto:Users@lists.genieacs.com" target="_blank">Users@lists.genieacs.com</a> <a href="http://lists.genieacs.com/mailman/listinfo/users" target="_blank">http://lists.genieacs.com/<wbr>mailman/listinfo/users</a></blockquote></div>
 
<br>______________________________<wbr>_________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.genieacs.com">Users@lists.genieacs.com</a><br>
<a href="http://lists.genieacs.com/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.genieacs.com/<wbr>mailman/listinfo/users</a><br>
<br></blockquote></div><br></div>