-
Notifications
You must be signed in to change notification settings - Fork 734
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Server audit -> Performance "always poor" #10092
Comments
This warning is issued if Code reference: Line 2736 in d4bb908
I'm not sure about this warning, either, because as far as I can see no configuration can affect it (assigning more physical cores to the server does). @eszkadev, what would be your thoughts? |
On a sidenote, since |
You mentioned |
@eszkadev The SDK page the admins are directed to isn't very helpful. |
how can we improve it? |
If this is related to available CPU cores (?), fair enough -- but just to report, I also get the same warning when setting I also agree the documentation in its current state is poor. I can't find any info there about minimum system specifications/requirements for example, nor suggestions to fix the server auditing warning, etc. And also what to do, if like me, adding CPU cores isn't an (easy) option? |
Hi GUYZ! I just moved from bookworm to alpine linux. Before i moved all was fine, never see this msg. Any idea? |
The error is about processing power of your system. You need 4 or more threads. Best to check the VM / container settings. Please assign more virtual CPUs. On any modern bare metal machine it should be fine :) Also there is I hope this will solve the problem for you |
Thanks for getting back. So it sounds like two things might be needed to fix this issue?
Re the point on "you need 4 or more threads" -- if this is the case, I think it should say so in the documentation. As I say, I could not find anything on minimum expected requirements. Seems important, especially if the code base is testing against them. To improve the UI then, perhaps a way to turn this warning off for a system that will never have more than 3 threads (like mine, as adding CPUs to our platform is prohibited due to cost constraints)? |
DEV guyz! Is it possible to just disable the annoying popup about this "Check security warnings about your server" I really dont want to see that bullcrapp when i open a document. |
My Collabora settings are default. My VM is allowed 2 cores and running 16 GB RAM. Not sure where the error message is coming into play. Does it need 4 cores? That seems new. Do I need to increase the settings beyond the defaults? |
You may be a developer of the program, but you're just wrong in saying I "need" 4 or more threads. My virtual machine has two cores, and Collabora is working fine, other than now giving me a multi-second popup warning every time I open a document. Can we get an option to disable the "Check security warnings of your server" popup, if it's going to include things completely unrelated to security that aren't actually an issue? |
That popup was introduced to make administrators aware of potential issues. You are right - it's not required, but recommended to provide best experience. As general rule is to not use administrator accounts for regular work - that's why we decided to put this popup only for users who are marked as administrator by the integration (document provider like Nextcloud). As a quick fix in current version you can try to use non-priviledged user account - it shouldn't show that warning. |
What? Can you point to any official Nextcloud documentation that suggests I should need to create two users for my single-user server? It makes sense to not show any warnings to non-admins, but you're now making quite a large statement about the correct configuration for Nextcloud, and I don't agree that it's related to the UX issue of this pop-up. If you wanted people to not use privileged accounts, you could just make a toast about that (which would probably get more complaints)-- with this, you're not warning anyone who's using a privileged account if they happen to have 4 or more cores, because the account being privileged is not what the warning's about. Also, if admins are not intended to use their admin accounts for "regular work" (which would include document editing), why are there any notifications in the Collabora editor interface at all? If an admin does as you say and never edits documents with that account, only using a non-privileged account, then they will never see any of the notifications, and they'll all be pointless. |
I do not say it's correct Nextcloud configuration. I said Nextcloud is an example of "document provider" / "integration" I mentioned in my answer. Usage of a regular user account is just a "quick fix" proposal (until we solve the problem). I proposed that as it's a common security-improving-pattern: "as general rule is to not use administrator accounts for regular work" and might work for some users. Not any dedicated solution for COOL or NC, I'm sorry if I made it unclear :) Yes - it is a good solution to provide option to disable popup for admin user (as an intentional step by changing the coolwsd.xml for example). So if someone is confident - can ignore the popup. |
I forgot there is a setting to disable server audit in coolwsd.xml already: inside
|
Does that solve your issue? Can we close the ticket? |
The crux of the issue here is that the server having less than four cores is not a security issue. It would be nice to be able to still see pop-ups for actual security-related issues, without this unrelated thing causing the pop-up. Does that make sense? If the pop-up is intended to be about any server configuration and not just security, then the verbiage should be changed from "Check security warnings of your server" to something else, like "Check your server configuration." |
Regarding the heavy-handed |
@jacobgkau |
I see, so "security" word is confusing now. Previously we didn't have performance warning there, but CPU number seems to be popular cause of issues - so it was added, without popup change. |
@Darshan-upadhyay1110 it is a good candidate for an easy hack :) #hacktoberfest |
Maybe another config option like "ignore hardware requirements" would be an option? Setting it would make admins aware of potential issues, but e.g. I'm running Collabora now on a box with 2 cores for a Nextcloud used by 3 users. I think it's unlikely that we run into issues, but providing a Collabora instance for 20 users with only 2 cores would be bad for sure. |
I've just tried applying that, and I still see the pop-up after restarting the container with that setting. Could there be another format for a nested setting? I agree with @bjo81, it would be ideal if security configuration issues and non-security related, possibly-not-configuration-related hardware requirement suggestions were separate settings. Modified verbiage and figuring out how to apply the setting properly would at least be a big improvement, though. |
Yes. Improving documentation to explain that relationship re users -> cores would also be helpful. As well as the rationale about the '4 cores' minimum spec, etc. As in OP, this link the dialog points to says nothing about any of this. |
This is the correct syntax: See the following page for reference: https://sdk.collaboraonline.com/docs/installation/CODE_Docker_image.html |
@thebearon Thank you, the |
Hi, I'll give my 2 cents to sum up what made sense to me on this thread in order to help CollaboraOnline team to address the issue efficiently:
I hope this helps nailing down the problem, and possible solution. |
Describe the Bug
Dialog box always says "server is configured with insufficient hardware resources, which may lead to poor performance" even when following or exceeding recommended performance settings at the SDK link provided in the dialog box: https://sdk.collaboraonline.com/docs/installation/Configuration.html#performance
Steps to Reproduce
Expected Behavior
No warning
Actual Behavior
"Server is configured with insufficient hardware resources, which may lead to poor performance" even when following or exceeding recommended performance settings at the SDK link provided in the dialog box
Screenshots
Server
COOLWSD version: 24.04.7.2
LOKit version: Collabora Office 24.04.7.2
Served by: Ubuntu 22.04.5 LTS
RAM: 4.68GB
Swap: 2GB
CPUs: 3x
Firefox 130.0.1
The text was updated successfully, but these errors were encountered: