I created a super basic implementation of a self-service portal using the API, it works in a pinch but I wouldn't use it in production without heavy improvement. Mostly just curiosity about what's possible with the API
https://github.com/AidanRB/toem-store
Best posts made by mzprays
-
RE: Self-service portal
Latest posts made by mzprays
-
RE: Windows Defender Trojan virus
@theopenem_admin I think TacticalRMM has a similar model. When you buy a support plan it comes with code signing, you put the key they give you into your Tactical instance, and it talks to their servers to sign the agent. I could be wrong about the backend, but that's how the frontend shows it; you buy a key and put it into the instance, there's a text box for it. I can't speak to the implementation side of things, though.
-
RE: Windows Defender Trojan virus
@theopenem_admin Signing the client would be awesome, we're currently having an issue with Microsoft Defender doing the same. It looks like the number of AVs detecting Toec-Services.dll as malicious has gone up over the last year, despite the file not changing at all.
-
RE: MariaDB "Too many connections"
I ended up adding
MaximumPoolSize=25;
to the connectionString for all of the Toec-API instances and everything seems happy now. Increasing the max connections would have likely had the same effect, but I'm not seeing all the connections utilized even at peak checkin times. HeidiSQL is a great troubleshooting tool. -
RE: MariaDB "Too many connections"
@theopenem_admin I'll try these one at a time and report back. Thank you!
-
RE: MariaDB "Too many connections"
The errors in Event Viewer are pretty much constant, with over 40 per second. They're accompanied by failed scheduled tasks, and this in the logs:
2024-12-19 12:41:45,199 [Worker #19] ERROR Hangfire.Server.Worker 10 state change attempt(s) failed due to an exception, moving job to the FailedState MySqlConnector.MySqlException (0x80004005): Too many connections at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at MySqlConnector.Core.ServerSession.<ConnectAsync>d__68.MoveNext() in /_/src/MySqlConnector/Core/ServerSession.cs:line 385 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at MySqlConnector.Core.ConnectionPool.<GetSessionAsync>d__10.MoveNext() in /_/src/MySqlConnector/Core/ConnectionPool.cs:line 111 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at MySqlConnector.Core.ConnectionPool.<GetSessionAsync>d__10.MoveNext() in /_/src/MySqlConnector/Core/ConnectionPool.cs:line 140 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at MySqlConnector.MySqlConnection.<CreateSessionAsync>d__115.MoveNext() in /_/src/MySqlConnector/MySqlConnection.cs:line 819 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at MySqlConnector.MySqlConnection.<OpenAsync>d__27.MoveNext() in /_/src/MySqlConnector/MySqlConnection.cs:line 407 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at MySqlConnector.MySqlConnection.Open() in /_/src/MySqlConnector/MySqlConnection.cs:line 365 at Hangfire.MySql.MySqlStorage.CreateAndOpenConnection() at Hangfire.MySql.MySqlStorage.UseConnection[T](Func`2 func) at Hangfire.States.BackgroundJobStateChanger.GetJobData(StateChangeContext context) at Hangfire.States.BackgroundJobStateChanger.ChangeState(StateChangeContext context) at Hangfire.Server.Worker.TryChangeState(BackgroundProcessContext context, IStorageConnection connection, IFetchedJob fetchedJob, IState state, String[] expectedStates, CancellationToken initializeToken, CancellationToken abortToken)
-
RE: MariaDB "Too many connections"
@theopenem_admin The issue is back, unfortunately, it just took a couple days to show up again. I set innodb_buffer_pool_size=10GB, and it is using 5.2GB of memory. Should it be using that variable's worth of memory?
The results of show processlist; in MariaDB are here.
-
RE: MariaDB "Too many connections"
@theopenem_admin This solved the issue, thank you!
-
MariaDB "Too many connections"
Hello!
I have an install of Theopenem at a school system with five com servers in a cluster and 4178 endpoints. Every morning from around 7:45-9, it becomes unusably slow, with weird errors and access denied pages. After this period every morning it's fine, with everything checking in and responding normally. Digging into the logs, MariaDB is having a fit, giving this "too many connections" error up to around a dozen times per second. Is there anything I can do to lighten the load on the database? What causes this?
-
RE: Self-service portal
I created a super basic implementation of a self-service portal using the API, it works in a pinch but I wouldn't use it in production without heavy improvement. Mostly just curiosity about what's possible with the API
https://github.com/AidanRB/toem-store -
RE: Imaging unable to create partitions
I did some digging and it appears bootType is being incorrectly detected as legacy, so the script is formatting the drive as MBR.
$env:firmware_type
contains the correct value, EFI. I found that the boot type is determined usingConfirm-SecureBootUEFI
, interpreting a failure to run as legacy boot. This system does not support secure boot, causingConfirm-SecureBootUEFI
to crash, although it does use UEFI. Is there a reasonConfirm-SecureBootUEFI
is used instead of$env:firmware_type
for the boot type?