INTERACT FORUM

More => Old Versions => Media Center 16 (Development Ended) => Topic started by: Qythyx on August 30, 2011, 10:32:57 pm

Title: Qythyx: Library Server problem
Post by: Qythyx on August 30, 2011, 10:32:57 pm
I've been having persistent problems with accessing my Library Server for a few months now, but never bothered to mention it before. I don't know exactly when it started.

The problem is that when I first start MC on my client PC it says that it fails to load the library from the server. If I retry loading enough times it eventually works, but this sometimes takes 5, 10, or even more retries.

Is there anything I can do to help diagnose this?

Here are the portions of the log I guess are relevant:


0000452: 11632: Reader: CInternetReader::Open: Start
0000452: 11632: Reader: CInternetReader::Open: Opening http://<my_secret_url>:80/MCWS/v1/Alive
0000468: 11912: Reader: CInternetReader::Thread: Start
0000468: 11912: Reader: CInternetReader::Connect: Start
0000468: 11912: Reader: CInternetReader::Connect: Finish (0 ms)
0000468: 11912: Reader: CInternetReader::DownloadFromHTTPURL: Start
0001419: 11912: Reader: CInternetReader::DownloadFromHTTPURL: Success
0001419: 11912: Reader: CInternetReader::DownloadFromHTTPURL: Finish (951 ms)
0001419: 11912: Reader: CInternetReader::Thread: Finish (951 ms)
0001419: 11632: Reader: CInternetReader::Open: Finish (967 ms)
0001419: 11632: Reader: CInternetReader::Close: Start
0001450: 11632: Reader: CInternetReader::Close: Finish (31 ms)
0001450: 11632: Reader: CInternetReader::Open: Start
0001450: 11632: Reader: CInternetReader::Open: Opening http://<my_secret_url>:80/MCWS/v1/Authenticate
0001450: 10004: Reader: CInternetReader::Thread: Start
0001450: 10004: Reader: CInternetReader::Connect: Start
0001450: 10004: Reader: CInternetReader::Connect: Finish (0 ms)
0001450: 10004: Reader: CInternetReader::DownloadFromHTTPURL: Start
0002324: 10004: Reader: CInternetReader::DownloadFromHTTPURL: Success
0002324: 10004: Reader: CInternetReader::DownloadFromHTTPURL: Finish (874 ms)
0002324: 10004: Reader: CInternetReader::Thread: Finish (874 ms)
0002324: 11632: Reader: CInternetReader::Open: Finish (874 ms)
0002324: 11632: Reader: CInternetReader::Close: Start
0002371: 11632: Reader: CInternetReader::Close: Finish (47 ms)
0003666: 11632: Reader: CInternetReader::Open: Start
0003666: 11632: Reader: CInternetReader::Open: Opening http://<my_secret_url>:80/MCWS/v1/Library/Get
0003666: 14344: Reader: CInternetReader::Thread: Start
0003666: 14344: Reader: CInternetReader::Connect: Start
0003666: 14344: Reader: CInternetReader::Connect: Finish (0 ms)
0003666: 14344: Reader: CInternetReader::DownloadFromHTTPURL: Start
0009453: 14344: Reader: CInternetReader::DownloadFromHTTPURL: Failed (header status code: 501)
0009453: 14344: Reader: CInternetReader::DownloadFromHTTPURL: Finish (5787 ms)
0009453: 14344: Reader: CInternetReader::Thread: Finish (5787 ms)
0009453: 11632: Reader: CInternetReader::Open: ConnectToURL failed, m_bConnectError=TRUE, URL=http://<my_secret_url>:80/MCWS/v1/Library/Get
0009453: 11632: Reader: CInternetReader::Close: Start
0009453: 11632: Reader: CInternetReader::Close: Finish (0 ms)
0009453: 11632: Reader: CInternetReader::Open: Finish (5787 ms)
Title: Qythyx: Library Server problem
Post by: BryanC on August 30, 2011, 11:01:21 pm
I've been having persistent problems with accessing my Library Server for a few months now, but never bothered to mention it before. I don't know exactly when it started.

You use port 80 for your library server? Could be something competing for that port, maybe you should try changing it.
Title: Qythyx: Library Server problem
Post by: Qythyx on August 30, 2011, 11:40:00 pm
Unfortunately I can't, other ports are firewalled from my office.

Also, once the library loads, I never have problems. All music and album art loads just fine.
Title: Qythyx: Library Server problem
Post by: Matt on September 01, 2011, 12:00:24 pm
I've been having persistent problems with accessing my Library Server for a few months now, but never bothered to mention it before. I don't know exactly when it started.

The problem is that when I first start MC on my client PC it says that it fails to load the library from the server. If I retry loading enough times it eventually works, but this sometimes takes 5, 10, or even more retries.

Is there anything I can do to help diagnose this?

Here are the portions of the log I guess are relevant:


0000452: 11632: Reader: CInternetReader::Open: Start
0000452: 11632: Reader: CInternetReader::Open: Opening http://<my_secret_url>:80/MCWS/v1/Alive
0000468: 11912: Reader: CInternetReader::Thread: Start
0000468: 11912: Reader: CInternetReader::Connect: Start
0000468: 11912: Reader: CInternetReader::Connect: Finish (0 ms)
0000468: 11912: Reader: CInternetReader::DownloadFromHTTPURL: Start
0001419: 11912: Reader: CInternetReader::DownloadFromHTTPURL: Success
0001419: 11912: Reader: CInternetReader::DownloadFromHTTPURL: Finish (951 ms)
0001419: 11912: Reader: CInternetReader::Thread: Finish (951 ms)
0001419: 11632: Reader: CInternetReader::Open: Finish (967 ms)
0001419: 11632: Reader: CInternetReader::Close: Start
0001450: 11632: Reader: CInternetReader::Close: Finish (31 ms)
0001450: 11632: Reader: CInternetReader::Open: Start
0001450: 11632: Reader: CInternetReader::Open: Opening http://<my_secret_url>:80/MCWS/v1/Authenticate
0001450: 10004: Reader: CInternetReader::Thread: Start
0001450: 10004: Reader: CInternetReader::Connect: Start
0001450: 10004: Reader: CInternetReader::Connect: Finish (0 ms)
0001450: 10004: Reader: CInternetReader::DownloadFromHTTPURL: Start
0002324: 10004: Reader: CInternetReader::DownloadFromHTTPURL: Success
0002324: 10004: Reader: CInternetReader::DownloadFromHTTPURL: Finish (874 ms)
0002324: 10004: Reader: CInternetReader::Thread: Finish (874 ms)
0002324: 11632: Reader: CInternetReader::Open: Finish (874 ms)
0002324: 11632: Reader: CInternetReader::Close: Start
0002371: 11632: Reader: CInternetReader::Close: Finish (47 ms)
0003666: 11632: Reader: CInternetReader::Open: Start
0003666: 11632: Reader: CInternetReader::Open: Opening http://<my_secret_url>:80/MCWS/v1/Library/Get
0003666: 14344: Reader: CInternetReader::Thread: Start
0003666: 14344: Reader: CInternetReader::Connect: Start
0003666: 14344: Reader: CInternetReader::Connect: Finish (0 ms)
0003666: 14344: Reader: CInternetReader::DownloadFromHTTPURL: Start
0009453: 14344: Reader: CInternetReader::DownloadFromHTTPURL: Failed (header status code: 501)
0009453: 14344: Reader: CInternetReader::DownloadFromHTTPURL: Finish (5787 ms)
0009453: 14344: Reader: CInternetReader::Thread: Finish (5787 ms)
0009453: 11632: Reader: CInternetReader::Open: ConnectToURL failed, m_bConnectError=TRUE, URL=http://<my_secret_url>:80/MCWS/v1/Library/Get
0009453: 11632: Reader: CInternetReader::Close: Start
0009453: 11632: Reader: CInternetReader::Close: Finish (0 ms)
0009453: 11632: Reader: CInternetReader::Open: Finish (5787 ms)


It's strange that it's taking a full second to respond to http://<my_secret_url>:80/MCWS/v1/Alive.  That should be really fast.

What if you test the URLs in a browser?

This should return a ZIP of the library:
http://<my_secret_url>:80/MCWS/v1/Library/Get

We use a 60 second timeout for that call, so I don't think it's a timeout issue.

Thanks.