Skip to content
Back

How to view logs?

  • 0
  • Self Hosted
  • Tools
  • General
  • Storage
kathelia.dokgu
23 Sep, 2023, 03:28

I'm having some issues with stability - mostly with bucket files and especially the large files. I want to look at all the relevant logs. Where do I find them?

TL;DR
User is seeking help on how to view logs related to stability issues with bucket files, especially large files. They mention trying `docker stats` to identify the container causing high resource usage and mention playing a video file causing the server to crash. They also mention trying to upload videos through WhatsApp first to reduce file size and improve stability. They ask how to check the number of cores on their server. No solution is provided in the thread.
Drake
23 Sep, 2023, 03:29

That would only be the docket logs for the appwrite container

kathelia.dokgu
23 Sep, 2023, 04:11

Thank you. I couldn't find anything that would indicate any instability.. other than robots trying to look for a Wordpress directory but that's all I saw that was out of the ordinary. How much concurrent requests can Appwrite handle in general?

Drake
23 Sep, 2023, 04:28

Depends on the cores on your server it's like the worker environment variable * cores or something.

Drake
23 Sep, 2023, 04:28

Are you using functions?

kathelia.dokgu
24 Sep, 2023, 17:06

No I am not. Also I was trying to find how many cores are on my server since I forgot how I set it up but I can't seem to find it. This is all I saw.

Drake
24 Sep, 2023, 17:09

And what issues do you mean? What's going on?

Drake
24 Sep, 2023, 17:10

If you're on a unix machine there should be some command to check

kathelia.dokgu
24 Sep, 2023, 17:24
TypeScript
processor       : 0
vendor_id       : GenuineIntel
cpu family      : 6
model           : 79
model name      : Intel(R) Xeon(R) CPU @ 2.20GHz
stepping        : 0
microcode       : 0xffffffff
cpu MHz         : 2199.998
cache size      : 56320 KB
physical id     : 0
siblings        : 2
core id         : 0
cpu cores       : 1
apicid          : 0
initial apicid  : 0
fpu             : yes
fpu_exception   : yes
cpuid level     : 13
wp              : yes
bogomips        : 4399.99
clflush size    : 64
cache_alignment : 64
address sizes   : 46 bits physical, 48 bits virtual
power management:

processor       : 1
vendor_id       : GenuineIntel
cpu family      : 6
model           : 79
model name      : Intel(R) Xeon(R) CPU @ 2.20GHz
stepping        : 0
microcode       : 0xffffffff
cpu MHz         : 2199.998
cache size      : 56320 KB
physical id     : 0
siblings        : 2
core id         : 0
cpu cores       : 1
apicid          : 1
initial apicid  : 1
fpu             : yes
fpu_exception   : yes
cpuid level     : 13
wp              : yes
...
Drake
24 Sep, 2023, 17:28

So 2?

kathelia.dokgu
24 Sep, 2023, 17:30

So what happened is that a 1 minute video taken from an iPhone (.mov) which I believe is a 1080p 30 fps video was uploaded (100MB). It was uploaded just fine but when playing the <video> tag and by providing the <source> URL as what is taken from storage.getFileView(), most of the time it crashes the server. I was able to successfully play it once but all the other times I tried to play it ended up with the server crashing. What I'm doing now is upload the videos through WhatsApp first and then it reduces the video file to 480p and it ends up with only a 10MB file size. So far it's more stable, just not 100% but I'm not sure if it has something to do with the other bucket files. But basically images have been stable, videos aren't - especially when they are large files.

kathelia.dokgu
24 Sep, 2023, 17:31

I honestly don't know much about hardware so I don't know how to interpret the data. From what I understood, it's just one? Let me try to create another VM, I think it shows the number of cores during the set up. Brb.

kathelia.dokgu
24 Sep, 2023, 17:32
Drake
25 Sep, 2023, 21:31

before you start playing the file, would you try following the logs and starting docker stats? maybe it'll tell you which contaiener is taking up all the resources

kathelia.dokgu
26 Sep, 2023, 00:25

I can’t work on this tonight but I’ll give it a try tomorrow.

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more