Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. Support
  3. Searching mail error "Server Error: UID SEARCH: Internal error" when Full Text Search (Solr) indexing is enabled, resolves when disabled.

Searching mail error "Server Error: UID SEARCH: Internal error" when Full Text Search (Solr) indexing is enabled, resolves when disabled.

Scheduled Pinned Locked Moved Solved Support
emailsolrfts
15 Posts 2 Posters 473 Views 4 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • d19dotcaD Offline
    d19dotcaD Offline
    d19dotca
    wrote on last edited by
    #6

    @girish, now I’m starting to wonder if the thing was just indexing then that particular mailbox. The mailbox they have is around 15 GB, so 150 minutes approximately would be “down” for searching after they initiate the first search. If that is what was happening… I wonder… is there a way from the command line I can trigger it to index all mailboxes that haven’t been indexed already? My thinking is I could have it running overnight and then when they walk in to start the day it works as expected for them.

    --
    Dustin Dauncey
    www.d19.ca

    1 Reply Last reply
    0
    • girishG Offline
      girishG Offline
      girish
      Staff
      wrote on last edited by
      #7

      @d19dotca let me test and report back the exact behavior . would be nice to have this documented as well...

      1 Reply Last reply
      2
      • girishG Offline
        girishG Offline
        girish
        Staff
        wrote on last edited by girish
        #8

        @d19dotca If you exec into the mail container, you can run doveadm index -u mail@domain.com '*' . That does the indexing . Maybe the solr index got corrupt and it's throwing some errors?

        You can also see the logs in /run/solr/solr.log

        To clear the index:

        • Exec into the mail container (docker exec -ti mail /bin/bash)
        • supervisorctl stop dovecot
        • supervisorctl stop solr
        • rm -rf /app/data/solr/dovecot
        • supervisorctl start solr
        • gosu cloudron:cloudron /app/code/solr/bin/solr create -c dovecot
        • supervisorctl start dovecot
        • doveadm index -u mail@domain.com '*'
        1 Reply Last reply
        3
        • d19dotcaD Offline
          d19dotcaD Offline
          d19dotca
          wrote on last edited by
          #9

          Thank you so much @girish, I'll try that. 🙂

          --
          Dustin Dauncey
          www.d19.ca

          1 Reply Last reply
          0
          • d19dotcaD Offline
            d19dotcaD Offline
            d19dotca
            wrote on last edited by
            #10

            I just enabled Solr and then immediately went into the mail container and see the following errors (which seems to jive closely with what webmail returned earlier):

            root@3cbcbbb04246:/app/code/haraka# doveadm index -u <redacted> '*'
            doveadm(<redacted>): Error: fts_solr: Lookup failed: 500 Server Error
            doveadm(<redacted>): Error: Mailbox Trash: Status lookup failed: Internal error occurred. Refer to server log for more information. [2024-12-19 07:11:18]
            doveadm(<redacted>): Error: fts_solr: Lookup failed: 500 Server Error
            doveadm(<redacted>): Error: Mailbox Junk: Status lookup failed: Internal error occurred. Refer to server log for more information. [2024-12-19 07:11:18]
            doveadm(<redacted>): Error: fts_solr: Lookup failed: 500 Server Error
            doveadm(<redacted>): Error: Mailbox Archive: Status lookup failed: Internal error occurred. Refer to server log for more information. [2024-12-19 07:11:18]
            doveadm(<redacted>): Error: fts_solr: Lookup failed: 500 Server Error
            doveadm(<redacted>): Error: Mailbox Deleted Messages: Status lookup failed: Internal error occurred. Refer to server log for more information. [2024-12-19 07:11:18]
            doveadm(<redacted>): Error: fts_solr: Lookup failed: 500 Server Error
            doveadm(<redacted>): Error: Mailbox Sent Messages: Status lookup failed: Internal error occurred. Refer to server log for more information. [2024-12-19 07:11:18]
            doveadm(<redacted>): Error: fts_solr: Lookup failed: 500 Server Error
            doveadm(<redacted>): Error: Mailbox Receipts: Status lookup failed: Internal error occurred. Refer to server log for more information. [2024-12-19 07:11:18]
            doveadm(<redacted>): Error: fts_solr: Lookup failed: 500 Server Error
            doveadm(<redacted>): Error: Mailbox Spam: Status lookup failed: Internal error occurred. Refer to server log for more information. [2024-12-19 07:11:18]
            doveadm(<redacted>): Error: fts_solr: Lookup failed: 500 Server Error
            doveadm(<redacted>): Error: Mailbox Drafts: Status lookup failed: Internal error occurred. Refer to server log for more information. [2024-12-19 07:11:18]
            doveadm(<redacted>): Error: fts_solr: Lookup failed: 500 Server Error
            doveadm(<redacted>): Error: Mailbox Sent: Status lookup failed: Internal error occurred. Refer to server log for more information. [2024-12-19 07:11:18]
            doveadm(<redacted>): Error: fts_solr: Lookup failed: 500 Server Error
            doveadm(<redacted>): Error: Mailbox INBOX: Status lookup failed: Internal error occurred. Refer to server log for more information. [2024-12-19 07:11:18]
            

            --
            Dustin Dauncey
            www.d19.ca

            1 Reply Last reply
            0
            • d19dotcaD Offline
              d19dotcaD Offline
              d19dotca
              wrote on last edited by
              #11

              I disabled Solr for now to avoid any issues with my clients. I'd love to make this work though, I'm not sure how to find out what's going wrong with it. The logs don't seem to show anything that I can find. Is there perhaps Solr logs on their own that I'm missing?

              --
              Dustin Dauncey
              www.d19.ca

              1 Reply Last reply
              0
              • d19dotcaD Offline
                d19dotcaD Offline
                d19dotca
                wrote on last edited by
                #12

                I also seem to get the same errors by the way if I use a command I found to immediately index all users by using: doveadm index -A '*' from the mail container, but it outputs the errors for each mailbox user and folder of course.

                Any suggestions on next steps?

                --
                Dustin Dauncey
                www.d19.ca

                1 Reply Last reply
                0
                • d19dotcaD Offline
                  d19dotcaD Offline
                  d19dotca
                  wrote on last edited by
                  #13

                  One last update, I re-enabled Solr and then followed your steps above for clearing the index, and then re-ran the doveadm index -A '*' and now I get a 400 Bad Request lookup failed message instead of the 500 server error earlier. I've disabled it again now.

                  --
                  Dustin Dauncey
                  www.d19.ca

                  1 Reply Last reply
                  0
                  • girishG Offline
                    girishG Offline
                    girish
                    Staff
                    wrote on last edited by
                    #14

                    @d19dotca apologies, my instructions were not complete. I put the docs at https://docs.cloudron.io/email/#search sometime back and forgot to update the thread here. doveadm needs the config argument. Can you please try with those instructions?

                    1 Reply Last reply
                    1
                    • d19dotcaD Offline
                      d19dotcaD Offline
                      d19dotca
                      wrote on last edited by
                      #15

                      That's great, thanks @girish! 🙂 It seems to work now. I enabled it and followed the steps in the new documentation you linked to, and then ran doveadm -c /run/dovecot.conf index -A '*' from the mail container which started indexing everything. Just waiting for the indexing to finish to confirm it'll be good. 🙂

                      --
                      Dustin Dauncey
                      www.d19.ca

                      1 Reply Last reply
                      0
                      • J joseph has marked this topic as solved on
                      • avatar1024A avatar1024 referenced this topic on
                      Reply
                      • Reply as topic
                      Log in to reply
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes


                      • Login

                      • Don't have an account? Register

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • Bookmarks
                      • Search