Can not transfer songs to phone over MTP, "could not open resource for writing"
Hi,
My phone is a samsung A8 and I'm trying to transfer songs into it with RB. When I attempt to do this I get an error saying "could not open resource for writing". I tried this in debug mode and got he following. I believe the important lines are:
(09:15:56) [0x55a46b139700] [bus_watch_cb] rb-encoder-gst.c:172: received error /tmp/portage/media-libs/gst-plugins-base-1.12.4/work/gst-plugins-base-1.12.4/gst/gio/gstgiosink.c(302): gst_gio_sink_get_stream (): /GstPipeline:pipeline/GstGioSink:sink:
Could not open location mtp://%5Busb%3A001,004%5D/Phone/Music/Madonna/Like%20A%20Virgin/01%20-%20Material%20Girl.flac for writing: Operation unsupported
the rest of the output is as follows (the relevant part I believe):
(09:15:56) [0x55a46b139700] [rb_transfer_target_transfer] rb-transfer-target.c:425: pasting entry file:///mnt/media/musica/Madonna/Like%20A%20Virgin/Madonna%20-%20Like%20A%20Virgin%20-%20Material%20Girl.flac
(09:15:56) [0x55a46b139700] [rb_track_transfer_batch_check_profiles] rb-track-transfer-batch.c:289: checking profiles
(09:15:56) [0x55a46b139700] [impl_get_missing_plugins] rb-encoder-gst.c:739: trying to check profile m4a for missing plugins
(09:15:56) [0x55a46b139700] [impl_get_missing_plugins] rb-encoder-gst.c:766: got request pad, profile m4a works
(09:15:56) [0x55a46b139700] [impl_get_missing_plugins] rb-encoder-gst.c:775: couldn't find an encoder, profile m4a doesn't work
(09:15:56) [0x55a46b139700] [impl_get_missing_plugins] rb-encoder-gst.c:739: trying to check profile oggvorbis for missing plugins
(09:15:56) [0x55a46b139700] [impl_get_missing_plugins] rb-encoder-gst.c:766: got request pad, profile oggvorbis works
(09:15:56) [0x55a46b139700] [impl_get_missing_plugins] rb-encoder-gst.c:780: encoder found, profile oggvorbis works
(09:15:56) [0x55a46b139700] [impl_get_missing_plugins] rb-encoder-gst.c:739: trying to check profile mp3 for missing plugins
(09:15:56) [0x55a46b139700] [impl_get_missing_plugins] rb-encoder-gst.c:766: got request pad, profile mp3 works
(09:15:56) [0x55a46b139700] [impl_get_missing_plugins] rb-encoder-gst.c:780: encoder found, profile mp3 works
(09:15:56) [0x55a46b139700] [rb_track_transfer_batch_check_profiles] rb-track-transfer-batch.c:308: have 1 profiles with missing plugins
(09:15:56) [0x55a46b139700] [select_profile_for_entry] rb-track-transfer-batch.c:235: can't use encoding audio/x-aac due to missing plugins
(09:15:56) [0x55a46b139700] [select_profile_for_entry] rb-track-transfer-batch.c:248: can use preferred encoding audio/x-vorbis
(09:15:56) [0x55a46b139700] [select_profile_for_entry] rb-track-transfer-batch.c:252: can use lossy encoding audio/mpeg
(09:15:56) [0x55a46b139700] [select_profile_for_entry] rb-track-transfer-batch.c:243: can use source encoding audio/x-flac
(09:15:56) [0x55a46b139700] [rb_track_transfer_batch_check_profiles] rb-track-transfer-batch.c:321: copying entry file:///mnt/media/musica/Madonna/Like%20A%20Virgin/Madonna%20-%20Like%20A%20Virgin%20-%20Material%20Girl.flac
(09:15:56) [0x55a46b139700] [start_next] rb-track-transfer-batch.c:675: 1 entries remain in the batch
(09:15:56) [0x55a46b139700] [start_next] rb-track-transfer-batch.c:692: attempting to transfer file:///mnt/media/musica/Madonna/Like%20A%20Virgin/Madonna%20-%20Like%20A%20Virgin%20-%20Material%20Girl.flac
(09:15:56) [0x55a46b139700] [select_profile_for_entry] rb-track-transfer-batch.c:235: can't use encoding audio/x-aac due to missing plugins
(09:15:56) [0x55a46b139700] [select_profile_for_entry] rb-track-transfer-batch.c:248: can use preferred encoding audio/x-vorbis
(09:15:56) [0x55a46b139700] [select_profile_for_entry] rb-track-transfer-batch.c:252: can use lossy encoding audio/mpeg
(09:15:56) [0x55a46b139700] [select_profile_for_entry] rb-track-transfer-batch.c:243: can use source encoding audio/x-flac
(09:15:56) [0x55a46b139700] [rb_transfer_target_build_dest_uri] rb-transfer-target.c:94: built dest uri for media type 'audio/x-flac', extension 'flac': mtp://%5Busb%3A001,004%5D/Phone/Music/Madonna/Like%20A%20Virgin/01%20-%20Material%20Girl.flac
(09:15:56) [0x55a46d20d000] [create_parent_dirs_task] rb-track-transfer-batch.c:620: creating parent dirs for mtp://%5Busb%3A001,004%5D/Phone/Music/Madonna/Like%20A%20Virgin/01%20-%20Material%20Girl.flac
(09:15:56) [0x55a46b139700] [maybe_expand_container] rb-grilo-source.c:1104: not expanding, nothing to expand
(09:15:56) [0x55a46b139700] [rhythmdb_process_one_event] rhythmdb.c:2672: processing RHYTHMDB_EVENT_QUERY_COMPLETE
(09:15:56) [0x55a46b139700] [rhythmdb_read_leave] rhythmdb.c:1263: counter: 0
(09:15:56) [0x55a46b139700] [rhythmdb_query_model_dispose] rhythmdb-query-model.c:730: disposing query model 0x55a46ce1a3d0
(09:15:56) [0x55a46b139700] [rhythmdb_query_model_finalize] rhythmdb-query-model.c:778: finalizing query model 0x55a46ce1a3d0
(09:15:56) [0x55a46b139700] [create_parent_dirs_cb] rb-track-transfer-batch.c:657: parent directories for mtp://%5Busb%3A001,004%5D/Phone/Music/Madonna/Like%20A%20Virgin/01%20-%20Material%20Girl.flac created
(09:15:56) [0x55a46d20d000] [sink_open] rb-encoder-gst.c:636: using default sink for mtp://%5Busb%3A001,004%5D/Phone/Music/Madonna/Like%20A%20Virgin/01%20-%20Material%20Girl.flac as gio can't do it
(09:15:56) [0x55a46d20d000] [sink_open] rb-encoder-gst.c:655: unable to create giostreamsink, using default sink for mtp://%5Busb%3A001,004%5D/Phone/Music/Madonna/Like%20A%20Virgin/01%20-%20Material%20Girl.flac
(09:15:56) [0x55a46b139700] [bus_watch_cb] rb-encoder-gst.c:172: received error /tmp/portage/media-libs/gst-plugins-base-1.12.4/work/gst-plugins-base-1.12.4/gst/gio/gstgiosink.c(302): gst_gio_sink_get_stream (): /GstPipeline:pipeline/GstGioSink:sink:
Could not open location mtp://%5Busb%3A001,004%5D/Phone/Music/Madonna/Like%20A%20Virgin/01%20-%20Material%20Girl.flac for writing: Operation unsupported
(09:15:56) [0x55a46b139700] [encoder_completed_cb] rb-track-transfer-batch.c:564: encoder finished (error: Could not open resource for writing.)
(09:15:56) [0x55a46b139700] [track_done_cb] rb-transfer-target.c:359: fatal transfer error: Could not open resource for writing.
(09:15:56) [0x55a46b139700] [_rb_track_transfer_batch_cancel] rb-track-transfer-batch.c:448: batch being cancelled
Gtk-Message: GtkDialog mapped without a transient parent. This is discouraged.
Edited by Piotr Drąg