Can't search or add new comics

Post any problems / bugs / issues that are Mylar-related in here.
Post Reply
stodge
Posts: 27
Joined: Thu Mar 06, 2014 10:03 am

Can't search or add new comics

Post by stodge »

I seem to have a few issues (i can't update Mylar either) so these may be linked.

Configuration Options
Mylar Version: development
-- git build 25f9e125fcb030c00f4c4c76e25740e81f543121.
Python Version : 2.7.10

When I search for a comic, even one currently in my collection, no results are returned and i can't add any new comics.

:(
User avatar
evilhero
Site Admin
Posts: 2883
Joined: Sat Apr 20, 2013 3:43 pm
Contact:

Re: Can't search or add new comics

Post by evilhero »

Probably a bunch of different things happening, but they might also be all related.

First - gotta get you up to date.
Git updated their backend to only allow specific TLS connections, so if you're using an older version of github (ie. one that hasn't been updated in the last little while), you should update git. Once that's done, you can also make sure Mylar can find git by going into Mylar's config.ini and looking for the git_path field and putting in the full path to your git exe (on linux, it's usually: /usr/bin/git). Then start it up and hopefully you should be able to update. For better logging, you can run Mylar from the command line if there are any problems with git it would break on the command line instead of suppressing the error message.

Second - well get up-to-date and the other problems might all be addressed if you can't update Mylar...
stodge
Posts: 27
Joined: Thu Mar 06, 2014 10:03 am

Re: Can't search or add new comics

Post by stodge »

Finally got around to trying this as i don't have Git installed on the mac mini used to run Mylar, etc. An dI have to admit that i'm not that proficient with that level of coding. Anyway, managed to install Git to usr/local/git and edited the config file to point to that location but on a restart of Mylar it still fails to get the latest commit from GitHub. I'm not sure whether there were additional config steps for git and whether i need to tell git where to look but i've now stopped at that point scratching my head :)

Any ideas?

Thanks
User avatar
evilhero
Site Admin
Posts: 2883
Joined: Sat Apr 20, 2013 3:43 pm
Contact:

Re: Can't search or add new comics

Post by evilhero »

Did you install Mylar via git initially?

If you did, then with Mylar running you should be able to do the following from a command line within the mylar root directory itself:

Code: Select all

git pull 
If there are any errors as to why it's not able to update, it will indicate it via the command line. You're on an older commit that doesn't show the proper error code when it can't update properly which is why it's not showing anything whatsoever when it fails.

You can also do the hardcore option if everything else fails:
- backup your config.ini, mylar.db and your entire cache directory.
- wipe the mylar directory completely
- do a fresh git clone into the same location (ie. git clone https://github.com/evilhero/mylar -b development)
- move your original files back before you start things up
- start up and you should be up to date (you might have to perform an update if it thinks it's out of sync - it will say though if you need to update on startup).
stodge
Posts: 27
Joined: Thu Mar 06, 2014 10:03 am

Re: Can't search or add new comics

Post by stodge »

Git pull sort of worked but aborted as follows:

remote: Counting objects: 3041, done.
remote: Compressing objects: 100% (8/8), done.
remote: Total 3041 (delta 1010), reused 1011 (delta 1008), pack-reused 2025
Receiving objects: 100% (3041/3041), 3.23 MiB | 1.41 MiB/s, done.
Resolving deltas: 100% (1876/1876), completed with 230 local objects.
From https://github.com/evilhero/mylar
3e7339f..8d626ec development -> origin/development
d688440..c047a88 master -> origin/master
error: Your local changes to the following files would be overwritten by merge:
data/interfaces/default/comicdetails.html
data/interfaces/default/config.html
data/interfaces/default/css/style.css
data/interfaces/default/images/telegram.png
data/interfaces/default/index.html
data/interfaces/default/manage.html
data/interfaces/default/readinglist.html
data/interfaces/default/storyarc.html
data/interfaces/default/storyarc_detail.html
data/interfaces/default/weeklypull.html
lib/rtorrent/__init__.py
mylar/PostProcessor.py
mylar/__init__.py
mylar/api.py
mylar/auth32p.py
mylar/cv.py
mylar/filechecker.py
mylar/ftpsshup.py
mylar/helpers.py
mylar/importer.py
mylar/locg.py
mylar/mb.py
mylar/notifiers.py
mylar/readinglist.py
mylar/rsscheck.py
mylar/search.py
mylar/test.py
mylar/torrent/clients/deluge.py
mylar/torrent/clients/rtorrent.py
mylar/updater.py
mylar/webserve.py
mylar/weeklypull.py
Please commit your changes or stash them before you merge.
Aborting

Not sure what that means or how i commit changes, stash or merge...

Thanks
User avatar
evilhero
Site Admin
Posts: 2883
Joined: Sat Apr 20, 2013 3:43 pm
Contact:

Re: Can't search or add new comics

Post by evilhero »

It pretty much means your entire local repo has changed for some reason and it can't update until it gets fixed. The 'easiest' way to do this - back up your config.ini, mylar.db and entire cache directory. Then delete the mylar directory.
With it deleted, grab a new clone from github (ie.

Code: Select all

git clone https://github.com/evilhero/mylar -b development
. Then move your backed up stuff back into the new location. Start up and you should be good to go from that point (it might say it needs to update, or you're running an unknown version - just run the update from within the GUI and you should be ok thereafter).
Post Reply