esitarski / CrossMgr

Cyclo Cross Management Application
MIT License
40 stars 20 forks source link

Open New Race via RaceDB Server Error #126

Closed hainesj closed 4 months ago

hainesj commented 10 months ago

I am receiving an error when trying to open a new race from the RaceDB Server. I get an error indicating "No connection could be made because the target machine actively refused it" when clicking the update button to pull the event info for the race. See attached screen shot that shows the error message.

To Reproduce Steps to reproduce the behavior:

  1. Go to 'File on the top menu
  2. Click on ''File>Open From RaceDB Server
  3. Change the date on "All Events On'
  4. Click 'Update'

Expected behavior All the events should appear in the window on the right.

Screenshots See attached Screenshot.

Desktop (please complete the following information):

hainesj commented 10 months ago

This process worked last fall. I do not understand why it is not working now. This is frustrating as I can open a new edge window on my timing computer, type the url for the RaceDB and RaceDB opens.

esitarski commented 10 months ago

The detailed error says "Name resolution error" with "www.192.168.1.2:8000". That means the computer can't find that address.

The first thing to try is to open a browser and enter the url: www.192.168.1.2:8000 If that works, make the url in your configuration file fully qualified to "url=http://www.192.168.1.2:8000".

On Sat, Oct 14, 2023 at 7:19 PM hainesj @.***> wrote:

This process worked last fall. I do not understand why it is not working now. This is frustrating as I can open a new edge window on my timing computer, type the url for the RaceDB and RaceDB opens.

— Reply to this email directly, view it on GitHub https://github.com/esitarski/CrossMgr/issues/126#issuecomment-1763206155, or unsubscribe https://github.com/notifications/unsubscribe-auth/AABGXKI33BHQFFE2FT6UK63X7MMZNAVCNFSM6AAAAAA6AR5ZQSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONRTGIYDMMJVGU . You are receiving this because you are subscribed to this thread.Message ID: @.***>

--

Edward Sitarski

hainesj commented 10 months ago

when I opened a new browser window and typed in www.192.168.1.2:8000 RaceDB opened right up. when trying to upload results to RaceDB server I changed the config file and it would not connect. see attached screen shot. Screenshot 2023-10-16 223809

hainesj commented 10 months ago

did not mean to close. I tested the URL by opening a new browser window and RaceDB opened directly. Tried to upload results to the RaceDB server and could not connect. See the screen shots above.

cclague commented 10 months ago

I think you don't need the www. in the address

hainesj commented 10 months ago

The www. is defaulting in. I have tried restarting the computer to clear caches and jt still defaults to start "https://www." When I click on the Save and Verify button I get the popup window below the RaceDB Config File window. see below.

Screenshot 2023-10-17 193741

esitarski commented 10 months ago

A fix is now available (should be on github in about 30 minutes).

Download and install the latest version of CrossMgr. From the RaceDB|Config... dialog, set:

url=www,192,168,1.2:8000

That should do it.

The code was defaulting to https. Now, if you are running RaceDB from an IP address or "localhost", it assumes http (not encrypted). This wasn't 100% my fault- the "requests" library got a lot pickier about the url format. Previously it tried harder to figure things out.

There is a workaround - you can download the CrossMgr race files directly from the RaceDB web page, then drag-and-drop it into CrossMgr to open it.

On Wed, Oct 18, 2023 at 8:24 PM hainesj @.***> wrote:

The www. is defaulting in. I have tried restarting the computer to clear caches and jt still defaults to start "https://www." When I click on the Save and Verify button I get the popup window below the RaceDB Config File window. see below.

[image: Screenshot 2023-10-17 193741] https://user-images.githubusercontent.com/94753742/276439365-12d9506e-eed6-4feb-a8c4-459fd1504112.png

— Reply to this email directly, view it on GitHub https://github.com/esitarski/CrossMgr/issues/126#issuecomment-1769689933, or unsubscribe https://github.com/notifications/unsubscribe-auth/AABGXKLM5VGMD7RI3CS6STTYABXNLAVCNFSM6AAAAAA6AR5ZQSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONRZGY4DSOJTGM . You are receiving this because you commented.Message ID: @.***>

--

Edward Sitarski

hainesj commented 10 months ago

Ok I have got it to work - for both the Upload to RaceDB Server and the Open from RaceDB Server. I installed the latest version. I do not know why but I click the "Upload to RaceDB Server is still defaulting to The Upload Results to raceDB window shows "http://www.192.168.1.2:8000/RaceDB" I click the config... button and the URL = 192.168.1.2:8000. I then click "Save and Verify" I receive a Success message. (If I put in url=www.192.168.1.2:8000 I get an error message when I click the Save and Verify.) See below screen shot: Screenshot 2023-10-19 193859

When I go to upload I have to clear out everything from the left of "192.168..." and I get a Success message. See below screen shot:

Screenshot 2023-10-19 194039

Notice that the "http://" appeared to the left of the url again. I just deleted it and was able to upload the results from the other Races.

hainesj commented 10 months ago

Ok as the ol saying goes fix one thing another five pop up. I have installed the newest version of CrossMgr Video. It does not start. I think it is something to do with the directory structure within the CrossMgrVideo directory. See attached screen shots:

CrossMgr Video Error

kimble4 commented 10 months ago

On 20/10/2023 02:49, hainesj wrote:

Ok as the ol saying goes fix one thing another five pop up. I have installed the newest version of CrossMgr Video. It does not start. I think it is something to do with the directory structure within the CrossMgrVideo directory. See attached screen shots:

CrossMgr Video Error https://user-images.githubusercontent.com/94753742/276795302-5b791888-5903-4dd6-b656-770861826ff4.png

This is due to the new release of Pyinstaller. See https://github.com/esitarski/CrossMgr/issues/124

It will affect all the CrossMgr applications.

Kim. --

esitarski commented 10 months ago

Fixed in the latest version/ Now available for download.

Kim, have you tested this with all the other CrossMgr installs? It appears to work.

Pyinstaller does add a new folder to file, however, CrossMgr (and most of the other exes) already check for this and go one directory higher on the tree.

On Fri, Oct 20, 2023 at 7:17 AM Kim Wall @.***> wrote:

On 20/10/2023 02:49, hainesj wrote:

Ok as the ol saying goes fix one thing another five pop up. I have installed the newest version of CrossMgr Video. It does not start. I think it is something to do with the directory structure within the CrossMgrVideo directory. See attached screen shots:

CrossMgr Video Error < https://user-images.githubusercontent.com/94753742/276795302-5b791888-5903-4dd6-b656-770861826ff4.png>

This is due to the new release of Pyinstaller. See https://github.com/esitarski/CrossMgr/issues/124

It will affect all the CrossMgr applications.

Kim.

— Reply to this email directly, view it on GitHub https://github.com/esitarski/CrossMgr/issues/126#issuecomment-1772553033, or unsubscribe https://github.com/notifications/unsubscribe-auth/AABGXKN375KUTJPQKJDAHUTYAJMUFAVCNFSM6AAAAAA6AR5ZQSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONZSGU2TGMBTGM . You are receiving this because you commented.Message ID: @.***>

--

Edward Sitarski

kimble4 commented 10 months ago

It was CrossMgrImpinj that I initially discovered the problem with. I then tried one of the other applications - likely CrossMgrVideo - before working out there was a breaking change in Pyinstaller.

At which point I never thought to try CrossMgr or SeriesMgr, assuming it would be broken for all the applications.

Playing around now, it looks like CrossMgrImpinj needs the same fix to make it try the parent directory as CrossMgrVideo. I can confirm that the current CrossMgr, CrossMgrVideo and SeriesMgr work under Windows.

Kim.

On 20/10/2023 14:27, Edward Sitarski wrote:

Fixed in the latest version/ Now available for download.

Kim, have you tested this with all the other CrossMgr installs? It appears to work.

Pyinstaller does add a new folder to file, however, CrossMgr (and most of the other exes) already check for this and go one directory higher on the tree.

On Fri, Oct 20, 2023 at 7:17 AM Kim Wall @.***> wrote:

On 20/10/2023 02:49, hainesj wrote:

Ok as the ol saying goes fix one thing another five pop up. I have installed the newest version of CrossMgr Video. It does not start. I think it is something to do with the directory structure within the CrossMgrVideo directory. See attached screen shots:

CrossMgr Video Error <

https://user-images.githubusercontent.com/94753742/276795302-5b791888-5903-4dd6-b656-770861826ff4.png>

This is due to the new release of Pyinstaller. See https://github.com/esitarski/CrossMgr/issues/124

It will affect all the CrossMgr applications.

Kim.

— Reply to this email directly, view it on GitHub

https://github.com/esitarski/CrossMgr/issues/126#issuecomment-1772553033, or unsubscribe

https://github.com/notifications/unsubscribe-auth/AABGXKN375KUTJPQKJDAHUTYAJMUFAVCNFSM6AAAAAA6AR5ZQSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONZSGU2TGMBTGM . You are receiving this because you commented.Message ID: @.***>

--

Edward Sitarski

— Reply to this email directly, view it on GitHub https://github.com/esitarski/CrossMgr/issues/126#issuecomment-1772740257, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHLK6TU6VY54TJ3GXVJ4HVDYAJ33HAVCNFSM6AAAAAA6AR5ZQSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONZSG42DAMRVG4. You are receiving this because you commented.Message ID: @.***>

esitarski commented 10 months ago

Thanks Kim, You are correct that CrossMgrImpinj also had an issue, and this is now fixed in the latest version. Judging from the code, it looks like this issues has come up before.

On Fri, Oct 20, 2023 at 6:59 PM Kim Wall @.***> wrote:

It was CrossMgrImpinj that I initially discovered the problem with. I then tried one of the other applications - likely CrossMgrVideo - before working out there was a breaking change in Pyinstaller.

At which point I never thought to try CrossMgr or SeriesMgr, assuming it would be broken for all the applications.

Playing around now, it looks like CrossMgrImpinj needs the same fix to make it try the parent directory as CrossMgrVideo. I can confirm that the current CrossMgr, CrossMgrVideo and SeriesMgr work under Windows.

Kim.

On 20/10/2023 14:27, Edward Sitarski wrote:

Fixed in the latest version/ Now available for download.

Kim, have you tested this with all the other CrossMgr installs? It appears to work.

Pyinstaller does add a new folder to file, however, CrossMgr (and most of the other exes) already check for this and go one directory higher on the tree.

On Fri, Oct 20, 2023 at 7:17 AM Kim Wall @.***> wrote:

On 20/10/2023 02:49, hainesj wrote:

Ok as the ol saying goes fix one thing another five pop up. I have installed the newest version of CrossMgr Video. It does not start. I think it is something to do with the directory structure within the CrossMgrVideo directory. See attached screen shots:

CrossMgr Video Error <

https://user-images.githubusercontent.com/94753742/276795302-5b791888-5903-4dd6-b656-770861826ff4.png>

This is due to the new release of Pyinstaller. See https://github.com/esitarski/CrossMgr/issues/124

It will affect all the CrossMgr applications.

Kim.

— Reply to this email directly, view it on GitHub

< https://github.com/esitarski/CrossMgr/issues/126#issuecomment-1772553033>,

or unsubscribe

< https://github.com/notifications/unsubscribe-auth/AABGXKN375KUTJPQKJDAHUTYAJMUFAVCNFSM6AAAAAA6AR5ZQSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONZSGU2TGMBTGM>

. You are receiving this because you commented.Message ID: @.***>

--

Edward Sitarski

— Reply to this email directly, view it on GitHub < https://github.com/esitarski/CrossMgr/issues/126#issuecomment-1772740257>, or unsubscribe < https://github.com/notifications/unsubscribe-auth/AHLK6TU6VY54TJ3GXVJ4HVDYAJ33HAVCNFSM6AAAAAA6AR5ZQSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONZSG42DAMRVG4>.

You are receiving this because you commented.Message ID: @.***>

— Reply to this email directly, view it on GitHub https://github.com/esitarski/CrossMgr/issues/126#issuecomment-1773487999, or unsubscribe https://github.com/notifications/unsubscribe-auth/AABGXKKYOKCTJDJBQYTW6VTYAL65HAVCNFSM6AAAAAA6AR5ZQSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONZTGQ4DOOJZHE . You are receiving this because you commented.Message ID: @.***>

--

Edward Sitarski

stuartlynne commented 5 months ago

I am seeing similar issues with CrossMgr 3.1.42-20240226141745 (downloaded and installed today, March 10, 2024).

First cannot get it to accept just an IP address.

image

And with a name defined in /etc/hosts:

image

The name in hosts does not actually work as RaceDB does not allow it (domain name provided is not valid according to RFC 1034/1035, I'll add an issue in RaceDB for that.)

esitarski commented 5 months ago

I am confused. How are you inputting the IP address? Are you typing it on the "Open RaceDB Event" page? Let me know. Thanks.

When I type in 192.168.250.51:8080, CrossMgr adjusts this to http://192.168.250.51:8080/RaceDB which is required by the "requests" module, which is more strict than it used to be (not my fault ;). On your screenshot, I see a www. prefix, which will be rejected by "requests".

On Sun, Mar 10, 2024 at 7:54 PM Stuart Lynne @.***> wrote:

I am seeing similar issues with CrossMgr 3.1.42-20240226141745 (downloaded and installed today, March 10, 2024).

First cannot get it to accept just an IP address.

image.png (view on web) https://github.com/esitarski/CrossMgr/assets/297561/5e8f976a-b797-411d-a7de-e21cac8cdad4

And with a name defined in /etc/hosts:

image.png (view on web) https://github.com/esitarski/CrossMgr/assets/297561/c62edab7-7b01-4e73-82a6-766006834b5d

The name in hosts does not actually work as RaceDB does not allow it (domain name provided is not valid according to RFC 1034/1035, I'll add an issue in RaceDB for that.)

— Reply to this email directly, view it on GitHub https://github.com/esitarski/CrossMgr/issues/126#issuecomment-1987417992, or unsubscribe https://github.com/notifications/unsubscribe-auth/AABGXKNXYZBCPLHBHXBS5Y3YXT6FZAVCNFSM6AAAAAA6AR5ZQSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSOBXGQYTOOJZGI . You are receiving this because you commented.Message ID: @.***>

--

Edward Sitarski

stuartlynne commented 5 months ago

In CrossMgr: File/Open from RaceDB Server [image: unnamed.png]

Type in IP address to replace localhost [image: unnamed.png]

Click on Update [image: unnamed.png]

On Tue, Mar 12, 2024 at 5:53 AM Edward Sitarski @.***> wrote:

I am confused. How are you inputting the IP address? Are you typing it on the "Open RaceDB Event" page? Let me know. Thanks.

When I type in 192.168.250.51:8080, CrossMgr adjusts this to http://192.168.250.51:8080/RaceDB which is required by the "requests" module, which is more strict than it used to be (not my fault ;). On your screenshot, I see a www. prefix, which will be rejected by "requests".

On Sun, Mar 10, 2024 at 7:54 PM Stuart Lynne @.***> wrote:

I am seeing similar issues with CrossMgr 3.1.42-20240226141745 (downloaded and installed today, March 10, 2024).

First cannot get it to accept just an IP address.

image.png (view on web) < https://github.com/esitarski/CrossMgr/assets/297561/5e8f976a-b797-411d-a7de-e21cac8cdad4>

And with a name defined in /etc/hosts:

image.png (view on web) < https://github.com/esitarski/CrossMgr/assets/297561/c62edab7-7b01-4e73-82a6-766006834b5d>

The name in hosts does not actually work as RaceDB does not allow it (domain name provided is not valid according to RFC 1034/1035, I'll add an issue in RaceDB for that.)

— Reply to this email directly, view it on GitHub < https://github.com/esitarski/CrossMgr/issues/126#issuecomment-1987417992>,

or unsubscribe < https://github.com/notifications/unsubscribe-auth/AABGXKNXYZBCPLHBHXBS5Y3YXT6FZAVCNFSM6AAAAAA6AR5ZQSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSOBXGQYTOOJZGI>

. You are receiving this because you commented.Message ID: @.***>

--

Edward Sitarski

— Reply to this email directly, view it on GitHub https://github.com/esitarski/CrossMgr/issues/126#issuecomment-1991584831, or unsubscribe https://github.com/notifications/unsubscribe-auth/AACIUWJ4KJ7LBGON7A27DJ3YX33DHAVCNFSM6AAAAAA6AR5ZQSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSOJRGU4DIOBTGE . You are receiving this because you commented.Message ID: @.***>

-- __O____ -\<,____ ____()/()___


@.***>__604-518-1749(m)604-461-7532(h)

esitarski commented 5 months ago

Figured it out. Fixed in latest CrossMgr.

On Tue, Mar 12, 2024 at 12:48 PM Stuart Lynne @.***> wrote:

In CrossMgr: File/Open from RaceDB Server [image: unnamed.png]

Type in IP address to replace localhost [image: unnamed.png]

Click on Update [image: unnamed.png]

On Tue, Mar 12, 2024 at 5:53 AM Edward Sitarski @.***> wrote:

I am confused. How are you inputting the IP address? Are you typing it on the "Open RaceDB Event" page? Let me know. Thanks.

When I type in 192.168.250.51:8080, CrossMgr adjusts this to http://192.168.250.51:8080/RaceDB which is required by the "requests" module, which is more strict than it used to be (not my fault ;). On your screenshot, I see a www. prefix, which will be rejected by "requests".

On Sun, Mar 10, 2024 at 7:54 PM Stuart Lynne @.***> wrote:

I am seeing similar issues with CrossMgr 3.1.42-20240226141745 (downloaded and installed today, March 10, 2024).

First cannot get it to accept just an IP address.

image.png (view on web) <

https://github.com/esitarski/CrossMgr/assets/297561/5e8f976a-b797-411d-a7de-e21cac8cdad4>

And with a name defined in /etc/hosts:

image.png (view on web) <

https://github.com/esitarski/CrossMgr/assets/297561/c62edab7-7b01-4e73-82a6-766006834b5d>

The name in hosts does not actually work as RaceDB does not allow it (domain name provided is not valid according to RFC 1034/1035, I'll add an issue in RaceDB for that.)

— Reply to this email directly, view it on GitHub < https://github.com/esitarski/CrossMgr/issues/126#issuecomment-1987417992>,

or unsubscribe <

https://github.com/notifications/unsubscribe-auth/AABGXKNXYZBCPLHBHXBS5Y3YXT6FZAVCNFSM6AAAAAA6AR5ZQSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSOBXGQYTOOJZGI>

. You are receiving this because you commented.Message ID: @.***>

--

Edward Sitarski

— Reply to this email directly, view it on GitHub < https://github.com/esitarski/CrossMgr/issues/126#issuecomment-1991584831>,

or unsubscribe < https://github.com/notifications/unsubscribe-auth/AACIUWJ4KJ7LBGON7A27DJ3YX33DHAVCNFSM6AAAAAA6AR5ZQSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSOJRGU4DIOBTGE>

. You are receiving this because you commented.Message ID: @.***>

-- __O____ -\<,____ ____()/()___


@.***>__604-518-1749(m)604-461-7532(h)

— Reply to this email directly, view it on GitHub https://github.com/esitarski/CrossMgr/issues/126#issuecomment-1992113482, or unsubscribe https://github.com/notifications/unsubscribe-auth/AABGXKK5GNYPELQ4WDYRMPDYX4WXJAVCNFSM6AAAAAA6AR5ZQSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSOJSGEYTGNBYGI . You are receiving this because you commented.Message ID: @.***>

--

Edward Sitarski