添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接

Several days ago, I symlinked collection.media and collection.anki2 to Dropbox (I wasn’t aware that this is a bad idea at the time). Since then, there have been two issues:

  • On startup, close and sync, I get the error: IOError { info: "unable to read collection.media: No such file or directory (os error 2)" } . The error doesn’t occur with shift startup (which leads me to believe the sync event triggers the error). image
  • media doesn’t display through ankiweb sync (but media displays fine via local anki desktop):

    I’ve tried the following yet 1. and 2. persist:
    3. disabling all plugins
    4. replacing the symlinks with the original files
    5. importing a backup of date prior to creating symlinks
    6. checking that the collections.media filename matches ankiweb

    collection.media/paste-feaa17546c4336679924918e6639df1284173368.jpg
    <img src="paste-feaa17546c4336679924918e6639df1284173368.jpg">
    

    I’m not sure what could be causing the IOError at this point since collection.media is in the original location (and is not a symlink) and media displays fine locally. I don’t know what other data sources might be be relevant. As far as I can tell, collection.anki2 is not corrupt (Check Database report seems fine and Anki Desktop works normally aside from the IOError messages).

    Any advice on how to proceed? Since I have backups, my next thought would be to reinstall Anki Desktop fresh and import.

    Tracing this “unable to read” message in Anki’s source, I found these two occurences:

  •