Unknown socket family 0 in grpc_sockaddr_get_port Error - tensorflow

While running tests in TensorFlow v1.4.0 many failures seen due to error:
..E1113 09:39:05.891581609 54654 ev_epoll1_linux.c:1051] grpc epoll fd: 3
E1113 09:39:05.892042359 54654 sockaddr_utils.c:239] Unknown socket family 0 in grpc_sockaddr_get_port
E1113 09:39:05.892056484 54654 tcp_server_utils_posix_common.c:90] assertion failed: port > 0
Aborted (core dumped)
Also few fail with error:
self.server = grpc.server(futures.ThreadPoolExecutor(max_workers=10))
AttributeError: 'module' object has no attribute 'server'
Installed grpc via pip. Anyone faced similar error?

Related

Why did I fail to launch TensorBoard on jupyter notebook?

I am using tf 2.0 and tensorboard 2.0. I want to use tb in jupyter notebook but get the error:
ERROR: Failed to launch TensorBoard (exited with -6). Contents of
stderr: [libprotobuf ERROR
external/com_google_protobuf/src/google/protobuf/descriptor_database.cc:393]
Invalid file descriptor data passed to
EncodedDescriptorDatabase::Add(). [libprotobuf FATAL
external/com_google_protobuf/src/google/protobuf/descriptor.cc:1367]
CHECK failed: GeneratedDatabase()->Add(encoded_file_descriptor, size):
libc++abi.dylib: terminating with uncaught exception of type
google::protobuf::FatalException: CHECK failed:
GeneratedDatabase()->Add(encoded_file_descriptor, size):

How to fix " error message: 'Received RST_STREAM with error code 8'" in compiling tensorflow using bazel

I am trying to compile the latest tensorflow version (2.0) using bazel (0.24.1):
~/bin/bazel build -c opt --verbose_failures --copt=-msse3 --copt=-msse4.1 --copt=-msse4.2 --copt=-mavx --copt=-mavx2 --copt=-mfma //tensorflow/tools/pip_package:build_pip_package
I receive the following error messages:
Server terminated abruptly (error code: 1, error message: 'Received RST_STREAM with error code 8', log file: '/home/zhang/.cache/bazel/_bazel_zhang/72e7c60ab7642c4e9dd9ba0bb5e0d8db/server/jvm.out')
In the jvm.out file, it looks like:
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by io.netty.util.internal.ReflectionUtil (file:/home/zhang/.cache/bazel/_bazel_zhang/install/7da6a92c096ada842b8d48c251312343/_embedded_binaries/A-server.jar) to field sun.nio.ch.SelectorImpl.selectedKeys
WARNING: Please consider reporting this to the maintainers of io.netty.util.internal.ReflectionUtil
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
Please help me out. Thanks!

caffe runtest error after make all

I am installing caffe with ubuntu 16.04 system of cpu. I am facing prpoblem while makerun test.
The error is:
src/caffe/test/test_hdf5data_layer.cpp:4:18: fatal error: hdf5.h: No such file or directory
compilation terminated.
Makefile:581: recipe for target
'.build_release/src/caffe/test/test_hdf5data_layer.o' failed
make: *** [.build_release/src/caffe/test/test_hdf5data_layer.o] Error 1

How to handle error STDERR in chef

How we can handle chef error during convergence stage. I'm inspecting to tackle error during package resource run and on getting that exception/error it would notify other resource to execute.
I understand this we can tackle with handlers but how to write handler module to execute code only if certain kind of stderr is encountered or exception is occurred.
e.g.
3: package "mdadm" do
4: timeout '300'
5: end
6:
Mixlib::ShellOut::ShellCommandFailed: package[mdadm] (cookbook-common::raid line 3) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received ''
---- Begin output of /usr/bin/python /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.16.4/lib/chef/provider/package/yum-dump.py --options --installed-provides --yum-lock-timeout 30 ----
STDOUT:
STDERR: Fatal Python error: pycurl: libcurl link-time version is older than compile-time version
Chef is a convergent system built around promise theory. There is no specific handling for errors because each unit of promise (generally resources in Chef) is expected to be internally idempotent and handle this kind of thing itself. If a resource is forced to error, it is presumed to be globally fatal.

simplehtmldom - SSL operation failed with code 1. OpenSSL Error messages

I'm using http://simplehtmldom.sourceforge.net/ and file_get_contents() in my webApp. The file_get_contents() work fine on localhost. But when upload webApp on server(Windows server 2012 r2) i get this error. How to fix this error?
> Warning: file_get_contents(): SSL operation failed with code 1. OpenSSL Error messages: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed in E:\cfnic.com\includes\class\PHP_Simple_HTML_DOM_Parser.php on line 75
Warning: file_get_contents(): Failed to enable crypto in E:\cfnic.com\includes\class\PHP_Simple_HTML_DOM_Parser.php on line 75
Warning: file_get_contents(https://www.markafoni.com/kadin/): failed to open stream: operation failed in E:\cfnic.com\includes\class\PHP_Simple_HTML_DOM_Parser.php on line 75
Fatal error: Call to a member function find() on boolean in E:\cfnic.com\includes\theme\category.php on line 159
You basically have to set the environment variable SSL_CERT_FILE to the path of the PEM file of the ssl-certificate downloaded from the following link : http://curl.haxx.se/ca/cacert.pem.
It took me a lot of time to figure this out.
For a detailed answer, you can have a look here: https://stackoverflow.com/questions/34590842/cannot-install-composer-on-mac-os-x/34617315