# Cannot read model from...

**URL:** <https://forums.plex.tv/t/cannot-read-model-from/26986>\
**Category:** Dev/API Corner\
**Tags:** scanner-agent-dev\
**Created:** [January 12, 2013, 8:11pm UTC](https://forums.plex.tv/t/cannot-read-model-from/26986 "2013-01-12T20:11:40Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![infomofo](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/infomofo/32/2256_2.png) [@infomofo](https://forums.plex.tv/u/infomofo)\
**Post date:** [January 12, 2013, 8:11pm UTC](https://forums.plex.tv/t/cannot-read-model-from/26986/1 "2013-01-12T20:11:40Z")

</div>

metadata agent
I'm writing a custom metadata agent to pull metadata about movies from a new site.  
  
I copied an existing module and rewrote the "search" and "update" functions. The search seems to be working- I can resolve movies against the site's search feature, and it is replacing the title of the movie in my library to match the site. The update function is working according to the logs, but I don't get the metadata updated in my library.   
  
Looking into the issue further, I see the following error in my Plugin's Log:  
  

```auto

<br />
2013-01-12 14:53:50,849 (-4faed000) : DEBUG (model:32) - Loading model with GUID com.plexapp.agents.<my package name>://<a metadata id><br />
2013-01-12 14:53:50,850 (-4faed000) : ERROR (model:194) - Cannot read model from /Users/<my user name>/Library/Application Support/Plex Media Server/Metadata/Movies/b/f4a4a40fed05f<br />
835e1a112b0f8799d7b0e170b9.bundle/Contents/com.plexapp.agents.<my package><br />

```

  
  
Has anyone else encountered this issue?

---

<div class="post-metadata">

**Author:** ![infomofo](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/infomofo/32/2256_2.png) [@infomofo](https://forums.plex.tv/u/infomofo)\
**Post date:** [January 12, 2013, 10:38pm UTC](https://forums.plex.tv/t/cannot-read-model-from/26986/2 "2013-01-12T22:38:21Z")

</div>

I think I’ve made some progress-  
  
  
  
I’m no longer getting that error. The log now indicates that the data is serializing to the file:

```auto

<br />
2013-01-12 17:34:07,015 (-4faed000) : DEBUG (model:32) - Loading model with GUID com.plexapp.agents.<myagent>://<an id><br />
2013-01-12 17:34:07,018 (-4faed000) : DEBUG (model:223) - Deserializing from /Users/<my user name>/Library/Application Support/Plex Media Server/Metadata/Movies/b/00b8b7ec689e2cde37e4b729fdff8b4b69dba4a.bundle/Contents/com.plexapp.agents.<myagent>/Info.xml<br />
2013-01-12 17:34:07,038 (-4faed000) : DEBUG (networking:166) - Requesting 'http://127.0.0.1:32400/library/metadata/4894/tree'<br />
2013-01-12 17:34:07,051 (-4faed000) : DEBUG (networking:161) - Fetching '<A URL>' from the HTTP cache<br />
2013-01-12 17:34:07,073 (-4faed000) : INFO ( __init__ :59) - Looking up metadata for <an id><br />
2013-01-12 17:34:07,088 (-4faed000) : DEBUG (model:218) - Serializing to /Users/<my user name>/Library/Application Support/Plex Media Server/Metadata/Movies/b/00b8b7ec689e2cde37e4b729fdff8b4b69dba4a.bundle/Contents/com.plexapp.agents.<myagent>/Info.xml<br />

```

  
  
And when I view that xml document I see the updated summary and other attributes. However this summary still does not display on my plex library web view or plex client.

---

<div class="post-metadata">

**Author:** ![liquidpele](https://avatars.discourse-cdn.com/v4/letter/l/3ec8ea/32.png) [@liquidpele](https://forums.plex.tv/u/liquidpele)\
**Post date:** [December 19, 2015, 11:51pm UTC](https://forums.plex.tv/t/cannot-read-model-from/26986/3 "2015-12-19T23:51:14Z")

</div>

Did you ever get this fixed??

---

<div class="post-metadata">

**Author:** ![matrixagent](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/matrixagent/32/2015_2.png) [@matrixagent](https://forums.plex.tv/u/matrixagent)\
**Post date:** [February 9, 2016, 10:15pm UTC](https://forums.plex.tv/t/cannot-read-model-from/26986/4 "2016-02-09T22:15:38Z")

</div>

Having the same problem atm, anyone got an idea how to solve this?

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/plex/original/3X/2/a/2acb9765406f63293d357b4ec509ec39aa28f2ad.png) [@system](https://forums.plex.tv/u/system)\
**Post date:** [December 20, 2019, 10:44pm UTC](https://forums.plex.tv/t/cannot-read-model-from/26986/5 "2019-12-20T22:44:03Z")

</div>

Closed on December 20, 2019, 10:44pm UTC

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
