Giter Site home page Giter Site logo

Error attachment image about chatwoot HOT 7 CLOSED

pphlucas avatar pphlucas commented on July 22, 2024
Error attachment image

from chatwoot.

Comments (7)

linear avatar linear commented on July 22, 2024

PR-1124 Error attachment image

from chatwoot.

vishnu-narayanan avatar vishnu-narayanan commented on July 22, 2024

@pphlucas Could you share the steps to reproduce this error? Are you getting error for all image uploads?

from chatwoot.

mtuliosan avatar mtuliosan commented on July 22, 2024

I also have a problem uploading any file via chat. From what I understand, it is generating a URL like ".../rails/active_storage/blobs/redirect/..." and this URL is inaccessible, returning a 404 when accessed.

In the log, I have:


I, [2024-06-07T16:18:29.315947 #1]  INFO -- : [4fbd62b3-f7b4-421e-ac1c-5a9bf0aca62b] Completed 302 Found in 6ms (ActiveRecord: 0.5ms | Allocations: 1851)

I, [2024-06-07T16:18:29.316697 #1]  INFO -- : source=rack-timeout id=4fbd62b3-f7b4-421e-ac1c-5a9bf0aca62b timeout=15000ms service=18ms state=completed

I, [2024-06-07T16:18:29.465105 #1]  INFO -- : [0d01f850-99c0-4fa3-8dd8-c2fcc5b9b83a]   S3 Storage (373.6ms) Uploaded file to key: p5yzcouzaoyyd51gkv850uaekrs2 (checksum: 7Y/v7GxcsbHWZLRjudF5CQ==)

I, [2024-06-07T16:18:29.467183 #1]  INFO -- : [0d01f850-99c0-4fa3-8dd8-c2fcc5b9b83a] [ActiveJob] Enqueued ActiveStorage::AnalyzeJob (Job ID: 4411ee95-8d13-4a05-acc8-29a5f1c01954) to Sidekiq(default) with arguments: #<GlobalID:0x00007f90f9c17118 @uri=#<URI::GID gid://chatwoot/ActiveStorage::Blob/468>>

I, [2024-06-07T16:18:29.472274 #1]  INFO -- : [0d01f850-99c0-4fa3-8dd8-c2fcc5b9b83a]   Rendered api/v1/accounts/conversations/messages/create.json.jbuilder (Duration: 3.8ms | Allocations: 911)

I, [2024-06-07T16:18:29.475854 #1]  INFO -- : [0d01f850-99c0-4fa3-8dd8-c2fcc5b9b83a] Completed 200 OK in 578ms (Views: 4.8ms | ActiveRecord: 76.4ms | Allocations: 39821)

I, [2024-06-07T16:18:29.476674 #1]  INFO -- : source=rack-timeout id=0d01f850-99c0-4fa3-8dd8-c2fcc5b9b83a timeout=15000ms service=588ms state=completed

I, [2024-06-07T16:18:29.828941 #1]  INFO -- : source=rack-timeout id=dd568b56-d81c-4a2d-8c77-1546d8001ce5 timeout=15000ms state=ready

I, [2024-06-07T16:18:29.829953 #1]  INFO -- : [dd568b56-d81c-4a2d-8c77-1546d8001ce5] Started GET "/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBdFFCIiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--3fd1b37a13b1ef5ab65f8d78d43cf25f0ed0af88/Captura%20de%20tela%20de%202024-06-04%2020-42-29.png" for 172.18.0.1 at 2024-06-07 16:18:29 +0000

I, [2024-06-07T16:18:29.833642 #1]  INFO -- : [dd568b56-d81c-4a2d-8c77-1546d8001ce5] Processing by ActiveStorage::Blobs::RedirectController#show as PNG

I, [2024-06-07T16:18:29.833802 #1]  INFO -- : [dd568b56-d81c-4a2d-8c77-1546d8001ce5]   Parameters: {"signed_id"=>"eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBdFFCIiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--3fd1b37a13b1ef5ab65f8d78d43cf25f0ed0af88", "filename"=>"Captura de tela de 2024-06-04 20-42-29"}

I, [2024-06-07T16:18:29.834870 #1]  INFO -- : [dd568b56-d81c-4a2d-8c77-1546d8001ce5] Filter chain halted as :set_blob rendered or redirected

I, [2024-06-07T16:18:29.835100 #1]  INFO -- : [dd568b56-d81c-4a2d-8c77-1546d8001ce5] Completed 404 Not Found in 1ms (ActiveRecord: 0.0ms | Allocations: 228)

POST: /api/v1/accounts/2/conversations/64/messages

RESPONSE :
.....data_url "https://..../rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBdFVCIiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--a2eb60469ad94d5e9bb917cdb8c74d65de3fffd0/Captura%20de%20tela%20de%202024-06-04%2020-42-29.png"

404

from chatwoot.

mtuliosan avatar mtuliosan commented on July 22, 2024

waiting-for-reply @vishnu-narayanan

from chatwoot.

juliancesar avatar juliancesar commented on July 22, 2024

@pphlucas, if you manually access the URL after the 404 error, will it work?

from chatwoot.

pphlucas avatar pphlucas commented on July 22, 2024

Yes, I manually click the URL and get a 404 error, I installed CHATWOOT through EASYPANEL, I really don't know what it could be, possible configuration in the CHATWOOT template for EASYPANEL

from chatwoot.

pranavrajs avatar pranavrajs commented on July 22, 2024

@TheOneironaut It seems the issue here is not with Chatwoot. It seems that you might not have a persistent storage setup configured.

If you are using docker, you need to specify the storage folder as a volume and make sure that the folder is getting stored persistently. https://docs.docker.com/storage/volumes/#use-a-volume-with-docker-compose

Or use a persistent storage provider like S3, GCS etc.

Closing this here for now.

from chatwoot.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.