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

Unable to set date of file #390

Closed
TwilightDuck opened this issue Jan 23, 2017 · 5 comments
Closed

Unable to set date of file #390

TwilightDuck opened this issue Jan 23, 2017 · 5 comments
Assignees
Labels
Priority: Low Issue does not affect Radarr functionality in a serious way. Type: Bug Issue is a bug
Milestone

Comments

@TwilightDuck
Copy link

TwilightDuck commented Jan 23, 2017

Message:
Unable to set date of file [/mnt/media/Movie/Deadpool (2016)/Deadpool (2016).mp4]: Invalid parameter
Exception:

System.IO.IOException: Invalid parameter
  at System.IO.File.SetLastWriteTime (System.String path, DateTime lastWriteTime) <0x7f3ebe95b1e0 + 0x00081> in <filename unknown>:0 
  at NzbDrone.Common.Disk.DiskProviderBase.FileSetLastWriteTime (System.String path, DateTime dateTime) [0x00048] in C:\projects\radarr-usby1\src\NzbDrone.Common\Disk\DiskProviderBase.cs:249 
  at NzbDrone.Core.MediaFiles.UpdateMovieFileService.ChangeFileDate (System.String filePath, DateTime date) [0x00016] in C:\projects\radarr-usby1\src\NzbDrone.Core\MediaFiles\UpdateMovieFileService.cs:88 


This happens right after the warning:

Message:
ExtraService failed while processing [MediaCoversUpdatedEvent]: Object reference not set to an instance of an object

Exception:

System.NullReferenceException: Object reference not set to an instance of an object
  at NzbDrone.Core.Extras.ExtraService.Handle (NzbDrone.Core.MediaCover.MediaCoversUpdatedEvent message) <0x40ad2e30 + 0x00030> in <filename unknown>:0 
  at NzbDrone.Core.Messaging.Events.EventAggregator.PublishEvent[TEvent] (NzbDrone.Core.Messaging.Events.TEvent event) [0x000c3] in C:\projects\radarr-usby1\src\NzbDrone.Core\Messaging\Events\EventAggregator.cs:56 
@fedoranimus
Copy link
Contributor

Do you have the "Change Files Date" option set under Settings -> Media Management?

@galli-leo galli-leo self-assigned this Jan 24, 2017
@galli-leo galli-leo added Type: Bug Issue is a bug Priority: Low Issue does not affect Radarr functionality in a serious way. labels Jan 24, 2017
@shaggyblue
Copy link

I can confirm I am having the same issue and yes I have the "Change File Date" enabled.

screen shot 2017-01-24 at 06 11 11

[v0.2.0.210] System.NullReferenceException: Object reference not set to an instance of an object at NzbDrone.Core.Extras.ExtraService.Handle (NzbDrone.Core.MediaCover.MediaCoversUpdatedEvent message) <0x41fa51a0 + 0x00030> in <filename unknown>:0 at NzbDrone.Core.Messaging.Events.EventAggregator.PublishEvent[TEvent] (NzbDrone.Core.Messaging.Events.TEvent event) [0x000c3] in C:\projects\radarr-usby1\src\NzbDrone.Core\Messaging\Events\EventAggregator.cs:56

@galli-leo
Copy link
Contributor

Does this issue still occur on the latest release of Radarr?

@galli-leo galli-leo added this to the 0.2 milestone Jun 14, 2017
@shaggyblue
Copy link

I am running the hotio/radarr docker with the most recently nightly

Radarr Ver. 0.2.0.761
nightly

I still do see this from time to time. Here are some below examples

docker/radarr-nightly/Radarr/logs$ cat radarr.* | grep -i 'Invalid parameter' -C 3

17-6-15 18:42:05.9|Info|DiskScanService|Completed scanning disk for Snow White and the Seven Dwarfs
17-6-15 18:42:05.9|Warn|UpdateMovieFileService|Unable to set date of file [/movies/Snow_White_and_the_Seven_Dwarfs_1937/Snow_White_and_the_Seven_Dwarfs_1937_HDTV-1080p_x264_DTS.mkv]

[v0.2.0.761] System.IO.IOException: Invalid parameter
at System.IO.File.SetLastWriteTime (System.String path, System.DateTime lastWriteTime) [0x00030] in <8f2c484307284b51944a1a13a14c0266>:0
at NzbDrone.Common.Disk.DiskProviderBase.FileSetLastWriteTime (System.String path, System.DateTime dateTime) [0x00048] in C:\projects\radarr-usby1\src\NzbDrone.Common\Disk\DiskProviderBase.cs:285
at NzbDrone.Core.MediaFiles.UpdateMovieFileService.ChangeFileDate (System.String filePath, System.DateTime date) [0x00016] in C:\projects\radarr-usby1\src\NzbDrone.Core\MediaFiles\UpdateMovieFileService.cs:88

17-6-15 18:42:06.8|Info|DiskScanService|Completed scanning disk for The Social Network
17-6-15 18:42:06.9|Warn|UpdateMovieFileService|Unable to set date of file [/movies/Social_Network,_The_2010/Social_Network,_The_2010_HDTV-1080p_x264_DTS-HD_MA.mkv]

[v0.2.0.761] System.IO.IOException: Invalid parameter
at System.IO.File.SetLastWriteTime (System.String path, System.DateTime lastWriteTime) [0x00030] in <8f2c484307284b51944a1a13a14c0266>:0
at NzbDrone.Common.Disk.DiskProviderBase.FileSetLastWriteTime (System.String path, System.DateTime dateTime) [0x00048] in C:\projects\radarr-usby1\src\NzbDrone.Common\Disk\DiskProviderBase.cs:285
at NzbDrone.Core.MediaFiles.UpdateMovieFileService.ChangeFileDate (System.String filePath, System.DateTime date) [0x00016] in C:\projects\radarr-usby1\src\NzbDrone.Core\MediaFiles\UpdateMovieFileService.cs:88

17-6-15 18:42:28.4|Info|DiskScanService|Completed scanning disk for The Sword in the Stone
17-6-15 18:42:28.4|Warn|UpdateMovieFileService|Unable to set date of file [/movies/Sword_in_the_Stone,_The_1963/Sword_in_the_Stone,_The_1963_HDTV-1080p_x264_DTS.mkv]

[v0.2.0.761] System.IO.IOException: Invalid parameter
at System.IO.File.SetLastWriteTime (System.String path, System.DateTime lastWriteTime) [0x00030] in <8f2c484307284b51944a1a13a14c0266>:0
at NzbDrone.Common.Disk.DiskProviderBase.FileSetLastWriteTime (System.String path, System.DateTime dateTime) [0x00048] in C:\projects\radarr-usby1\src\NzbDrone.Common\Disk\DiskProviderBase.cs:285
at NzbDrone.Core.MediaFiles.UpdateMovieFileService.ChangeFileDate (System.String filePath, System.DateTime date) [0x00016] in C:\projects\radarr-usby1\src\NzbDrone.Core\MediaFiles\UpdateMovieFileService.cs:88

@overkill32
Copy link

Does this issue still occur on the latest release of Radarr?

Yes, I am still seeing this error on fresh install of 0.2.0.910.

Unable to set date of file [/mnt/movies/Resident Evil Apocalypse (2004)/Resident Evil Apocalypse.mkv]: Invalid parameter

System.IO.IOException: Invalid parameter
  at System.IO.File.SetLastWriteTime (System.String path, System.DateTime lastWriteTime) [0x00029] in /wrkdirs/usr/ports/lang/mono/work/mono-mono-4.8.1.0/mcs/class/corlib/System.IO/File.cs:487 
  at NzbDrone.Common.Disk.DiskProviderBase.FileSetLastWriteTime (System.String path, System.DateTime dateTime) [0x00048] in C:\projects\radarr-usby1\src\NzbDrone.Common\Disk\DiskProviderBase.cs:285 
  at NzbDrone.Core.MediaFiles.UpdateMovieFileService.ChangeFileDate (System.String filePath, System.DateTime date) [0x00016] in C:\projects\radarr-usby1\src\NzbDrone.Core\MediaFiles\UpdateMovieFileService.cs:88 

screen shot 2018-01-31 at 10 10 06 pm

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 9, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Priority: Low Issue does not affect Radarr functionality in a serious way. Type: Bug Issue is a bug
Projects
None yet
Development

No branches or pull requests

5 participants