Package Details: pacserve 2021-4

Git Clone URL: https://aur.archlinux.org/pacserve.git (read-only, click to copy)
Package Base: pacserve
Description: Easily share Pacman packages between computers. A replacement for PkgD.
Upstream URL: https://xyne.dev/projects/pacserve
Keywords: arch_linux pacman server
Licenses: GPL
Conflicts: pacredir
Submitter: Xyne
Maintainer: Xyne
Last Packager: Xyne
Votes: 110
Popularity: 0.127086
First Submitted: 2011-04-17 00:30 (UTC)
Last Updated: 2022-07-15 22:46 (UTC)

Dependencies (5)

Required by (0)

Sources (2)

Latest Comments

« First ‹ Previous 1 .. 5 6 7 8 9 10 11 12 13 14 Next › Last »

hamelg commented on 2013-05-12 19:33 (UTC)

After upgrading, pacserve fails to start with the error : systemd[1]: Unit pacserve.service entered failed state. systemd[1]: pacserve.service: main process exited, code=exited, status=1/FAILURE pacserve[8175]: /usr/bin/python3: No module named Pacserve to solve that, I just fix the library path in /usr/bin/pacserve : python3 -mThreadedServers.Pacserve "$@"

Xyne commented on 2013-05-11 00:30 (UTC)

The log indicates that it's correctly redirecting so I'm not sure what's going on. Try disabling pacserve in pacman.conf, then run "pacman -Syyu" to force a database refresh, restart the service and try again. Keep an eye on python3-threaded_servers for updates too.

nplatis commented on 2013-05-10 23:55 (UTC)

Still no luck. This time nothing works at all. The output of pacman -Syu is the following: error: GPGME error: No data error: GPGME error: No data error: GPGME error: No data error: GPGME error: No data error: GPGME error: No data error: xyne-x86_64: missing required signature :: Synchronizing package databases... error: GPGME error: No data error: failed to update core (invalid or corrupted database (PGP signature)) error: GPGME error: No data error: failed to update extra (invalid or corrupted database (PGP signature)) error: GPGME error: No data error: failed to update community (invalid or corrupted database (PGP signature)) error: GPGME error: No data error: failed to update multilib (invalid or corrupted database (PGP signature)) error: GPGME error: No data error: xyne-x86_64: missing required signature error: failed to update xyne-x86_64 (invalid or corrupted database (PGP signature)) error: database 'core' is not valid (invalid or corrupted database (PGP signature)) error: database 'extra' is not valid (invalid or corrupted database (PGP signature)) error: database 'community' is not valid (invalid or corrupted database (PGP signature)) error: database 'multilib' is not valid (invalid or corrupted database (PGP signature)) error: database 'xyne-x86_64' is not valid (invalid or corrupted database (PGP signature) and the journal (error log) contains entries such as: May 11 02:50:12 dynamo pacserve[763]: [2013-05-11 02:50:12] INFO: 127.0.0.1 redirecting to http://ftp.cc.uoc.gr/mirrors/linux/archlinux/core/os/x86_64/core.db May 11 02:50:12 dynamo pacserve[763]: [2013-05-11 02:50:12] INFO: 127.0.0.1 "GET /pkg/?repo=core&arch=x86_64&file=/core.db HTTP/1.1" 303 -

Xyne commented on 2013-05-10 23:26 (UTC)

please try python3-threaded_servers-2013.5.10.2

nplatis commented on 2013-05-10 22:33 (UTC)

I updated and pacserve seems to start OK now. Unfortunately, I receive an error message "Empty reply from server" for every file pacman tries to receive (either the *.db files when updating the databases or the package files when downloading them). My error log is the following: Μάι 11 01:30:48 dynamo pacserve[427]: Traceback (most recent call last): Μάι 11 01:30:48 dynamo pacserve[427]: File "/usr/lib/python3.3/socketserver.py", line 610, in process_request_thread Μάι 11 01:30:48 dynamo pacserve[427]: self.finish_request(request, client_address) Μάι 11 01:30:48 dynamo pacserve[427]: File "/usr/lib/python3.3/site-packages/ThreadedHTTPSServer.py", line 206, in finish_request Μάι 11 01:30:48 dynamo pacserve[427]: http.server.HTTPServer.finish_request(self, request, client_address) Μάι 11 01:30:48 dynamo pacserve[427]: File "/usr/lib/python3.3/socketserver.py", line 345, in finish_request Μάι 11 01:30:48 dynamo pacserve[427]: self.RequestHandlerClass(request, client_address, self) Μάι 11 01:30:48 dynamo pacserve[427]: File "/usr/lib/python3.3/site-packages/ThreadedHTTPSServer.py", line 267, in __init__ Μάι 11 01:30:48 dynamo pacserve[427]: http.server.BaseHTTPRequestHandler.__init__(self, *args, **kwargs) Μάι 11 01:30:48 dynamo pacserve[427]: File "/usr/lib/python3.3/socketserver.py", line 666, in __init__ Μάι 11 01:30:48 dynamo pacserve[427]: self.handle() Μάι 11 01:30:48 dynamo pacserve[427]: File "/usr/lib/python3.3/http/server.py", line 400, in handle Μάι 11 01:30:48 dynamo pacserve[427]: self.handle_one_request() Μάι 11 01:30:48 dynamo pacserve[427]: File "/usr/lib/python3.3/http/server.py", line 388, in handle_one_request Μάι 11 01:30:48 dynamo pacserve[427]: method() Μάι 11 01:30:48 dynamo pacserve[427]: File "/usr/lib/python3.3/site-packages/ThreadedHTTPSServer.py", line 557, in do_GET Μάι 11 01:30:48 dynamo pacserve[427]: self.do_authenticated_GET() Μάι 11 01:30:48 dynamo pacserve[427]: File "/usr/lib/python3.3/site-packages/Quickserve.py", line 448, in do_authenticated_GET Μάι 11 01:30:48 dynamo pacserve[427]: self.do_authenticated_GET_or_HEAD(True) Μάι 11 01:30:48 dynamo pacserve[427]: File "/usr/lib/python3.3/site-packages/Pacserve.py", line 419, in do_authenticated_GET_or_HEAD Μάι 11 01:30:48 dynamo pacserve[427]: resolved = self.server.resolve_path(self.url_path) Μάι 11 01:30:48 dynamo pacserve[427]: File "/usr/lib/python3.3/site-packages/Quickserve.py", line 304, in resolve_path Μάι 11 01:30:48 dynamo pacserve[427]: if self.options.root: Μάι 11 01:30:48 dynamo pacserve[427]: AttributeError: 'Namespace' object has no attribute 'root'

Xyne commented on 2013-05-10 21:57 (UTC)

The only error I see is due to the missing dependency. I'm updating the package now so that should be fixed in a few minutes. I think you see $PACSERVE_ARGS in the output because it is displaying the exact line from the service file in the error. When the service is run, the variable is substituted as intended. Please update pacserve and python3-threaded_servers and try again.

nplatis commented on 2013-05-10 21:39 (UTC)

Sorry, I am still unable to run pacserve successfully. status gives: pacserve.service - Pacserve Loaded: loaded (/usr/lib/systemd/system/pacserve.service; disabled) Active: activating (auto-restart) (Result: exit-code) since Σαβ 2013-05-11 00:28:59 EEST; 13s ago Process: 2191 ExecStart=/usr/bin/pacserve $PACSERVE_ARGS (code=exited, status=1/FAILURE) Μάι 11 00:28:59 dynamo systemd[1]: pacserve.service: main process exited, code=exited, status=1/FAILURE Μάι 11 00:28:59 dynamo systemd[1]: Unit pacserve.service entered failed state. Μάι 11 00:29:14 dynamo systemd[1]: pacserve.service holdoff time over, scheduling restart. Μάι 11 00:29:14 dynamo systemd[1]: Stopping Pacserve... Μάι 11 00:29:14 dynamo systemd[1]: Starting Pacserve... Μάι 11 00:29:14 dynamo systemd[1]: Started Pacserve. Μάι 11 00:29:14 dynamo pacserve[2196]: Traceback (most recent call last): Μάι 11 00:29:14 dynamo pacserve[2196]: File "/usr/lib/python3.3/runpy.py", line 160, in _run_module_as_main Μάι 11 00:29:14 dynamo pacserve[2196]: "__main__", fname, loader, pkg_name) Μάι 11 00:29:14 dynamo pacserve[2196]: File "/usr/lib/python3.3/runpy.py", line 73, in _run_code Μάι 11 00:29:14 dynamo pacserve[2196]: exec(code, run_globals) Μάι 11 00:29:14 dynamo pacserve[2196]: File "/usr/lib/python3.3/site-packages/Pacserve.py", line 48, in <module> Μάι 11 00:29:14 dynamo pacserve[2196]: import pycman Μάι 11 00:29:14 dynamo pacserve[2196]: ImportError: No module named 'pycman' Μάι 11 00:29:14 dynamo systemd[1]: pacserve.service: main process exited, code=exited, status=1/FAILURE Μάι 11 00:29:14 dynamo systemd[1]: Unit pacserve.service entered failed state. I see two problems, I think: a) The problem with parsing /etc/pacserve/pacserve.service.conf since $PACSERVE_ARGS does not seem to get substituted by its value b) The "ImportError: No module named 'pycman'"

Xyne commented on 2013-05-10 20:13 (UTC)

completely rewritten in Python 3 see the project page and help message for changes (incidentally, the multicast functionality seems to be working very well now)

Xyne commented on 2013-04-27 19:31 (UTC)

@solarwind Feel free to post actual errors, submit patches or use something else. I wrote pacserve for myself and have only shared it in case others find it useful. I try to fix bugs that others report, but if I do not experience them myself and cannot reproduce them then there is not much that I can do. What you are suggesting is that I spend my own free time, of which I currently have very little, to learn a new library and use it in pacserve just for you, while the current implementation appears to work for everyone else. Incidentally, a comment with a rude tone is not a contribution.

solarwind commented on 2013-04-23 06:06 (UTC)

You misunderstand, that is a bug report, contribution, and advice.