cross-platform / apple-music-for-linux

Access your Apple Music library from Linux
https://snapcraft.io/apple-music-for-linux
GNU General Public License v3.0
82 stars 15 forks source link

An Error Occured, Try Again #4

Closed idanka closed 4 years ago

idanka commented 4 years ago

I use Ubuntu 20.04 I get the above error message and many white / blank pages for example: For You

run in terminal apple music

apple-music-for-linux [12583:12696:0530/122017.481556:ERROR:object_proxy.cc(632)] Failed to call method: org.freedesktop.DBus.Properties.Get: object_path= /org/freedesktop/UPower: org.freedesktop.DBus.Error.AccessDenied: An AppArmor policy prevents this sender from sending this message to this recipient; type="method_call", sender=":1.144" (uid=1000 pid=12583 comm="/snap/apple-music-for-linux/14/usr/lib/chromium-br" label="snap.apple-music-for-linux.apple-music-for-linux (enforce)") interface="org.freedesktop.DBus.Properties" member="Get" error name="(unset)" requested_reply="0" destination="org.freedesktop.UPower" (uid=0 pid=2059 comm="/usr/lib/upower/upowerd " label="unconfined") [12583:12696:0530/122017.481865:ERROR:object_proxy.cc(632)] Failed to call method: org.freedesktop.UPower.GetDisplayDevice: object_path= /org/freedesktop/UPower: org.freedesktop.DBus.Error.AccessDenied: An AppArmor policy prevents this sender from sending this message to this recipient; type="method_call", sender=":1.144" (uid=1000 pid=12583 comm="/snap/apple-music-for-linux/14/usr/lib/chromium-br" label="snap.apple-music-for-linux.apple-music-for-linux (enforce)") interface="org.freedesktop.UPower" member="GetDisplayDevice" error name="(unset)" requested_reply="0" destination="org.freedesktop.UPower" (uid=0 pid=2059 comm="/usr/lib/upower/upowerd " label="unconfined") [12583:12696:0530/122017.482109:ERROR:object_proxy.cc(632)] Failed to call method: org.freedesktop.UPower.EnumerateDevices: object_path= /org/freedesktop/UPower: org.freedesktop.DBus.Error.AccessDenied: An AppArmor policy prevents this sender from sending this message to this recipient; type="method_call", sender=":1.144" (uid=1000 pid=12583 comm="/snap/apple-music-for-linux/14/usr/lib/chromium-br" label="snap.apple-music-for-linux.apple-music-for-linux (enforce)") interface="org.freedesktop.UPower" member="EnumerateDevices" error name="(unset)" requested_reply="0" destination="org.freedesktop.UPower" (uid=0 pid=2059 comm="/usr/lib/upower/upowerd " label="unconfined") libGL error: No matching fbConfigs or visuals found libGL error: failed to load driver: swrast [12654:12654:0530/122017.503022:ERROR:gl_context_glx.cc(187)] Failed to create GL context with glXCreateNewContext. [12654:12654:0530/122017.503145:ERROR:gpu_info_collector.cc(74)] gl::init::CreateGLContext failed [12654:12654:0530/122017.503199:ERROR:gpu_info_collector.cc(206)] Could not create context for info collection. [12654:12654:0530/122017.503247:ERROR:gpu_init.cc(66)] gpu::CollectGraphicsInfo failed. [12654:12654:0530/122017.515874:ERROR:viz_main_impl.cc(161)] Exiting GPU process due to errors during initialization [12674:12685:0530/122017.592926:ERROR:command_buffer_proxy_impl.cc(125)] ContextResult::kTransientFailure: Failed to send GpuChannelMsg_CreateCommandBuffer. [12674:12674:0530/122021.319312:ERROR:child_process_sandbox_support_impl_linux.cc(79)] FontService unique font name matching request did not receive a response.

idanka commented 4 years ago

and play album:

[12583:12658:0530/122545.506266:ERROR:bus.cc(556)] Failed to get the ownership of org.mpris.MediaPlayer2.chromium.instance12583: An AppArmor policy prevents this sender from sending this message to this recipient; type="method_call", sender=":1.162" (uid=1000 pid=12583 comm="/snap/apple-music-for-linux/14/usr/lib/chromium-br" label="snap.apple-music-for-linux.apple-music-for-linux (enforce)") interface="org.freedesktop.DBus" member="RequestName" error name="(unset)" requested_reply="0" destination="org.freedesktop.DBus" (bus) [12583:12658:0530/122545.791474:ERROR:object_proxy.cc(632)] Failed to call method: org.gnome.SessionManager.Inhibit: object_path= /org/gnome/SessionManager: org.freedesktop.DBus.Error.AccessDenied: An AppArmor policy prevents this sender from sending this message to this recipient; type="method_call", sender=":1.163" (uid=1000 pid=12583 comm="/snap/apple-music-for-linux/14/usr/lib/chromium-br" label="snap.apple-music-for-linux.apple-music-for-linux (enforce)") interface="org.gnome.SessionManager" member="Inhibit" error name="(unset)" requested_reply="0" destination="org.gnome.SessionManager" (uid=1000 pid=4781 comm="/usr/libexec/gnome-session-binary --systemd-servic" label="unconfined") [12583:12658:0530/122545.791504:ERROR:power_save_blocker_linux.cc(373)] No response to Inhibit() request!

idanka commented 4 years ago

Google Chrome:

content.js:4 [Deprecation] chrome.loadTimes() is deprecated, instead use standardized API: nextHopProtocol in Navigation Timing 2. https://www.chromestatus.com/features/5637885046816768. (anonymous) @ content.js:4 content.js:5 [Deprecation] chrome.loadTimes() is deprecated, instead use standardized API: nextHopProtocol in Navigation Timing 2. https://www.chromestatus.com/features/5637885046816768. (anonymous) @ content.js:5 2vendor-47e3f735681fe54b1734ab87c98caad5.js:4138 Metrics config: No config provided via delegate or fetched via init(), using default/cached config values. execute @ vendor-47e3f735681fe54b1734ab87c98caad5.js:4138 appleid.cdn-apple.com/appleauth/static/jsj/N362807468/widget/auth/app.js:242 Blocked autofocusing on a form control in a cross-origin subframe. (anonymous) @ appleid.cdn-apple.com/appleauth/static/jsj/N362807468/widget/auth/app.js:242 appleid.cdn-apple.com/appleauth/static/jsj/N362807468/widget/auth/app.js:242 [Deprecation] Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience. For more help, check https://xhr.spec.whatwg.org/. send @ appleid.cdn-apple.com/appleauth/static/jsj/N362807468/widget/auth/app.js:242 idmsa.apple.com/appleauth/auth/signin?isRememberMeEnabled=false:1 Failed to load resource: the server responded with a status of 409 () amp-api.music.apple.com/v1/catalog/hu/albums/1124582437?include=tracks%2Cartists&extend=offers%2Cpopularity&views=&l=en-gb&equivalentStorefronts=us&extend%5Bsongs%5D=equivalentPlayParams:1 Failed to load resource: the server responded with a status of 400 () vendor-47e3f735681fe54b1734ab87c98caad5.js:1486 Error while processing route: album 400 REQUESTERROR: 400 at Function.MKError.responseError (https://js-cdn.music.apple.com/musickit/v2/amp/musickit.js?t=1590091854876:43:5438) at https://js-cdn.music.apple.com/musickit/v2/amp/musickit.js?t=1590091854876:43:8102 at https://js-cdn.music.apple.com/musickit/v2/amp/musickit.js?t=1590091854876:29:2257 at Object.throw (https://js-cdn.music.apple.com/musickit/v2/amp/musickit.js?t=1590091854876:29:2362) at rejected (https://js-cdn.music.apple.com/musickit/v2/amp/musickit.js?t=1590091854876:29:1167) (anonymous) @ vendor-47e3f735681fe54b1734ab87c98caad5.js:1486 vendor-47e3f735681fe54b1734ab87c98caad5.js:3706 Uncaught (in promise) Error: More context objects were passed than there are dynamic segments for the route: error at t.n.applyToHandlers (vendor-47e3f735681fe54b1734ab87c98caad5.js:3706) at t.n.applyToState (vendor-47e3f735681fe54b1734ab87c98caad5.js:3701) at u.r.getTransitionByIntent (vendor-47e3f735681fe54b1734ab87c98caad5.js:3746) at u.r.transitionByIntent (vendor-47e3f735681fe54b1734ab87c98caad5.js:3739) at u.r.doTransition (vendor-47e3f735681fe54b1734ab87c98caad5.js:3756) at u.r.intermediateTransitionTo (vendor-47e3f735681fe54b1734ab87c98caad5.js:3788) at t.s.intermediateTransitionTo (vendor-47e3f735681fe54b1734ab87c98caad5.js:1448) at vendor-47e3f735681fe54b1734ab87c98caad5.js:1482 at (vendor-47e3f735681fe54b1734ab87c98caad5.js:1480) at t.error (vendor-47e3f735681fe54b1734ab87c98caad5.js:1481)

MarcusTomlinson commented 4 years ago

@idanka are you running Ubuntu in a VM by chance? I've seen similar in a VM with faulty graphics acceleration before.

idanka commented 4 years ago

@MarcusTomlinson not vm running

Ubuntu 20.04

screenfetch ESPRIMO-P520 OS: Ubuntu 20.04 focal Kernel: x86_64 Linux 5.4.0-37-generic Uptime: 40m Packages: 2286 Shell: bash Resolution: 1920x1080 DE: GNOME 3.36.2 WM: Mutter WM Theme: Adwaita GTK Theme: Yaru-dark [GTK2/3] Icon Theme: Yaru Font: Ubuntu 11 Disk: 87G / 893G (11%) CPU: Intel Core i5-4570 @ 4x 3,6GHz [35.0°C] GPU: GeForce GTX 1650 RAM: 3640MiB / 15926MiB

hostnamectl Static hostname: *-ESPRIMO-P520 Icon name: computer-desktop Chassis: desktop Machine ID: ***a5e00ec654709a887206d9c31f Boot ID: 6e76e481745719f49141b758d8 Operating System: Ubuntu 20.04 LTS Kernel: Linux 5.4.0-37-generic Architecture: x86-64

[7101:7234:0612/220628.719864:ERROR:object_proxy.cc(632)] Failed to call method: org.freedesktop.UPower.GetDisplayDevice: object_path= /org/freedesktop/UPower: org.freedesktop.DBus.Error.AccessDenied: An AppArmor policy prevents this sender from sending this message to this recipient; type="method_call", sender=":1.136" (uid=1000 pid=7101 comm="/snap/apple-music-for-linux/14/usr/lib/chromium-br" label="snap.apple-music-for-linux.apple-music-for-linux (enforce)") interface="org.freedesktop.UPower" member="GetDisplayDevice" error name="(unset)" requested_reply="0" destination="org.freedesktop.UPower" (uid=0 pid=1492 comm="/usr/lib/upower/upowerd " label="unconfined")

MarcusTomlinson commented 4 years ago

Could you try re-installing like this:

snap remove apple-music-for-linux
rm -rf ~/snap/apple-music-for-linux
snap install apple-music-for-linux

If this still doesn't work, try

snap install apple-music-for-linux --devmode in place of the third step above.

idanka commented 4 years ago

Thx, works!

snap remove apple-music-for-linux rm -rf ~/snap/apple-music-for-linux snap install apple-music-for-linux --devmode

Do not exchange Apple stores, and the application works! but restart (Ubuntu or Apple Music) dont work:(

Aransh commented 4 years ago

getting this too... tried to follow the suggestion but same result...

➜ ~ apple-music-for-linux

Gtk-Message: 19:47:42.212: GtkDialog mapped without a transient parent. This is discouraged. --2020-07-01 19:47:44-- https://dl.google.com/widevine-cdm/4.10.1582.2-linux-x64.zip Resolving dl.google.com (dl.google.com)... 216.58.206.14, 2a00:1450:4001:815::200e Connecting to dl.google.com (dl.google.com)|216.58.206.14|:443... Gtk-Message: 19:47:44.823: GtkDialog mapped without a transient parent. This is discouraged. connected. HTTP request sent, awaiting response... 200 OK Length: 4000517 (3.8M) [application/zip] Saving to: ‘4.10.1582.2-linux-x64.zip’

4.10.1582.2-linux-x 100%[===================>] 3.81M 4.02MB/s in 0.9s

2020-07-01 19:47:46 (4.02 MB/s) - ‘4.10.1582.2-linux-x64.zip’ saved [4000517/4000517]

Gtk-Message: 19:47:46.429: GtkDialog mapped without a transient parent. This is discouraged. [10838:10838:0701/194751.343660:ERROR:sandbox_linux.cc(374)] InitializeSandbox() called with multiple threads in process gpu-process.

MarcusTomlinson commented 4 years ago

@Aransh, I've just pushed a new version of the snap that hopefully fixes this issue. Could you please run snap refresh apple-music-for-linux and let me know if the issue goes away. Thanks.

Aransh commented 4 years ago

Does open now! Though I'm unable to sign in using 2FA... Edit: inputting my password followed by the verification code worked, but I keep getting "an error occurred" on some tabs, the rest work but give a "Content Equivalent" error when trying to play an item

MarcusTomlinson commented 4 years ago

Try rm -rf ~/snap/apple-music-for-linux and re-launch.