Deleted tracks not handled well in cron job #114
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>
```
bug
label
Fix cron job
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?