jina-ai / jcloud

Simplify deploying and managing Jina projects on Jina Cloud
https://docs.jina.ai/concepts/jcloud/
Apache License 2.0
298 stars 13 forks source link

Flow deployment failed #136

Closed chimo599 closed 1 year ago

chimo599 commented 1 year ago

Flow deployment failed

Command

# # jc deploy flow.yml

Flow yaml

# jtype: Flow
version: '1'

gateway:
  protocol: http
  port: 54321
pods:
  - name: index_table_extractor
    uses: jinahub+docker://PDFTableExtractor/latest
    install_requirements: true
  - name: index_segmenter
    uses: jinahub+docker://PDFSegmenter
    install_requirements: true
  - name: index_tagger
    uses: jinahub+docker://ElementTypeTagger
    uses_with:
      traversal_paths: "@c"
  - name: index_sentencizer
    uses: jinahub+docker://SpacySentencizer
    uses_with:
      traversal_paths: "@c"
    install_requirements: true
  - name: index_tags_copier
    uses: jinahub+docker://TagsCopier
    uses_with:
      traversal_paths: "@c"
  - name: index_flattener
    uses: jinahub+docker://ChunkFlattener
  - name: index_image_processor
    uses: jinahub+docker://ImagePreprocessor-skip-non-images
    uses_with:
      traversal_paths: "@c"
    install_requirements: true
  - name: search_image_processor
    uses: jinahub+docker://ImagePreprocessor-skip-non-images
    uses_with:
      traversal_paths: "@r"
    install_requirements: true
  - name: index_encoder
    uses: jinahub+docker://CLIPEncoder/latest-gpu
    uses_with:
      traversal_paths: "@c"
    install_requirements: true
  - name: search_encoder
    uses: jinahub+docker://CLIPEncoder/latest-gpu
    install_requirements: true
  - name: all_indexer
    uses: jinahub+docker://AnnLiteIndexer
    uses_with:
      index_traversal_paths: "@c"
      search_traversal_paths: "@c"
      columns:
        - ["element_type", "str"]
      n_dim: 512
    install_requirements: true

Flow ID / Request ID

Flow ID: N/A
Request ID: N/A

jina version

jina -vf
jina 3.14.1
...

Logs

N/A


Additional context

Add any other context about the problem here. 1 2 3

busercontent.com/79641303/225560209-e1f56b21-af8c-4603-b1cd-762dd2b06d08.PNG)

npitsillos commented 1 year ago

Hello @chimo599 thank you for the issue. Can I ask you to retry this with the below flow.yml

jtype: Flow
version: '1'

gateway:
  protocol: [http]
  port: [54321]
executors:
  - name: index_table_extractor
    uses: jinahub+docker://PDFTableExtractor/latest
    install_requirements: true
  - name: index_segmenter
    uses: jinahub+docker://PDFSegmenter
    install_requirements: true
  - name: index_tagger
    uses: jinahub+docker://ElementTypeTagger
    uses_with:
      traversal_paths: "@c"
  - name: index_sentencizer
    uses: jinahub+docker://SpacySentencizer
    uses_with:
      traversal_paths: "@c"
    install_requirements: true
  - name: index_tags_copier
    uses: jinahub+docker://TagsCopier
    uses_with:
      traversal_paths: "@c"
  - name: index_flattener
    uses: jinahub+docker://ChunkFlattener
  - name: index_image_processor
    uses: jinahub+docker://ImagePreprocessor-skip-non-images
    uses_with:
      traversal_paths: "@c"
    install_requirements: true
  - name: search_image_processor
    uses: jinahub+docker://ImagePreprocessor-skip-non-images
    uses_with:
      traversal_paths: "@r"
    install_requirements: true
  - name: index_encoder
    uses: jinahub+docker://CLIPEncoder/latest-gpu
    uses_with:
      traversal_paths: "@c"
    install_requirements: true
  - name: search_encoder
    uses: jinahub+docker://CLIPEncoder/latest-gpu
    install_requirements: true
  - name: all_indexer
    uses: jinahub+docker://AnnLiteIndexer
    uses_with:
      index_traversal_paths: "@c"
      search_traversal_paths: "@c"
      columns:
        - ["element_type", "str"]
      n_dim: 512
    install_requirements: true
npitsillos commented 1 year ago

I am closing this since there was no activity for it. Feel free to reopen @chimo599 if you face any more issues.