From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id cGfkOV+zaWLoKwAAbAwnHQ (envelope-from ) for ; Wed, 27 Apr 2022 23:19:28 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id MNb8OF+zaWIR5gAAG6o9tA (envelope-from ) for ; Wed, 27 Apr 2022 23:19:27 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 26F9F2F083 for ; Wed, 27 Apr 2022 23:19:27 +0200 (CEST) Received: from localhost ([::1]:54990 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1njp4H-0008WE-Vs for larch@yhetil.org; Wed, 27 Apr 2022 17:19:26 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:55050) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1njp46-0008W1-Aj for help-guix@gnu.org; Wed, 27 Apr 2022 17:19:14 -0400 Received: from mout02.posteo.de ([185.67.36.66]:34537) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1njp44-0001XF-1N for help-guix@gnu.org; Wed, 27 Apr 2022 17:19:14 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 0ECAC24010A for ; Wed, 27 Apr 2022 23:19:09 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.de; s=2017; t=1651094350; bh=SRU1cpPTn5Waksvljr/ePiQmG/kuX0SlSzKCyRC4pS0=; h=From:To:Cc:Subject:Date:From; b=WSyCM7KXTyND9ZoQ6aOgPiviTdQVnKpcvnoTPlhKlHzFz0UfbKyaFWTSzHzLZVnlb uWA5QFWAvyhelnjgCIoOYVbOjdeEZzJnxUMt9yLNtJudHSq7/cMYO2BvROZ9BfUyLK iTjcyU3fA2VqSO1MRttLj7vSqwXPVT+VuT2mXeXvfS5aT7ijd/Cx72teSs1krRgWYR VPcGZRN7c7Tsf6WpLla8lin+mwQjdOFG3Ad0bTZYV7M3cmd6JX3d7sUaGWmzEiHGOA ZR0h0J7T9UbRGKqW+zHtqb+DxNRvld2hZVZmQRWBhsUIgqdwPd02R1Weu4yK3Th9IZ Pe2gZIRcSPSjQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4KpWpH3Kv9z9rxD; Wed, 27 Apr 2022 23:19:03 +0200 (CEST) References: <87a6c6boqq.fsf@posteo.de> <87y1zq2wv2.fsf@elephly.net> From: Mekeor Melire To: Ricardo Wurmus Subject: 404 errors with hpcguix-web (e.g. for /packages.json) Date: Wed, 27 Apr 2022 21:07:21 +0000 In-reply-to: <87y1zq2wv2.fsf@elephly.net> Message-ID: <875ymub4zi.fsf@posteo.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=185.67.36.66; envelope-from=mekeor@posteo.de; helo=mout02.posteo.de X-Spam_score_int: -31 X-Spam_score: -3.2 X-Spam_bar: --- X-Spam_report: (-3.2 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, NUMERIC_HTTP_ADDR=1.242, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, WEIRD_PORT=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: help-guix@gnu.org Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1651094367; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=wh52CO0Pq4QSU//y3sw+8TBTVJpNk/HEzn+MZqZzR8c=; b=mL9KKh6GMPfED6xorxLYFsdhUCRJaqztgL6ZQUG6vpuInp8ZEY3bio9DZYxlp6WxVMHToy Xu4zNYr0AI7/OPUa5SWINXZP8v2qTPt/Hycjv0hQzXm6MW4W1MQUBEFKRd0/fHCoOrNfFk wbtMLVavQex2seGoSLJvbcOpyVmUjOkFcdCh34a/rx1hEdLNa+xh/i/6yP9BhbD68GueEY HSCW7cmn/hmCuk6sHDYYvqQ2rjsjaVFqC8hBwDXpWAWWESX8hZCgRUNZ78lX71vROTbBGF NgT2RqDgYeUSEeDNEB0iz5Rl1X9+XFYAAPORpRYSfonwPpnri15Cb2/NcSxknA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1651094367; a=rsa-sha256; cv=none; b=eZfBBXFqgODZLIQwhBfILuxuy92i1MM8TMWrya65vwj/MYxKPbJ0PmTvYf7BKA+gpfuuV9 s1154biUscJ3Q0W+4JfZiopf18JXtnLXIHtXCNAb2SrIGg2ZSW5xNVpbvZyCvv1kOPITYw 2kjUBWbeHK1l7k8VhvGuhShr1zyGVXOR6s0QCrEBAKJZkeiitFQq5TkTJrB23V+hsFuh8K 0LmuU5PIr2xm43GScBUuHSzL6lF0ULo95tiENXj9q3d43GtluGj9MAmDwTVVNfpp4YGrWO JXnNjW2XgSKmoZKujRWNJMd6VQwyXa/5HhiJN0VClaQSJwIdUyjsFmWKhdt//w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.de header.s=2017 header.b=WSyCM7KX; dmarc=pass (policy=none) header.from=posteo.de; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -5.20 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.de header.s=2017 header.b=WSyCM7KX; dmarc=pass (policy=none) header.from=posteo.de; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 26F9F2F083 X-Spam-Score: -5.20 X-Migadu-Scanner: scn1.migadu.com X-TUID: r/u/mYKVZT03 Thank you for the hint. hpcguix-web is awesome! I installed it locally with the following declaration: --8<---------------cut here---------------start------------->8--- ;; added modules: (guix channels) (gnu services web) (service hpcguix-web-service-type (hpcguix-web-configuration (specs #~(define site-config (hpcweb-configuration (channels (cons* ;; ... %default-channels ))))))) --8<---------------cut here---------------end--------------->8--- When I open the website (http://127.0.0.1:5000) in the browser, no packages are listed and the browser console shows 404-errors occurring for the following routes: http://127.0.0.1:5000/static/css/code.css http://127.0.0.1:5000/static/images/h-separator-darker.png http://127.0.0.1:5000/packages.json http://127.0.0.1:5000/static/images/favicon.png Does hpcguix-web depend on a web-server (like nginx) to server a certain folder? Or what am I missing? 2022-04-27 / 20:37 / rekado@elephly.net: > Hi Mekeor, > >> it would be nice to be able to search for a package (and/or a service) >> by name or description etc. through many channels. AFAIK, there's no >> such search engine yet. Please correct me if I'm wrong. >> >> I'm considering to implement it. I'd suggest to approach it with a >> server where (1) Guix is installed; (2) a long list of channels is >> activated; (3) a cron-job or so which regularly runs `guix pull`; (4) a >> web-api-service written in Guile which leverages the Guix-library in >> order to search for packages (-- I guess it'd be calling the >> `guix-package*` function from /guix/scripts/package.scm?); (5) a >> simplistic front-end web-site which talks to the web-api. > > See https://github.com/UMCUGenetics/hpcguix-web. It handles the > constant updates to all Guix channels and the search. You=E2=80=99re wel= come to > contribute to it, e.g. to add an API, suggest changes in how results are > displayed, etc. > > An example deployment can be found at https://guix.mdc-berlin.de > > Guix has a service for it that makes deployment easy. > > You=E2=80=99ll see that it lists packages from guix-science and other cha= nnels, > e.g. https://guix.mdc-berlin.de/package/rstudio-server