elastic/connectors-ruby

TZInfo::DataSourceNotFound - No source of timezone data could be found.

Closed this issue · 0 comments

Looks like we are missing tzinfo-data when running in Ubuntu Focal in Docker

cd lib/app; bundle exec rackup --host 0.0.0.0 config.ru
[2022-03-31 10:54:34] INFO  WEBrick 1.4.4
[2022-03-31 10:54:34] INFO  ruby 2.6.9 (2021-11-24) [x86_64-linux]
[2022-03-31 10:54:34] INFO  WEBrick::HTTPServer#start: pid=32 port=9292
2022-03-31 10:54:39 - TZInfo::DataSourceNotFound - No source of timezone data could be found.
Please refer to https://tzinfo.github.io/datasourcenotfound for help resolving this error.:
	/app/vendor/bundle/ruby/2.6.0/gems/tzinfo-1.2.9/lib/tzinfo/data_source.rb:182:in `rescue in create_default_data_source'
	/app/vendor/bundle/ruby/2.6.0/gems/tzinfo-1.2.9/lib/tzinfo/data_source.rb:179:in `create_default_data_source'
	/app/vendor/bundle/ruby/2.6.0/gems/tzinfo-1.2.9/lib/tzinfo/data_source.rb:40:in `block in get'
	/app/vendor/bundle/ruby/2.6.0/gems/tzinfo-1.2.9/lib/tzinfo/data_source.rb:39:in `synchronize'
	/app/vendor/bundle/ruby/2.6.0/gems/tzinfo-1.2.9/lib/tzinfo/data_source.rb:39:in `get'
	/app/vendor/bundle/ruby/2.6.0/gems/tzinfo-1.2.9/lib/tzinfo/timezone.rb:665:in `data_source'
	/app/vendor/bundle/ruby/2.6.0/gems/tzinfo-1.2.9/lib/tzinfo/timezone.rb:92:in `get'
	/app/vendor/bundle/ruby/2.6.0/gems/tzinfo-1.2.9/lib/tzinfo/timezone.rb:113:in `new'
	/app/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.6/lib/active_support/values/time_zone.rb:206:in `find_tzinfo'
	/app/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.6/lib/active_support/values/time_zone.rb:300:in `initialize'
	/app/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.6/lib/active_support/values/time_zone.rb:234:in `new'
	/app/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.6/lib/active_support/values/time_zone.rb:234:in `[]'
	/app/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.6/lib/active_support/values/time_zone.rb:215:in `new'
	/app/lib/app/app.rb:57:in `block in <class:ConnectorsWebApp>'
	/app/vendor/bundle/ruby/2.6.0/gems/sinatra-2.1.0/lib/sinatra/base.rb:1675:in `call'
	/app/vendor/bundle/ruby/2.6.0/gems/sinatra-2.1.0/lib/sinatra/base.rb:1675:in `block in compile!'
	/app/vendor/bundle/ruby/2.6.0/gems/sinatra-2.1.0/lib/sinatra/base.rb:1061:in `block in process_route'
	/app/vendor/bundle/ruby/2.6.0/gems/sinatra-2.1.0/lib/sinatra/base.rb:1059:in `catch'
	/app/vendor/bundle/ruby/2.6.0/gems/sinatra-2.1.0/lib/sinatra/base.rb:1059:in `process_route'
	/app/vendor/bundle/ruby/2.6.0/gems/sinatra-2.1.0/lib/sinatra/base.rb:1000:in `block in filter!'
	/app/vendor/bundle/ruby/2.6.0/gems/sinatra-2.1.0/lib/sinatra/base.rb:999:in `each'
	/app/vendor/bundle/ruby/2.6.0/gems/sinatra-2.1.0/lib/sinatra/base.rb:999:in `filter!'
	/app/vendor/bundle/ruby/2.6.0/gems/sinatra-2.1.0/lib/sinatra/base.rb:1126:in `block in dispatch!'
	/app/vendor/bundle/ruby/2.6.0/gems/sinatra-2.1.0/lib/sinatra/base.rb:1101:in `block in invoke'
	/app/vendor/bundle/ruby/2.6.0/gems/sinatra-2.1.0/lib/sinatra/base.rb:1101:in `catch'
	/app/vendor/bundle/ruby/2.6.0/gems/sinatra-2.1.0/lib/sinatra/base.rb:1101:in `invoke'
	/app/vendor/bundle/ruby/2.6.0/gems/sinatra-2.1.0/lib/sinatra/base.rb:1124:in `dispatch!'
	/app/vendor/bundle/ruby/2.6.0/gems/sinatra-2.1.0/lib/sinatra/base.rb:939:in `block in call!'
	/app/vendor/bundle/ruby/2.6.0/gems/sinatra-2.1.0/lib/sinatra/base.rb:1101:in `block in invoke'
	/app/vendor/bundle/ruby/2.6.0/gems/sinatra-2.1.0/lib/sinatra/base.rb:1101:in `catch'
	/app/vendor/bundle/ruby/2.6.0/gems/sinatra-2.1.0/lib/sinatra/base.rb:1101:in `invoke'
	/app/vendor/bundle/ruby/2.6.0/gems/sinatra-2.1.0/lib/sinatra/base.rb:939:in `call!'
	/app/vendor/bundle/ruby/2.6.0/gems/sinatra-2.1.0/lib/sinatra/base.rb:929:in `call'
	/app/vendor/bundle/ruby/2.6.0/gems/rack-protection-2.1.0/lib/rack/protection/xss_header.rb:18:in `call'
	/app/vendor/bundle/ruby/2.6.0/gems/rack-protection-2.1.0/lib/rack/protection/path_traversal.rb:16:in `call'
	/app/vendor/bundle/ruby/2.6.0/gems/rack-protection-2.1.0/lib/rack/protection/json_csrf.rb:26:in `call'
	/app/vendor/bundle/ruby/2.6.0/gems/rack-protection-2.1.0/lib/rack/protection/base.rb:50:in `call'
	/app/vendor/bundle/ruby/2.6.0/gems/rack-protection-2.1.0/lib/rack/protection/base.rb:50:in `call'
	/app/vendor/bundle/ruby/2.6.0/gems/rack-protection-2.1.0/lib/rack/protection/frame_options.rb:31:in `call'
	/app/vendor/bundle/ruby/2.6.0/gems/rack-2.2.3/lib/rack/null_logger.rb:11:in `call'
	/app/vendor/bundle/ruby/2.6.0/gems/rack-2.2.3/lib/rack/head.rb:12:in `call'
	/app/vendor/bundle/ruby/2.6.0/gems/sinatra-2.1.0/lib/sinatra/base.rb:216:in `call'
	/app/vendor/bundle/ruby/2.6.0/gems/sinatra-2.1.0/lib/sinatra/base.rb:1991:in `call'
	/app/vendor/bundle/ruby/2.6.0/gems/sinatra-2.1.0/lib/sinatra/base.rb:1542:in `block in call'
	/app/vendor/bundle/ruby/2.6.0/gems/sinatra-2.1.0/lib/sinatra/base.rb:1769:in `synchronize'
	/app/vendor/bundle/ruby/2.6.0/gems/sinatra-2.1.0/lib/sinatra/base.rb:1542:in `call'
	/app/vendor/bundle/ruby/2.6.0/gems/rack-2.2.3/lib/rack/tempfile_reaper.rb:15:in `call'
	/app/vendor/bundle/ruby/2.6.0/gems/rack-2.2.3/lib/rack/lint.rb:50:in `_call'
	/app/vendor/bundle/ruby/2.6.0/gems/rack-2.2.3/lib/rack/lint.rb:38:in `call'
	/app/vendor/bundle/ruby/2.6.0/gems/rack-2.2.3/lib/rack/show_exceptions.rb:23:in `call'
	/app/vendor/bundle/ruby/2.6.0/gems/rack-2.2.3/lib/rack/common_logger.rb:38:in `call'
	/app/vendor/bundle/ruby/2.6.0/gems/sinatra-2.1.0/lib/sinatra/base.rb:253:in `call'
	/app/vendor/bundle/ruby/2.6.0/gems/rack-2.2.3/lib/rack/content_length.rb:17:in `call'
	/app/vendor/bundle/ruby/2.6.0/gems/rack-2.2.3/lib/rack/handler/webrick.rb:95:in `service'
	/root/.rbenv/versions/2.6.9/lib/ruby/2.6.0/webrick/httpserver.rb:140:in `service'
	/root/.rbenv/versions/2.6.9/lib/ruby/2.6.0/webrick/httpserver.rb:96:in `run'
	/root/.rbenv/versions/2.6.9/lib/ruby/2.6.0/webrick/server.rb:307:in `block in start_thread'