Rank 3: Container
So, I was messing with the Heath API a few minutes ago and everything workes fine except that the Antivirus service is returning "disabled". Is there something I need to do?
Votes
0
Replies
24
Participants
Unknown
Messages
25
Rank 3: Container
So, I was messing with the Heath API a few minutes ago and everything workes fine except that the Antivirus service is returning "disabled". Is there something I need to do?
Self-hosted?
Rank 3: Container
Errr. Using Digital Ocean
Check this
https://book.appread.io/security#antivirus
You can see that the calmav service is disabled by default and you'll need to enable it.
Rank 3: Container
Alright. Thanks. trying it right away
Rank 3: Container
Hi @Binyamin, I couldn't find this block in my docker-compose.yml file
clamav: image: appwrite/clamav:1.2.0 container_name: appwrite-clamav restart: unless-stopped networks: - appwrite volumes: - appwrite-uploads:/storage/uploads
You can see it here
https://appwrite.io/install/compose
Copy it from there, remove the hashes and try to restart you docker compose
Rank 3: Container
Nvm. I've seen it now. Scanned it twice before 🤦🏽
Rank 3: Container
I've done that but I get the same result though. I programmed it to output failed if the status is not "online"
there might be a problem with this version of clamav
Opps, I forgot this part
Enable the antivirus inside the .env file
_APP_STORAGE_ANTIVIRUS=enabledThen restart the docker compose.
But anyway its seems like this version won't work anymore as Steven mentioned, this due the fact clamavis blocking the current binary version of getting update as it is not up-to-date
You can give it a try by enabling the antivirus and check the clamav logs
docker logs appwrite-clamavAlso, notice that the initializing process of the calmav can take few minutes, after that you can check the health endpoint.
If this won't work for you, you can try to install clamav on your machine in general as Docker volume file are store in plain sight - just inside a nested folder.
Rank 3: Container
Alright. Thanks.
Rank 3: Container
I already did this _APP_STORAGE_ANTIVIRUS=enabled
But I also get this error when I run docker logs appwrite-clamav
Yes, this is due the fact the software is 0.102 instead of the latest one.
Rank 3: Container
Seems I'm gonna neglect this for now
btw, can you explain this part:
If this won't work for you, you can try to install clamav on your machine in general as Docker volume file are store in plain sight - just inside a nested folder.
Rank 3: Container
Does this mean it's not really fixable? Is there any sure workaround?
For example, If you run
docker volume inspect appwrite_appwrite-buildsYou'll get something like this
[
....
"Mountpoint": "/var/lib/docker/volumes/appwrite_appwrite-builds/_data",
....
]
You can cd into that mounting point
cd /var/lib/docker/volumes/appwrite_appwrite-builds/_data
To see all your files
This means even if you're using dokcer volumes the files are put in plain sight from the server aspect
Is that makes sense?
Rank 3: Container
I think I understand. Alright, thanks. I'll be back.
.
Hi @Samuel Kings , is this fixed for you now?
Rank 3: Container
nope
Rank 3: Container
Twas taking too much of my time so put it on pending for now
let us know if you need any help!