热门标签 | HotTags
当前位置:  开发笔记 > 编程语言 > 正文

无法使用DOCKER访问CKAN门户。-UnabletoaccessCKANportalusingDOCKER

Imtryingtorunckanindockercontainerfollowingthestepsin:http:docs.ckan.orgenckan-2.4.

I'm trying to run ckan in docker container following the steps in: http://docs.ckan.org/en/ckan-2.4.7/maintaining/installing/install-using-docker.html

我正在尝试按照以下步骤在docker容器中运行ckan: http://docs.ckan.org/en/ckan-2.4.7/maintaining/installing/install-using-docker.html

Links for the images available from : https://hub.docker.com/u/ckan/ seems to be updated at the time of post this questions (2 days ago).

图片链接:https://hub.docker.com/u/ckan/似乎在发布这个问题的时候更新(2天前)。

Well, I have followed the steps:

好吧,我已经遵循了这些步骤:

$ docker run -d --name db ckan/postgresql
$ docker run -d --name solr ckan/solr
$ docker run -d -p 80:80 --link db:db --link solr:solr ckan/ckan

And everythings ok, but the question is, How can I access to ckan portal???

一切都还好,但问题是,我如何访问ckan门户??

Using docker inspect I get something like this:

使用docker inspect ,我得到如下内容:

"NetworkSettings": {
            "Bridge": "",
            "SandboxID": "c66a4d1bb1a27c160f1655a9c660d24337e85053e8a8ad1e1a2c570ed217223e",
            "HairpinMode": false,
            "LinkLocalIPv6Address": "",
            "LinkLocalIPv6PrefixLen": 0,
            "Ports": {
                "5000/tcp": null,
                "80/tcp": [
                    {
                        "HostIp": "0.0.0.0",
                        "HostPort": "80"
                    }
                ]
            },
            "SandboxKey": "/var/run/docker/netns/c66a4d1bb1a2",
            "SecondaryIPAddresses": null,
            "SecondaryIPv6Addresses": null,
            "EndpointID": "7985fc49cc7795b668ca4dfc5812f0ffa40f305f29a7726b15947890051f2014",
            "Gateway": "172.17.0.1",
            "GlobalIPv6Address": "",
            "GlobalIPv6PrefixLen": 0,
            "IPAddress": "172.17.0.4",
            "IPPrefixLen": 16,
            "IPv6Gateway": "",
            "MacAddress": "02:42:ac:11:00:04",
            "Networks": {
                "bridge": {
                    "IPAMConfig": null,
                    "Links": null,
                    "Aliases": null,
                    "NetworkID": "88de6de00bdbc9974e48021ff783378835fc99d09582b8f7ccaab363a605a499",
                    "EndpointID": "7985fc49cc7795b668ca4dfc5812f0ffa40f305f29a7726b15947890051f2014",
                    "Gateway": "172.17.0.1",
                    "IPAddress": "172.17.0.4",
                    "IPPrefixLen": 16,
                    "IPv6Gateway": "",
                    "GlobalIPv6Address": "",
                    "GlobalIPv6PrefixLen": 0,
                    "MacAddress": "02:42:ac:11:00:04",
                    "DriverOpts": null
                }
            }
        }

Port exposed are 5000 and 80 so, using this ip address and this port it should be accessible.

公开的端口是5000和80,因此,使用这个ip地址和这个端口应该是可访问的。

Am I missing something?

我遗漏了什么东西?

Accessing solr is correct in: http://localhost:8983/solr/#/

访问solr在:http://localhost:8983/solr/#/中是正确的

UPDATE 1

更新1

Following help of Tarun Lalwani and using docker-compose, I think there is a problem with ckan and solr. This is the output error:

在Tarun Lalwani和docker- composer的帮助下,我认为ckan和solr存在问题。这是输出误差:

See the second line:

看到第二行:

Invalid URL u'http://:/solr/ckan/select/?q=%2A%3A%2A&rows=1&wt=json': No host supplied

无效的URL u 'http:/ /:/ solr / ckan /选择/ ?q = % 2 a % % 2 3 a行= 1 wt = json的:没有主机提供

ckan_1  | 2017-07-31 11:23:37,622 INFO  [ckan.config.environment] Loading static files from public
****ckan_1  | 2017-07-31 11:23:37,916 ERROR [ckan.lib.search.common] Invalid URL u'http://:/solr/ckan/select/?q=%2A%3A%2A&rows=1&wt=json': No host supplied****
ckan_1  | Traceback (most recent call last):
ckan_1  |   File "/usr/lib/ckan/default/src/ckan/ckan/lib/search/common.py", line 57, in is_available
ckan_1  |     conn.search(q="*:*", rows=1)
ckan_1  |   File "/usr/lib/ckan/default/local/lib/python2.7/site-packages/pysolr.py", line 720, in search
ckan_1  |     respOnse= self._select(params, handler=search_handler)
ckan_1  |   File "/usr/lib/ckan/default/local/lib/python2.7/site-packages/pysolr.py", line 418, in _select
ckan_1  |     return self._send_request('get', path)
ckan_1  |   File "/usr/lib/ckan/default/local/lib/python2.7/site-packages/pysolr.py", line 366, in _send_request
ckan_1  |     timeout=self.timeout)
ckan_1  |   File "/usr/lib/ckan/default/local/lib/python2.7/site-packages/requests/sessions.py", line 515, in get
ckan_1  |     return self.request('GET', url, **kwargs)
ckan_1  |   File "/usr/lib/ckan/default/local/lib/python2.7/site-packages/requests/sessions.py", line 488, in request
ckan_1  |     prep = self.prepare_request(req)
ckan_1  |   File "/usr/lib/ckan/default/local/lib/python2.7/site-packages/requests/sessions.py", line 431, in prepare_request
ckan_1  |     hooks=merge_hooks(request.hooks, self.hooks),
ckan_1  |   File "/usr/lib/ckan/default/local/lib/python2.7/site-packages/requests/models.py", line 305, in prepare
ckan_1  |     self.prepare_url(url, params)
ckan_1  |   File "/usr/lib/ckan/default/local/lib/python2.7/site-packages/requests/models.py", line 382, in prepare_url
ckan_1  |     raise InvalidURL("Invalid URL %r: No host supplied" % url)
ckan_1  | InvalidURL: Invalid URL u'http://:/solr/ckan/select/?q=%2A%3A%2A&rows=1&wt=json': No host supplied
ckan_1  | 2017-07-31 11:23:38,106 WARNI [ckan.lib.search] Problems were found while connecting to the SOLR server
ckan_1  | 2017-07-31 11:23:38,183 INFO  [ckan.config.environment] Loading templates from /usr/lib/ckan/default/src/ckan/ckan/templates
ckan_1  | Traceback (most recent call last):
ckan_1  |   File "/usr/local/bin/ckan-paster", line 11, in 
ckan_1  |     sys.exit(run())
ckan_1  |   File "/usr/lib/ckan/default/local/lib/python2.7/site-packages/paste/script/command.py", line 102, in run
ckan_1  |     invoke(command, command_name, options, args[1:])
ckan_1  |   File "/usr/lib/ckan/default/local/lib/python2.7/site-packages/paste/script/command.py", line 141, in invoke
ckan_1  |     exit_code = runner.run(args)
ckan_1  |   File "/usr/lib/ckan/default/local/lib/python2.7/site-packages/paste/script/command.py", line 236, in run
ckan_1  |     result = self.command()
ckan_1  |   File "/usr/lib/ckan/default/src/ckan/ckan/lib/cli.py", line 337, in command
ckan_1  |     self._load_config(cmd!='upgrade')
ckan_1  |   File "/usr/lib/ckan/default/src/ckan/ckan/lib/cli.py", line 310, in _load_config
ckan_1  |     self.site_user = load_config(self.options.config, load_site_user)
ckan_1  |   File "/usr/lib/ckan/default/src/ckan/ckan/lib/cli.py", line 225, in load_config
ckan_1  |     load_environment(conf.global_conf, conf.local_conf)
ckan_1  |   File "/usr/lib/ckan/default/src/ckan/ckan/config/environment.py", line 111, in load_environment
ckan_1  |     p.load_all()
ckan_1  |   File "/usr/lib/ckan/default/src/ckan/ckan/plugins/core.py", line 129, in load_all
ckan_1  |     unload_all()
ckan_1  |   File "/usr/lib/ckan/default/src/ckan/ckan/plugins/core.py", line 182, in unload_all
ckan_1  |     unload(*reversed(_PLUGINS))
ckan_1  |   File "/usr/lib/ckan/default/src/ckan/ckan/plugins/core.py", line 210, in unload
ckan_1  |     plugins_update()
ckan_1  |   File "/usr/lib/ckan/default/src/ckan/ckan/plugins/core.py", line 121, in plugins_update
ckan_1  |     environment.update_config()
ckan_1  |   File "/usr/lib/ckan/default/src/ckan/ckan/config/environment.py", line 289, in update_config
ckan_1  |     engine = sqlalchemy.engine_from_config(config, client_encoding='utf8')
ckan_1  |   File "/usr/lib/ckan/default/local/lib/python2.7/site-packages/sqlalchemy/engine/__init__.py", line 428, in engine_from_config
ckan_1  |     return create_engine(url, **options)
ckan_1  |   File "/usr/lib/ckan/default/local/lib/python2.7/site-packages/sqlalchemy/engine/__init__.py", line 387, in create_engine
ckan_1  |     return strategy.create(*args, **kwargs)
ckan_1  |   File "/usr/lib/ckan/default/local/lib/python2.7/site-packages/sqlalchemy/engine/strategies.py", line 50, in create
ckan_1  |     u = url.make_url(name_or_url)
ckan_1  |   File "/usr/lib/ckan/default/local/lib/python2.7/site-packages/sqlalchemy/engine/url.py", line 194, in make_url
ckan_1  |     return _parse_rfc1738_args(name_or_url)
ckan_1  |   File "/usr/lib/ckan/default/local/lib/python2.7/site-packages/sqlalchemy/engine/url.py", line 240, in _parse_rfc1738_args
ckan_1  |     return URL(name, **components)
ckan_1  |   File "/usr/lib/ckan/default/local/lib/python2.7/site-packages/sqlalchemy/engine/url.py", line 60, in __init__
ckan_1  |     self.port = int(port)
ckan_1  | ValueError: invalid literal for int() with base 10: ''

After this I get:

这之后我得到:

$ docker ps
CONTAINER ID        IMAGE               COMMAND                  CREATED             STATUS              PORTS               NAMES
d44df7bad12f        ckan/solr           "docker-entrypoint..."   2 hours ago         Up 19 minutes       8983/tcp            dockercompose_solr_1
8f0c6c815746        ckan/postgresql     "docker-entrypoint..."   2 hours ago         Up 19 minutes       5432/tcp            dockercompose_db_1

The rest seems to be ok.

其余的似乎还可以。

UPDATE 2

更新2

Updated my docker-compose file. I have been made several test. Finally this combination seems to work. Solr works ok (just change the public port with kitematic), postgresql has the database and table and I can access correctly but I get Internal Server Error, so I think I'm close.

我的docker-compose文件更新。我做了几次测试。最后,这一组合似乎奏效了。Solr工作得很好(只需用kitantic更改公共端口),postgresql拥有数据库和表,我可以正确访问,但我得到了内部服务器错误,所以我认为我接近成功了。

My docker-compose file:

我docker-compose文件:

version: '3'
services:
  solr:
    container_name: solr
    #Possible options solr
    #image: milafrerichs/ckan_solr
    #image: miguelbgouveia/solr-docker
    image: ckan/solr:dev-v2.6
    ports:
      - "8983:8983/tcp"

  db:
    container_name: db
    image: ckan/postgresql
    ports:
      - "5432:5432/tcp"
  ckan:
    container_name: ckan
    image: ckan/ckan:dev-v2.6
    depends_on:
      - solr
      - db
    links:
      - db:db
    ports:
      - "5000:5000"
      - "80:80"
    environment:
       DATABASE_URL: "postgresql://ckan:ckan@db:5432/ckan"
       SOLR_URL: "http://solr:8983/solr/ckan" 

Looking at the apache2 logs, I have no see anything interesting.

看着apache2日志,我没有看到任何有趣的东西。

This is the complete output:

这是完整的输出:

$ docker-compose -f docker-compose-ckan.yml up

Attaching to db, solr, ckan
solr    | Starting Solr on port 8983 from /opt/solr/server
solr    |
solr    | 0    INFO  (main) [   ] o.e.j.u.log Logging initialized @2757ms
solr    | 1711 INFO  (main) [   ] o.e.j.s.Server jetty-9.3.8.v20160314
db      | running bootstrap script ... ok
db      | performing post-bootstrap initialization ... ok
db      | syncing data to disk ... ok
db      |
ckan    | Distribution already installed:
ckan    |   ckan 2.6.3 from /usr/lib/ckan/default/src/ckan
ckan    | Creating /etc/ckan/default/ckan.ini
ckan    | Now you should edit the config files
ckan    |   /etc/ckan/default/ckan.ini
ckan    | Edited option sqlalchemy.url = "postgresql://ckan_default:pass@localhost/ckan_default"->"postgresql://ckan:ckan@db:5432/ckan" (section "app:main")
ckan    | Edited option ckan.site_url = ""->"http://192.168.0.6" (section "app:main")
ckan    | Option uncommented and set solr_url = "http://solr:8983/solr/ckan" (section "app:main")
ckan    | Option uncommented and set ckan.storage_path = "/var/lib/ckan" (section "app:main")
ckan    | Option uncommented and set email_to = "disabled@example.com" (section "app:main")
ckan    | Option uncommented and set error_email_from = "ckan@95e87010bd4d" (section "app:main")
solr    | 1803 INFO  (main) [   ] o.e.j.d.p.ScanningAppProvider Deployment monitor [file:///opt/solr/server/contexts/] at interval 0
solr    | 4046 INFO  (main) [   ] o.e.j.w.StandardDescriptorProcessor NO JSP Support for /solr, did not find org.apache.jasper.servlet.JspServlet
solr    | 4080 WARN  (main) [   ] o.e.j.s.SecurityHandler ServletContext@o.e.j.w.WebAppContext@13a5fe33{/solr,file:///opt/solr/server/solr-webapp/webapp/,STARTING}{/opt/solr/server/solr-webapp/webapp} has uncovered http methods for path: /
solr    | 4118 INFO  (main) [   ] o.a.s.s.SolrDispatchFilter SolrDispatchFilter.init(): WebAppClassLoader=1740189450@67b92f0a
solr    | 4163 INFO  (main) [   ] o.a.s.c.SolrResourceLoader JNDI not configured for solr (NoInitialContextEx)
solr    | 4169 INFO  (main) [   ] o.a.s.c.SolrResourceLoader using system property solr.solr.home: /opt/solr/server/solr
solr    | 4174 INFO  (main) [   ] o.a.s.c.SolrResourceLoader new SolrResourceLoader for directory: '/opt/solr/server/solr'
solr    | 4179 INFO  (main) [   ] o.a.s.c.SolrResourceLoader JNDI not configured for solr (NoInitialContextEx)
solr    | 4179 INFO  (main) [   ] o.a.s.c.SolrResourceLoader using system property solr.solr.home: /opt/solr/server/solr
db      | LOG:  autovacuum launcher started
solr    | 4186 INFO  (main) [   ] o.a.s.c.SolrXmlConfig Loading container configuration from /opt/solr/server/solr/solr.xml
solr    | 4455 INFO  (main) [   ] o.a.s.c.CorePropertiesLocator Config-defined core root directory: /opt/solr/server/solr
db      |  done
db      | server started
db      |  done
db      | server stopped
db      |
db      | PostgreSQL init process complete; ready for start up.
db      |
db      | LOG:  database system was shut down at 2017-08-01 22:58:52 UTC
db      | LOG:  MultiXact member wraparound protections are now enabled
db      | LOG:  database system is ready to accept connections
solr    | 5404 INFO  (main) [   ] o.a.s.h.c.HttpShardHandlerFactory created with socketTimeout : 600000,connTimeout : 60000,maxConnectionsPerHost : 20,maxConnections : 10000,corePoolSize : 0,maximumPoolSize : 2147483647,maxThreadIdleTime : 5,sizeOfQueue : -1,fairnessPolicy : false,useRetries : false,
solr    | 6145 INFO  (main) [   ] o.a.s.u.UpdateShardHandler Creating UpdateShardHandler HTTP client with params: socketTimeout=600000&cOnnTimeout=60000&retry=true
solr    | 6153 INFO  (main) [   ] o.a.s.l.LogWatcher SLF4J impl is org.slf4j.impl.Log4jLoggerFactory
solr    | 6160 INFO  (main) [   ] o.a.s.l.LogWatcher Registering Log Listener [Log4j (org.slf4j.impl.Log4jLoggerFactory)]
solr    | 6163 INFO  (main) [   ] o.a.s.c.CoreContainer Security conf doesn't exist. Skipping setup for authorization module.
solr    | 6165 INFO  (main) [   ] o.a.s.c.CoreContainer No authentication plugin used.
solr    | 6341 INFO  (main) [   ] o.a.s.c.CorePropertiesLocator Looking for core definitions underneath /opt/solr/server/solr
solr    | 6353 INFO  (main) [   ] o.a.s.c.CoreDescriptor Created CoreDescriptor: {name=ckan, cOnfig=solrconfig.xml, loadOnStartup=true, schema=schema.xml, cOnfigSetProperties=configsetprops.json, transient=false, dataDir=data/}
solr    | 6356 INFO  (main) [   ] o.a.s.c.CorePropertiesLocator Found core ckan in /opt/solr/server/solr/ckan
ckan    | *** Running /etc/my_init.d/70_initdb...
**ckan    | 2017-08-01 22:58:54,440 ERROR [pysolr] Failed to connect to server at 'http://solr:8983/solr/ckan/select/?q=%2A%3A%2A&rows=1&wt=json', are you sure that URL is correct? Checking it in a browser might help: HTTPConnectionPool(host='solr', port=8983): Max retries exceeded with url: /solr/ckan/select/?q=%2A%3A%2A&rows=1&wt=json (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused',))**
ckan    | Traceback (most recent call last):
ckan    |   File "/usr/lib/ckan/default/local/lib/python2.7/site-packages/pysolr.py", line 361, in _send_request
ckan    |     timeout=self.timeout)
ckan    |   File "/usr/lib/ckan/default/local/lib/python2.7/site-packages/requests/sessions.py", line 487, in get
ckan    |     return self.request('GET', url, **kwargs)
ckan    |   File "/usr/lib/ckan/default/local/lib/python2.7/site-packages/requests/sessions.py", line 475, in request
ckan    |     resp = self.send(prep, **send_kwargs)
ckan    |   File "/usr/lib/ckan/default/local/lib/python2.7/site-packages/requests/sessions.py", line 585, in send
ckan    |     r = adapter.send(request, **kwargs)
ckan    |   File "/usr/lib/ckan/default/local/lib/python2.7/site-packages/requests/adapters.py", line 467, in send
ckan    |     raise ConnectionError(e, request=request)
**ckan    | ConnectionError: HTTPConnectionPool(host='solr', port=8983): Max retries exceeded with url: /solr/ckan/select/?q=%2A%3A%2A&rows=1&wt=json (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused',))**
solr    | 6399 INFO  (main) [   ] o.a.s.c.CorePropertiesLocator Found 1 core definitions
solr    | 6665 INFO  (main) [   ] o.a.s.s.SolrDispatchFilter user.dir=/opt/solr/server
ckan    | 2017-08-01 22:58:54,444 ERROR [ckan.lib.search.common] Failed to connect to server at 'http://solr:8983/solr/ckan/select/?q=%2A%3A%2A&rows=1&wt=json', are you sure that URL is correct? Checking it in a browser might help: HTTPConnectionPool(host='solr', port=8983): Max retries exceeded with url: /solr/ckan/select/?q=%2A%3A%2A&rows=1&wt=json (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused',))
ckan    | Traceback (most recent call last):
ckan    |   File "/usr/lib/ckan/default/src/ckan/ckan/lib/search/common.py", line 56, in is_available
ckan    |     conn.search(q="*:*", rows=1)
ckan    |   File "/usr/lib/ckan/default/local/lib/python2.7/site-packages/pysolr.py", line 710, in search
ckan    |     respOnse= self._select(params, handler=search_handler)
ckan    |   File "/usr/lib/ckan/default/local/lib/python2.7/site-packages/pysolr.py", line 411, in _select
ckan    |     return self._send_request('get', path)
ckan    |   File "/usr/lib/ckan/default/local/lib/python2.7/site-packages/pysolr.py", line 370, in _send_request
ckan    |     raise SolrError(error_message % params)
ckan    | SolrError: Failed to connect to server at 'http://solr:8983/solr/ckan/select/?q=%2A%3A%2A&rows=1&wt=json', are you sure that URL is correct? Checking it in a browser might help: HTTPConnectionPool(host='solr', port=8983): Max retries exceeded with url: /solr/ckan/select/?q=%2A%3A%2A&rows=1&wt=json (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused',))
ckan    | 2017-08-01 22:58:54,444 WARNI [ckan.lib.search] Problems were found while connecting to the SOLR server
ckan    | 2017-08-01 22:58:55,458 ERROR [pysolr] Solr responded with an error (HTTP 503): [Reason: Error 503 {metadata={error-class=org.apache.solr.common.SolrException,root-error-class=org.apache.solr.common.SolrException},msg=SolrCore is loading,code=503}]
ckan    | 2017-08-01 22:58:55,458 ERROR [ckan.lib.search.common] Solr responded with an error (HTTP 503): [Reason: Error 503 {metadata={error-class=org.apache.solr.common.SolrException,root-error-class=org.apache.solr.common.SolrException},msg=SolrCore is loading,code=503}]
ckan    | Traceback (most recent call last):
ckan    |   File "/usr/lib/ckan/default/src/ckan/ckan/lib/search/common.py", line 56, in is_available
ckan    |     conn.search(q="*:*", rows=1)
ckan    |   File "/usr/lib/ckan/default/local/lib/python2.7/site-packages/pysolr.py", line 710, in search
ckan    |     respOnse= self._select(params, handler=search_handler)
ckan    |   File "/usr/lib/ckan/default/local/lib/python2.7/site-packages/pysolr.py", line 411, in _select
ckan    |     return self._send_request('get', path)
ckan    |   File "/usr/lib/ckan/default/local/lib/python2.7/site-packages/pysolr.py", line 386, in _send_request
ckan    |     raise SolrError(error_message % (resp.status_code, solr_message))
ckan    | SolrError: Solr responded with an error (HTTP 503): [Reason: Error 503 {metadata={error-class=org.apache.solr.common.SolrException,root-error-class=org.apache.solr.common.SolrException},msg=SolrCore is loading,code=503}]
db      | ERROR:  relation "user" does not exist at character 465
db      | STATEMENT:  SELECT "user".password AS user_password, "user".id AS user_id, "user".name AS user_name, "user".openid AS user_openid, "user".fullname AS user_fullname, "user".email AS user_email, "user".apikey AS user_apikey, "user".created AS user_created, "user".reset_key AS user_reset_key, "user".about AS user_about, "user".activity_streams_email_notifications AS user_activity_streams_email_notifications, "user".sysadmin AS user_sysadmin, "user".state AS user_state
db      |       FROM "user"
db      |       WHERE "user".name = 'default' OR "user".id = 'default' ORDER BY "user".name
db      |        LIMIT 1

solr    | 13480 INFO  (coreLoadExecutor-6-thread-1) [   x:ckan] o.a.s.r.RestManager Initializing 0 registered ManagedResources
db      | ERROR:  relation "user" does not exist at character 465
db      | STATEMENT:  SELECT "user".password AS user_password, "user".id AS user_id, "user".name AS user_name, "user".openid AS user_openid, "user".fullname AS user_fullname, "user".email AS user_email, "user".apikey AS user_apikey, "user".created AS user_created, "user".reset_key AS user_reset_key, "user".about AS user_about, "user".activity_streams_email_notifications AS user_activity_streams_email_notifications, "user".sysadmin AS user_sysadmin, "user".state AS user_state
db      |       FROM "user"
db      |       WHERE "user".name = 'default' OR "user".id = 'default' ORDER BY "user".name
db      |        LIMIT 1
solr    | 13577 INFO  (coreLoadExecutor-6-thread-1) [   x:ckan] o.a.s.h.c.SpellCheckComponent Initializing spell checkers
solr    | 13640 INFO  (coreLoadExecutor-6-thread-1) [   x:ckan] o.a.s.s.DirectSolrSpellChecker init: {name=default,field=_text_,classname=solr.DirectSolrSpellChecker,distanceMeasure=internal,accuracy=0.5,maxEdits=2,minPrefix=1,maxInspectiOns=5,minQueryLength=4,maxQueryFrequency=0.01}
solr    | 13653 INFO  (coreLoadExecutor-6-thread-1) [   x:ckan] o.a.s.h.c.SpellCheckComponent No queryConverter defined, using default converter

solr    | 13700 INFO  (coreLoadExecutor-6-thread-1) [   x:ckan] o.a.s.h.c.QueryElevationComponent Loading QueryElevation from: /opt/solr/server/solr/ckan/conf/elevate.xml
solr    | 13914 INFO  (coreLoadExecutor-6-thread-1) [   x:ckan] o.a.s.h.ReplicationHandler Commits will be reserved for  10000
solr    | 14015 INFO  (searcherExecutor-7-thread-1-processing-x:ckan) [   x:ckan] o.a.s.c.QuerySenderListener QuerySenderListener sending requests to Searcher@2cd58256[ckan] main{ExitableDirectoryReader(UninvertingDirectoryReader())}
solr    | 14018 INFO  (searcherExecutor-7-thread-1-processing-x:ckan) [   x:ckan] o.a.s.c.QuerySenderListener QuerySenderListener done.
solr    | 14021 INFO  (coreLoadExecutor-6-thread-1) [   x:ckan] o.a.s.u.UpdateLog Looking up max value of version field to seed version buckets
solr    | 14023 INFO  (coreLoadExecutor-6-thread-1) [   x:ckan] o.a.s.u.VersionInfo Refreshing highest value of _version_ for 65536 version buckets from index
solr    | 14026 INFO  (coreLoadExecutor-6-thread-1) [   x:ckan] o.a.s.u.VersionInfo No terms found for _version_, cannot seed version bucket highest value from index
solr    | 14035 INFO  (coreLoadExecutor-6-thread-1) [   x:ckan] o.a.s.u.UpdateLog Could not find max version in index or recent updates, using new clock 1574571440349380608
solr    | 14020 INFO  (searcherExecutor-7-thread-1-processing-x:ckan) [   x:ckan] o.a.s.h.c.SpellCheckComponent Loading spell index for spellchecker: default
solr    | 14075 INFO  (searcherExecutor-7-thread-1-processing-x:ckan) [   x:ckan] o.a.s.c.SolrCore [ckan] Registered new searcher Searcher@2cd58256[ckan] main{ExitableDirectoryReader(UninvertingDirectoryReader())}
solr    | 14088 INFO  (coreLoadExecutor-6-thread-1) [   x:ckan] o.a.s.u.UpdateLog Took 65.0ms to seed version buckets with highest version 1574571440349380608

db      | WARNING:  there is already a transaction in progress
ckan    | 2017-08-01 22:58:55,460 WARNI [ckan.lib.search] Problems were found while connecting to the SOLR server
ckan    | Initialising DB: SUCCESS
ckan    | *** Running /etc/rc.local...
ckan    | *** Booting runit daemon...
ckan    | *** Runit started as PID 25
ckan    |  * Starting Postfix Mail Transport Agent postfix
ckan    | AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.18.0.4. Set the 'ServerName' directive globally to suppress this message
ckan    |    ...done.
solr    | 14092 INFO  (coreLoadExecutor-6-thread-1) [   x:ckan] o.a.s.c.CoreContainer registering core: ckan
solr exited with code 137
db      | WARNING:  there is no transaction in progress
db exited with code 137

Any suggestions?

有什么建议吗?

Thanks

谢谢

2 个解决方案

#1


0  

Use docker-compose which makes it easier to do these things. Below file would help you

使用docker- composer可以更容易地完成这些事情。下面的文件可以帮助你

version: '2'
services:
  db:
    image: ckan/postgresql
  solr:
    image: ckan/solr
  ckan:
    image: ckan
    ports:
      - "80:80"
      - "5000:5000"

Do a docker-compose up to get this running. Then you can access the ckan at http://:80. If you are not able to access it then make sure to run docker-compose ps to check everything is running and check logs using docker-compose logs -f ckan

做一个docker-冷静一下,让它运行起来。然后可以通过http:// :80访问ckan。如果您无法访问它,那么请确保运行docker- composer ps来检查所有正在运行的内容,并使用docker- composer log -f ckan检查日志

#2


0  

The docker installation docs are out of date. I'm currently working on an update to add install docs for Docker Compose in this pull request. Hope this helps!

docker安装文档已经过时。我目前正在进行一个更新,为Docker在这个pull请求中添加安装文档。希望这可以帮助!


推荐阅读
  • 数字图书馆近期展出了一批精选的Linux经典著作,这些书籍虽然部分较为陈旧,但依然具有重要的参考价值。如需转载相关内容,请务必注明来源:小文论坛(http://www.xiaowenbbs.com)。 ... [详细]
  • javascript分页类支持页码格式
    前端时间因为项目需要,要对一个产品下所有的附属图片进行分页显示,没考虑ajax一张张请求,所以干脆一次性全部把图片out,然 ... [详细]
  • 本文介绍了Go语言中正则表达式的基本使用方法,并提供了一些实用的示例代码。 ... [详细]
  • 周排行与月排行榜开发总结
    本文详细介绍了如何在PHP中实现周排行和月排行榜的开发,包括数据库设计、数据记录和查询方法。涉及的知识点包括MySQL的GROUP BY、WEEK和MONTH函数。 ... [详细]
  • Cookie学习小结
    Cookie学习小结 ... [详细]
  • Spring Data JdbcTemplate 入门指南
    本文将介绍如何使用 Spring JdbcTemplate 进行数据库操作,包括查询和插入数据。我们将通过一个学生表的示例来演示具体步骤。 ... [详细]
  • 本文详细介绍了 HTML 中 a 标签的 href 属性的多种用法,包括实现超链接、锚点以及调用 JavaScript 方法。通过具体的示例和解释,帮助开发者更好地理解和应用这些技术。 ... [详细]
  • 机器学习算法:SVM(支持向量机)
    SVM算法(SupportVectorMachine,支持向量机)的核心思想有2点:1、如果数据线性可分,那么基于最大间隔的方式来确定超平面,以确保全局最优, ... [详细]
  • 为什么多数程序员难以成为架构师?
    探讨80%的程序员为何难以晋升为架构师,涉及技术深度、经验积累和综合能力等方面。本文将详细解析Tomcat的配置和服务组件,帮助读者理解其内部机制。 ... [详细]
  • 基于iSCSI的SQL Server 2012群集测试(一)SQL群集安装
    一、测试需求介绍与准备公司计划服务器迁移过程计划同时上线SQLServer2012,引入SQLServer2012群集提高高可用性,需要对SQLServ ... [详细]
  • IOS Run loop详解
    为什么80%的码农都做不了架构师?转自http:blog.csdn.netztp800201articledetails9240913感谢作者分享Objecti ... [详细]
  • 深入解析HTML5字符集属性:charset与defaultCharset
    本文将详细介绍HTML5中新增的字符集属性charset和defaultCharset,帮助开发者更好地理解和应用这些属性,以确保网页在不同环境下的正确显示。 ... [详细]
  • importpymysql#一、直接连接mysql数据库'''coonpymysql.connect(host'192.168.*.*',u ... [详细]
  • MySQL 5.7 学习指南:SQLyog 中的主键、列属性和数据类型
    本文介绍了 MySQL 5.7 中主键(Primary Key)和自增(Auto-Increment)的概念,以及如何在 SQLyog 中设置这些属性。同时,还探讨了数据类型的分类和选择,以及列属性的设置方法。 ... [详细]
  • window下的python安装插件,Go语言社区,Golang程序员人脉社 ... [详细]
author-avatar
乐果Meng_501
这个家伙很懒,什么也没留下!
PHP1.CN | 中国最专业的PHP中文社区 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved | 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有