gem install error: timed out https://api.rubygems.org/ - ruby

I am failing to install bundler. I am on Ubuntu 18 and have ruby 2.5.1 installed. Here is the output of running this command.
gem install bundler --debug
NOTE: Debugging mode prints all exceptions even when rescued
Exception `LoadError' at /home/ikushlianski/.rbenv/versions/2.5.1/lib/ruby/2.5.0/resolv.rb:170 - LoadError
Exception `Net::OpenTimeout' at /home/ikushlianski/.rbenv/versions/2.5.1/lib/ruby/2.5.0/net/http.rb:937 - execution expired
Exception `Net::OpenTimeout' at /home/ikushlianski/.rbenv/versions/2.5.1/lib/ruby/2.5.0/net/http.rb:939 - execution expired
Exception `Net::OpenTimeout' at /home/ikushlianski/.rbenv/versions/2.5.1/lib/ruby/2.5.0/timeout.rb:114 - execution expired
Exception `Net::OpenTimeout' at /home/ikushlianski/.rbenv/versions/2.5.1/lib/ruby/2.5.0/net/http.rb:997 - execution expired
Exception `Gem::RemoteFetcher::UnknownHostError' at /home/ikushlianski/.rbenv/versions/2.5.1/lib/ruby/2.5.0/rubygems/remote_fetcher.rb:306 - timed out (https://api.rubygems.org/api/v1/dependencies)
Exception `Errno::EEXIST' at /home/ikushlianski/.rbenv/versions/2.5.1/lib/ruby/2.5.0/fileutils.rb:232 - File exists # dir_s_mkdir - /home/ikushlianski/.gem/specs/api.rubygems.org%443
Exception `Errno::ENOENT' at /home/ikushlianski/.rbenv/versions/2.5.1/lib/ruby/2.5.0/rubygems/remote_fetcher.rb:325 - No such file or directory # rb_file_s_stat - /home/ikushlianski/.gem/specs/api.rubygems.org%443/prerelease_specs.4.8
Exception `Net::OpenTimeout' at /home/ikushlianski/.rbenv/versions/2.5.1/lib/ruby/2.5.0/net/http.rb:937 - execution expired
Exception `Net::OpenTimeout' at /home/ikushlianski/.rbenv/versions/2.5.1/lib/ruby/2.5.0/net/http.rb:939 - execution expired
Exception `Net::OpenTimeout' at /home/ikushlianski/.rbenv/versions/2.5.1/lib/ruby/2.5.0/timeout.rb:114 - execution expired
Exception `Net::OpenTimeout' at /home/ikushlianski/.rbenv/versions/2.5.1/lib/ruby/2.5.0/net/http.rb:997 - execution expired
Exception `Gem::RemoteFetcher::UnknownHostError' at /home/ikushlianski/.rbenv/versions/2.5.1/lib/ruby/2.5.0/rubygems/remote_fetcher.rb:306 - timed out (https://api.rubygems.org/prerelease_specs.4.8.gz)
Exception `Errno::EEXIST' at /home/ikushlianski/.rbenv/versions/2.5.1/lib/ruby/2.5.0/fileutils.rb:232 - File exists # dir_s_mkdir - /home/ikushlianski/.gem/specs/api.rubygems.org%443
Exception `Errno::ENOENT' at /home/ikushlianski/.rbenv/versions/2.5.1/lib/ruby/2.5.0/rubygems/remote_fetcher.rb:325 - No such file or directory # rb_file_s_stat - /home/ikushlianski/.gem/specs/api.rubygems.org%443/specs.4.8
Exception `Net::OpenTimeout' at /home/ikushlianski/.rbenv/versions/2.5.1/lib/ruby/2.5.0/net/http.rb:937 - execution expired
Exception `Net::OpenTimeout' at /home/ikushlianski/.rbenv/versions/2.5.1/lib/ruby/2.5.0/net/http.rb:939 - execution expired
Exception `Net::OpenTimeout' at /home/ikushlianski/.rbenv/versions/2.5.1/lib/ruby/2.5.0/timeout.rb:114 - execution expired
Exception `Net::OpenTimeout' at /home/ikushlianski/.rbenv/versions/2.5.1/lib/ruby/2.5.0/net/http.rb:997 - execution expired
Exception `Gem::RemoteFetcher::UnknownHostError' at /home/ikushlianski/.rbenv/versions/2.5.1/lib/ruby/2.5.0/rubygems/remote_fetcher.rb:306 - timed out (https://api.rubygems.org/specs.4.8.gz)
Exception `Gem::RemoteFetcher::UnknownHostError' at /home/ikushlianski/.rbenv/versions/2.5.1/lib/ruby/2.5.0/rubygems/spec_fetcher.rb:269 - timed out (https://api.rubygems.org/specs.4.8.gz)
Exception `Gem::UnsatisfiableDependencyError' at /home/ikushlianski/.rbenv/versions/2.5.1/lib/ruby/2.5.0/rubygems/resolver/installer_set.rb:72 - Unable to resolve dependency: user requested 'bundler (>= 0)'
ERROR: Could not find a valid gem 'bundler' (>= 0), here is why:
Unable to download data from https://rubygems.org/ - timed out (https://api.rubygems.org/specs.4.8.gz)
Exception `Errno::EEXIST' at /home/ikushlianski/.rbenv/versions/2.5.1/lib/ruby/2.5.0/fileutils.rb:232 - File exists # dir_s_mkdir - /home/ikushlianski/.gem/specs/api.rubygems.org%443
Exception `Errno::ENOENT' at /home/ikushlianski/.rbenv/versions/2.5.1/lib/ruby/2.5.0/rubygems/remote_fetcher.rb:325 - No such file or directory # rb_file_s_stat - /home/ikushlianski/.gem/specs/api.rubygems.org%443/latest_specs.4.8
Running sudo gem install bundler outputs sudo: gem: command not found

Try disabling IPv6 on your Ubuntu

Related

Installing Ruby Gems on M1 Mac Ruby 2.7.2

I'm running macOS Monterey on an M1 Pro. I've installed rvm with Ruby 3.0.0 and 2.7.2.
➜ ~ rvm list
=* ruby-2.7.3 [ arm64 ]
ruby-3.0.0 [ arm64 ]
# => - current
# =* - current && default
# * - default
I can install gems without any issues when using Ruby 3.0.0. However, when I attempt to install gems using 2.7.3 - I start hitting problems.
➜ ~ gem install bundler -V --debug
NOTE: Debugging mode prints all exceptions even when rescued
Exception `SocketError' at /Users/cclarke/.rvm/rubies/ruby-2.7.3/lib/ruby/2.7.0/net/http.rb:960 - getaddrinfo: Invalid value for ai_flags
Exception `SocketError' at /Users/cclarke/.rvm/rubies/ruby-2.7.3/lib/ruby/2.7.0/net/http.rb:962 - Failed to open TCP connection to rubygems.org:443 (getaddrinfo: Invalid value for ai_flags)
Exception `SocketError' at /Users/cclarke/.rvm/rubies/ruby-2.7.3/lib/ruby/2.7.0/net/http.rb:1025 - Failed to open TCP connection to rubygems.org:443 (getaddrinfo: Invalid value for ai_flags)
Exception `Gem::RemoteFetcher::UnknownHostError' at /Users/cclarke/.rvm/rubies/ruby-2.7.3/lib/ruby/2.7.0/rubygems/remote_fetcher.rb:272 - no such name (https://rubygems.org/api/v1/dependencies)
Exception `Errno::EEXIST' at /Users/cclarke/.rvm/rubies/ruby-2.7.3/lib/ruby/2.7.0/fileutils.rb:250 - File exists # dir_s_mkdir - /Users/cclarke/.gem/specs/rubygems.org%443
Exception `SocketError' at /Users/cclarke/.rvm/rubies/ruby-2.7.3/lib/ruby/2.7.0/net/http.rb:960 - getaddrinfo: Invalid value for ai_flags
Exception `SocketError' at /Users/cclarke/.rvm/rubies/ruby-2.7.3/lib/ruby/2.7.0/net/http.rb:962 - Failed to open TCP connection to rubygems.org:443 (getaddrinfo: Invalid value for ai_flags)
Exception `SocketError' at /Users/cclarke/.rvm/rubies/ruby-2.7.3/lib/ruby/2.7.0/net/http.rb:1025 - Failed to open TCP connection to rubygems.org:443 (getaddrinfo: Invalid value for ai_flags)
Exception `Gem::RemoteFetcher::UnknownHostError' at /Users/cclarke/.rvm/rubies/ruby-2.7.3/lib/ruby/2.7.0/rubygems/remote_fetcher.rb:272 - no such name (https://rubygems.org/prerelease_specs.4.8.gz)
Exception `Errno::EEXIST' at /Users/cclarke/.rvm/rubies/ruby-2.7.3/lib/ruby/2.7.0/fileutils.rb:250 - File exists # dir_s_mkdir - /Users/cclarke/.gem/specs/rubygems.org%443
Exception `SocketError' at /Users/cclarke/.rvm/rubies/ruby-2.7.3/lib/ruby/2.7.0/net/http.rb:960 - getaddrinfo: Invalid value for ai_flags
Exception `SocketError' at /Users/cclarke/.rvm/rubies/ruby-2.7.3/lib/ruby/2.7.0/net/http.rb:962 - Failed to open TCP connection to rubygems.org:443 (getaddrinfo: Invalid value for ai_flags)
Exception `SocketError' at /Users/cclarke/.rvm/rubies/ruby-2.7.3/lib/ruby/2.7.0/net/http.rb:1025 - Failed to open TCP connection to rubygems.org:443 (getaddrinfo: Invalid value for ai_flags)
Exception `Gem::RemoteFetcher::UnknownHostError' at /Users/cclarke/.rvm/rubies/ruby-2.7.3/lib/ruby/2.7.0/rubygems/remote_fetcher.rb:272 - no such name (https://rubygems.org/specs.4.8.gz)
Exception `Gem::RemoteFetcher::UnknownHostError' at /Users/cclarke/.rvm/rubies/ruby-2.7.3/lib/ruby/2.7.0/rubygems/spec_fetcher.rb:256 - no such name (https://rubygems.org/specs.4.8.gz)
Exception `Gem::UnsatisfiableDependencyError' at /Users/cclarke/.rvm/rubies/ruby-2.7.3/lib/ruby/2.7.0/rubygems/resolver.rb:235 - Unable to resolve dependency: user requested 'bundler (>= 0)'
ERROR: Could not find a valid gem 'bundler' (>= 0), here is why:
Unable to download data from https://rubygems.org/ - no such name (https://rubygems.org/specs.4.8.gz)
Exception `Errno::EEXIST' at /Users/cclarke/.rvm/rubies/ruby-2.7.3/lib/ruby/2.7.0/fileutils.rb:250 - File exists # dir_s_mkdir - /Users/cclarke/.gem/specs/rubygems.org%443
Exception `Errno::ENOENT' at /Users/cclarke/.rvm/rubies/ruby-2.7.3/lib/ruby/2.7.0/rubygems/remote_fetcher.rb:297 - No such file or directory # rb_file_s_stat - /Users/cclarke/.gem/specs/rubygems.org%443/latest_specs.4.8
Exception `SocketError' at /Users/cclarke/.rvm/rubies/ruby-2.7.3/lib/ruby/2.7.0/net/http.rb:960 - getaddrinfo: Invalid value for ai_flags
Exception `SocketError' at /Users/cclarke/.rvm/rubies/ruby-2.7.3/lib/ruby/2.7.0/net/http.rb:962 - Failed to open TCP connection to rubygems.org:443 (getaddrinfo: Invalid value for ai_flags)
Exception `SocketError' at /Users/cclarke/.rvm/rubies/ruby-2.7.3/lib/ruby/2.7.0/net/http.rb:1025 - Failed to open TCP connection to rubygems.org:443 (getaddrinfo: Invalid value for ai_flags)
Exception `Gem::RemoteFetcher::UnknownHostError' at /Users/cclarke/.rvm/rubies/ruby-2.7.3/lib/ruby/2.7.0/rubygems/remote_fetcher.rb:272 - no such name (https://rubygems.org/latest_specs.4.8.gz)
Exception `Gem::RemoteFetcher::UnknownHostError' at /Users/cclarke/.rvm/rubies/ruby-2.7.3/lib/ruby/2.7.0/rubygems/spec_fetcher.rb:256 - no such name (https://rubygems.org/latest_specs.4.8.gz)
Exception `Errno::EEXIST' at /Users/cclarke/.rvm/rubies/ruby-2.7.3/lib/ruby/2.7.0/fileutils.rb:250 - File exists # dir_s_mkdir - /Users/cclarke/.gem/specs/rubygems.org%443
Exception `SocketError' at /Users/cclarke/.rvm/rubies/ruby-2.7.3/lib/ruby/2.7.0/net/http.rb:960 - getaddrinfo: Invalid value for ai_flags
Exception `SocketError' at /Users/cclarke/.rvm/rubies/ruby-2.7.3/lib/ruby/2.7.0/net/http.rb:962 - Failed to open TCP connection to rubygems.org:443 (getaddrinfo: Invalid value for ai_flags)
Exception `SocketError' at /Users/cclarke/.rvm/rubies/ruby-2.7.3/lib/ruby/2.7.0/net/http.rb:1025 - Failed to open TCP connection to rubygems.org:443 (getaddrinfo: Invalid value for ai_flags)
Exception `Gem::RemoteFetcher::UnknownHostError' at /Users/cclarke/.rvm/rubies/ruby-2.7.3/lib/ruby/2.7.0/rubygems/remote_fetcher.rb:272 - no such name (https://rubygems.org/prerelease_specs.4.8.gz)
Exception `Gem::RemoteFetcher::UnknownHostError' at /Users/cclarke/.rvm/rubies/ruby-2.7.3/lib/ruby/2.7.0/rubygems/spec_fetcher.rb:256 - no such name (https://rubygems.org/prerelease_specs.4.8.gz)
I've tried installing Ruby 2.7.2 in 2 ways but the problem still persists.
rvm install 2.7.2 (Installs fine)
Using this GitHub link
I think perhaps, it's the problem is with openssh but I cannot be sure. Why it can't open a TCP connection I with ruby gems I can't figure. If anyone has any insight I'd be very grateful.
Kind regards,
Christian
~edit. My Gem sources are correctly set for 2.7.3 as they are for 3.0.0. Which works fine.
➜ ~ gem sources
*** CURRENT SOURCES ***
https://rubygems.org/
I ran curl from the rubygems.org site
➜ ~ curl -Lks 'https://git.io/rg-ssl' | ruby
Here's your Ruby and OpenSSL environment:
Ruby: 2.7.3p183 (2021-04-05 revision 6847ee089d7655b2a0eea4fee3133aeacd4cc7cc) [arm64-darwin21]
RubyGems: 3.1.6
Bundler: 2.1.4
Compiled with: OpenSSL 1.1.1m 14 Dec 2021
Loaded version: OpenSSL 1.1.1m 14 Dec 2021
SSL_CERT_FILE: /opt/homebrew/etc/openssl#1.1/cert.pem
SSL_CERT_DIR: /opt/homebrew/etc/openssl#1.1/certs
With that out of the way, let's see if you can connect to rubygems.org...
Bundler connection to rubygems.org: failed ❌ (Failed to open TCP connection to rubygems.org:443 (getaddrinfo: Invalid value for ai_flags))
RubyGems connection to rubygems.org: failed ❌ (no such name (https://rubygems.org))
Ruby net/http connection to rubygems.org: failed ❌
Unfortunately, this Ruby can't connect to rubygems.org. 😡
Even worse, we're not sure why. 😕
Here's the full error information:
SocketError: Failed to open TCP connection to rubygems.org:443 (getaddrinfo: Invalid value for ai_flags)
/Users/cclarke/.rvm/rubies/ruby-2.7.3/lib/ruby/2.7.0/net/http.rb:960:in `initialize'
/Users/cclarke/.rvm/rubies/ruby-2.7.3/lib/ruby/2.7.0/net/http.rb:960:in `open'
/Users/cclarke/.rvm/rubies/ruby-2.7.3/lib/ruby/2.7.0/net/http.rb:960:in `block in connect'
/Users/cclarke/.rvm/rubies/ruby-2.7.3/lib/ruby/2.7.0/timeout.rb:95:in `block in timeout'
/Users/cclarke/.rvm/rubies/ruby-2.7.3/lib/ruby/2.7.0/timeout.rb:105:in `timeout'
/Users/cclarke/.rvm/rubies/ruby-2.7.3/lib/ruby/2.7.0/net/http.rb:958:in `connect'
/Users/cclarke/.rvm/rubies/ruby-2.7.3/lib/ruby/2.7.0/net/http.rb:943:in `do_start'
/Users/cclarke/.rvm/rubies/ruby-2.7.3/lib/ruby/2.7.0/net/http.rb:938:in `start'
-:101:in `<main>'
You might have more luck using Mislav's SSL doctor.rb script. You can get it here:
https://github.com/mislav/ssl-tools/blob/8b3dec4/doctor.rb
Read more about the script and how to use it in this blog post:
https://mislav.net/2013/07/ruby-openssl/
Traceback (most recent call last):
8: from -:101:in `<main>'
7: from /Users/cclarke/.rvm/rubies/ruby-2.7.3/lib/ruby/2.7.0/net/http.rb:938:in `start'
6: from /Users/cclarke/.rvm/rubies/ruby-2.7.3/lib/ruby/2.7.0/net/http.rb:943:in `do_start'
5: from /Users/cclarke/.rvm/rubies/ruby-2.7.3/lib/ruby/2.7.0/net/http.rb:958:in `connect'
4: from /Users/cclarke/.rvm/rubies/ruby-2.7.3/lib/ruby/2.7.0/timeout.rb:105:in `timeout'
3: from /Users/cclarke/.rvm/rubies/ruby-2.7.3/lib/ruby/2.7.0/timeout.rb:95:in `block in timeout'
2: from /Users/cclarke/.rvm/rubies/ruby-2.7.3/lib/ruby/2.7.0/net/http.rb:960:in `block in connect'
1: from /Users/cclarke/.rvm/rubies/ruby-2.7.3/lib/ruby/2.7.0/net/http.rb:960:in `open'
/Users/cclarke/.rvm/rubies/ruby-2.7.3/lib/ruby/2.7.0/net/http.rb:960:in `initialize': getaddrinfo: Invalid value for ai_flags (SocketError)
8: from -:101:in `<main>'
7: from /Users/cclarke/.rvm/rubies/ruby-2.7.3/lib/ruby/2.7.0/net/http.rb:938:in `start'
6: from /Users/cclarke/.rvm/rubies/ruby-2.7.3/lib/ruby/2.7.0/net/http.rb:943:in `do_start'
5: from /Users/cclarke/.rvm/rubies/ruby-2.7.3/lib/ruby/2.7.0/net/http.rb:958:in `connect'
4: from /Users/cclarke/.rvm/rubies/ruby-2.7.3/lib/ruby/2.7.0/timeout.rb:105:in `timeout'
3: from /Users/cclarke/.rvm/rubies/ruby-2.7.3/lib/ruby/2.7.0/timeout.rb:95:in `block in timeout'
2: from /Users/cclarke/.rvm/rubies/ruby-2.7.3/lib/ruby/2.7.0/net/http.rb:960:in `block in connect'
1: from /Users/cclarke/.rvm/rubies/ruby-2.7.3/lib/ruby/2.7.0/net/http.rb:960:in `open'
/Users/cclarke/.rvm/rubies/ruby-2.7.3/lib/ruby/2.7.0/net/http.rb:960:in `initialize': Failed to open TCP connection to rubygems.org:443 (getaddrinfo: Invalid value for ai_flags) (SocketError)
~Edit. I couldn't figure this out. So, in the end I followed the advice in this post How to run the Homebrew installer under Rosetta 2 on M1 Macbook. For Ruby 3 I use native Arm. For Ruby 2.7.5 I use Rosetta2. Perhaps, not natively running Arm .. but at least it's working.

Oracle BI Start up fails to start Admin Server

I'm trying to startup OBIEE 12c
Database is up and running
But running the start.cmd fails when starting Admin Server with this error message.
"""""
Starting AdminServer ...
Unable to connect to AdminServer on host: ***********
Failed to start one or more Servers
/Servers/AdminServer/ListenPort=9500
Accessing admin server using URL t3://*************
Start Admin Server connect Exception caught Error occurred while performing connect : Error getting the initial context. There is no server running at t3://************* : Failed to initialize JNDI context, tried 2 time or times totally, the interval of each time is 0ms.
t3://*************: Destination **********, 9500 unreachable.; nested exception is:
java.net.ConnectException: Connection refused: connect; No available router to destination.; nested exception is:
java.rmi.ConnectException: No available router to destination.
Use dumpStack() to view the full stacktrace :
Reading domain...
Error: runCmd() failed. Do dumpStack() to see details.
Failed to get Status of Servers and System Components
"""""
Start.cmd error message
Also, trying to check the status come up with this error.
"""""
Start Admin Server connect Exception caught Error occurred while performing connect : Error getting the initial context. There is no server running at t3://************* : Failed to initialize JNDI context, tried 2 time or times totally, the interval of each time is 0ms.
t3://*************: Destination 10.10.3.88, 9500 unreachable.; nested exception is:
java.net.ConnectException: Connection refused: connect; No available router to destination.; nested exception is:
java.rmi.ConnectException: No available router to destination.
Use dumpStack() to view the full stacktrace :
Reading domain...
Error: runCmd() failed. Do dumpStack() to see details.
Problem invoking WLST - Traceback (innermost last):
File "F:\Middleware\bi\modules\oracle.bi.sysman\scripts\status_servers.py", line 29, in ?
File "F:\Middleware\bi\modules\oracle.bi.sysman\scripts\process_control.py", line 581, in statusComponents
File "F:\Middleware\bi\modules\oracle.bi.sysman\scripts\process_control.py", line 455, in outputComponentsStatus
File "F:\Middleware\bi\modules\oracle.bi.sysman\scripts\process_control.py", line 243, in connectAdminServer
File "F:\Middleware\bi\modules\oracle.bi.sysman\scripts\process_control.py", line 179, in requestCredentialsAndConnectToAdminServer
File "F:\Middleware\bi\modules\oracle.bi.sysman\scripts\process_control.py", line 513, in getAdminServerUrl
File "C:\Users\Administrator\AppData\Local\Temp\1\WLSTOfflineIni5666259588766029647.py", line 131, in readDomain
File "C:\Users\Administrator\AppData\Local\Temp\1\WLSTOfflineIni5666259588766029647.py", line 19, in command
60713: Attempt to execute command "readDomain" in invalid state: Configuration
"""""
STATUS ERROR MESSAGE

can not access NIFI UI?

Always can access UI until today!
show logs,why error of other server would make NIFI UI can not be accessed!?
1
2020-04-25 14:59:53,546 ERROR [Timer-Driven Process Thread-41] o.apache.nifi.processors.standard.PutSQL PutSQL[id=c1451287-2ee5-397e-9842-5e477212e954] Failed to update database due to a failed batch update, java.sql.BatchUpdateException: ORA-02291: integrity constraint (ISA.PHY_ASSET_CLASS_X_PHY_ASSET_MAPPING_FK1) violated - parent key not found
. There were a total of 1 FlowFiles that failed, 0 that succeeded, and 0 that were not execute and will be routed to retry; : java.sql.BatchUpdateException: ORA-02291: integrity constraint (ISA.PHY_ASSET_CLASS_X_PHY_ASSET_MAPPING_FK1) violated - parent key not found
java.sql.BatchUpdateException: ORA-02291: integrity constraint (ISA.PHY_ASSET_CLASS_X_PHY_ASSET_MAPPING_FK1) violated - parent key not found
2
IOError: java.nio.channels.ClosedByInterruptException
org.python.core.PyException: null
3
2020-04-25 14:59:58,537 ERROR [Timer-Driven Process Thread-94] o.apache.nifi.processors.standard.PutSQL PutSQL[id=d9733768-de43-17b7-0000-00007453720b] Failed to process session due to org.apache.nifi.processor.exception.ProcessException: java.sql.SQLException: Cannot get a connection, pool error Timeout waiting for idle object: org.apache.nifi.processor.exception.ProcessException: java.sql.SQLException: Cannot get a connection, pool error Timeout waiting for idle object
org.apache.nifi.processor.exception.ProcessException: java.sql.SQLException: Cannot get a connection, pool error Timeout waiting for idle object
4
ERROR [MasterListener-mymaster-[10.148.xxx.xx:26379]] redis.clients.jedis.JedisSentinelPool Lost connection to Sentinel at 10.xxx.xxx.xx:xxxx. Sleeping 5000ms and retrying.
redis.clients.jedis.exceptions.JedisConnectionException: java.net.ConnectException: Connection refused (Connection refused)
Maybe there are many other error...
ANY HELP IS APPRECIATED!

Dse is not starting stating unable to write to commit log directory

I am getting below error while starting the dse:
ERROR [main] 2020-02-26 13:08:33,269 DseModule.java:97 - {}. Exiting...
com.google.inject.CreationException: Unable to create injector, see the following errors:
1) An exception was caught and reported. Message: Unable to check disk space available to /u01/dse_ops/logs. Perhaps the Cassandra user does not have the necessary permissions
at com.datastax.bdp.DseModule.configure(Unknown Source)

Unable to connect to smtp server when running from intellij

I have a block of code, that sends email by connecting to SMTP server. (Grails 2.4.4 project)
When i run it in eclipse, everything works fine,
When i run in intellij idea (2016.1.2), I get MailSendException
org.springframework.mail.MailSendException: Mail server connection failed; nested exception is javax.mail.MessagingException: Exception reading response;
nested exception is:
java.net.SocketException: Connection reset. Failed messages: javax.mail.MessagingException: Exception reading response;
nested exception is:
java.net.SocketException: Connection reset; message exception details (1) are:
Failed message 1:
javax.mail.MessagingException: Exception reading response;
Does any one have any idea of what is going on?

Resources