Opened 7 months ago

Last modified 6 months ago

#14717 assigned bug

HaikuDepot Server doesn't get new packages

Reported by: CodeforEvolution Owned by: kallisti5
Priority: normal Milestone:
Component: Website Version:
Keywords: Cc: kallisti5
Blocked By: Blocking: #14727
Has a Patch: no Platform: All

Description

I’ve found despite new packages being added and updated on my system, such new packages and updates haven’t been represented in the packages tab on the main Haiku website as normal.

Change History (8)

comment:1 Changed 7 months ago by waddlesplash

Cc: kallisti5 added
Component: Website/www.haiku-os.orgWebsite
Owner: changed from waddlesplash to apl-haiku
Status: newassigned

comment:2 Changed 7 months ago by waddlesplash

Blocking: 14727 added

comment:3 Changed 7 months ago by waddlesplash

Summary: Packages Tab on Haiku Website Doesn’t UpdateHaikuDepot Server doesn't get new packages

comment:4 Changed 7 months ago by apl-haiku

It would be easier if we keep operational queries on the mailing list in the first instance. That would be helpful because the problem here is most likely related to the HDS deployment environment rather than a software bug. As I no longer have access to the deployment environment, I cannot diagnose this issue.

Last edited 7 months ago by apl-haiku (previous) (diff)

comment:5 Changed 7 months ago by apl-haiku

Owner: changed from apl-haiku to kallisti5

comment:6 Changed 6 months ago by exlmotodev

Any news?

comment:7 Changed 6 months ago by kallisti5

There aren't many details in this ticket, but the original description was the biggest give-away "Packages Tab on Haiku Website Doesn’t Update"

I never added the cron jobs per https://github.com/haiku/haikudepotserver/issues/152. I went ahead and configured the import job for haikuports.

I think I need to add additional cron jobs for the other configured repositories?

  • BeSly
  • Clasqm
  • FatElk

I really wish 152 above would get some love :-| Cron jobs work, but are kind of a hack.

comment:8 Changed 6 months ago by apl-haiku

Hello Alex; You do not need to setup cron tasks for each repository. You only need to setup the following cron tasks;

32 * * * * curl ...../__maintenance/hourly
45 3 * * * curl ...../__maintenance/daily

In particular, the daily maintenance task scheduled with cron above will, amongst other things, refresh the data for all active repositories in the HDS system.

As part of a given repository's presumably scripted (Python etc...) build/update process it is advisable but not necessary for the repository build script (note: not cron) to invoke a URL such as...

/__repository/.../import

...when it (eg: Python script) finishes building/updating the repository. The documentation for this HDS endpoint are described at [1]. By having the repository build/update script do this, HDS will import the repository data faster without having to wait for periodic polls performed during the HDS daily maintenance task.

I am happy to help anybody with questions about this on the HDS mailing list.

I will take a look to see if I can setup task-scheduling inside HDS using Quartz scheduler, but am presently (slowly) busy with changes in the C++ code of the desktop application.

[1] https://depot.haiku-os.org/__docs/ch13.html#api-importrepositorydata

Note: See TracTickets for help on using tickets.