galaxy-genome-annotation / docker-tripal

Docker container for Tripal
10 stars 11 forks source link

Add content - Analysis: Blast,throw error #44

Open horizon365 opened 2 years ago

horizon365 commented 2 years ago

图片

In browser network debug tool, it shows [HTTP/1.1 500 Service unavailable (with message) 310ms] with below url. http://127.0.0.1:3000/node/add/chado-analysis-blast?render=overlay 图片

abretaud commented 2 years ago

Hi! Do you have more details in the docker logs? How did you run your container?

horizon365 commented 2 years ago

Hi, abretaud. thanks for you reply. The docker logs is show as follow:

tripal_1 | x:80 116.6.99.217 - - [09/Feb/2022:02:05:37 +0000] "GET /node/add/chado-analysis-blast?render=overlay HTTP/1.1" 500 7380 "http://x:8210/node/add/chado-analysis-blast?render=overlay" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:95.0) Gecko/20100101 Firefox/95.0"

and i use docker-compose up to run my container.

abretaud commented 2 years ago

Can you paste here the content of your docker-compose.yml file?

horizon365 commented 2 years ago
version: "2"
services:
  tripal:
    image: quay.io/galaxy-genome-annotation/tripal
    links:
      - db:postgres
    volumes:
      - /var/www/html/sites
      - /var/www/private
    environment:
      UPLOAD_LIMIT: 20M
      MEMORY_LIMIT: 128M
      VIRTUAL_HOST: 121.36.7.6
      # If you run the image on a different port, then BASE_URL must be set
      # correctly. If you run on :80 it should be OK to remove BASE_URL
      BASE_URL: "http://121.36.7.6:8210"
      BASE_URL_PROTO: "http://"
      DB_NAME: 'tripal'
      TRIPAL_DOWNLOAD_MODULES: "tripal_analysis_blast-7.x-2.x-dev"
      TRIPAL_GIT_CLONE_MODULES: "https://github.com/tripal/tripal_analysis_expression.git"
      TRIPAL_ENABLE_MODULES: "tripal_analysis_blast tripal_analysis_expression tripal_analysis_interpro"
    ports:
      - "8210:80"
  db:
    image: quay.io/galaxy-genome-annotation/chado
    environment:
      - POSTGRES_PASSWORD=postgres
        # The default chado image would try to install the schema on first run,
        # we just want the GMOD tools to be available.
      - INSTALL_CHADO_SCHEMA=0
      - INSTALL_YEAST_DATA=0
      - PGDATA=/var/lib/postgresql/data/
    volumes:
      - /var/lib/postgresql/data/

it is just as exactly the template in 'Readme.md',expect the ip and ports.

abretaud commented 2 years ago

Ok the doc was not up to date: the default image is based on Tripal 3 while the docker-compose.yml referenced a Tripal 2.x module. It should work better if you make this change: https://github.com/galaxy-genome-annotation/docker-tripal/commit/96010de4859eee891d426b5abc0568ddf7c9d5e4 You might need to delete the db volume and restart from crash to avoid any conflict between the 2 module versions