I am developing a site with devise gem. Locally it's work but on heroku it is not working. Devise also send confirmation email locally but show nothing on heroku.
http://incomon.herokuapp.com/
Heroku Logs
2014-02-25T06:05:47.922900+00:00 app[web.1]: [deprecated] I18n.enforce_available_locales will default to true in the future. If you really want to skip validation of your locale you can set I18n.enforce_available_locales = false to avoid this message.
2014-02-25T06:05:47.934244+00:00 heroku[router]: at=info method=POST path=/users/sign_up host=incomon.herokuapp.com request_id=140cdcbc-c6be-4dbb-bcaf-4ab77f7a76e0 fwd="182.185.250.158" dyno=web.1 connect=2ms service=76ms status=200 bytes=3573
2014-02-25T06:24:01.826741+00:00 heroku[router]: at=info method=GET path=/ host=incomon.herokuapp.com request_id=8c3a9cc2-26c2-441f-b079-601d53025787 fwd="182.185.250.158" dyno=web.1 connect=88ms service=61ms status=304 bytes=1022
2014-02-25T06:24:03.441070+00:00 heroku[router]: at=info method=POST path=/users/sign_up host=incomon.herokuapp.com request_id=52e81d7a-cd33-4bf8-9a7c-c85ef57f9ca6 fwd="182.185.250.158" dyno=web.1 connect=1ms service=15ms status=200 bytes=3573
2014-02-25T06:24:15.053833+00:00 app[web.1]: FATAL: terminating connection due to administrator command
2014-02-25T06:27:07.154449+00:00 heroku[router]: at=info method=GET path=/ host=incomon.herokuapp.com request_id=377101eb-2804-46d3-a41d-d0f65fd07726 fwd="182.185.250.158" dyno=web.1 connect=0ms service=67ms status=200 bytes=1636
2014-02-25T06:27:10.767345+00:00 heroku[router]: at=info method=GET path=/favicon.ico host=incomon.herokuapp.com request_id=8681650f-b5ea-438f-b16a-ccf863e49eab fwd="182.185.250.158" dyno=web.1 connect=1ms service=6ms status=200 bytes=228
2014-02-25T06:27:26.227841+00:00 heroku[router]: at=info method=POST path=/users host=incomon.herokuapp.com request_id=18c1662e-070f-4cc4-b800-347d2ba8663a fwd="182.185.250.158" dyno=web.1 connect=1ms service=136ms status=500 bytes=1543
2014-02-25T06:27:26.692345+00:00 heroku[router]: at=info method=GET path=/favicon.ico host=incomon.herokuapp.com request_id=a5491fe3-e684-4b3e-b094-7ca5f096866f fwd="182.185.250.158" dyno=web.1 connect=2ms service=7ms status=304 bytes=133
2014-02-25T06:27:35.903201+00:00 heroku[router]: at=info method=GET path=/ host=incomon.herokuapp.com request_id=b826446e-15d7-487f-a93f-86a667a034bb fwd="182.185.250.158" dyno=web.1 connect=1ms service=10ms status=304 bytes=848
2014-02-25T06:27:36.553396+00:00 heroku[router]: at=info method=GET path=/favicon.ico host=incomon.herokuapp.com request_id=03a94dbd-2bd0-417a-8333-67a4996605f6 fwd="182.185.250.158" dyno=web.1 connect=0ms service=8ms status=304 bytes=133
2014-02-25T06:27:39.361486+00:00 heroku[router]: at=info method=GET path=/favicon.ico host=incomon.herokuapp.com request_id=d0eae806-b61b-4f84-af8e-d0fc73b30c64 fwd="182.185.250.158" dyno=web.1 connect=0ms service=7ms status=304 bytes=133
2014-02-25T06:27:40.517027+00:00 heroku[router]: at=info method=POST path=/users/sign_in host=incomon.herokuapp.com request_id=45769d05-2579-4ada-ae77-330e68f14ea7 fwd="182.185.250.158" dyno=web.1 connect=1ms service=23ms status=200 bytes=2710
2014-02-25T06:27:40.907652+00:00 heroku[router]: at=info method=GET path=/favicon.ico host=incomon.herokuapp.com request_id=70b3f49a-fa9c-4281-8515-9399636277d3 fwd="182.185.250.158" dyno=web.1 connect=2ms service=11ms status=304 bytes=133
2014-02-25T06:27:46.970682+00:00 app[web.1]: I, [2014-02-25T06:05:47.869467 #2] INFO -- : Processing by User::RegistrationsController#new as HTML
2014-02-25T06:27:46.970682+00:00
app[web.1]: => Ctrl-C to shutdown server
2014-02-25T06:27:46.970682+00:00 app[web.1]: I, [2014-02-25T06:04:46.336464 #2] INFO -- : Started GET "/" for 182.185.250.158 at 2014-02-25 06:04:46 +0000
2014-02-25T06:27:46.970682+00:00 app[web.1]: I, [2014-02-25T06:04:46.444481 #2] INFO -- : Processing by HomeController#index as HTML
2014-02-25T06:27:46.970682+00:00 app[web.1]: I, [2014-02-25T06:04:46.506698 #2] INFO -- : Rendered home/index.html.haml within layouts/application (23.4ms)
2014-02-25T06:27:46.970682+00:00 app[web.1]: I, [2014-02-25T06:04:46.508911 #2] INFO -- : Completed 200 OK in 64ms (Views: 30.2ms | ActiveRecord: 0.0ms)
2014-02-25T06:27:46.970962+00:00 app[web.1]: I, [2014-02-25T06:05:58.328060 #2] INFO -- : Processing by User::RegistrationsController#create as HTML
2014-02-25T06:27:46.970962+00:00 app[web.1]: I, [2014-02-25T06:05:59.225468 #2] INFO -- : Completed 500 Internal Server Error in 897ms
2014-02-25T06:27:46.970962+00:00 app[web.1]: I, [2014-02-25T06:05:47.932458 #2] INFO -- : Completed 200 OK in 63ms (Views: 44.8ms | ActiveRecord: 12.0ms)
2014-02-25T06:27:46.970962+00:00 app[web.1]: I, [2014-02-25T06:05:59.223051 #2] INFO -- : Rendered vendor/bundle/ruby/2.0.0/gems/devise-3.2.2/app/views/devise/mailer/confirmation_instructions.html.erb (48.4ms)
2014-02-25T06:27:46.970962+00:00 app[web.1]: F, [2014-02-25T06:05:59.228397 #2] FATAL -- :
2014-02-25T06:27:46.970962+00:00 app[web.1]: ActionView::Template::Error (Missing host to link to! Please provide the :host parameter, set default_url_options[:host], or set :only_path to true):
2014-02-25T06:27:46.971156+00:00 app[web.1]: 5: <p><%= link_to 'Confirm my account', confirmation_url(#resource, :confirmation_token => #token) %></p>
2014-02-25T06:27:46.971156+00:00 app[web.1]: 2:
2014-02-25T06:27:46.971156+00:00 app[web.1]: 4:
2014-02-25T06:27:46.971156+00:00 app[web.1]:
2014-02-25T06:27:46.971156+00:00 app[web.1]: 3: <p>You can confirm your account email through the link below:</p>
2014-02-25T06:27:46.971156+00:00 app[web.1]: app/controllers/user/registrations_controller.rb:16:in `create'
2014-02-25T06:27:46.971915+00:00 app[web.1]: I, [2014-02-25T06:24:03.428963 #2] INFO -- : Started GET "/users/sign_up" for 182.185.250.158 at 2014-02-25 06:24:03 +0000
2014-02-25T06:27:46.971156+00:00 app[web.1]: I, [2014-02-25T06:24:01.789030 #2] INFO -- : Rendered home/index.html.haml within layouts/application (1.0ms)
2014-02-25T06:27:46.971156+00:00 app[web.1]: I, [2014-02-25T06:24:01.784470 #2] INFO -- : Started GET "/" for 182.185.250.158 at 2014-02-25 06:24:01 +0000
2014-02-25T06:27:46.971156+00:00 app[web.1]:
2014-02-25T06:27:46.971915+00:00 app[web.1]: I, [2014-02-25T06:24:03.431179 #2] INFO -- : Processing by User::RegistrationsController#new as HTML
2014-02-25T06:27:46.971156+00:00 app[web.1]: I, [2014-02-25T06:24:01.786775 #2] INFO -- : Processing by HomeController#index as HTML
2014-02-25T06:27:46.971915+00:00 app[web.1]: I, [2014-02-25T06:24:14.949567 #2] INFO -- : Processing by User::RegistrationsController#create as HTML
2014-02-25T06:27:46.971915+00:00 app[web.1]: I, [2014-02-25T06:24:03.437029 #2] INFO -- : Rendered user/registrations/new.html.haml within layouts/application (3.3ms)
2014-02-25T06:27:46.971915+00:00 app[web.1]: I, [2014-02-25T06:24:01.790129 #2] INFO -- : Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.0ms)
2014-02-25T06:27:46.971915+00:00 app[web.1]: I, [2014-02-25T06:24:03.431343 #2] INFO -- : Parameters: {"authenticity_token"=>"AkkP/F7SZjNfBGPERz80uQLTrnw3gi8P8/gfa6OIOL0="}
2014-02-25T06:27:46.971915+00:00 app[web.1]: I, [2014-02-25T06:24:14.949696 #2] INFO -- : Parameters: {"utf8"=>"✓", "authenticity_token"=>"AkkP/F7SZjNfBGPERz80uQLTrnw3gi8P8/gfa6OIOL0=", "user"=>{"firstName"=>"Tayyab", "lastName"=>"Zahid", "email"=>"tayyabzahid96#gmail.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]", "userName"=>"tayyab"}, "commit"=>"Sign Up"}
2014-02-25T06:27:46.972148+00:00 app[web.1]: I, [2014-02-25T06:24:15.054836 #2] INFO -- : Completed 500 Internal Server Error in 105ms
2014-02-25T06:27:46.972148+00:00 app[web.1]: : BEGIN
2014-02-25T06:27:46.971915+00:00 app[web.1]: I, [2014-02-25T06:24:03.437836 #2] INFO -- : Completed 200 OK in 6ms (Views: 4.5ms | ActiveRecord: 0.0ms)
2014-02-25T06:27:46.971915+00:00 app[web.1]: I, [2014-02-25T06:24:14.947905 #2] INFO -- : Started POST "/users" for 182.185.250.158 at 2014-02-25 06:24:14 +0000
2014-02-25T06:27:46.971915+00:00 app[web.1]: E, [2014-02-25T06:24:15.054427 #2] ERROR -- : PG::ConnectionBad: PQconsumeInput() SSL connection has been closed unexpectedly
2014-02-25T06:27:46.972148+00:00 app[web.1]: F, [2014-02-25T06:24:15.056230 #2] FATAL -- :
2014-02-25T06:27:46.972148+00:00 app[web.1]: I, [2014-02-25T06:27:07.092850 #2] INFO -- : Started GET "/" for 182.185.250.158 at 2014-02-25 06:27:07 +0000
2014-02-25T06:27:46.972148+00:00 app[web.1]: app/controllers/user/registrations_controller.rb:16:in `create'
2014-02-25T06:27:46.972148+00:00 app[web.1]: I, [2014-02-25T06:27:07.137126 #2] INFO -- : Processing by HomeController#index as HTML
2014-02-25T06:27:46.972620+00:00 app[web.1]: I, [2014-02-25T06:27:07.141871 #2] INFO -- : Rendered home/index.html.haml within layouts/application (1.5ms)
2014-02-25T06:27:46.972620+00:00 app[web.1]: I, [2014-02-25T06:27:07.153884 #2] INFO -- : Completed 200 OK in 16ms (Views: 14.2ms | ActiveRecord: 0.0ms)
2014-02-25T06:27:46.972620+00:00 app[web.1]: I, [2014-02-25T06:27:12.070759 #2] INFO -- : Started GET "/users/sign_up" for 182.185.250.158 at 2014-02-25 06:27:12 +0000
2014-02-25T06:27:46.972620+00:00 app[web.1]: I, [2014-02-25T06:27:12.080240 #2] INFO -- : Rendered user/registrations/new.html.haml within layouts/application (4.0ms)
2014-02-25T06:27:46.972620+00:00 app[web.1]: I, [2014-02-25T06:27:12.073526 #2] INFO -- : Processing by User::RegistrationsController#new as HTML
2014-02-25T06:27:46.972620+00:00 app[web.1]: I, [2014-02-25T06:27:12.073625 #2] INFO -- : Parameters: {"authenticity_token"=>"w+7mt9jtpi52dlmiEQXc996D+gYN9r/amyAP3RahSuM="}
2014-02-25T06:27:46.972811+00:00 app[web.1]: E, [2014-02-25T06:27:26.203898 #2] ERROR -- : PG::UndefinedTable: ERROR: relation "users" does not exist
2014-02-25T06:27:46.972620+00:00 app[web.1]: I, [2014-02-25T06:27:12.081285 #2] INFO -- : Completed 200 OK in 8ms (Views: 5.5ms | ActiveRecord: 0.0ms)
2014-02-25T06:27:46.972620+00:00 app[web.1]: I, [2014-02-25T06:27:26.097156 #2] INFO -- : Started POST "/users" for 182.185.250.158 at 2014-02-25 06:27:26 +0000
2014-02-25T06:27:46.972811+00:00 app[web.1]: ^
2014-02-25T06:27:46.972811+00:00 app[web.1]: LINE 1: SELECT 1 AS one FROM "users" WHERE "users"."email" = 'tayy...
2014-02-25T06:27:46.972811+00:00 app[web.1]: LINE 1: SELECT 1 AS one FROM "users" WHERE "users"."email" = 'tayy...
2014-02-25T06:27:46.972620+00:00 app[web.1]: I, [2014-02-25T06:27:26.098986 #2] INFO -- : Processing by User::RegistrationsController#create as HTML
2014-02-25T06:27:46.972620+00:00 app[web.1]: I, [2014-02-25T06:27:26.099114 #2] INFO -- : Parameters: {"utf8"=>"✓", "authenticity_token"=>"w+7mt9jtpi52dlmiEQXc996D+gYN9r/amyAP3RahSuM=", "user"=>{"firstName"=>"Tayyab", "lastName"=>"Zahid", "email"=>"tayyabz#stis.pk", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]", "userName"=>"tayyab"}, "commit"=>"Sign Up"}
2014-02-25T06:27:46.972811+00:00 app[web.1]: I, [2014-02-25T06:27:26.225627 #2] INFO -- : Completed 500 Internal Server Error in 126ms
2014-02-25T06:27:46.973311+00:00 app[web.1]:
2014-02-25T06:27:46.973311+00:00 app[web.1]: app/controllers/user/registrations_controller.rb:16:in `create'
2014-02-25T06:27:46.973311+00:00 app[web.1]: I, [2014-02-25T06:27:35.897992 #2] INFO -- : Processing by HomeController#index as HTML
2014-02-25T06:27:46.972811+00:00 app[web.1]: : SELECT 1 AS one FROM "users" WHERE "users"."email" = 'tayyabz#stis.pk' LIMIT 1):
2014-02-25T06:27:46.973311+00:00 app[web.1]: I, [2014-02-25T06:27:35.896428 #2] INFO -- : Started GET "/" for 182.185.250.158 at 2014-02-25 06:27:35 +0000
2014-02-25T06:27:46.973311+00:00 app[web.1]: I, [2014-02-25T06:27:35.901762 #2] INFO -- : Completed 200 OK in 4ms (Views: 2.7ms | ActiveRecord: 0.0ms)
2014-02-25T06:27:46.972811+00:00 app[web.1]: : SELECT 1 AS one FROM "users" WHERE "users"."email" = 'tayyabz#stis.pk' LIMIT 1
2014-02-25T06:27:46.973311+00:00 app[web.1]: I, [2014-02-25T06:27:40.499174 #2] INFO -- : Started GET "/users/sign_in" for 182.185.250.158 at 2014-02-25 06:27:40 +0000
2014-02-25T06:27:46.973493+00:00 app[web.1]: I, [2014-02-25T06:27:40.516752 #2] INFO -- : Completed 200 OK in 14ms (Views: 11.5ms | ActiveRecord: 0.0ms)
2014-02-25T06:27:46.972811+00:00 app[web.1]: F, [2014-02-25T06:27:26.227535 #2] FATAL -- :
2014-02-25T06:27:46.972811+00:00 app[web.1]: ActiveRecord::StatementInvalid (PG::UndefinedTable: ERROR: relation "users" does not exist
2014-02-25T06:27:46.973493+00:00 app[web.1]: I, [2014-02-25T06:27:46.964988 #2] INFO -- : Started POST "/users/sign_in" for 182.185.250.158 at 2014-02-25 06:27:46 +0000
2014-02-25T06:27:46.973311+00:00 app[web.1]:
2014-02-25T06:27:46.973493+00:00 app[web.1]: I, [2014-02-25T06:27:46.969713 #2] INFO -- : Processing by User::SessionsController#create as HTML
2014-02-25T06:27:46.970962+00:00 app[web.1]: I, [2014-02-25T06:05:47.869564 #2] INFO -- : Parameters: {"authenticity_token"=>"AkkP/F7SZjNfBGPERz80uQLTrnw3gi8P8/gfa6OIOL0="}
2014-02-25T06:27:46.970962+00:00 app[web.1]: I, [2014-02-25T06:05:58.324570 #2] INFO -- : Started POST "/users" for 182.185.250.158 at 2014-02-25 06:05:58 +0000
2014-02-25T06:27:46.970962+00:00 app[web.1]: I, [2014-02-25T06:05:58.328309 #2] INFO -- : Parameters: {"utf8"=>"✓", "authenticity_token"=>"AkkP/F7SZjNfBGPERz80uQLTrnw3gi8P8/gfa6OIOL0=", "user"=>{"firstName"=>"Tayyab", "lastName"=>"Zahid", "email"=>"tayyabzahid96#gmail.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]", "userName"=>"tayyab"}, "commit"=>"Sign Up"}
2014-02-25T06:27:46.972148+00:00 app[web.1]: : BEGIN):
2014-02-25T06:27:46.972148+00:00 app[web.1]:
2014-02-25T06:27:46.972148+00:00 app[web.1]:
2014-02-25T06:27:46.973311+00:00 app[web.1]: I, [2014-02-25T06:27:35.900793 #2] INFO -- : Rendered home/index.html.haml within layouts/application (1.2ms)
2014-02-25T06:27:46.973311+00:00 app[web.1]: I, [2014-02-25T06:27:40.502401 #2] INFO -- : Processing by User::SessionsController#new as HTML
2014-02-25T06:27:46.973493+00:00 app[web.1]: I, [2014-02-25T06:27:46.969849 #2] INFO -- : Parameters: {"utf8"=>"✓", "authenticity_token"=>"w+7mt9jtpi52dlmiEQXc996D+gYN9r/amyAP3RahSuM=", "user"=>{"email"=>"tayyabz#stis.pk", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign in"}
2014-02-25T06:27:46.973311+00:00 app[web.1]: I, [2014-02-25T06:27:40.502524 #2] INFO -- : Parameters: {"authenticity_token"=>"w+7mt9jtpi52dlmiEQXc996D+gYN9r/amyAP3RahSuM="}
2014-02-25T06:27:46.970682+00:00 app[web.1]: => Booting WEBrick
2014-02-25T06:27:46.970682+00:00 app[web.1]: => Rails 4.0.2 application starting in production on http://0.0.0.0:22113
2014-02-25T06:27:46.970682+00:00 app[web.1]: => Run `rails server -h` for more startup options
2014-02-25T06:27:46.970682+00:00 app[web.1]: I, [2014-02-25T06:05:47.866396 #2] INFO -- : Started GET "/users/sign_up" for 182.185.250.158 at 2014-02-25 06:05:47 +0000
2014-02-25T06:27:46.970962+00:00 app[web.1]: I, [2014-02-25T06:05:47.931496 #2] INFO -- : Rendered user/registrations/new.html.haml within layouts/application (40.6ms)
2014-02-25T06:27:46.972148+00:00 app[web.1]: ActiveRecord::StatementInvalid (PG::ConnectionBad: PQconsumeInput() SSL connection has been closed unexpectedly
2014-02-25T06:27:46.972811+00:00 app[web.1]: ^
2014-02-25T06:27:46.973493+00:00 app[web.1]: I, [2014-02-25T06:27:40.515825 #2] INFO -- : Rendered user/sessions/new.html.haml within layouts/application (8.2ms)
2014-02-25T06:27:46.981461+00:00 heroku[router]: at=info method=POST path=/users/sign_in host=incomon.herokuapp.com request_id=870f7f2b-252a-4932-acee-b155b11ff492 fwd="182.185.250.158" dyno=web.1 connect=0ms service=24ms status=500 bytes=1543
2014-02-25T06:27:47.372924+00:00 heroku[router]: at=info method=GET path=/favicon.ico host=incomon.herokuapp.com request_id=527d7c85-5306-42c5-8880-093b22f2e39f fwd="182.185.250.158" dyno=web.1 connect=6ms service=6ms status=304 bytes=133
Error on Webpage
We're sorry, but something went wrong.
If you are the application owner check the logs for more information.
Why this will be happening? Any Help?
ActiveRecord::StatementInvalid (PG::UndefinedTable: ERROR: relation "users" does not exist
It looks like maybe you haven't run your migrations yet?
Related
I am using Okta authorisation server for securing spring boot app.
Have configured the below 3 property
okta.oauth2.issuer={URI}
okta.oauth2.client-secret={SECRET}
okta.oauth2.client-id={CLIENTID}
Have protected the endpoint using the below code in Spring boot.
#Bean
public SecurityWebFilterChain securityWebFilterChain(ServerHttpSecurity http) {
Okta.configureResourceServer401ResponseBody(http);
return http
.csrf(spec -> spec.disable())
.authorizeExchange().pathMatchers("/api/**").permitAll()
.anyExchange().authenticated().and()
.oauth2Login()
.and()
.oauth2ResourceServer()
.jwt().and().and().build();
}
However when I issue the first request to any protected endpoint by passing bearer token it takes a lot of time almost 1min. The subsequent request taken Milliseconds.
From the log I can see the DNS resolution (io.netty.resolver.dns.DnsNameResolver) in the first request are taking a lot of time almost 40 Seconds. The application is of type Web in Okta.
The application is running on Netty server.
Any suggestion to fix this?
I was able to debug and find that on windows 10, JDK 11 the Netty DnsQueryContext takes 5 seconds to resolve DNS whereas the same in macOS or linux happens in milliseconds.
I tried to disable Netty as default server and use tomcat but even then the Netty DNS resolver starts when a incoming request is sent. I need to have Netty on my class path for WebClient to work.
It looks like a issue with Netty as I was able to reproduce the issue with the below code on windows but the same code works fine on macOS.
#SpringBootApplication
public class GqlApplicationStarter {
public static void main(String[] args) throws UnknownHostException, ExecutionException, InterruptedException {
// SpringApplication.run(GqlApplicationStarter.class, args);
NioEventLoopGroup group = new NioEventLoopGroup(1);
DnsNameResolver resolver = new DnsNameResolverBuilder(group.next())
.channelFactory(NioDatagramChannel::new)
.optResourceEnabled(false)
.build();
try {
System.out.println("2" + resolver.resolveAll("dev-542348.okta.com").get());
}
finally {
resolver.close();
group.shutdownGracefully();
}
}
Below are the logs from Windows.
13:11:27.823 [nioEventLoopGroup-2-1] DEBUG
io.netty.resolver.dns.DnsQueryContext - [id: 0xc4d4fa95] WRITE: UDP,
[53282: /10.150.1.252:53], DefaultDnsQuestion(dev-542348.okta.com. IN
A) 13:11:27.830 [nioEventLoopGroup-2-1] DEBUG io.netty.util.Recycler -
-Dio.netty.recycler.maxCapacityPerThread: 4096 13:11:27.831 [nioEventLoopGroup-2-1] DEBUG io.netty.util.Recycler -
-Dio.netty.recycler.ratio: 8 13:11:27.831 [nioEventLoopGroup-2-1] DEBUG io.netty.util.Recycler - -Dio.netty.recycler.chunkSize: 32
13:11:27.831 [nioEventLoopGroup-2-1] DEBUG io.netty.util.Recycler -
-Dio.netty.recycler.blocking: false 13:11:27.834 [nioEventLoopGroup-2-1] DEBUG io.netty.buffer.AbstractByteBuf -
-Dio.netty.buffer.checkAccessible: true 13:11:27.834 [nioEventLoopGroup-2-1] DEBUG io.netty.buffer.AbstractByteBuf -
-Dio.netty.buffer.checkBounds: true 13:11:27.834 [nioEventLoopGroup-2-1] DEBUG
io.netty.util.ResourceLeakDetectorFactory - Loaded default
ResourceLeakDetector: io.netty.util.ResourceLeakDetector#14896267
13:11:32.859 [nioEventLoopGroup-2-1] DEBUG
io.netty.resolver.dns.DnsQueryContext - [id: 0xc4d4fa95] WRITE: UDP,
[10561: /10.202.1.252:53], DefaultDnsQuestion(dev-542348.okta.com. IN
A) 13:11:37.868 [nioEventLoopGroup-2-1] DEBUG
io.netty.resolver.dns.DnsQueryContext - [id: 0xc4d4fa95] WRITE: UDP,
[40341: /10.180.1.20:53], DefaultDnsQuestion(dev-542348.okta.com. IN
A) 13:11:42.880 [nioEventLoopGroup-2-1] DEBUG
io.netty.resolver.dns.DnsQueryContext - [id: 0xc4d4fa95] WRITE: UDP,
[10043: /10.180.1.201:53], DefaultDnsQuestion(dev-542348.okta.com. IN
A) 13:11:47.892 [nioEventLoopGroup-2-1] DEBUG
io.netty.resolver.dns.DnsQueryContext - [id: 0xc4d4fa95] WRITE: UDP,
[28012: /10.180.1.202:53], DefaultDnsQuestion(dev-542348.okta.com. IN
A) 13:11:52.898 [nioEventLoopGroup-2-1] DEBUG
io.netty.resolver.dns.DnsQueryContext - [id: 0xc4d4fa95] WRITE: UDP,
[8689: /180.235.155.185:53], DefaultDnsQuestion(dev-542348.okta.com.
IN A) 13:11:53.045 [nioEventLoopGroup-2-1] DEBUG
io.netty.resolver.dns.DnsNameResolver - [id: 0xc4d4fa95] RECEIVED: UDP
[8689: /180.235.155.185:53], DatagramDnsResponse(from:
/180.235.155.185:53, to: /0.0.0.0:56937, 8689, QUERY(0), Refused(5),
RD) DefaultDnsQuestion(dev-542348.okta.com. IN A) 13:11:53.045
[nioEventLoopGroup-2-1] DEBUG io.netty.resolver.dns.DnsQueryContext -
[id: 0xc4d4fa95] WRITE: UDP, [43413: /192.168.1.1:53],
DefaultDnsQuestion(dev-542348.okta.com. IN A) 13:11:53.171
[nioEventLoopGroup-2-1] DEBUG io.netty.resolver.dns.DnsNameResolver -
[id: 0xc4d4fa95] RECEIVED: UDP [43413: /192.168.1.1:53],
DatagramDnsResponse(from: /192.168.1.1:53, to: /0.0.0.0:56937, 43413,
QUERY(0), NoError(0), RD RA) DefaultDnsQuestion(dev-542348.okta.com.
IN A) DefaultDnsRawRecord(dev-542348.okta.com. 300 IN CNAME 25B)
DefaultDnsRawRecord(ok11-crtrs.tng.okta.com. 202 IN CNAME 66B)
DefaultDnsRawRecord(ok11-crtr-tls12-nlb-7429507134c4aa04.elb.us-east-2.amazonaws.com.
60 IN A 4B)
DefaultDnsRawRecord(ok11-crtr-tls12-nlb-7429507134c4aa04.elb.us-east-2.amazonaws.com.
60 IN A 4B)
DefaultDnsRawRecord(ok11-crtr-tls12-nlb-7429507134c4aa04.elb.us-east-2.amazonaws.com.
60 IN A 4B) DefaultDnsRawRecord(elb.us-east-2.amazonaws.com. 41957 IN
NS 23B) DefaultDnsRawRecord(elb.us-east-2.amazonaws.com. 41957 IN NS
25B) DefaultDnsRawRecord(elb.us-east-2.amazonaws.com. 41957 IN NS 21B)
DefaultDnsRawRecord(elb.us-east-2.amazonaws.com. 41957 IN NS 22B)
13:11:53.175 [nioEventLoopGroup-2-1] DEBUG
io.netty.resolver.dns.DnsQueryContext - [id: 0xc4d4fa95] WRITE: UDP,
[61505: /10.150.1.252:53],
DefaultDnsQuestion(ok11-crtr-tls12-nlb-7429507134c4aa04.elb.us-east-2.amazonaws.com.
IN A) 13:11:58.185 [nioEventLoopGroup-2-1] DEBUG
io.netty.resolver.dns.DnsQueryContext - [id: 0xc4d4fa95] WRITE: UDP,
[46866: /10.202.1.252:53],
DefaultDnsQuestion(ok11-crtr-tls12-nlb-7429507134c4aa04.elb.us-east-2.amazonaws.com.
IN A) 13:12:03.187 [nioEventLoopGroup-2-1] DEBUG
io.netty.resolver.dns.DnsQueryContext - [id: 0xc4d4fa95] WRITE: UDP,
[39078: /10.180.1.20:53],
DefaultDnsQuestion(ok11-crtr-tls12-nlb-7429507134c4aa04.elb.us-east-2.amazonaws.com.
IN A) 13:12:08.196 [nioEventLoopGroup-2-1] DEBUG
io.netty.resolver.dns.DnsQueryContext - [id: 0xc4d4fa95] WRITE: UDP,
[50281: /10.180.1.201:53],
DefaultDnsQuestion(ok11-crtr-tls12-nlb-7429507134c4aa04.elb.us-east-2.amazonaws.com.
IN A) 13:12:13.208 [nioEventLoopGroup-2-1] DEBUG
io.netty.resolver.dns.DnsQueryContext - [id: 0xc4d4fa95] WRITE: UDP,
[53416: /10.180.1.202:53],
DefaultDnsQuestion(ok11-crtr-tls12-nlb-7429507134c4aa04.elb.us-east-2.amazonaws.com.
IN A) 13:12:18.214 [nioEventLoopGroup-2-1] DEBUG
io.netty.resolver.dns.DnsQueryContext - [id: 0xc4d4fa95] WRITE: UDP,
[19383: /180.235.155.185:53],
DefaultDnsQuestion(ok11-crtr-tls12-nlb-7429507134c4aa04.elb.us-east-2.amazonaws.com.
IN A) 13:12:18.320 [nioEventLoopGroup-2-1] DEBUG
io.netty.resolver.dns.DnsNameResolver - [id: 0xc4d4fa95] RECEIVED: UDP
[19383: /180.235.155.185:53], DatagramDnsResponse(from:
/180.235.155.185:53, to: /0.0.0.0:56937, 19383, QUERY(0), Refused(5),
RD)
DefaultDnsQuestion(ok11-crtr-tls12-nlb-7429507134c4aa04.elb.us-east-2.amazonaws.com.
IN A) 13:12:18.320 [nioEventLoopGroup-2-1] DEBUG
io.netty.resolver.dns.DnsQueryContext - [id: 0xc4d4fa95] WRITE: UDP,
[39446: /192.168.1.1:53],
DefaultDnsQuestion(ok11-crtr-tls12-nlb-7429507134c4aa04.elb.us-east-2.amazonaws.com.
IN A) 13:12:18.367 [nioEventLoopGroup-2-1] DEBUG
io.netty.resolver.dns.DnsNameResolver - [id: 0xc4d4fa95] RECEIVED: UDP
[39446: /192.168.1.1:53], DatagramDnsResponse(from: /192.168.1.1:53,
to: /0.0.0.0:56937, 39446, QUERY(0), NoError(0), RD RA)
DefaultDnsQuestion(ok11-crtr-tls12-nlb-7429507134c4aa04.elb.us-east-2.amazonaws.com.
IN A)
DefaultDnsRawRecord(ok11-crtr-tls12-nlb-7429507134c4aa04.elb.us-east-2.amazonaws.com.
34 IN A 4B)
DefaultDnsRawRecord(ok11-crtr-tls12-nlb-7429507134c4aa04.elb.us-east-2.amazonaws.com.
34 IN A 4B)
DefaultDnsRawRecord(ok11-crtr-tls12-nlb-7429507134c4aa04.elb.us-east-2.amazonaws.com.
34 IN A 4B) 2[dev-542348.okta.com/3.15.36.194,
dev-542348.okta.com/3.15.36.192, dev-542348.okta.com/3.15.36.193]
And below are the logs from MACOS
13:23:20.937 [nioEventLoopGroup-2-1] DEBUG io.netty.util.Recycler -
-Dio.netty.recycler.maxCapacityPerThread: 4096 13:23:20.937 [nioEventLoopGroup-2-1] DEBUG io.netty.util.Recycler -
-Dio.netty.recycler.ratio: 8 13:23:20.937 [nioEventLoopGroup-2-1] DEBUG io.netty.util.Recycler - -Dio.netty.recycler.chunkSize: 32
13:23:20.937 [nioEventLoopGroup-2-1] DEBUG io.netty.util.Recycler -
-Dio.netty.recycler.blocking: false 13:23:20.941 [nioEventLoopGroup-2-1] DEBUG io.netty.buffer.AbstractByteBuf -
-Dio.netty.buffer.checkAccessible: true 13:23:20.941 [nioEventLoopGroup-2-1] DEBUG io.netty.buffer.AbstractByteBuf -
-Dio.netty.buffer.checkBounds: true 13:23:20.941 [nioEventLoopGroup-2-1] DEBUG
io.netty.util.ResourceLeakDetectorFactory - Loaded default
ResourceLeakDetector: io.netty.util.ResourceLeakDetector#41e61236
13:23:21.046 [nioEventLoopGroup-2-1] DEBUG
io.netty.resolver.dns.DnsNameResolver - [id: 0x0ea5f4b3] RECEIVED: UDP
[52950: /192.168.1.1:53], DatagramDnsResponse(from: /192.168.1.1:53,
to: /0.0.0.0:49776, 52950, QUERY(0), NoError(0), RD RA)
DefaultDnsQuestion(dev-542348.okta.com. IN A)
DefaultDnsRawRecord(dev-542348.okta.com. 300 IN CNAME 25B)
DefaultDnsRawRecord(ok11-crtrs.tng.okta.com. 217 IN CNAME 66B)
DefaultDnsRawRecord(ok11-crtr-tls12-nlb-7429507134c4aa04.elb.us-east-2.amazonaws.com.
60 IN A 4B)
DefaultDnsRawRecord(ok11-crtr-tls12-nlb-7429507134c4aa04.elb.us-east-2.amazonaws.com.
60 IN A 4B)
DefaultDnsRawRecord(ok11-crtr-tls12-nlb-7429507134c4aa04.elb.us-east-2.amazonaws.com.
60 IN A 4B) DefaultDnsRawRecord(elb.us-east-2.amazonaws.com. 41273 IN
NS 23B) DefaultDnsRawRecord(elb.us-east-2.amazonaws.com. 41273 IN NS
25B) DefaultDnsRawRecord(elb.us-east-2.amazonaws.com. 41273 IN NS 21B)
DefaultDnsRawRecord(elb.us-east-2.amazonaws.com. 41273 IN NS 22B)
13:23:21.048 [nioEventLoopGroup-2-1] DEBUG
io.netty.resolver.dns.DnsQueryContext - [id: 0x0ea5f4b3] WRITE: UDP,
[2623: /192.168.1.1:53],
DefaultDnsQuestion(ok11-crtr-tls12-nlb-7429507134c4aa04.elb.us-east-2.amazonaws.com.
IN A) 13:23:21.084 [nioEventLoopGroup-2-1] DEBUG
io.netty.resolver.dns.DnsNameResolver - [id: 0x0ea5f4b3] RECEIVED: UDP
[2623: /192.168.1.1:53], DatagramDnsResponse(from: /192.168.1.1:53,
to: /0.0.0.0:49776, 2623, QUERY(0), NoError(0), RD RA)
DefaultDnsQuestion(ok11-crtr-tls12-nlb-7429507134c4aa04.elb.us-east-2.amazonaws.com.
IN A)
DefaultDnsRawRecord(ok11-crtr-tls12-nlb-7429507134c4aa04.elb.us-east-2.amazonaws.com.
60 IN A 4B)
DefaultDnsRawRecord(ok11-crtr-tls12-nlb-7429507134c4aa04.elb.us-east-2.amazonaws.com.
60 IN A 4B)
DefaultDnsRawRecord(ok11-crtr-tls12-nlb-7429507134c4aa04.elb.us-east-2.amazonaws.com.
60 IN A 4B) DefaultDnsRawRecord(elb.us-east-2.amazonaws.com. 41273 IN
NS 23B) DefaultDnsRawRecord(elb.us-east-2.amazonaws.com. 41273 IN NS
25B) DefaultDnsRawRecord(elb.us-east-2.amazonaws.com. 41273 IN NS 21B)
DefaultDnsRawRecord(elb.us-east-2.amazonaws.com. 41273 IN NS 22B)
2[dev-542348.okta.com/3.15.36.192, dev-542348.okta.com/3.15.36.194,
dev-542348.okta.com/3.15.36.193] 13:23:23.184 [nioEventLoopGroup-2-1]
DEBUG io.netty.buffer.PoolThreadCache - Freed 8 thread-local buffer(s)
from thread: nioEventLoopGroup-2-1
As the reactor-netty code is also giving the same issue with windows but working fine on MACOS this looks like an issue with Netty.
Any suggestion to fix this
I' trying to connect from raspberry 3 B to a Modbus device (sensor temperature) using a serial connection using a USB RS485 converter .This is my code:
from pymodbus.constants import Endian
from pymodbus.payload import BinaryPayloadDecoder
from pymodbus.client.sync import ModbusSerialClient as ModbusClient
from pymodbus.constants import Defaults
Defaults.RetryOnEmpty = True
import time
import logging
FORMAT = ('%(asctime)-15s %(threadName)-15s '
'%(levelname)-8s %(module)-15s:%(lineno)-8s %(message)s')
logging.basicConfig(format=FORMAT)
log = logging.getLogger()
log.setLevel(logging.DEBUG)
def run_sync_client():
while True:
#try:
client = ModbusClient(method='rtu', port='/dev/ttyUSB0', timeout=9, baudrate=9600, parity='N', stopbits=1, bytesize=8,reset_socket=False) # Implementation of the SHT31 as a modbus serial client
if client.connect():
print("connected")
print ("begin reading")
#for i in range(0 ,100):
request = client.read_holding_registers(address=0 , count=2, unit=4)
if request.isError():
print(request)
else:
print("Read OK! " + str(request.registers[1]))
time.sleep(1)
print(request)
result = request.registers
print(result)
temp= BinaryPayloadDecoder.fromRegisters(result, Endian.little, wordorder=Endian.little )
temperature= temp.decode_16bit_int()
print( temperature)
time.sleep(4)
# except:
#print("An exception occurred")
client.close()
while True:
if __name__ == "__main__":
run_sync_client()
The output in the console is:
connected
begin reading
2022-02-24 14:56:37,901 MainThread DEBUG transaction :139 Current transaction state - IDLE
2022-02-24 14:56:37,902 MainThread DEBUG transaction :144 Running transaction 1
2022-02-24 14:56:37,904 MainThread DEBUG transaction :273 SEND: 0x4 0x3 0x0 0x1 0x0 0x2 0x95 0x9e
2022-02-24 14:56:37,905 MainThread DEBUG sync :76 New Transaction state 'SENDING'
2022-02-24 14:56:37,906 MainThread DEBUG transaction :287 Changing transaction state from 'SENDING' to 'WAITING FOR REPLY'
2022-02-24 14:56:38,068 MainThread DEBUG transaction :375 Changing transaction state from 'WAITING FOR REPLY' to 'PROCESSING REPLY'
2022-02-24 14:56:38,069 MainThread DEBUG transaction :297 RECV: 0x4 0x3 0x2 0x17 0x58 0x2c 0x2e 0x3f 0x88
2022-02-24 14:56:38,071 MainThread DEBUG rtu_framer :237 Frame check failed, ignoring!!
2022-02-24 14:56:38,072 MainThread DEBUG rtu_framer :119 Resetting frame - Current Frame in buffer - 0x4 0x3 0x2 0x17 0x58 0x2c 0x2e 0x3f 0x88
2022-02-24 14:56:38,073 MainThread DEBUG transaction :465 Getting transaction 4
2022-02-24 14:56:38,074 MainThread DEBUG transaction :224 Changing transaction state from 'PROCESSING REPLY' to 'TRANSACTION_COMPLETE'
Modbus Error: [Input/Output] No Response received from the remote unit/Unable to decode response
I would love to have a little help understanding the error I'm getting. Thanks
I have an table named Artist and I am running a search with or operator
orQuery = Parse.Query.or(query1, query2, query3, query4, query5, query6, query7, query8, query9, query10);
but server crashing and when I am adding another row in table,then search query is working fine..
Here is the error message:
`2019-11-16T18:47:27.973552+00:00 heroku[web.1]: State changed from up to crashed
2019-11-16T18:47:28.046944+00:00 heroku[web.1]: State changed from crashed to starting
2019-11-16T18:47:27.960077+00:00 heroku[web.1]: Process exited with status 134
2019-11-16T18:47:27.856741+00:00 app[web.1]:
2019-11-16T18:47:27.856755+00:00 app[web.1]: <--- Last few GCs --->
2019-11-16T18:47:27.856757+00:00 app[web.1]:
2019-11-16T18:47:27.856759+00:00 app[web.1]: [4:0x3732630] 447289 ms: Mark-sweep 243.9 (257.8) -> 243.4 (257.8) MB, 330.2 / 0.0 ms (average mu = 0.149, current mu = 0.058) allocation failure scavenge might not succeed
2019-11-16T18:47:27.856760+00:00 app[web.1]: [4:0x3732630] 447664 ms: Mark-sweep 244.1 (257.8) -> 243.5 (257.6) MB, 367.5 / 0.0 ms (average mu = 0.086, current mu = 0.021) allocation failure scavenge might not succeed
2019-11-16T18:47:27.856762+00:00 app[web.1]: [4:0x3732630] 447686 ms: Scavenge 244.3 (257.6) -> 243.8 (257.8) MB, 1.7 / 0.0 ms (average mu = 0.086, current mu = 0.021) allocation failure
2019-11-16T18:47:27.856793+00:00 app[web.1]:
2019-11-16T18:47:27.858836+00:00 app[web.1]:
2019-11-16T18:47:27.858839+00:00 app[web.1]: <--- JS stacktrace --->
2019-11-16T18:47:27.858840+00:00 app[web.1]:
2019-11-16T18:47:27.858842+00:00 app[web.1]: ==== JS stack trace =========================================
2019-11-16T18:47:27.858844+00:00 app[web.1]:
2019-11-16T18:47:27.858845+00:00 app[web.1]: 0: ExitFrame [pc: 0x13725d9]
2019-11-16T18:47:27.858847+00:00 app[web.1]: Security context: 0x0c8fcd2808a1 <JSObject>
2019-11-16T18:47:27.858849+00:00 app[web.1]: 1: mongoObjectToParseObject(aka mongoObjectToParseObject) [0xa22d76fc3b1] [/app/node_modules/parse-server/lib/Adapters/Storage/Mongo/MongoTransform.js:~1113] [pc=0x18308b605d68](this=0x05582c3c04a9 <undefined>,0x1d950f06d4b9 <String[#11]: SearchTerms>,0x08f440575ef1 <Object map = 0x29ebf7841881>,0x059981459f61 <Object map = 0x29ebf78587b1>)
2019-11-16T18:47:27.858851+00:00 app[web.1]: 2: /* anonymou...
2019-11-16T18:47:27.858852+00:00 app[web.1]:
2019-11-16T18:47:27.858879+00:00 app[web.1]: FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
2019-11-16T18:47:27.859052+00:00 app[web.1]:
2019-11-16T18:47:27.870306+00:00 app[web.1]: Writing Node.js report to file: report.20191116.184727.4.0.001.json
2019-11-16T18:47:27.870347+00:00 app[web.1]: Node.js report completed
2019-11-16T18:47:27.870926+00:00 app[web.1]: 1: 0x9d8da0 node::Abort() [node]
2019-11-16T18:47:27.871469+00:00 app[web.1]: 2: 0x9d9f56 node::OnFatalError(char const*, char const*) [node]
2019-11-16T18:47:27.872050+00:00 app[web.1]: 3: 0xb37dbe v8::Utils::ReportOOMFailure(v8::internal::Isolate*, char const*, bool) [node]
2019-11-16T18:47:27.872619+00:00 app[web.1]: 4: 0xb38139 v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate*, char const*, bool) [node]
2019-11-16T18:47:27.873259+00:00 app[web.1]: 5: 0xce34f5 [node]
2019-11-16T18:47:27.873899+00:00 app[web.1]: 6: 0xce3b86 v8::internal::Heap::RecomputeLimits(v8::internal::GarbageCollector) [node]
2019-11-16T18:47:27.874546+00:00 app[web.1]: 7: 0xcefa1a v8::internal::Heap::PerformGarbageCollection(v8::internal::GarbageCollector, v8::GCCallbackFlags) [node]
2019-11-16T18:47:27.875187+00:00 app[web.1]: 8: 0xcf0925 v8::internal::Heap::CollectGarbage(v8::internal::AllocationSpace, v8::internal::GarbageCollectionReason, v8::GCCallbackFlags) [node]
2019-11-16T18:47:27.875837+00:00 app[web.1]: 9: 0xcf3338 v8::internal::Heap::AllocateRawWithRetryOrFail(int, v8::internal::AllocationType, v8::internal::AllocationAlignment) [node]
2019-11-16T18:47:27.876468+00:00 app[web.1]: 10: 0xcb9c67 v8::internal::Factory::NewFillerObject(int, bool, v8::internal::AllocationType) [node]
2019-11-16T18:47:27.877218+00:00 app[web.1]: 11: 0xfefb9b v8::internal::Runtime_AllocateInYoungGeneration(int, unsigned long*, v8::internal::Isolate*) [node]
2019-11-16T18:47:27.877979+00:00 app[web.1]: 12: 0x13725d9 [node]`
this is a dupe of Node.js heap out of memory. You can try bumping up how much memory your node process has with NODE_OPTIONS="--max-old-space-size=16384" npm start.
I tried this in Procfile and now it is working
web: node --max-old-space-size=4096 parse/server.js
I am trying to SSH into another server via the Rails console, however, get the below error. I tried pretty much every suggestion that I could find online but still get the same error. I can login to the server with SSH no problem ssh root#xxx.x.xxx.x.
Net::SSH.start("xxx.xx.xx.x","root",:keys=> ["ssh-rsa ........"], :verbose => Logger::DEBUG) do |ssh|
puts ssh
end
D, [2018-08-31T09:25:57.604405 #30930] DEBUG -- socket[3fcf45daf8a0]: queueing packet nr 3 type 5 len 28
D, [2018-08-31T09:25:57.604540 #30930] DEBUG -- socket[3fcf45daf8a0]: sent 52 bytes
D, [2018-08-31T09:25:57.643325 #30930] DEBUG -- socket[3fcf45daf8a0]: read 52 bytes
D, [2018-08-31T09:25:57.643674 #30930] DEBUG -- socket[3fcf45daf8a0]: received packet nr 3 type 6 len 28
D, [2018-08-31T09:25:57.643897 #30930] DEBUG -- net.ssh.authentication.session[3fcf4c354a20]: trying none
D, [2018-08-31T09:25:57.644151 #30930] DEBUG -- socket[3fcf45daf8a0]: queueing packet nr 4 type 50 len 44
D, [2018-08-31T09:25:57.644285 #30930] DEBUG -- socket[3fcf45daf8a0]: sent 68 bytes
D, [2018-08-31T09:25:57.646320 #30930] DEBUG -- socket[3fcf45daf8a0]: read 52 bytes
D, [2018-08-31T09:25:57.646501 #30930] DEBUG -- socket[3fcf45daf8a0]: received packet nr 4 type 51 len 28
D, [2018-08-31T09:25:57.646664 #30930] DEBUG -- net.ssh.authentication.session[3fcf4c354a20]: allowed methods: publickey
D, [2018-08-31T09:25:57.646807 #30930] DEBUG -- net.ssh.authentication.methods.none[3fcf4c341718]: none failed
D, [2018-08-31T09:25:57.646918 #30930] DEBUG -- net.ssh.authentication.session[3fcf4c354a20]: trying publickey
D, [2018-08-31T09:25:57.647084 #30930] DEBUG -- net.ssh.authentication.agent[3fcf4c32ebf4]: connecting to ssh-agent
E, [2018-08-31T09:25:57.647262 #30930] ERROR -- net.ssh.authentication.agent[3fcf4c32ebf4]: could not connect to ssh-agent: Permission denied - connect(2) for /tmp/ssh-LmmHflAUE4b4/agent.28067
E, [2018-08-31T09:25:57.647375 #30930] ERROR -- net.ssh.authentication.session[3fcf4c354a20]: all authorization methods failed (tried none, publickey)
Net::SSH::AuthenticationFailed: Authentication failed for user root#xxx.xx.xx.x
from /opt/gitlab/embedded/lib/ruby/gems/2.4.0/gems/net-ssh-5.0.1/lib/net/ssh.rb:259:in `start'
from (irb):2
from /opt/gitlab/embedded/lib/ruby/gems/2.4.0/gems/railties-4.2.10/lib/rails/commands/console.rb:110:in `start'
from /opt/gitlab/embedded/lib/ruby/gems/2.4.0/gems/railties-4.2.10/lib/rails/commands/console.rb:9:in `start'
from /opt/gitlab/embedded/lib/ruby/gems/2.4.0/gems/railties-4.2.10/lib/rails/commands/commands_tasks.rb:68:in `console'
from /opt/gitlab/embedded/lib/ruby/gems/2.4.0/gems/railties-4.2.10/lib/rails/commands/commands_tasks.rb:39:in `run_command!'
from /opt/gitlab/embedded/lib/ruby/gems/2.4.0/gems/railties-4.2.10/lib/rails/commands.rb:17:in `<top (required)>'
from bin/rails:14:in `require'
from bin/rails:14:in `<main>'
Ok, so its nothing to do with the library/keys or SSH itself, I am trying to do this from gitlab-rails c, it works fine from irb on the same server.
I tried to set up RStudio Server on a newly installed Ubuntu 14.04 64bit machine. I followed the instructions but when I browsed the portal, I was told with a popup that I wasn't able to connect to the service.
From traceback:
13737 socket(PF_LOCAL, SOCK_DGRAM|SOCK_CLOEXEC, 0) = 3
13737 connect(3, {sa_family=AF_LOCAL, sun_path="/dev/log"}, 110) = 0
13737 sendto(3, "<11>Oct 14 14:27:59 rsession-roo"..., 283, MSG_NOSIGNAL, NULL, 0) = 283
13737 exit_group(1) = ?
13737 +++ exited with 1 +++
13708 <... rt_sigtimedwait resumed> ) = 17
13708 wait4(13737, [{WIFEXITED(s) && WEXITSTATUS(s) == 1}], WNOHANG, NULL) = 13737
13708 rt_sigtimedwait([INT QUIT TERM CHLD], NULL, NULL, 8 <unfinished ...>
13729 connect(9, {sa_family=AF_LOCAL, sun_path="/tmp/rstudio-rsession/root"}, 28) = -1 ECONNREFUSED (Connection refused)
13728 connect(9, {sa_family=AF_LOCAL, sun_path="/tmp/rstudio-rsession/root"}, 28) = -1 ECONNREFUSED (Connection refused)
From /var/log/syslog:
Oct 14 14:26:42 iZ28xtxldicZ rsession-root[13730]: ERROR system error 13 (Permission denied); OCCURRED AT: int main(int, char* const*) /home/ubuntu/rstudio/src/cpp/session/SessionMain.cpp:3003; LOGGED FROM: int main(int, char* const*) /home/ubuntu/rstudio/src/cpp/session/SessionMain.cpp:3004
Oct 14 14:26:52 iZ28xtxldicZ rserver[13708]: ERROR system error 111 (Connection refused) [request-uri=/rpc/client_init]; OCCURRED AT: void rstudio::core::http::LocalStreamAsyncClient::handleConnect(const boost::system::error_code&) /home/ubuntu/rstudio/src/cpp/core/include/core/http/LocalStreamAsyncClient.hpp:84; LOGGED FROM: void rstudio::server::session_proxy::{anonymous}::logIfNotConnectionTerminated(const rstudio::core::Error&, const rstudio::core::http::Request&) /home/ubuntu/rstudio/src/cpp/server/ServerSessionProxy.cpp:269
Anyone knows what's happening here?
PS: At first it was telling ENOENT over a path to the temp folder, and now it's telling something different after I created it manually.