Skip to content

The server doesn't index #1079

@scarlehoff

Description

@scarlehoff

I've just tried uploading a fit, waited for a few minutes and it was still not indexed. Tried to upload it again and it it worked. Tried again and this time it failed (so it was already there)*.

I think using said failure as the marker of whether the fit is upload it or not might be a quick and dirty but useful hack for the bot...

while [[ $? -eq 0 ]]
do
    vp-upload ${fitname}
    sleep 10s ; # don't want to chain uploads...
done

For a better solution, I guess we could have a vp-check (or vp-get --dry or whatever) that just tells you whether the file is indexed or not (and that forces reindex).

I've had a quick look at the script and maybe it makes sense to go for a simple systemd based rule? It's also based on inotify so it would only work if the problem is due to the external wrapper and not to the system forgetting to notify.
Tried to have a look at why it failed but can't open the logs. If you want to have a look the fit I was trying to upload was
210127-n3fit-001

*Come to think about it I've actually gotten a few mails lately asking me to upload this or that fit and I just assumed I had forgotten to do it (which is also a very likely explanation) but it might not have been my fault!

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions