huginn / huginn

Create agents that monitor and act on your behalf. Your agents are standing by!
MIT License
43.12k stars 3.75k forks source link

Internal server error #2029

Open keshavm021 opened 7 years ago

keshavm021 commented 7 years ago

Internal Server Error

Failed to open TCP connection to localhost:35729 (getaddrinfo: Name or service not known) WEBrick/1.3.1 (Ruby/2.4.0/2016-12-24) at localhost:3000

This is the error shown when I try to run on the local server.

dsander commented 7 years ago

Hi @keshavm021,

can you please provide more of the output of the shell where you ran foreman start as well as the logs in log/development.log?

keshavm021 commented 7 years ago

after foreman start shell output 23:15:12 web.1 | started with pid 8302 23:15:12 jobs.1 | started with pid 8303 23:15:31 web.1 | [2017-06-08 10:45:31] INFO WEBrick 1.3.1 23:15:31 web.1 | [2017-06-08 10:45:31] INFO ruby 2.4.0 (2016-12-24) [x86_64-linux] 23:15:31 web.1 | [2017-06-08 10:45:31] INFO WEBrick::HTTPServer#start: pid=8304 port=3000 23:15:31 jobs.1 | /home/mifi/huginn/lib/utils.rb:175: warning: already initialized constant Utils::HTMLTransformer::SINGLE 23:15:31 jobs.1 | /home/mifi/huginn/lib/utils.rb:175: warning: previous definition of SINGLE was here 23:15:31 jobs.1 | /home/mifi/huginn/lib/utils.rb:176: warning: already initialized constant Utils::HTMLTransformer::MULTIPLE 23:15:31 jobs.1 | /home/mifi/huginn/lib/utils.rb:176: warning: previous definition of MULTIPLE was here 23:15:31 jobs.1 | /home/mifi/huginn/lib/utils.rb:177: warning: already initialized constant Utils::HTMLTransformer::COMMA_SEPARATED 23:15:31 jobs.1 | /home/mifi/huginn/lib/utils.rb:177: warning: previous definition of COMMA_SEPARATED was here 23:15:31 jobs.1 | /home/mifi/huginn/lib/utils.rb:178: warning: already initialized constant Utils::HTMLTransformer::SRCSET 23:15:31 jobs.1 | /home/mifi/huginn/lib/utils.rb:178: warning: previous definition of SRCSET was here 23:15:31 jobs.1 | /home/mifi/huginn/lib/utils.rb:180: warning: already initialized constant Utils::HTMLTransformer::URI_ATTRIBUTES 23:15:31 jobs.1 | /home/mifi/huginn/lib/utils.rb:180: warning: previous definition of URI_ATTRIBUTES was here 23:15:31 jobs.1 | /home/mifi/huginn/lib/utils.rb:208: warning: already initialized constant Utils::HTMLTransformer::URI_ELEMENTS_XPATH 23:15:31 jobs.1 | /home/mifi/huginn/lib/utils.rb:208: warning: previous definition of URI_ELEMENTS_XPATH was here 23:15:31 jobs.1 | Starting HuginnScheduler 23:15:31 jobs.1 | /usr/local/lib/ruby/gems/2.4.0/gems/rufus-scheduler-3.3.2/lib/rufus/scheduler/cronline.rb:89: warning: constant ::Fixnum is deprecated 23:15:32 jobs.1 | Starting DelayedJobWorker And the log/development.log file some of generated code are:- 23:15:12 web.1 | started with pid 8302 23:15:12 jobs.1 | started with pid 8303 23:15:31 web.1 | [2017-06-08 10:45:31] INFO WEBrick 1.3.1 23:15:31 web.1 | [2017-06-08 10:45:31] INFO ruby 2.4.0 (2016-12-24) [x86_64-linux] 23:15:31 web.1 | [2017-06-08 10:45:31] INFO WEBrick::HTTPServer#start: pid=8304 port=3000 23:15:31 jobs.1 | /home/mifi/huginn/lib/utils.rb:175: warning: already initialized constant Utils::HTMLTransformer::SINGLE 23:15:31 jobs.1 | /home/mifi/huginn/lib/utils.rb:175: warning: previous definition of SINGLE was here 23:15:31 jobs.1 | /home/mifi/huginn/lib/utils.rb:176: warning: already initialized constant Utils::HTMLTransformer::MULTIPLE 23:15:31 jobs.1 | /home/mifi/huginn/lib/utils.rb:176: warning: previous definition of MULTIPLE was here 23:15:31 jobs.1 | /home/mifi/huginn/lib/utils.rb:177: warning: already initialized constant Utils::HTMLTransformer::COMMA_SEPARATED 23:15:31 jobs.1 | /home/mifi/huginn/lib/utils.rb:177: warning: previous definition of COMMA_SEPARATED was here 23:15:31 jobs.1 | /home/mifi/huginn/lib/utils.rb:178: warning: already initialized constant Utils::HTMLTransformer::SRCSET 23:15:31 jobs.1 | /home/mifi/huginn/lib/utils.rb:178: warning: previous definition of SRCSET was here 23:15:31 jobs.1 | /home/mifi/huginn/lib/utils.rb:180: warning: already initialized constant Utils::HTMLTransformer::URI_ATTRIBUTES 23:15:31 jobs.1 | /home/mifi/huginn/lib/utils.rb:180: warning: previous definition of URI_ATTRIBUTES was here 23:15:31 jobs.1 | /home/mifi/huginn/lib/utils.rb:208: warning: already initialized constant Utils::HTMLTransformer::URI_ELEMENTS_XPATH 23:15:31 jobs.1 | /home/mifi/huginn/lib/utils.rb:208: warning: previous definition of URI_ELEMENTS_XPATH was here 23:15:31 jobs.1 | Starting HuginnScheduler 23:15:31 jobs.1 | /usr/local/lib/ruby/gems/2.4.0/gems/rufus-scheduler-3.3.2/lib/rufus/scheduler/cronline.rb:89: warning: constant ::Fixnum is deprecated 23:15:32 jobs.1 | Starting DelayedJobWorker

dsander commented 7 years ago

That output all looks normal to me, it also does not include the error you pasted. Did that only happen once?

keshavm021 commented 7 years ago

The top one is the actual error when I try to run on localhost it shows internal server error. @dsander

dsander commented 7 years ago

If you started the server differently please show which command you used and then check the console as well as log/development.log after the internal server error happened. We need a backtrace or at least reproduction steps.

keshavm021 commented 7 years ago

Hi, @dsander issue is solved it was regarding the ram usage my ram usage was over 90% so because of this it was showing internal server error so I upgraded my ram from 4 GB to 8 GB now it is working without any problem but thanks for the help.

dsander commented 7 years ago

Nice, glad to hear that. Can we close the issue?

keshavm021 commented 7 years ago

Yeah, you can close the issue.Thanks for the help.@dsander

keshavm021 commented 7 years ago

There was an error while running the command can anyone help me out to figure this error? @dsander @cantino

mifi@mifi-Aspire-E1-572:~/huginn$ bundle exec foreman start
21:30:53 web.1  | started with pid 18058
21:30:53 jobs.1 | started with pid 18060
21:31:00 jobs.1 | /home/mifi/huginn/lib/utils.rb:175: warning: already initialized constant Utils::HTMLTransformer::SINGLE
21:31:00 jobs.1 | /home/mifi/huginn/lib/utils.rb:175: warning: previous definition of SINGLE was here
21:31:00 jobs.1 | /home/mifi/huginn/lib/utils.rb:176: warning: already initialized constant Utils::HTMLTransformer::MULTIPLE
21:31:00 jobs.1 | /home/mifi/huginn/lib/utils.rb:176: warning: previous definition of MULTIPLE was here
21:31:00 jobs.1 | /home/mifi/huginn/lib/utils.rb:177: warning: already initialized constant Utils::HTMLTransformer::COMMA_SEPARATED
21:31:00 jobs.1 | /home/mifi/huginn/lib/utils.rb:177: warning: previous definition of COMMA_SEPARATED was here
21:31:00 jobs.1 | /home/mifi/huginn/lib/utils.rb:178: warning: already initialized constant Utils::HTMLTransformer::SRCSET
21:31:00 jobs.1 | /home/mifi/huginn/lib/utils.rb:178: warning: previous definition of SRCSET was here
21:31:00 jobs.1 | /home/mifi/huginn/lib/utils.rb:180: warning: already initialized constant Utils::HTMLTransformer::URI_ATTRIBUTES
21:31:00 jobs.1 | /home/mifi/huginn/lib/utils.rb:180: warning: previous definition of URI_ATTRIBUTES was here
21:31:00 jobs.1 | /home/mifi/huginn/lib/utils.rb:208: warning: already initialized constant Utils::HTMLTransformer::URI_ELEMENTS_XPATH
21:31:00 jobs.1 | /home/mifi/huginn/lib/utils.rb:208: warning: previous definition of URI_ELEMENTS_XPATH was here
21:31:00 web.1  | A server is already running. Check /home/mifi/huginn/tmp/pids/server.pid.
21:31:00 web.1  | => Booting WEBrick
21:31:00 web.1  | => Rails 5.1.1 application starting in development on http://0.0.0.0:3000
21:31:00 web.1  | => Run `rails server -h` for more startup options
21:31:00 web.1  | Exiting
21:31:00 web.1  | exited with code 1
21:31:00 system | sending SIGTERM to all processes
21:31:00 jobs.1 | terminated by SIGTERM
dsander commented 7 years ago

@keshavm021 I don't see an error in the output, SIGTERM (either ctrl-c or a kill command) was send to foreman which then terminated the processes. Can you attach the output in log/development.log?

yqrashawn commented 6 years ago

c67b35d4-1cc9-4740-bb30-b54387311973