Deleted tracks not handled well in cron job #114

Closed
opened 2022-04-25 07:59:25 +01:00 by kae · 0 comments
Owner
[03:03:02] D: Using musicmuster_prod database
[03:03:02] D: Updating database
[03:03:02] D: Session acquired, file='/home/kae/mm/app/musicmuster.py', function='<module>', lineno=1093, Session=<sqlalchemy.orm.scoping.scoped_session object at 0x7fe8c772bb50>
[03:03:05] D: Invalid path='/home/kae/music/Singles/Man of Mystery - signoff.mp3' in database
[03:03:05] D: Tracks.get_track_from_path(path='/home/kae/music/Singles/Man of Mystery - signoff.mp3')
[03:03:05] D: Tracks.remove_path(path='/home/kae/music/Singles/Man of Mystery - signoff.mp3')
[03:03:05] E: Can't remove track with path='/home/kae/music/Singles/Man of Mystery - signoff.mp3' (exception=IntegrityError("(MySQLdb._exceptions.IntegrityError) (1451, 'Cannot delete or update a parent row: a foreign key constraint fails (`musicmuster_prod`.`playlisttracks`, CONSTRAINT `playlisttracks_ibfk_2` FOREIGN KEY (`track_id`) REFERENCES `tracks` (`id`))')"))
[03:03:05] D:  Session released
Messages
Remove from database: path='/home/kae/music/Singles/Man of Mystery - signoff.mp3' track=<Track(id=6242, title=Man of Mystery - signoff, artist=The Shadows, path=/home/kae/music/Singles/Man of Mystery - signoff.mp3>
``` [03:03:02] D: Using musicmuster_prod database [03:03:02] D: Updating database [03:03:02] D: Session acquired, file='/home/kae/mm/app/musicmuster.py', function='<module>', lineno=1093, Session=<sqlalchemy.orm.scoping.scoped_session object at 0x7fe8c772bb50> [03:03:05] D: Invalid path='/home/kae/music/Singles/Man of Mystery - signoff.mp3' in database [03:03:05] D: Tracks.get_track_from_path(path='/home/kae/music/Singles/Man of Mystery - signoff.mp3') [03:03:05] D: Tracks.remove_path(path='/home/kae/music/Singles/Man of Mystery - signoff.mp3') [03:03:05] E: Can't remove track with path='/home/kae/music/Singles/Man of Mystery - signoff.mp3' (exception=IntegrityError("(MySQLdb._exceptions.IntegrityError) (1451, 'Cannot delete or update a parent row: a foreign key constraint fails (`musicmuster_prod`.`playlisttracks`, CONSTRAINT `playlisttracks_ibfk_2` FOREIGN KEY (`track_id`) REFERENCES `tracks` (`id`))')")) [03:03:05] D: Session released Messages Remove from database: path='/home/kae/music/Singles/Man of Mystery - signoff.mp3' track=<Track(id=6242, title=Man of Mystery - signoff, artist=The Shadows, path=/home/kae/music/Singles/Man of Mystery - signoff.mp3> ```
kae added the
bug
label 2022-04-25 07:59:42 +01:00
kae referenced this issue from a commit 2022-06-05 15:19:35 +01:00
kae closed this issue 2022-06-05 15:19:35 +01:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: kae/musicmuster#114
No description provided.