Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Roberto Bianchi 137 posts 446 karma points c-trib
    Apr 27, 2018 @ 09:10
    Roberto Bianchi
    0

    Random missing images from media folder

    I've recently noticed that now many images from the media folder are missing.

    For example:

    http://localhost:8700/media/1748/inlets-pr4-03.jpg
    

    How can this happens if I haven't deleted anything from this folder?

  • Mark 91 posts -18 karma points
    Apr 27, 2018 @ 09:18
    Mark
    0

    Check the recycle bin in the media section.

    The culprits are usually a user error or bodged migration.

  • Roberto Bianchi 137 posts 446 karma points c-trib
    Apr 27, 2018 @ 09:27
    Roberto Bianchi
    0

    The recycle bin of the media section is empty...

  • Mark 91 posts -18 karma points
    Apr 27, 2018 @ 09:32
    Mark
    0

    Have you done any content/data migrations recently?

    In my experience, media items don't just disappear they are lost and it is common to lose media between versions when doing a migration.

    Do you have any backups?

  • Roberto Bianchi 137 posts 446 karma points c-trib
    Apr 27, 2018 @ 09:34
    Roberto Bianchi
    0

    Nope, no one data migrations recently.

    The only thing that I made was to delete the App_Data/cache folder some days ago.

    Can be a problem?

    But the strange thing is that the missing images are from the media folder, not from the cache...

  • Mark 91 posts -18 karma points
    Apr 27, 2018 @ 09:50
    Mark
    0

    Sorry to say that if images go missing from the disk, its not usually an Umbraco issue, do you have any custom Media service code or Plugins that manage any part of the media folder?

    Deleting the cache wont cause this issue.

  • Roberto Bianchi 137 posts 446 karma points c-trib
    Apr 27, 2018 @ 09:52
    Roberto Bianchi
    0

    do you have any custom Media service code or Plugins that manage any part of the media folder?

    No, I don't have any plugins installed on Umbraco, or service code...

  • Roberto Bianchi 137 posts 446 karma points c-trib
    Apr 27, 2018 @ 09:58
    Roberto Bianchi
    0

    About this question:

    Have you done any content/data migrations recently?

    The only thing that I've done recently was to duplicate an entire node (with many children) to create another language version of the website.

    During this copy of content I've received many errors like this:

    System.Data.SqlServerCe.SqlCeException: There is a file sharing violation. A different process might be using the file.
    

    This can be the problem?

  • Mark 91 posts -18 karma points
    Apr 27, 2018 @ 10:00
    Mark
    0

    Could well be, I would start there and see if you can dig into the logs.

    Thanks

  • Roberto Bianchi 137 posts 446 karma points c-trib
    Apr 27, 2018 @ 10:01
    Roberto Bianchi
    0

    Can I upload the log file?

  • Roberto Bianchi 137 posts 446 karma points c-trib
    May 04, 2018 @ 12:14
    Roberto Bianchi
    0

    Here are some errors from the log file:

    2018-02-21 18:42:41,088 [P2892/D4/T32] ERROR Umbraco.Web.Strategies.ServerRegistrationEventHandler - Failed to update server record in database.
    System.Data.SqlServerCe.SqlCeException (0x80004005): There is a file sharing violation. A different process might be using the file. [ ..\App_Data\dbUmbMod.sdf ]
       in System.Data.SqlServerCe.SqlCeConnection.Open(Boolean silent)
       in System.Data.SqlServerCe.SqlCeConnection.Open()
       in Umbraco.Core.Persistence.FaultHandling.RetryPolicy.<>c__DisplayClass1.<ExecuteAction>b__0()
       in Umbraco.Core.Persistence.FaultHandling.RetryPolicy.ExecuteAction[TResult](Func`1 func)
       in Umbraco.Core.Persistence.Database.OpenSharedConnection()
       in Umbraco.Core.Persistence.Database.BeginTransaction(IsolationLevel isolationLevel)
       in Umbraco.Core.Scoping.Scope.get_Database()
       in Umbraco.Core.Persistence.LockingRepository`1.WithWriteLocked(Action`1 action, Boolean autoCommit)
       in Umbraco.Core.Services.ServerRegistrationService.TouchServer(String serverAddress, String serverIdentity, TimeSpan staleTimeout)
       in Umbraco.Web.Strategies.ServerRegistrationEventHandler.TouchServerTask.PerformRun()
    
  • Roberto Bianchi 137 posts 446 karma points c-trib
    May 10, 2018 @ 09:03
    Roberto Bianchi
    0

    Nobody knows how can I solve this problem? :(

  • Roberto Bianchi 137 posts 446 karma points c-trib
    May 17, 2018 @ 15:58
    Roberto Bianchi
    0

    I've found another strange issue.

    If I try to copy some nodes, I receive the error Failed to copy content

    Then, if I look at the log, I can see this error:

    2018-05-17 17:19:05,363 [P17160/D2/T65] ERROR Umbraco.Web.Editors.ContentController - Unhandled controller exception occurred
    System.NullReferenceException
    

    Why is impossible to copy some nodes but some others haven't this issue?

Please Sign in or register to post replies

Write your reply to:

Draft