Errno::ENOENT (No such file or directory @ rb_sysopen


  • Used Zammad version: 5.0.3-1643280981.141dc0ca.buster amd64 [aktualisierbar von: 5.0.3-1639471364.23c5f43f.buster]
  • Used Zammad installation type: package
  • Operating system: Linux 4.19.0-18-amd64 #1 SMP Debian 4.19.208-1 (2021-09-29) x86_64 GNU/Linux
  • Browser + version: irrelevant

I am trying to rebuild the index via rails console. Unfortunately, with about 90k tickets, this takes a very long time. The command never runs successfully, but aborts with the following error message. Trying to update the search index for this specfic ticket via search_index_update_backend prints the same error message.

Expected behavior:

  • returns “true”: => true

Actual behavior:

irb(main):017:0> Ticket.find(53581).search_index_update_backend
read from fs /opt/zammad/storage/fs/6226/c494/8fe5f/1f010/1a635e6/a3fe396/ffeb961b9e4121a7fc829a44309bb359
Traceback (most recent call last):
       11: from (irb):17
       10: from app/models/concerns/has_search_index_backend.rb:178:in `search_index_update_backend'
        9: from app/models/ticket/search_index.rb:22:in `search_index_attribute_lookup'
        8: from app/models/ticket/search_index.rb:22:in `each'
        7: from app/models/ticket/search_index.rb:48:in `block in search_index_attribute_lookup'
        6: from app/models/ticket/search_index.rb:52:in `block (2 levels) in search_index_attribute_lookup'
        5: from app/models/ticket/search_index.rb:86:in `search_index_attribute_lookup_file_oversized?'
        4: from app/models/store.rb:8:in `content'
        3: from app/models/store/file.rb:62:in `content'
        2: from app/models/store/provider/file.rb:30:in `get'
        1: from app/models/store/provider/file.rb:30:in `binread'
Errno::ENOENT (No such file or directory @ rb_sysopen - /opt/zammad/storage/fs/6226/c494/8fe5f/1f010/1a635e6/a3fe396/ffeb961b9e4121a7fc829a44309bb359)

Steps to reproduce the behavior:

  • Ticket.find(53581).search_index_update_backend

Also, Ticket.find(53581) returns correct information. So this ticket actually does exist.

1 Like

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.