< 232022-08-24⋎25 >

Topic for #farmOS is: farmOS (farmos.org) is a free and open source, web-based farm management system. User guide: farmos.org/guide/ - Forum: farmOS.discourse.groupSet by mstenta on 2021-06-15 at 12:52
00:04*farmBOT has joined
07:06FarmerEd[m]0.5.4 works with the VM instance upgraded to Beta6
13:05symbioquine[m]<FarmerEd[m]> "0.5.4 works with the VM instance..." <- That's awesome
13:05symbioquine[m]I'm still curious to know why it wasn't working on your other setup though.
13:29FarmerEd[m]Yea, its a bit weird.
13:29FarmerEd[m]Apart from architecture, setup "should" be more or less the same for both except I have to access the Pi through a router using forwarding for port 443.
13:29symbioquine[m]> <@farmer-ed:matrix.org> Yea, its a bit weird.
13:29symbioquine[m]> Apart from architecture, setup "should" be more or less the same for both except I have to access the Pi through a router using forwarding for port 443.
13:29symbioquine[m]That should be fine
13:30symbioquine[m]If the page is loading, I wouldn't expect the TCP/IP layer to give us any trouble.
13:30FarmerEd[m]I'd have thought so too, just looking for differences........... or grasping at straws
13:30symbioquine[m]yeah
13:30FarmerEd[m]besides, no 404's
13:31symbioquine[m]Asset Link should periodically make requests to `/api` as one of the ways it checks connectivity. I guess I'd start there...
13:32symbioquine[m]Your screenshot showed that it didn't think it could connect to farmOS, so I'd expect some sort of issue with those requests.
13:32symbioquine[m]* checks connectivity (and logged-in-ness). I
13:35FarmerEd[m]yea, not logged-in-ness is bogey too. throws a 403 in console but nothing shown in app
13:35symbioquine[m]huh
13:36FarmerEd[m]the other system shows an orange banner as expected
13:36mstenta[m]CORS? self-signed certificate? session cookie not being shared?
13:36mstenta[m]not really following - just throwing out ideas ... :-)
13:37FarmerEd[m]self signed on the one that works
13:37FarmerEd[m]lets encrypt on the one that isn't
13:38symbioquine[m]> CORS
13:38symbioquine[m]Should be the same origin since Asset Link runs under the same domain
13:38mstenta[m]yea that's what i was thinking too...
13:38mstenta[m]it would show an error in console if it were related to cors
13:38symbioquine[m]yeah
13:41symbioquine[m]This is how Asset Link does the online/offline/logged-in-ness detection: github.com/symbioquine/farmOS_asset_link
13:45FarmerEd[m]I just have to feed the little people, be back shortly.
14:13FarmerEd[m]ah
14:13FarmerEd[m] if (farmOsVersion !== '2.x') {
14:13FarmerEd[m] this.canReachFarmOS.value = false;
14:13FarmerEd[m] return;
14:14FarmerEd[m]working one from API "version": "2.x",
14:15FarmerEd[m]not working one from API "version": "2.0.0-beta6",
14:15symbioquine[m]Ah :(
14:15symbioquine[m]Maybe there should be a "nominalVersion" field :)
14:15mstenta[m]nice detective work Farmer Ed !
14:16mstenta[m]or maybe a regex ("starts with 2")
14:16mstenta[m](assuming it's just to prevent v1)
14:16symbioquine[m]yeah...
14:18FarmerEd[m]mstenta[m]: Obviously spending far too much time at my computer these days 🤓
14:19symbioquine[m]Thanks for tracking that one down!
14:20symbioquine[m]I guess it goes to show that it's worth testing against the actual releases sometimes - not just recent dev versions :)
14:22FarmerEd[m]It's an interesting one all right
14:22FarmerEd[m]At least the version check works, maybe "Unsupported Version" should be displayed instead of "farmOS unreachable"
14:23symbioquine[m]> <@farmer-ed:matrix.org> It's an interesting one all right
14:23symbioquine[m]> At least the version check works, maybe "Unsupported Version" should be displayed instead of "farmOS unreachable"
14:23symbioquine[m]Yeah, I think you're right
14:23FarmerEd[m]* maybe "Unsupported farmOS Version" should
14:24symbioquine[m]I'd been thinking about that check like "Well, we got some JSON data, but don't really know what we're talking to..."
14:26symbioquine[m]farmOS 1.x returns a 404 for that URL
14:27mstenta[m]ah yea
14:28symbioquine[m]I didn't feel like going backwards and putting in logic specifically for detecting 1.x - especially since I doubt the module would even install there.
14:29symbioquine[m]The main reason that kind of check exists is for detecting network/proxy issues that might still return JSON
14:30symbioquine[m]Which admittedly is a bit of a longshot
14:30mstenta[m]makes sense
14:33FarmerEd[m]Maybe "farmOS version check failed"
14:34FarmerEd[m]Or "unexpected JSON"
14:35symbioquine[m]Yeah, I'll put in some sort of explanation
14:39FarmerEd[m]I only recently started tagging the ARM64 images correctly with the version, a few weeks ago it would have worked.
14:39FarmerEd[m]* have worked anyway.
15:13FarmerEd[m]Maybe to logic needs a bit of rework too, as the banner to inform me of not being logged in was also suppressed. It kind of makes sense for "farmOS unreachable" but perhaps not if you change that message.
15:15symbioquine[m]The login status check happens after the check for whether we're talking to a farmOS server
15:21FarmerEd[m]Which makes sense I suppose and unimportant if your new message is clear. (Don't mind me so)
23:40*evered[m] has joined

< 232022-08-24⋏25 >