-
Notifications
You must be signed in to change notification settings - Fork 7
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
FRMC Staying White #5
Comments
Hi @kiligir I'm aware this is affecting multiple users, but I haven't been able to replicate it myself yet, so thanks for the sharing logs. I'm going to look to find a fix in the next week, life permitting. |
Take your time, my man. Thank you for the work! |
Json results from http://127.0.0.1:8080/getProdStats [{"ItemName": "Iron Ore","ProdPerMin": "P: 120.0/120.0/min - C: 0.0/0.0/min","ProdPercent": 1.0,"ConsPercent": 0.0,"CurrentProd":120.0,"MaxProd": 120.0,"CurrentConsumed": 0.0,"MaxConsumed": 0.0, "Type": "Belt"},{"ItemName": "Limestone","ProdPerMin": "P: 0.0/0.0/min - C: 0.0/0.0/min","ProdPercent": 0.0,"ConsPercent": 0.0,"CurrentProd":0.0,"MaxProd": 0.0,"CurrentConsumed": 0.0,"MaxConsumed": 0.0, "Type": "Belt"}] exporter
PROMETHEUS = BLANK grafana
I was having an issue where my pc was refusing connection as well but that doesnt seem to be the issue anymore (fixed by renaming folder to folder instead of new folder (3) not sure if that actually fixed it or if it fixed itself when i forse closed app and restarted) I have tried administrator on both satisfactory and the remote monitoring companion |
As a work around, you might be able to go to http://localhost:3000 in your
browser will the app is running.
When it says "actively refused the connection" it's usually because the
mod's web server isn't running.
Thanks for the extra info again. Much appreciated.
…On Mon, 28 Jun 2021, 22:14 kulcris, ***@***.***> wrote:
Json results from http://127.0.0.1:8080/getProdStats
[{"ItemName": "Iron Ore","ProdPerMin": "P: 120.0/120.0/min - C:
0.0/0.0/min","ProdPercent": 1.0,"ConsPercent":
0.0,"CurrentProd":120.0,"MaxProd": 120.0,"CurrentConsumed":
0.0,"MaxConsumed": 0.0, "Type": "Belt"},{"ItemName":
"Limestone","ProdPerMin": "P: 0.0/0.0/min - C: 0.0/0.0/min","ProdPercent":
0.0,"ConsPercent": 0.0,"CurrentProd":0.0,"MaxProd": 0.0,"CurrentConsumed":
0.0,"MaxConsumed": 0.0, "Type": "Belt"}]
exporter
Will contact Ficsit Remote Montioring on http://127.0.0.1:8080/
Begun exposing metrics at localhost:9000
Will collect power metrics from http://127.0.0.1:8080/getPowerData
Will collect production metrics from http://127.0.0.1:8080/getProdStats
No connection could be made because the target machine actively refused it. No connection could be made because the target machine actively refused it.
No connection could be made because the target machine actively refused it. No connection could be made because the target machine actively refused it.
No connection could be made because the target machine actively refused it. No connection could be made because the target machine actively refused it.
No connection could be made because the target machine actively refused it. No connection could be made because the target machine actively refused it.
No connection could be made because the target machine actively refused it. No connection could be made because the target machine actively refused it.
No connection could be made because the target machine actively refused it. No connection could be made because the target machine actively refused it.
No connection could be made because the target machine actively refused it. No connection could be made because the target machine actively refused it.
No connection could be made because the target machine actively refused it. No connection could be made because the target machine actively refused it.
PROMETHEUS = BLANK
grafana
t=2021-06-28T16:06:07-0500 lvl=info msg="Starting Grafana" logger=server version=7.5.7 commit=91de51771c branch=HEAD compiled=2021-05-17T14:16:45-0500
t=2021-06-28T16:06:07-0500 lvl=info msg="Config loaded from" logger=settings file=C:\\Users\\Chris\\Desktop\\folder\\grafana/conf/defaults.ini
t=2021-06-28T16:06:07-0500 lvl=info msg="Config loaded from" logger=settings file=C:\\Users\\Chris\\Desktop\\folder\\grafana\\bin\\config.ini
t=2021-06-28T16:06:07-0500 lvl=info msg="Path Home" logger=settings path=C:\\Users\\Chris\\Desktop\\folder\\grafana
t=2021-06-28T16:06:07-0500 lvl=info msg="Path Data" logger=settings path=C:\\Users\\Chris\\Desktop\\folder\\grafana\\data
t=2021-06-28T16:06:07-0500 lvl=info msg="Path Logs" logger=settings path=C:\\Users\\Chris\\Desktop\\folder\\grafana\\data\\log
t=2021-06-28T16:06:07-0500 lvl=info msg="Path Plugins" logger=settings path=C:\\Users\\Chris\\Desktop\\folder\\grafana\\data\\plugins
t=2021-06-28T16:06:07-0500 lvl=info msg="Path Provisioning" logger=settings path=C:\\Users\\Chris\\Desktop\\folder\\grafana\\conf\\provisioning
t=2021-06-28T16:06:07-0500 lvl=info msg="App mode production" logger=settings
t=2021-06-28T16:06:07-0500 lvl=info msg="Connecting to DB" logger=sqlstore dbtype=sqlite3
t=2021-06-28T16:06:07-0500 lvl=warn msg="SQLite database file has broader permissions than it should" logger=sqlstore path=C:\\Users\\Chris\\Desktop\\folder\\grafana\\data\\grafana.db mode=-rw-rw-rw- expected=-rw-r-----
t=2021-06-28T16:06:07-0500 lvl=info msg="Starting DB migrations" logger=migrator
t=2021-06-28T16:06:07-0500 lvl=info msg="migrations completed" logger=migrator performed=0 skipped=279 duration=500.2µs
t=2021-06-28T16:06:07-0500 lvl=info msg="Starting plugin search" logger=plugins
t=2021-06-28T16:06:07-0500 lvl=info msg="Registering plugin" logger=plugins id=input
t=2021-06-28T16:06:07-0500 lvl=info msg="HTTP Server Listen" logger=http.server address=[::]:3000 protocol=http subUrl= socket=
t=2021-06-28T16:06:07-0500 lvl=info msg="Request Completed" logger=context userId=1 orgId=1 uname=ficsit method=GET path=/api/datasources/uid/prometheus status=404 remote_addr=[::1] time_ms=13 size=35 referer=
t=2021-06-28T16:06:07-0500 lvl=eror msg="data source with the same name already exists" logger=context userId=1 orgId=1 uname=ficsit error="data source with the same name already exists" remote_addr=[::1]
t=2021-06-28T16:06:07-0500 lvl=info msg="Request Completed" logger=context userId=1 orgId=1 uname=ficsit method=POST path=/api/datasources status=409 remote_addr=[::1] time_ms=10 size=59 referer=
t=2021-06-28T16:06:07-0500 lvl=info msg="Request Completed" logger=context userId=1 orgId=1 uname=ficsit method=PUT path=/api/folders/ficsit status=404 remote_addr=[::1] time_ms=10 size=51 referer=
[image: image]
<https://user-images.githubusercontent.com/2667394/123704677-8a467a00-d82b-11eb-8964-e4414a4f6f81.png>
I was having an issue where my pc was refusing connection as well but that
doesnt seem to be the issue anymore (fixed by renaming folder to folder
instead of new folder (3) not sure if that actually fixed it or if it fixed
itself when i forse closed app and restarted)
I have tried administrator on both satisfactory and the remote monitoring
companion
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#5 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AANKTOTLMAJEVKZSQIDJNR3TVDQ23ANCNFSM47LATXBQ>
.
|
Interesting. I'll take a deeper look later this week. Thanks for persisting
with it.
…On Mon, 28 Jun 2021, 22:23 kulcris, ***@***.***> wrote:
[image: image]
<https://user-images.githubusercontent.com/2667394/123705875-1efda780-d82d-11eb-9207-6d282621187d.png>
when on ficsit org it shows nothing, but when i switch to main org it
shows a database i can look at
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#5 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AANKTOVJDA7VKR3RVNYFF4LTVDR55ANCNFSM47LATXBQ>
.
|
Last post i will make unless i fix it :P sorry about the spam ok yes the issue with main org and ficsit org was correct i must have done the Prometheus import (now have a fresh install) Here is the log from first time startup along with a few api calls i did to see how things were showing up From what i can tell the folder ficsit does not get created and instead the default dashboard gets put into "general" under "main org" looks like atleast one of the API calls are also wrong? I noticed you do "/api/datasources/uid/prometheus" when from what i can gather it should be "/api/datasources/name/prometheus" First startup log
http://localhost:3000/api/datasources
http://localhost:3000/api/orgs
|
#6 is an attempt to fix this. It'll get merged when I've time tomorrow. |
built but the datasource is still not being found according to the log (404) still white screen |
The 404 on the data source is a red herring, I think. Before it's created
for the first time, it gives a 404 to indicate it doesn't yet exist.
Thanks for building from that branch and trying it. I've not been able to
replicate what you're seeing yet, which is a little frustrating! The branch
in PR #6 largely focuses on simplifying and instrumenting, in the hopes of
getting it located.
Did the new logs show you anything? Does Visual Studio give you any useful
output?
…On Wed, 30 Jun 2021, 22:06 kulcris, ***@***.***> wrote:
built but the datasource is still not being found according to the log
(404) still white screen
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#5 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AANKTOSOZHJ67C2ZW6LHZL3TVOBMVANCNFSM47LATXBQ>
.
|
so one thing i noticed while looking at the code you never set the UID for prometheus so it gets randomly assigned, but then you search by UID |
only thing visual studio gave me was something along the lines of TAR exit with code 1 (for copying over grafana) |
Ooh, interesting. Thanks! Feel free to raise a PR on that if I don't get to
it before tomorrow.
…On Wed, 30 Jun 2021, 22:13 kulcris, ***@***.***> wrote:
so one thing i noticed while looking at the code you never set the UID for
prometheus so it gets randomly assigned, but then you search by UID
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#5 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AANKTOXXTXYZTDPX3AKQXU3TVOCHZANCNFSM47LATXBQ>
.
|
OH! logs show its still looking for ficsit org (anon user) sorry iv been playing around with it trying to get it to work with your current changes, i can edit but dont know enough to make large changes. il keep at messing with it though i feel like its almost there! |
this is my current log
|
I'm starting to think it's a problem with the web browser component I'm
using. It seems like Prometheus, Grafana, and the Prometheus exporter are
all behaving as they should; especially given that you're able to visit
Grafana in your regular browser. I'll look at how to debug that.
…On Wed, 30 Jun 2021, 22:58 kulcris, ***@***.***> wrote:
this is my current log
t=2021-06-30T16:57:59-0500 lvl=info msg="Starting Grafana" logger=server version=7.5.7 commit=91de51771c branch=HEAD compiled=2021-05-17T14:16:45-0500
t=2021-06-30T16:57:59-0500 lvl=info msg="Config loaded from" logger=settings file=C:\\Users\\Chris\\Desktop\\fic\\Companion\\bin\\Debug\\netcoreapp3.1\\grafana/conf/defaults.ini
t=2021-06-30T16:57:59-0500 lvl=info msg="Config loaded from" logger=settings file=C:\\Users\\Chris\\Desktop\\fic\\Companion\\bin\\Debug\\netcoreapp3.1\\grafana\\bin\\config.ini
t=2021-06-30T16:57:59-0500 lvl=info msg="Path Home" logger=settings path=C:\\Users\\Chris\\Desktop\\fic\\Companion\\bin\\Debug\\netcoreapp3.1\\grafana
t=2021-06-30T16:57:59-0500 lvl=info msg="Path Data" logger=settings path=C:\\Users\\Chris\\Desktop\\fic\\Companion\\bin\\Debug\\netcoreapp3.1\\grafana\\data
t=2021-06-30T16:57:59-0500 lvl=info msg="Path Logs" logger=settings path=C:\\Users\\Chris\\Desktop\\fic\\Companion\\bin\\Debug\\netcoreapp3.1\\grafana\\data\\log
t=2021-06-30T16:57:59-0500 lvl=info msg="Path Plugins" logger=settings path=C:\\Users\\Chris\\Desktop\\fic\\Companion\\bin\\Debug\\netcoreapp3.1\\grafana\\data\\plugins
t=2021-06-30T16:57:59-0500 lvl=info msg="Path Provisioning" logger=settings path=C:\\Users\\Chris\\Desktop\\fic\\Companion\\bin\\Debug\\netcoreapp3.1\\grafana\\conf\\provisioning
t=2021-06-30T16:57:59-0500 lvl=info msg="App mode production" logger=settings
t=2021-06-30T16:57:59-0500 lvl=info msg="Connecting to DB" logger=sqlstore dbtype=sqlite3
t=2021-06-30T16:57:59-0500 lvl=warn msg="SQLite database file has broader permissions than it should" logger=sqlstore path=C:\\Users\\Chris\\Desktop\\fic\\Companion\\bin\\Debug\\netcoreapp3.1\\grafana\\data\\grafana.db mode=-rw-rw-rw- expected=-rw-r-----
t=2021-06-30T16:57:59-0500 lvl=info msg="Starting DB migrations" logger=migrator
t=2021-06-30T16:57:59-0500 lvl=info msg="migrations completed" logger=migrator performed=0 skipped=279 duration=0s
t=2021-06-30T16:57:59-0500 lvl=info msg="Starting plugin search" logger=plugins
t=2021-06-30T16:57:59-0500 lvl=info msg="Registering plugin" logger=plugins id=input
t=2021-06-30T16:57:59-0500 lvl=info msg="HTTP Server Listen" logger=http.server address=[::]:3000 protocol=http subUrl= socket=
[2021-06-30T16:57:58.8986167-05:00] waiting for Grafana API to be available
[2021-06-30T16:57:59.4678937-05:00] Grafana API is ready
[2021-06-30T16:57:59.5442417-05:00] Created Grafana dashboard: Power
[2021-06-30T16:57:59.6062371-05:00] Created Grafana dashboard: Production
[2021-06-30T16:57:59.6228446-05:00] waiting for Grafana UI to be ready
[2021-06-30T16:57:59.6373413-05:00] Grafana UI is ready
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#5 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AANKTOQ3NYR337V34BNE6PTTVOHQ3ANCNFSM47LATXBQ>
.
|
Sorry I don't know.much about GitHub or I would have done one PR.
…On Thu, Jul 1, 2021, 8:25 AM Andy Hunt ***@***.***> wrote:
Brilliant! I'm glad it's working for you, and thanks for sticking with it.
I'll look at what exactly is wrong with WebView2 and put out a release
with that fix on top of PRs #6
<#6> #7
<#7> and #8
<#8>
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#5 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAULHAQKDPTOUGOX2RYPJNDTVRUD5ANCNFSM47LATXBQ>
.
|
It's cool. I'm happy with 2 PRs. They're easier to review and reason about. |
You might need to rebase your changes, if you haven't already. It's building and running fine from |
still white without edge beta installed |
[2021-07-01T15:36:47.0901367-05:00] initialising web view |
Oh, that's interesting! This could be a hard limitation of the web view
component. So much for being a drop in replacement for the standard WPF
browser control!
I wonder what else is out there ...
…On Thu, 1 Jul 2021, 21:37 kulcris, ***@***.***> wrote:
[2021-07-01T15:36:47.0901367-05:00] initialising web view
[2021-07-01T15:36:47.0948203-05:00] error initialising web view: Couldn't
find a compatible Webview2 Runtime installation to host WebViews.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#5 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AANKTOREEAGSSNQ3PZGK6U3TVTGZZANCNFSM47LATXBQ>
.
|
I think the fact it doesn't start properly without MS Edge installed is going to be a won't/can't fix on my part. I can't think of a better solution for displaying web pages in a Windows application than WebView2 as it stands, and requiring Edge to be installed looks to be a limitation of that. I'll cut a new release containing the fixes that've come out of this issue. Thanks for all your help, I really appreciate it. |
I've loaded up FRMC after Satfat started, launched the web server from the plugin, and... nothing. It's a white screen.
Under the Exporter tab I get:
Under the Prometheus tab I get absolutely nothing.
Under the Grafana tab I get:
I've made sure to add the four *.exe files to my firewall exceptions in Defender (running Win 10 Pro 19041.1052), and even went as far as to open 8080 and 9000 (which I really don't like at all.) I have, of course, restarted things. All to no avail!
The save file I'm dealing with has ~1200 hours on it and is very large, so that may be the problem. I've let the program run for a solid hour and no luck there either, just in case it was taking forever and lacked a loading bar.
The text was updated successfully, but these errors were encountered: