Content
View differences
Updated by Deleted user about 1 year ago
### Steps to reproduce
We cannot reproduce this error, but it occurs regularly with files from our users. While uploading the exact same file as an admin, we have no issues.
### What is the buggy behavior?
Files are not available after upload, that means via direct upload as an image into a "Benutzerdefinierter Text" widget, as well as a regular attachment in the documents section or attached to a work package. We see an error in the logfile that says:
`Apr 28 07:03:52 kvmua102 openproject[3916593]: E, [2025-04-28T07:03:52.270233 #3916593] ERROR -- : [ActiveJob] [Attachments::VirusScanJob] [0bd423dd-c07e-4ef3-a684-6ae921218f62] Error scanning attachment 69539 for viruses: undefined method 'read' for nil`
That is from the worker log on the machine that handles the virus scanning. Virus scanning is set up as "ClamAV host".
**Addition 11.22 AM:**
The problem seems to be way bigger, the messages are stacking up:
`**wafzig@kvmua102:/home/wafzig> journalctl -u openproject-worker-1 --no-pager|grep "VirusScanFailed"**`
`**Apr 28 07:03:52 kvmua102 openproject[3916593]: I, [2025-04-28T07:03:52.275700 #3916593] INFO -- : [ActiveJob] [Attachments::VirusScanJob] [0bd423dd-c07e-4ef3-a684-6ae921218f62] Retrying Attachments::VirusScanJob (Job ID: 0bd423dd-c07e-4ef3-a684-6ae921218f62) after 1 attempts in 5 seconds, due to a Attachments::VirusScanJob::VirusScanFailed (undefined method 'read' for nil).**`
`**Apr 28 08:25:28 kvmua102 openproject[3916593]: I, [2025-04-28T08:25:28.614566 #3916593] INFO -- : [ActiveJob] [Attachments::VirusScanJob] [c0a70f91-866d-481f-8555-8570bd3d4a1f] Retrying Attachments::VirusScanJob (Job ID: c0a70f91-866d-481f-8555-8570bd3d4a1f) after 1 attempts in 5 seconds, due to a Attachments::VirusScanJob::VirusScanFailed (undefined method 'read' for nil).**`
`**Apr 28 08:29:23 kvmua102 openproject[3916593]: I, [2025-04-28T08:29:23.001371 #3916593] INFO -- : [ActiveJob] [Attachments::VirusScanJob] [e311e644-a815-43fe-9275-2f4c27e570f3] Retrying Attachments::VirusScanJob (Job ID: e311e644-a815-43fe-9275-2f4c27e570f3) after 1 attempts in 5 seconds, due to a Attachments::VirusScanJob::VirusScanFailed (undefined method 'read' for nil).**`
`**Apr 28 08:44:09 kvmua102 openproject[3916593]: I, [2025-04-28T08:44:09.160024 #3916593] INFO -- : [ActiveJob] [Attachments::VirusScanJob] [aeeeaf07-6049-44ec-bda1-ba76158c14c7] Retrying Attachments::VirusScanJob (Job ID: aeeeaf07-6049-44ec-bda1-ba76158c14c7) after 2 attempts in 5 seconds, due to a Attachments::VirusScanJob::VirusScanFailed (undefined method 'read' for nil).**`
`**Apr 28 08:51:12 kvmua102 openproject[3916593]: I, [2025-04-28T08:51:12.651458 #3916593] INFO -- : [ActiveJob] [Attachments::VirusScanJob] [de7abf6d-6a48-4976-bbc4-92a064628fed] Retrying Attachments::VirusScanJob (Job ID: de7abf6d-6a48-4976-bbc4-92a064628fed) after 1 attempts in 5 seconds, due to a Attachments::VirusScanJob::VirusScanFailed (undefined method 'read' for nil).**`
`**Apr 28 08:51:14 kvmua102 openproject[3916593]: I, [2025-04-28T08:51:14.173836 #3916593] INFO -- : [ActiveJob] [Attachments::VirusScanJob] [03c851b6-99f3-471a-bde5-0edc9f006cac] Retrying Attachments::VirusScanJob (Job ID: 03c851b6-99f3-471a-bde5-0edc9f006cac) after 1 attempts in 5 seconds, due to a Attachments::VirusScanJob::VirusScanFailed (undefined method 'read' for nil).**`
`**Apr 28 08:51:23 kvmua102 openproject[3916593]: E, [2025-04-28T08:51:23.550941 #3916593] ERROR -- : [ActiveJob] [Attachments::VirusScanJob] [c98ce0f8-bc08-4a08-9ef8-1c668624a044] Stopped retrying Attachments::VirusScanJob (Job ID: c98ce0f8-bc08-4a08-9ef8-1c668624a044) due to a Attachments::VirusScanJob::VirusScanFailed (undefined method 'read' for nil), which reoccurred on 3 attempts.**`
`**Apr 28 08:51:23 kvmua102 openproject[3916593]: E, [2025-04-28T08:51:23.551238 #3916593] ERROR -- : [ActiveJob] [Attachments::VirusScanJob] [c98ce0f8-bc08-4a08-9ef8-1c668624a044] Error performing Attachments::VirusScanJob (Job ID: c98ce0f8-bc08-4a08-9ef8-1c668624a044) from GoodJob(default) in 15.54ms: Attachments::VirusScanJob::VirusScanFailed (undefined method 'read' for nil):**`
`**Apr 28 08:55:43 kvmua102 openproject[3916593]: I, [2025-04-28T08:55:43.181864 #3916593] INFO -- : [ActiveJob] [Attachments::VirusScanJob] [f66086ec-94d8-4c5e-bfc8-38850864684c] Retrying Attachments::VirusScanJob (Job ID: f66086ec-94d8-4c5e-bfc8-38850864684c) after 1 attempts in 5 seconds, due to a Attachments::VirusScanJob::VirusScanFailed (undefined method 'read' for nil).**`
`**Apr 28 08:55:48 kvmua102 openproject[3916593]: I, [2025-04-28T08:55:48.194919 #3916593] INFO -- : [ActiveJob] [Attachments::VirusScanJob] [f66086ec-94d8-4c5e-bfc8-38850864684c] Retrying Attachments::VirusScanJob (Job ID: f66086ec-94d8-4c5e-bfc8-38850864684c) after 2 attempts in 5 seconds, due to a Attachments::VirusScanJob::VirusScanFailed (undefined method 'read' for nil).**`
`**Apr 28 08:56:40 kvmua102 openproject[3916593]: I, [2025-04-28T08:56:40.025179 #3916593] INFO -- : [ActiveJob] [Attachments::VirusScanJob] [0d70bbb5-48b0-4f74-907b-c59cc24cb28d] Retrying Attachments::VirusScanJob (Job ID: 0d70bbb5-48b0-4f74-907b-c59cc24cb28d) after 1 attempts in 5 seconds, due to a Attachments::VirusScanJob::VirusScanFailed (undefined method 'read' for nil).**`
`**Apr 28 09:24:57 kvmua102 openproject[3916593]: E, [2025-04-28T09:24:57.140080 #3916593] ERROR -- : [ActiveJob] [Attachments::VirusScanJob] [63786bf1-5221-46e7-bd21-ef6fe3b82bfd] Stopped retrying Attachments::VirusScanJob (Job ID: 63786bf1-5221-46e7-bd21-ef6fe3b82bfd) due to a Attachments::VirusScanJob::VirusScanFailed (undefined method 'read' for nil), which reoccurred on 3 attempts.**`
`**Apr 28 09:24:57 kvmua102 openproject[3916593]: E, [2025-04-28T09:24:57.140364 #3916593] ERROR -- : [ActiveJob] [Attachments::VirusScanJob] [63786bf1-5221-46e7-bd21-ef6fe3b82bfd] Error performing Attachments::VirusScanJob (Job ID: 63786bf1-5221-46e7-bd21-ef6fe3b82bfd) from GoodJob(default) in 9.51ms: Attachments::VirusScanJob::VirusScanFailed (undefined method 'read' for nil):**`
`**Apr 28 09:32:33 kvmua102 openproject[3916593]: E, [2025-04-28T09:32:33.375502 #3916593] ERROR -- : [ActiveJob] [Attachments::VirusScanJob] [08dee9ef-6af5-42fb-a879-e5917d1cb15b] Stopped retrying Attachments::VirusScanJob (Job ID: 08dee9ef-6af5-42fb-a879-e5917d1cb15b) due to a Attachments::VirusScanJob::VirusScanFailed (undefined method 'read' for nil), which reoccurred on 3 attempts.**`
`**Apr 28 09:32:33 kvmua102 openproject[3916593]: E, [2025-04-28T09:32:33.375794 #3916593] ERROR -- : [ActiveJob] [Attachments::VirusScanJob] [08dee9ef-6af5-42fb-a879-e5917d1cb15b] Error performing Attachments::VirusScanJob (Job ID: 08dee9ef-6af5-42fb-a879-e5917d1cb15b) from GoodJob(default) in 9.94ms: Attachments::VirusScanJob::VirusScanFailed (undefined method 'read' for nil):**`
`**Apr 28 09:42:02 kvmua102 openproject[3916593]: I, [2025-04-28T09:42:02.385848 #3916593] INFO -- : [ActiveJob] [Attachments::VirusScanJob] [7a90f6a6-4ebe-43d4-bb9d-fcf877a6448f] Retrying Attachments::VirusScanJob (Job ID: 7a90f6a6-4ebe-43d4-bb9d-fcf877a6448f) after 1 attempts in 5 seconds, due to a Attachments::VirusScanJob::VirusScanFailed (undefined method 'read' for nil).**`
`**Apr 28 09:42:23 kvmua102 openproject[3916593]: I, [2025-04-28T09:42:23.980885 #3916593] INFO -- : [ActiveJob] [Attachments::VirusScanJob] [a99a6e46-3360-483a-9925-84be685424c3] Retrying Attachments::VirusScanJob (Job ID: a99a6e46-3360-483a-9925-84be685424c3) after 1 attempts in 5 seconds, due to a Attachments::VirusScanJob::VirusScanFailed (undefined method 'read' for nil).**`
`**Apr 28 09:45:42 kvmua102 openproject[3916593]: I, [2025-04-28T09:45:42.273579 #3916593] INFO -- : [ActiveJob] [Attachments::VirusScanJob] [681b9288-0de2-4153-a9d9-86e2dcc80e60] Retrying Attachments::VirusScanJob (Job ID: 681b9288-0de2-4153-a9d9-86e2dcc80e60) after 1 attempts in 5 seconds, due to a Attachments::VirusScanJob::VirusScanFailed (undefined method 'read' for nil).**`
`**Apr 28 10:19:50 kvmua102 openproject[3916593]: I, [2025-04-28T10:19:50.328484 #3916593] INFO -- : [ActiveJob] [Attachments::VirusScanJob] [711023f7-6732-498e-9177-e7cf253a871a] Retrying Attachments::VirusScanJob (Job ID: 711023f7-6732-498e-9177-e7cf253a871a) after 2 attempts in 5 seconds, due to a Attachments::VirusScanJob::VirusScanFailed (undefined method 'read' for nil).**`
`**Apr 28 10:52:20 kvmua102 openproject[3916593]: I, [2025-04-28T10:52:20.026161 #3916593] INFO -- : [ActiveJob] [Attachments::VirusScanJob] [e48260bf-3ad0-4dbf-b2ac-8213f82b1900] Retrying Attachments::VirusScanJob (Job ID: e48260bf-3ad0-4dbf-b2ac-8213f82b1900) after 2 attempts in 5 seconds, due to a Attachments::VirusScanJob::VirusScanFailed (undefined method 'read' for nil).**`
### What is the expected behavior?
All uploads should work.
### **Logs**
see above.
### Screenshots and other files
none.
### Environment information
**OpenProject installation type**
* Packaged installation
* What distribution? RHEL 9.4
**OpenProject version**
15.3.2
**Browser**
* [ ] Chrome
* [ ] Firefox
* [ ] Safari
* [ ] Mobile Safari
* [x] Other (please specify): Edge
**Operating System**
* [x] Windows
* [ ] Mac OS X
* [ ] Mobile iOS
* [ ] Mobile Android
* [ ] Linux (please specify distro)
* [ ] Chrome OS
* [ ] Other (please specify)
**Language**
German.
We cannot reproduce this error, but it occurs regularly with files from our users. While uploading the exact same file as an admin, we have no issues.
### What is the buggy behavior?
Files are not available after upload, that means via direct upload as an image into a "Benutzerdefinierter Text" widget, as well as a regular attachment in the documents section or attached to a work package. We see an error in the logfile that says:
`Apr 28 07:03:52 kvmua102 openproject[3916593]: E, [2025-04-28T07:03:52.270233 #3916593] ERROR -- : [ActiveJob] [Attachments::VirusScanJob] [0bd423dd-c07e-4ef3-a684-6ae921218f62] Error scanning attachment 69539 for viruses: undefined method 'read' for nil`
**Addition 11.22 AM:**
The problem seems to be way bigger, the messages are stacking up:
`**wafzig@kvmua102:/home/wafzig> journalctl -u openproject-worker-1 --no-pager|grep "VirusScanFailed"**`
`**Apr 28 07:03:52 kvmua102 openproject[3916593]: I, [2025-04-28T07:03:52.275700 #3916593] INFO -- : [ActiveJob] [Attachments::VirusScanJob] [0bd423dd-c07e-4ef3-a684-6ae921218f62] Retrying Attachments::VirusScanJob (Job ID: 0bd423dd-c07e-4ef3-a684-6ae921218f62) after 1 attempts in 5 seconds, due to a Attachments::VirusScanJob::VirusScanFailed (undefined method 'read' for nil).**`
`**Apr 28 08:25:28 kvmua102 openproject[3916593]: I, [2025-04-28T08:25:28.614566 #3916593] INFO -- : [ActiveJob] [Attachments::VirusScanJob] [c0a70f91-866d-481f-8555-8570bd3d4a1f] Retrying Attachments::VirusScanJob (Job ID: c0a70f91-866d-481f-8555-8570bd3d4a1f) after 1 attempts in 5 seconds, due to a Attachments::VirusScanJob::VirusScanFailed (undefined method 'read' for nil).**`
`**Apr 28 08:29:23 kvmua102 openproject[3916593]: I, [2025-04-28T08:29:23.001371 #3916593] INFO -- : [ActiveJob] [Attachments::VirusScanJob] [e311e644-a815-43fe-9275-2f4c27e570f3] Retrying Attachments::VirusScanJob (Job ID: e311e644-a815-43fe-9275-2f4c27e570f3) after 1 attempts in 5 seconds, due to a Attachments::VirusScanJob::VirusScanFailed (undefined method 'read' for nil).**`
`**Apr 28 08:44:09 kvmua102 openproject[3916593]: I, [2025-04-28T08:44:09.160024 #3916593] INFO -- : [ActiveJob] [Attachments::VirusScanJob] [aeeeaf07-6049-44ec-bda1-ba76158c14c7] Retrying Attachments::VirusScanJob (Job ID: aeeeaf07-6049-44ec-bda1-ba76158c14c7) after 2 attempts in 5 seconds, due to a Attachments::VirusScanJob::VirusScanFailed (undefined method 'read' for nil).**`
`**Apr 28 08:51:12 kvmua102 openproject[3916593]: I, [2025-04-28T08:51:12.651458 #3916593] INFO -- : [ActiveJob] [Attachments::VirusScanJob] [de7abf6d-6a48-4976-bbc4-92a064628fed] Retrying Attachments::VirusScanJob (Job ID: de7abf6d-6a48-4976-bbc4-92a064628fed) after 1 attempts in 5 seconds, due to a Attachments::VirusScanJob::VirusScanFailed (undefined method 'read' for nil).**`
`**Apr 28 08:51:14 kvmua102 openproject[3916593]: I, [2025-04-28T08:51:14.173836 #3916593] INFO -- : [ActiveJob] [Attachments::VirusScanJob] [03c851b6-99f3-471a-bde5-0edc9f006cac] Retrying Attachments::VirusScanJob (Job ID: 03c851b6-99f3-471a-bde5-0edc9f006cac) after 1 attempts in 5 seconds, due to a Attachments::VirusScanJob::VirusScanFailed (undefined method 'read' for nil).**`
`**Apr 28 08:51:23 kvmua102 openproject[3916593]: E, [2025-04-28T08:51:23.550941 #3916593] ERROR -- : [ActiveJob] [Attachments::VirusScanJob] [c98ce0f8-bc08-4a08-9ef8-1c668624a044] Stopped retrying Attachments::VirusScanJob (Job ID: c98ce0f8-bc08-4a08-9ef8-1c668624a044) due to a Attachments::VirusScanJob::VirusScanFailed (undefined method 'read' for nil), which reoccurred on 3 attempts.**`
`**Apr 28 08:51:23 kvmua102 openproject[3916593]: E, [2025-04-28T08:51:23.551238 #3916593] ERROR -- : [ActiveJob] [Attachments::VirusScanJob] [c98ce0f8-bc08-4a08-9ef8-1c668624a044] Error performing Attachments::VirusScanJob (Job ID: c98ce0f8-bc08-4a08-9ef8-1c668624a044) from GoodJob(default) in 15.54ms: Attachments::VirusScanJob::VirusScanFailed (undefined method 'read' for nil):**`
`**Apr 28 08:55:43 kvmua102 openproject[3916593]: I, [2025-04-28T08:55:43.181864 #3916593] INFO -- : [ActiveJob] [Attachments::VirusScanJob] [f66086ec-94d8-4c5e-bfc8-38850864684c] Retrying Attachments::VirusScanJob (Job ID: f66086ec-94d8-4c5e-bfc8-38850864684c) after 1 attempts in 5 seconds, due to a Attachments::VirusScanJob::VirusScanFailed (undefined method 'read' for nil).**`
`**Apr 28 08:55:48 kvmua102 openproject[3916593]: I, [2025-04-28T08:55:48.194919 #3916593] INFO -- : [ActiveJob] [Attachments::VirusScanJob] [f66086ec-94d8-4c5e-bfc8-38850864684c] Retrying Attachments::VirusScanJob (Job ID: f66086ec-94d8-4c5e-bfc8-38850864684c) after 2 attempts in 5 seconds, due to a Attachments::VirusScanJob::VirusScanFailed (undefined method 'read' for nil).**`
`**Apr 28 08:56:40 kvmua102 openproject[3916593]: I, [2025-04-28T08:56:40.025179 #3916593] INFO -- : [ActiveJob] [Attachments::VirusScanJob] [0d70bbb5-48b0-4f74-907b-c59cc24cb28d] Retrying Attachments::VirusScanJob (Job ID: 0d70bbb5-48b0-4f74-907b-c59cc24cb28d) after 1 attempts in 5 seconds, due to a Attachments::VirusScanJob::VirusScanFailed (undefined method 'read' for nil).**`
`**Apr 28 09:24:57 kvmua102 openproject[3916593]: E, [2025-04-28T09:24:57.140080 #3916593] ERROR -- : [ActiveJob] [Attachments::VirusScanJob] [63786bf1-5221-46e7-bd21-ef6fe3b82bfd] Stopped retrying Attachments::VirusScanJob (Job ID: 63786bf1-5221-46e7-bd21-ef6fe3b82bfd) due to a Attachments::VirusScanJob::VirusScanFailed (undefined method 'read' for nil), which reoccurred on 3 attempts.**`
`**Apr 28 09:24:57 kvmua102 openproject[3916593]: E, [2025-04-28T09:24:57.140364 #3916593] ERROR -- : [ActiveJob] [Attachments::VirusScanJob] [63786bf1-5221-46e7-bd21-ef6fe3b82bfd] Error performing Attachments::VirusScanJob (Job ID: 63786bf1-5221-46e7-bd21-ef6fe3b82bfd) from GoodJob(default) in 9.51ms: Attachments::VirusScanJob::VirusScanFailed (undefined method 'read' for nil):**`
`**Apr 28 09:32:33 kvmua102 openproject[3916593]: E, [2025-04-28T09:32:33.375502 #3916593] ERROR -- : [ActiveJob] [Attachments::VirusScanJob] [08dee9ef-6af5-42fb-a879-e5917d1cb15b] Stopped retrying Attachments::VirusScanJob (Job ID: 08dee9ef-6af5-42fb-a879-e5917d1cb15b) due to a Attachments::VirusScanJob::VirusScanFailed (undefined method 'read' for nil), which reoccurred on 3 attempts.**`
`**Apr 28 09:32:33 kvmua102 openproject[3916593]: E, [2025-04-28T09:32:33.375794 #3916593] ERROR -- : [ActiveJob] [Attachments::VirusScanJob] [08dee9ef-6af5-42fb-a879-e5917d1cb15b] Error performing Attachments::VirusScanJob (Job ID: 08dee9ef-6af5-42fb-a879-e5917d1cb15b) from GoodJob(default) in 9.94ms: Attachments::VirusScanJob::VirusScanFailed (undefined method 'read' for nil):**`
`**Apr 28 09:42:02 kvmua102 openproject[3916593]: I, [2025-04-28T09:42:02.385848 #3916593] INFO -- : [ActiveJob] [Attachments::VirusScanJob] [7a90f6a6-4ebe-43d4-bb9d-fcf877a6448f] Retrying Attachments::VirusScanJob (Job ID: 7a90f6a6-4ebe-43d4-bb9d-fcf877a6448f) after 1 attempts in 5 seconds, due to a Attachments::VirusScanJob::VirusScanFailed (undefined method 'read' for nil).**`
`**Apr 28 09:42:23 kvmua102 openproject[3916593]: I, [2025-04-28T09:42:23.980885 #3916593] INFO -- : [ActiveJob] [Attachments::VirusScanJob] [a99a6e46-3360-483a-9925-84be685424c3] Retrying Attachments::VirusScanJob (Job ID: a99a6e46-3360-483a-9925-84be685424c3) after 1 attempts in 5 seconds, due to a Attachments::VirusScanJob::VirusScanFailed (undefined method 'read' for nil).**`
`**Apr 28 09:45:42 kvmua102 openproject[3916593]: I, [2025-04-28T09:45:42.273579 #3916593] INFO -- : [ActiveJob] [Attachments::VirusScanJob] [681b9288-0de2-4153-a9d9-86e2dcc80e60] Retrying Attachments::VirusScanJob (Job ID: 681b9288-0de2-4153-a9d9-86e2dcc80e60) after 1 attempts in 5 seconds, due to a Attachments::VirusScanJob::VirusScanFailed (undefined method 'read' for nil).**`
`**Apr 28 10:19:50 kvmua102 openproject[3916593]: I, [2025-04-28T10:19:50.328484 #3916593] INFO -- : [ActiveJob] [Attachments::VirusScanJob] [711023f7-6732-498e-9177-e7cf253a871a] Retrying Attachments::VirusScanJob (Job ID: 711023f7-6732-498e-9177-e7cf253a871a) after 2 attempts in 5 seconds, due to a Attachments::VirusScanJob::VirusScanFailed (undefined method 'read' for nil).**`
`**Apr 28 10:52:20 kvmua102 openproject[3916593]: I, [2025-04-28T10:52:20.026161 #3916593] INFO -- : [ActiveJob] [Attachments::VirusScanJob] [e48260bf-3ad0-4dbf-b2ac-8213f82b1900] Retrying Attachments::VirusScanJob (Job ID: e48260bf-3ad0-4dbf-b2ac-8213f82b1900) after 2 attempts in 5 seconds, due to a Attachments::VirusScanJob::VirusScanFailed (undefined method 'read' for nil).**`
### What is the expected behavior?
All uploads should work.
### **Logs**
see above.
### Screenshots and other files
none.
### Environment information
**OpenProject installation type**
* Packaged installation
* What distribution? RHEL 9.4
**OpenProject version**
15.3.2
**Browser**
* [ ] Chrome
* [ ] Firefox
* [ ] Safari
* [ ] Mobile Safari
* [x] Other (please specify): Edge
**Operating System**
* [x] Windows
* [ ] Mac OS X
* [ ] Mobile iOS
* [ ] Mobile Android
* [ ] Linux (please specify distro)
* [ ] Chrome OS
* [ ] Other (please specify)
**Language**
German.