GVKun编程网logo

HTTP Status 500 - {msg=SolrCore ''collection1'' is not available due to init failure: Could...

27

本文将为您提供关于HTTPStatus500-{msg=SolrCore''collection1''isnotavailableduetoinitfailure:Could...的详细介绍,同时,我

本文将为您提供关于HTTP Status 500 - {msg=SolrCore ''collection1'' is not available due to init failure: Could...的详细介绍,同时,我们还将为您提供关于.. ld: symbol(s) not found for architecture x86_64 collect2: ld returned 1 exit status make[2]: ***、cadvisor报错failed to collect filesystem stats- rootDiskErr: du command failed on /rootfs/var/lib/doc、Can''t connect to HTTPS URL because the SSL module is not available. - skipping、Cannot create PoolableConnectionFactory (Communications link failure)--Connection refused: connect的实用信息。

本文目录一览:

HTTP Status 500 - {msg=SolrCore ''collection1'' is not available due to init failure: Could...

HTTP Status 500 - {msg=SolrCore ''collection1'' is not available due to init failure: Could...

解决办法:F:\apache-tomcat-7.0.52\webapps\solr\WEB-INF\web.xml下的这个加载solrhome的代码默认情况下是注释状态, 

  取消注释即可 ,查看一下是否路径错了或者你的文件夹命名错误,本人由于疏忽导致文件夹命名错误导致的

<env-entry>
<env-entry-name>solr/home</env-entry-name>
<env-entry-value>/usr/local/solr/solrhome/</env-entry-value>
<env-entry-type>java.lang.String</env-entry-type>
</env-entry>

保存,重新启动Tomcat。则可以成功访问solr。 

.. ld: symbol(s) not found for architecture x86_64 collect2: ld returned 1 exit status make[2]: ***

.. ld: symbol(s) not found for architecture x86_64 collect2: ld returned 1 exit status make[2]: ***

./configure --prefix=/usr/local/nginx --with-http_ssl_module --with-http_stub_status_module --add-module=/usr/local/ngx_devel_kit-0.3.0 --add-module=/usr/local/lua-nginx-module-0.10.6 --add-module=/usr/local/echo-nginx-module-0.60
--with-cc-opt="-I/usr/local/Cellar/pcre/8.39/include" --with-ld-opt="-L/usr/local/Cellar/pcre/8.39/lib"

 

 

困扰了两天的问题,终于解决了。。

增加这两个参数

--with-cc-opt="-I/usr/local/Cellar/pcre/8.39/include" --with-ld-opt="-L/usr/local/Cellar/pcre/8.39/lib"

 

cadvisor报错failed to collect filesystem stats- rootDiskErr: du command failed on /rootfs/var/lib/doc

cadvisor报错failed to collect filesystem stats- rootDiskErr: du command failed on /rootfs/var/lib/doc

cadvisor版本:v0.32.0

镜像:google/cadvisor:latest

镜像id: eb1210707573

[root@main ~]# docker images|grep cadvisor
docker.io/google/cadvisor                                                                                                                                                               latest                                           eb1210707573        2 years ago         69.6 MB
E1209 06:42:11.698191       1 fsHandler.go:121] Failed to collect filesystem stats - rootdiskErr: du command Failed on /rootfs/var/lib/docker/overlay2/c2ffb696be8e10ab5756f2d2d65b96f7c468d0fecaa3503a7825fb5809db713d/diff with output stdout: , stderr: du: /rootfs/var/lib/docker/overlay2/c2ffb696be8e10ab5756f2d2d65b96f7c468d0fecaa3503a7825fb5809db713d/diff: No such file or directory
 - exit status 1, rootInodeErr: cmd [ionice -c3 nice -n 19 find /rootfs/var/lib/docker/overlay2/c2ffb696be8e10ab5756f2d2d65b96f7c468d0fecaa3503a7825fb5809db713d/diff -xdev -printf .] Failed. stderr: find: ‘/rootfs/var/lib/docker/overlay2/c2ffb696be8e10ab5756f2d2d65b96f7c468d0fecaa3503a7825fb5809db713d/diff’: No such file or directory
; err: exit status 1, exTradiskErr: du command Failed on /rootfs/var/lib/docker/containers/eaf8d5c973a75fa54e86813578c40b815ad53ba31d7bfe61ffdcbee33a6d08f0 with output stdout: , stderr: du: /rootfs/var/lib/docker/containers/eaf8d5c973a75fa54e86813578c40b815ad53ba31d7bfe61ffdcbee33a6d08f0: No such file or directory
 - exit status 1

https://github.com/openshift/origin/issues/12949

https://github.com/google/cadvisor/issues/1666

https://github.com/google/cadvisor/issues/1399

 

Can''t connect to HTTPS URL because the SSL module is not available. - skipping

Can''t connect to HTTPS URL because the SSL module is not available. - skipping

今天用pip3安装第三方库的时候报了这样一个错:

  Can''t connect to HTTPS URL because the SSL module is not available. - skipping

[root@python_test ~]# rpm -qa openssl  # 检查了一下是安装了openssl的
openssl-1.0.1e-57.el6.x86_64

于是我将原先编译安装好的python目录删除后,重新编译安装:

[root@python_test tools]# tar xf Python-3.6.3.tgz
[root@python_test Python-3.6.3]# ./configure --prefix=/usr/local/python3.6.3 --with-ssl    # pip3会用到ssl模块,之前没有指定所以该功能不能使用
[root@python_test Python-3.6.3]# make && make install

最后测试发现已经可以了:

[root@pygame ~]# pip3 install pygame
Collecting pygame
  Retrying (Retry(total=4, connect=None, read=None, redirect=None)) after connection broken by ''NewConnectionError(''<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x7fb129etRyf5a20>: Failed to establish a new connection: [Errno -2] Name or service not known'',)'': /simple/pygame/
  Retrying (Retry(total=4, connect=None, read=None, redirect=None)) after connection broken by ''NewConnectionError(''<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x7fb129fWER12128>: Failed to establish a new connection: [Errno -2] Name or service not known'',)'': /simple/pygame/
  Retrying (Retry(total=3, connect=None, read=None, redirect=None)) after connection broken by ''NewConnectionError(''<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x7fb129ef5WER5c0>: Failed to establish a new connection: [Errno 110] Connection timed out'',)'': /simple/pygame/
  Retrying (Retry(total=4, connect=None, read=None, redirect=None)) after connection broken by ''NewConnectionError(''<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x7fb129eaEWR9cf8>: Failed to establish a new connection: [Errno -2] Name or service not known'',)'': /packages/b3/5e/fb7c85304ad1fd52008fd25fce97a7f59e6147ae97378afc86cf0f5d9146/pygame-1.9.4-cp36-cp36m-manylinux1_x86_64.whl
  Downloading https://files.pythonhosted.org/packages/b3/5e/fb7c85304ad1fd52008fd25fce97a7f59e6147ae97378afc86cf0f5d9146/pygame-1.9.4-cp36-cp36m-manylinux1_x86_64.whl (12.1MB)
    100% |████████████████████████████████| 12.1MB 61kB/s 
Installing collected packages: pygame
Successfully installed pygame-1.9.4

 然后测试一下ssl模块是否可用:

[root@python_test ~]# python3
Python 3.6.3 (default, Dec 27 2018, 05:50:10) 
[GCC 4.4.7 20120313 (Red Hat 4.4.7-23)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> 
>>> import ssl    # 没报错说明可以用了
>>> 

 

Cannot create PoolableConnectionFactory (Communications link failure)--Connection refused: connect

今天在做web项目的时候碰到了这样的一个异常:

Highlighter"> rush:java;gutter:false;">Caused by: java.lang.RuntimeException: org.apache.tomcat.dbcp.dbcp.sqlnestedException: Cannot create PoolableConnectionFactory (Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.)
at edu.gzucm.yjsglxt.base.util.TimeSetUtils.getTimeSets(TimeSetUtils.java:52)
at edu.gzucm.yjsglxt.base.util.TimeSetUtils.(TimeSetUtils.java:22)
... 3 more
Caused by: org.apache.tomcat.dbcp.dbcp.sqlnestedException: Cannot create PoolableConnectionFactory (Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.)
at org.apache.tomcat.dbcp.dbcp.BasicDataSource.createPoolableConnectionFactory(BasicDataSource.java:1549)
at org.apache.tomcat.dbcp.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:1388)
at org.apache.tomcat.dbcp.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
at edu.gzucm.yjsglxt.base.util.TimeSetUtils.getTimeSets(TimeSetUtils.java:32)
... 4 more
Caused by: com.MysqL.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(UnkNown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(UnkNown Source)
at java.lang.reflect.Constructor.newInstance(UnkNown Source)
at com.MysqL.jdbc.Util.handleNewInstance(Util.java:407)
at com.MysqL.jdbc.sqlError.createCommunicationsException(sqlError.java:1116)
at com.MysqL.jdbc.MysqLIO.(MysqLIO.java:346)
at com.MysqL.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2334)
at com.MysqL.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2371)
at com.MysqL.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2163)
at com.MysqL.jdbc.ConnectionImpl.(ConnectionImpl.java:794)
at com.MysqL.jdbc.JDBC4Connection.(JDBC4Connection.java:47)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(UnkNown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(UnkNown Source)
at java.lang.reflect.Constructor.newInstance(UnkNown Source)
at com.MysqL.jdbc.Util.handleNewInstance(Util.java:407)
at com.MysqL.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:378)
at com.MysqL.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:305)
at org.apache.tomcat.dbcp.dbcp.DriverConnectionFactory.createConnection(DriverConnectionFactory.java:38)
at org.apache.tomcat.dbcp.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
at org.apache.tomcat.dbcp.dbcp.BasicDataSource.validateConnectionFactory(BasicDataSource.java:1556)
at org.apache.tomcat.dbcp.dbcp.BasicDataSource.createPoolableConnectionFactory(BasicDataSource.java:1545)
... 7 more
Caused by: java.net.ConnectException: Connection refused: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(UnkNown Source)
at java.net.PlainSocketImpl.connectToAddress(UnkNown Source)
at java.net.PlainSocketImpl.connect(UnkNown Source)
at java.net.socksSocketImpl.connect(UnkNown Source)
at java.net.socket.connect(UnkNown Source)
at java.net.socket.connect(UnkNown Source)
at java.net.socket.(UnkNown Source)
at java.net.socket.(UnkNown Source)
at com.MysqL.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:254)
at com.MysqL.jdbc.MysqLIO.(MysqLIO.java:295)
... 23 more
2012-2-19 15:35:27 edu.gzucm.yjsglxt.base.util.InitInfoUtil
严重: null
org.apache.tomcat.dbcp.dbcp.sqlnestedException: Cannot create PoolableConnectionFactory (Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.)
at org.apache.tomcat.dbcp.dbcp.BasicDataSource.createPoolableConnectionFactory(BasicDataSource.java:1549)
at org.apache.tomcat.dbcp.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:1388)
at org.apache.tomcat.dbcp.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
at edu.gzucm.yjsglxt.base.util.DataSourceUtil.getConnection(DataSourceUtil.java:67)
at edu.gzucm.yjsglxt.base.util.InitInfoUtil.(InitInfoUtil.java:265)
at edu.gzucm.yjsglxt.base.filter.PrepareFilter.init(PrepareFilter.java:116)
at org.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java:273)
at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:254)
at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:372)
at org.apache.catalina.core.ApplicationFilterConfig.(ApplicationFilterConfig.java:98)
at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4584)
at org.apache.catalina.core.StandardContext$2.call(StandardContext.java:5262)
at org.apache.catalina.core.StandardContext$2.call(StandardContext.java:5257)
at java.util.concurrent.FutureTask$Sync.innerRun(UnkNown Source)
at java.util.concurrent.FutureTask.run(UnkNown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(UnkNown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(UnkNown Source)
at java.lang.Thread.run(UnkNown Source)
Caused by: com.MysqL.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(UnkNown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(UnkNown Source)
at java.lang.reflect.Constructor.newInstance(UnkNown Source)
at com.MysqL.jdbc.Util.handleNewInstance(Util.java:407)
at com.MysqL.jdbc.sqlError.createCommunicationsException(sqlError.java:1116)
at com.MysqL.jdbc.MysqLIO.(MysqLIO.java:346)
at com.MysqL.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2334)
at com.MysqL.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2371)
at com.MysqL.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2163)
at com.MysqL.jdbc.ConnectionImpl.(ConnectionImpl.java:794)
at com.MysqL.jdbc.JDBC4Connection.(JDBC4Connection.java:47)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(UnkNown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(UnkNown Source)
at java.lang.reflect.Constructor.newInstance(UnkNown Source)
at com.MysqL.jdbc.Util.handleNewInstance(Util.java:407)
at com.MysqL.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:378)
at com.MysqL.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:305)
at org.apache.tomcat.dbcp.dbcp.DriverConnectionFactory.createConnection(DriverConnectionFactory.java:38)
at org.apache.tomcat.dbcp.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
at org.apache.tomcat.dbcp.dbcp.BasicDataSource.validateConnectionFactory(BasicDataSource.java:1556)
at org.apache.tomcat.dbcp.dbcp.BasicDataSource.createPoolableConnectionFactory(BasicDataSource.java:1545)
... 17 more
Caused by: java.net.ConnectException: Connection refused: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(UnkNown Source)
at java.net.PlainSocketImpl.connectToAddress(UnkNown Source)
at java.net.PlainSocketImpl.connect(UnkNown Source)
at java.net.socksSocketImpl.connect(UnkNown Source)
at java.net.socket.connect(UnkNown Source)
at java.net.socket.connect(UnkNown Source)
at java.net.socket.(UnkNown Source)
at java.net.socket.(UnkNown Source)
at com.MysqL.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:254)
at com.MysqL.jdbc.MysqLIO.(MysqLIO.java:295)
... 33 more
2012-2-19 15:35:27 org.apache.coyote.AbstractProtocol start
信息: Starting ProtocolHandler ["http-bio-8080"]
2012-2-19 15:35:27 org.apache.coyote.AbstractProtocol start
信息: Starting ProtocolHandler ["ajp-bio-8009"]
2012-2-19 15:35:27 org.apache.catalina.startup.Catalina start
信息: Server startup in 2983 ms

 我知道是连接数据库的时候出现了错误,我检查了我的tomcat的配置文件context.xml文件

配置如下:

<div>

     information regarding copyright ownership.       required by applicable law or agreed to in writing,software distributed under the License is distributed on an "AS IS" BASIS,               WEB-INF/web.xml                                  MysqL.jdbc.Driver"    MysqL"  sql.DataSource" MysqL:///yjsglxt?characterEncoding=UTF-8"  

关于HTTP Status 500 - {msg=SolrCore ''collection1'' is not available due to init failure: Could...的问题我们已经讲解完毕,感谢您的阅读,如果还想了解更多关于.. ld: symbol(s) not found for architecture x86_64 collect2: ld returned 1 exit status make[2]: ***、cadvisor报错failed to collect filesystem stats- rootDiskErr: du command failed on /rootfs/var/lib/doc、Can''t connect to HTTPS URL because the SSL module is not available. - skipping、Cannot create PoolableConnectionFactory (Communications link failure)--Connection refused: connect等相关内容,可以在本站寻找。

本文标签:

上一篇Failed to convert property value of type ''java.lang.String'' to required type ''java.ut...

下一篇WebServiceProxy---反射调用方法(javaweb反射机制)