sircharlo / meeting-media-manager

A cross platform app to download and present media (pictures and videos) for congregation meetings of Jehovah’s Witnesses in any language. Features include recurring and custom media management, congregation sync, and media presentation tools for hybrid, in-person or fully remote Zoom meetings.
GNU Affero General Public License v3.0
133 stars 23 forks source link

Congregation Sync Not Working #545

Closed advenimus closed 1 year ago

advenimus commented 1 year ago

Describe the bug

The issue seems to be across all devices we use. Since update to 22.10.1 the sync does not work. We see the files go into the webdav disk but are not grabbed in next sync even on originating device.

To Reproduce

Steps to reproduce the behavior: Just upload custom media then sync. Doesn't work.

Anonymized prefs.json

{
  "app": {
    "autoOpenFolderWhenDone": true,
    "autoQuitWhenDone": false,
    "autoRunAtBoot": false,
    "autoStartSync": false,
    "congregationName": "Brighton",
    "disableHardwareAcceleration": false,
    "localAppLang": "en",
    "localOutputPath": "***",
    "obs": {
      "enable": false,
      "port": "***",
      "password": "***",
      "mediaScene": "Window Capture",
      "cameraScene": "Stage View",
      "useV4": true
    },
    "offline": false,
    "outputFolderDateFormat": "YYYY-MM-DD - dddd",
    "theme": "system"
  },
  "cong": {
    "server": "***",
    "port": "***",
    "user": "***",
    "password": "***",
    "dir": "***"
  },
  "media": {
    "enableMediaDisplayButton": true,
    "enableMp4Conversion": false,
    "enablePp": false,
    "enableVlcPlaylistCreation": false,
    "excludeLffi": true,
    "excludeLffiImages": false,
    "excludeTh": false,
    "hideMediaLogo": true,
    "hideWinAfterMedia": false,
    "keepOriginalsAfterConversion": false,
    "lang": "E",
    "langUpdatedLast": "2022-10-30T00:16:39.635Z",
    "maxRes": "720p",
    "mediaWinShortcut": "Alt+Z",
    "ppBackward": null,
    "ppForward": null,
    "preferredOutput": "window",
    "presentShortcut": "Alt+D"
  },
  "meeting": {
    "enableMusicButton": true,
    "enableMusicFadeOut": true,
    "musicFadeOutTime": 15,
    "musicFadeOutType": "smart",
    "musicVolume": 28,
    "mwDay": 2,
    "mwStartTime": "19:30",
    "shuffleShortcut": "Alt+K",
    "specialCong": false,
    "weDay": 6,
    "weStartTime": "09:30"
  },
  "__internal__": {
    "migrations": {
      "version": "22.10.1"
    }
  }
}

Full error log

{}
advenimus commented 1 year ago

Seems to be related to cPanel based web disks. Works with koofr and 4shared.

mtdvlpr commented 1 year ago

Hmm, I will look into it! There was also a similar issue with 4shared (which turned out to be on their end) for which I wrote a work around. Might be the same issue here.

mtdvlpr commented 1 year ago

What do I need to set up a similar webdav server to test against?

advenimus commented 1 year ago

You will need a cPanel based web host.

I can provide one to test with if that helps? Perhaps over a private message I can give you the details.

On Oct 30, 2022, at 2:26 AM, Manoah Tervoort @.***> wrote:

What do I need to set up a similar webdav server to test against?

— Reply to this email directly, view it on GitHub https://github.com/sircharlo/meeting-media-manager/issues/545#issuecomment-1296131440, or unsubscribe https://github.com/notifications/unsubscribe-auth/AYPAE4LJ3YHPJZWU6EOE4J3WFYBIPANCNFSM6AAAAAARSBAH7M. You are receiving this because you authored the thread.

mtdvlpr commented 1 year ago

That would be great!

mtdvlpr commented 1 year ago

Hi @advenimus, so I fixed the issue. It's similar to 4shared as in it doesn't work correctly when using Depth: Infinity to get all subfiles and subdirectories for a specific path (your configured server dir). In your case it would give no results when using Depth: Inifity, so instead I revert back to the old way which is for each folder only retrieve its direct children and do that for each level. It's less efficient, but at least it works correctly. Maybe you can configure your server to work correctly with Depth: Infinity, but for now it's fixed by reverting to the old way.

mtdvlpr commented 1 year ago

If this is not configurable by you, you could let your server provider know that this issue occurs.