vodik / repose

an archlinux repo poking tool
GNU General Public License v2.0
128 stars 15 forks source link

Parse error while updating repo #53

Open netlexer opened 6 years ago

netlexer commented 6 years ago

I've created a custom repo to hold packages from the AUR. Occasionally, an update will fail, e.g.:

$ repose -vf  custom                                 
repose: failed to parse files for jekyll-3.7.0-3/files

I'm not sure if it's the package or repose itself, jekyll is just an example.

Updating from scratch (using --rebuild) works, though this is time consuming.

AladW commented 6 years ago

52?

netlexer commented 6 years ago

I don't think so, as I didn't use repo-add at all to create the db. I just used 'repose -vf custom.db' in a directory with all the files.

stefanhusmann commented 6 years ago

Similar (?) thing here: failed to parse files for eggwm-qt5/desc.

lovesegfault commented 6 years ago

I can confirm the same issue here with repose: failed to parse desc for ttf-font-awesome-4-4.7.0-5/desc. I get this when trying to install any package with aursync. In particular I encountered the issue installing chromaprint-git, which is completely unrelated to ttf-font-awesome-4.

How can one do the "rebuild" work-around?

AladW commented 6 years ago

repose -vf custom --rebuild

lovesegfault commented 6 years ago

@AladW repose --rebuild complains about lacking arguments. repose --rebuild aur (aur is the name of my local repo) does nothing, if you use the verbose flag it says writing aur.db..., but it finishes in a split second, and doesn't fix the issue.

AladW commented 6 years ago

I edited my comment, put perhaps --rebuild is also effected by this. You could remove the database and then run repose again...

Have you tried the rust branch?

lovesegfault commented 6 years ago

I can confirm that repose -vf custom --rebuild does not fix the problem for me. It runs successfully, but trying aursync chromaprint-git fails with the same error I noted before. I'm going to try using the rust branch.

lovesegfault commented 6 years ago

The rust branch does not build on the latest nightly. I'm going to open an issue and try fixing it.

lovesegfault commented 6 years ago

@AladW Could you perhaps propose a workaround for this while it isn't fixed? It's just annoying since it renders aursync unusable on my system.

lovesegfault commented 6 years ago

Apparently:

  1. Removing the offending package
  2. Running a rebuild as noted earlier
  3. Installing the package through aursync

Seems to solve the issue!

EDIT This does not work, unfortunately. If you try to install a package afterwards the error will come back.

AladW commented 6 years ago

Workaround from the aurutils perspective is to remove repose, so it falls back to repo-add. Not really something I enjoy saying on the repose tracker, but there it is...

aphirst commented 6 years ago

I'm getting the same issue, now. It's not clear what caused it, but once it's caused, no matter what I seem to try, I can't "fix" the existing db. I think it works fine again for a while if I nuke the db and make it totally from scratch, but it's not really a fix since eventually the problem comes back. I'll update this post if I can work anything else out.

lovesegfault commented 6 years ago

@aphirst Use aurutils-git it no longer uses repose and works fine. Or wait until the new version gets released.