INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: Feature Request: More robust Library Backup messages  (Read 1104 times)

markf2748

  • Regular Member
  • Citizen of the Universe
  • *****
  • Posts: 849
Feature Request: More robust Library Backup messages
« on: July 07, 2021, 12:36:47 pm »

Normal:  When doing a Library Backup to a local disk or fast server, I get a pop up message before the backup starts and a completion message when successful.  All good.

Problem:  When a networked backup server is slow and takes seconds or even minutes, then there are no messages at all, even when the backup presumably completes successfully.

Example:  Microsoft OneDrive performance varies widely for no explicable reason, ranging from very fast, to a few seconds and sometimes much longer.  So oftentimes when backing up to OneDrive I see no library backup messaging at all.  Checking OneDrive status in Win10 File Explorer when I don't get messages, it invariably shows the double circular arrow icon for active synchronization until the file save is silently completed.

Request:  (1) Provide library backup messages in all situations and (2) add a progress bar.  However, do not make it blocking, i.e. I want the rest of MC to remain fully operational while the backup is in progress (maintain current non-blocking behavior).

For the record, here are the popups:
https://www.dropbox.com/s/zug9m41jkgvh71s/Anomalous%20Behavior%20of%20Popup%20Behavior%20for%20File.pdf?dl=0
Logged

markf2748

  • Regular Member
  • Citizen of the Universe
  • *****
  • Posts: 849
Re: Feature Request: More robust Library Backup messages
« Reply #1 on: July 07, 2021, 05:52:45 pm »

Long history of OneDrive sync problems:

https://techcommunity.microsoft.com/t5/onedrive-for-business/one-drive-syncing-is-too-much-slow/m-p/1228336

Looks like Microsoft is actively trying to resolve the issues:

https://support.microsoft.com/en-us/office/onedrive-release-notes-845dcf18-f921-435e-bf28-4e24b95e5fc0#ID0EACAAA=Windows

Nevertheless, JRiver may want to re-think the MC implementation of messaging for Library Backups.
Logged

markf2748

  • Regular Member
  • Citizen of the Universe
  • *****
  • Posts: 849
Re: Feature Request: More robust Library Backup messages
« Reply #2 on: July 16, 2021, 01:46:26 pm »

This problem is getting to be a real annoyance, and I am no longer sure if it is limited to OneDrive.

1) First thing today, File > Library > Back Up Library worked with normal popups for saving to my OneDrive folder and also an alternate folder, both on my C: drive.

2) Then later today, File > Library > Backup failed to exhibit popups and just automatically saved to these locations, including thumbnails without giving me any choice or completion acknowledgment.

Once MC is in this "no-popup for library saves" mode, the only way I find to restore the popups is to log out of my Win10 session and log back in again.

I saved short MC log files, bracketing the saves, for both cases 1) and 2).  In case 2 only, the log has 22 lines of the following form:

0019194: 5208: General: CReferenceCountedSocket::Close: SOCKET_DEBUG: closesocket() closing xxxx

where xxxx is a four digit integer in the range 2000-6000 and of course the times vary slightly.

Both from the size of the backup files and my examining the logs, it seems in all cases valid backups get written.  I don't encounter any anomalies when playing audio.  The above logs are a first try - I have not verified by repeating.

MC 28.0.39 on Win10 64-bit.

A note on OneDrive:  From my perspective, the current OneDrive app on Win10 works rather well.  I have it set to its 3rd file save mode, in which it saves to your local OneDrive directory immediately, apparently like any other local file save, and then takes as much time as it needs to upload to the cloud.  There is a convenient task bar icon which shows the state of any current uploads, as well as your upload history.  I find this very useful as a double backup for my MC server library, and a convenient transport for restoring that library on clients for their local use.

Logged

markf2748

  • Regular Member
  • Citizen of the Universe
  • *****
  • Posts: 849
Re: Feature Request: More robust Library Backup messages
« Reply #3 on: July 17, 2021, 03:00:30 pm »

I confirm this problem very likely has nothing to do with OneDrive.  It can occur when I only save library backups locally for the entire MC session.  Last night, there were normal messages on several library backups of the MC server.  This morning, no library backup popup messages (the MC session was left running overnight).  Also, on a client PC today (running local library), the library backup showed popups even though there were SOCKET_DEBUG lines in the associated log file between start and end of the backup.

Whenever there are normal popup messages, the following line in the log appears in two places as part of the backup thread:
             General: CMCResourceHelper::GetIsModalPopupShowing: Main window disabled
When expected popups are missing, above line does not appear in the backup thread.  Why??

Sample log segment when popups show normally (excerpts of thread ID 18296 shown):
.
. (other threads)
.
0009100: 18296: General: CMCResourceHelper::GetIsModalPopupShowing: Menu showing
0009105: 18296: Database: MCDB::Backup: Start
0009108: 18296: Database: MCDB::Backup: Getting zip filename
.
. (other threads)
.
0020472: 18296: Database: MCDB::Backup: File open dialog returned: C:\Users\markf\........\Media Center 28\Library Backups\Gen8NUC\MC Library Backup (Main Library - 2021-07-16 13-23).zip
.
. (other threads)
.
0022595: 18296: General: CMCResourceHelper::GetIsModalPopupShowing: Main window disabled
0022644: 18296: Database: MCDB::Backup: Starting backup
0022644: 18296: Database: MCDB::Backup: Folder: C:\Users\markf\AppData\Roaming\J River\Media Center 28\Library\
0022644: 18296: Database: MCDB::Backup: Locking
0022644: 18296: Database: MCDB::Backup: Saving database
0022644: 18296: Database: MCDB::Save: Start
0022644: 18296: Database: MCDB::Save: Saving (bCleanDB: 0, bForce: 0)
0022644: 18296: Database: CPlaylistsDB::Save: Start
0022644: 18296: Database: CPlaylistsDB::Save: Finish (0 ms)
0022644: 18296: Database: MCDB::Save: Finish (0 ms)
0022644: 18296: Database: MCDB::Backup: Gathering files
0022645: 18296: Database: MCDB::Backup: Releasing lock
0022645: 18296: Database: MCDB::Backup: Zipping files as: C:\Users\markf\Documents\computer-software\JRiver Media Center\Media Center 28\Library Backups\Gen8NUC\MC Library Backup (Main Library - 2021-07-16 13-23).zip
0023216: 18296: Database: MCDB::Backup: Saving settings
0023481: 18296: Database: MCDB::Backup: Finished, showing status (bResult: 1)
0025251: 18296: General: CMCResourceHelper::GetIsModalPopupShowing: Main window disabled
0025299: 18296: Database: MCDB::Backup: Finish (16193 ms)
Logged

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 42441
  • Shoes gone again!
Re: Feature Request: More robust Library Backup messages
« Reply #4 on: July 20, 2021, 06:03:02 am »

We found this was because the program is getting set to error free mode.  Probably JRemote but we're still investigating.
Logged
Matt Ashland, JRiver Media Center

markf2748

  • Regular Member
  • Citizen of the Universe
  • *****
  • Posts: 849
Re: Feature Request: More robust Library Backup messages
« Reply #5 on: July 20, 2021, 02:52:28 pm »

I find consistently that using JRemote2 to play a track from the server (via BubbleUPnP to Chromecast Audio in my case) sends the server into Error Free Mode which hides the pop up menus discussed above.  Library Backup to OneDrive does not induce Error Free Mode.

Two ways to exit Error Free Mode and restore pop up displays:

1) Start MC GUI. Enter MCWS command in browser:
http://localhost:52199/MCWS/v1/Configuration/ErrorFreeMode?ErrorFree=0
& sign in if requested.

or

2) Log out of windows session.  Log back in and start MC GUI.

To check current state, 0 (not in Error Free Mode) or 1 (in Error Free Mode), Start MC GUI, then enter in browser:
http://localhost:52199/MCWS/v1/Configuration/ErrorFreeMode

References:
https://yabb.jriver.com/interact/index.php/topic,115546.0.html
https://yabb.jriver.com/interact/index.php/topic,130105.0.html

@Matt - thanks for help with this.




Logged

markf2748

  • Regular Member
  • Citizen of the Universe
  • *****
  • Posts: 849
Re: Feature Request: More robust Library Backup messages
« Reply #6 on: July 23, 2021, 01:26:08 pm »

Confirmed that in new release MC 28.0.44, if the MC server is in Error Free Mode, then server "Library Back Up..." messages now appear just like with ErrorFreeMode=0.
Thanks.

Logged
Pages: [1]   Go Up