Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CloudSync begin failed #17315

Open
2 tasks done
pamual opened this issue Dec 30, 2024 · 1 comment
Open
2 tasks done

CloudSync begin failed #17315

pamual opened this issue Dec 30, 2024 · 1 comment

Comments

@pamual
Copy link

pamual commented Dec 30, 2024

Is there an existing issue for this?

  • This is a bug in RetroArch frontend
  • I have searched the existing issues

Description

Followed the instructions over on https://docs.libretro.com/guides/retroarch-cloud-sync/ in order to have cloud sync. As far as I can tell I have followed the instructions correctly, and the WebDav share works correctly in macOS finder, but when I open RetroArch a message that says Cloud Sync in progress 0% appears for five seconds or so, then it is replaced with Cloud Sync failed. In order to try and solve this I enabled logging, but only the line [WARN] [CloudSync] begin failed appears, which is not helpful. I have also tried this on iOS and the same two tooltips appear. Both were almost clean installs, so it might have something to do with that.

Expected behavior

Either working cloud sync or a descriptive error message.

Steps to reproduce the bug

  1. Follow this guide https://docs.libretro.com/guides/retroarch-cloud-sync/ on a clean install of RetroArch (found on macOS (Apple Silicon) and iOS).
  2. Enable logging.

Version/Commit

1.19.1 (Git a0208dd)

Bisect Results

No response

Check in the nightly version

I don't know

Platform & operating system

macOS 15.2

Affected Cores

No response

Environment information

No response

Relevant log output

[INFO] RetroArch 1.19.1 (Git a0208dd56)
[INFO] === Build =======================================
[INFO] CPU Model Name: Apple M4
[INFO] Capabilities: NEON VFPV3 VFPV4 
[INFO] Version: 1.19.1
[INFO] Git: a0208dd56
[INFO] Built: Jun  5 2024
[INFO] =================================================
[INFO] [Input]: Found input driver: "cocoa".
[INFO] [Environ]: SET_PIXEL_FORMAT: RGB565.
[INFO] [Core]: Version of libretro API: 1, Compiled against API: 1
[INFO] [Core]: Geometry: 320x240, Aspect: 1.333, FPS: 60.00, Sample rate: 48000.00 Hz.
[INFO] [Audio]: Set audio input rate to: 48000.00 Hz.
[INFO] [Video]: Set video size to: 960x720.
[INFO] [Vulkan]: Vulkan dynamic library loaded.
[INFO] [Vulkan]: Found vulkan context: "cocoavk".
[INFO] [Vulkan]: Detecting screen resolution: 480x360.
[INFO] [macOS]: Native window size: 960 x 720.
[INFO] [Vulkan]: Found GPU at index 0: "Apple M4".
[INFO] [Vulkan]: Using GPU index 0.
[INFO] [Vulkan]: Using semaphores for WSI acquire.
[INFO] [Vulkan]: Using GPU: "Apple M4".
[INFO] [Vulkan]: Queue family 0 supports 1 sub-queues.
[INFO] [Vulkan]: Got 3 swapchain images.
[INFO] [Vulkan]: Using resolution 960x720.
[INFO] [Vulkan]: Using RGB565 format.
[INFO] [Vulkan]: Loading stock shader.
[INFO] [Video]: Graphics driver did not initialize an input driver. Attempting to pick a suitable driver.
[INFO] [Joypad]: Found joypad driver: "mfi".
[INFO] [Video]: Found display server: "null".
[INFO] [CoreAudio3]: Using buffer size of 24576 bytes: (latency = 64 ms)
[INFO] [Audio]: Started synchronous audio driver.
[INFO] [Display]: Found display driver: "vulkan".
[INFO] [Playlist]: Loading history file: "/Users/pablo/Library/Application Support/RetroArch/config/content_history.lpl".
[INFO] [Playlist]: Loading history file: "/Users/pablo/Library/Application Support/RetroArch/config/content_music_history.lpl".
[INFO] [Playlist]: Loading history file: "/Users/pablo/Library/Application Support/RetroArch/config/content_image_history.lpl".
[INFO] [Playlist]: Loading favorites file: "/Users/pablo/Library/Application Support/RetroArch/config/content_favorites.lpl".
[DEBUG] [Audio]: Started audio driver "coreaudio3" (is_shutdown=false)
[DEBUG] [Audio]: Stopped audio driver "coreaudio3"
[INFO] [Vulkan]: QueuePresent failed, destroying swapchain.
[INFO] [Vulkan]: Got 3 swapchain images.
[WARN] [CloudSync] begin failed
[INFO] [Core Info]: Wrote to cache file: "/Users/pablo/Library/Application Support/RetroArch/info/core_info.cache".
[INFO] [Config]: Saved new config to "/Users/pablo/Library/Application Support/RetroArch/config/retroarch.cfg".
[DEBUG] [Audio]: Started audio driver "coreaudio3" (is_shutdown=true)
[INFO] [Core]: Content ran for a total of: 00 hours, 00 minutes, 00 seconds.
[DEBUG] [Audio]: Stopped audio driver "coreaudio3"
[INFO] [Core]: Unloading core..
[INFO] [Core]: Unloading core symbols..
[DEBUG] [Video]: Average monitor Hz: 74.940048 Hz. (4.920 % frame time deviation, based on 2048 last samples).
@pamual
Copy link
Author

pamual commented Dec 31, 2024

I managed to find and solve the error. My webdav setup consists of a Synology NAS with Cloudflare tunnel exposing (via proxy) the webdav share for RetroArch to an external domain. For some reason if I try to sync with the external domain in my LAN the sync fails and throws the aforementioned error, but if I try to sync on another network, it works fine. I managed to somewhat "solve" this bug by configuring my desktop computer to use the private IP of the NAS instead of the domain (if I configure it with a NAS.local mDNS domain it also fails), and turning off wifi on my phone when booting up RetroArch.

I don't know enough about WebDav nor the specific implementation of RetroArch to know if this kind of behaviour is expected (although finder has no problem connecting via the external domain), nonetheless if possible it might be advisable to throw a clearer and more specific error or warning in the logs instead of the vague [WARN] [CloudSync] begin failed .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant