@m040601, those files left after Rns because they weren't created by pacman itself, but by whoogle.
i remember someone on bbs wrote that by deleting text editor pacman won't delete created text files. i suppose here is same situation
Git Clone URL: | https://aur.archlinux.org/whoogle-git.git (read-only, click to copy) |
---|---|
Package Base: | whoogle-git |
Description: | A self-hosted, ad-free, privacy-respecting metasearch engine |
Upstream URL: | https://github.com/benbusby/whoogle-search |
Keywords: | engine search whoogle |
Licenses: | MIT |
Conflicts: | whoogle |
Provides: | whoogle |
Submitter: | dr460nf1r3 |
Maintainer: | dr460nf1r3 (chaotic-aur) |
Last Packager: | chaotic-aur |
Votes: | 3 |
Popularity: | 0.000000 |
First Submitted: | 2021-03-06 18:00 (UTC) |
Last Updated: | 2023-12-22 16:29 (UTC) |
@m040601, those files left after Rns because they weren't created by pacman itself, but by whoogle.
i remember someone on bbs wrote that by deleting text editor pacman won't delete created text files. i suppose here is same situation
The current PKGBUILD leaves behind orphan files when uninstalling whoogle-git.
Steps to reproduce.
Install whoogle-git.
Sudo systemctl start whoogle.
Test and Use.
Sudo systemctl stop whoogle.
pacman -Rns whoogle-git
:: Do you want to remove these packages? [Y/n]
:: Processing package changes...
(1/1) removing whoogle-git [##########################] 100%
:: Running post-transaction hooks...
(1/2) Reloading system manager configuration...
(2/2) Arming ConditionNeedsUpdate...
sudo updatedb
locate whoogle
/opt/whoogle-search
/opt/whoogle-search/app
/opt/whoogle-search/app/static
/opt/whoogle-search/app/static/bangs
/opt/whoogle-search/app/static/build
/opt/whoogle-search/app/static/config
/opt/whoogle-search/app/static/bangs/bangs.json
/opt/whoogle-search/app/static/build/autocomplete.7b431467.js
/opt/whoogle-search/app/static/build/controller.d141915f.js
/opt/whoogle-search/app/static/build/dark-theme.efd6898f.css
/opt/whoogle-search/app/static/build/header.3f278aa9.css
/opt/whoogle-search/app/static/build/header.658ea969.js
/opt/whoogle-search/app/static/build/input.4049a764.css
/opt/whoogle-search/app/static/build/keyboard.97759bca.js
/opt/whoogle-search/app/static/build/light-theme.f58056af.css
/opt/whoogle-search/app/static/build/logo.32ab05c5.css
/opt/whoogle-search/app/static/build/main.24ec4f16.css
/opt/whoogle-search/app/static/build/search.6b261c07.css
/opt/whoogle-search/app/static/build/utils.5ec5b9a4.js
/opt/whoogle-search/app/static/build/variables.51f93eaf.css
/opt/whoogle-search/app/static/config/session
/opt/whoogle-search/app/static/config/session/2029240f6d1128be89ddc32729463129
/opt/whoogle-search/app/static/config/session/5493a2f756f085e55e0746383d965e65
pacman -Qo /opt/whoogle-search/
error: No package owns /opt/whoogle-search
I can confirm that this version, 0.6.0_r422.g6763c2e-1),
$ yay -Ss whoogle-git
aur/whoogle-git 0.6.0_r391.g20976f2-1 (+3 1.56) (Installed: 0.6.0_r422.g6763c2e-1)
A self-hosted, ad-free, privacy-respecting metasearch engine
Seems to install and start OK.
Fixed! :)
whoogle-git also doesnt even install:
[Aur:1] whoogle-git-0.6.0_r391.g20976f2-1
:: (1/1) Parsing SRCINFO: whoogle-git
==> Making package: whoogle-git 0.6.0_r391.g20976f2-1 (Tue 26 Oct 2021 01:06:12 AM W
EST)
==> Retrieving sources...
-> Cloning whoogle-search git repo...
....
seems to go ok, but then:
soupsieve-1.9.5 stem-1.8.0 toml-0.10.2 urllib3-1.26.5 waitress-1.4.3 wcwidth-0.1.9
WARNING: You are using pip version 21.2.3; however, version 21.3.1 is available.
You should consider upgrading via the /dev/shm/aurydesty/whoogle-git/src/whoogle-search/venv/bin/python3 -m pip install --upgrade pip command.
rm: cannot remove .github: No such file or directory
==> ERROR: A failure occurred in build().
Aborting...
-> error making: whoogle-git
I must also add that I have also tested installing whoogle on Archlinux with
pipx install --verbose whoogle-search
It worked perfectly until some days ago. It does not work now:
$ whoogle-search --help
$ whoogle-search
Traceback (most recent call last):
File "/home/a1/.local/bin/whoogle-search", line 5, in <module>
from app.routes import run_app
File "/home/a1/.local/pipx/venvs/whoogle-search/lib/python3.9/site-packages/app/__init__.py", line 1, in <module>
from app.filter import clean_query
File "/home/a1/.local/pipx/venvs/whoogle-search/lib/python3.9/site-packages/app/filter.py", line 5, in <module>
from cryptography.fernet import Fernet
File "/home/a1/.local/pipx/venvs/whoogle-search/lib/python3.9/site-packages/cryptography/fernet.py", line 18, in <module>
from cryptography.hazmat.primitives import hashes, padding
File "/home/a1/.local/pipx/venvs/whoogle-search/lib/python3.9/site-packages/cryptography/hazmat/primitives/padding.py", line 13, in <module>
from cryptography.hazmat.bindings._padding import lib
ImportError: libffi.so.7: cannot open shared object file: No such file or directory
So maybe, just maybe, this isnt a problem with these AUR packgages but with the upstream development breaking something in Archlinux.
hiya, dr460nf1r3.
cleared my cache of whoogle-git folder to get clean compile experience and encountered following errors:
tried whoogle-git-0.6.0_r404.g1b7d3ed-1-x86_64
still same error persist "chown: cannot access '/opt/whoogle-search/app/static/config': No such file or directory"
because there package compiling there are no such folder as /opt/whoogle-search/app/static/config
now after chowning /opt/whoogle-search/app/static error is
Traceback (most recent call last):
File "/usr/lib/python3.9/runpy.py", line 188, in _run_module_as_main
mod_name, mod_spec, code = _get_module_details(mod_name, _Error)
File "/usr/lib/python3.9/runpy.py", line 147, in _get_module_details
return _get_module_details(pkg_main_name, error)
File "/usr/lib/python3.9/runpy.py", line 111, in _get_module_details
import(pkg_name)
File "/opt/whoogle-search/app/init.py", line 1, in <module>
from app.filter import clean_query
File "/opt/whoogle-search/app/filter.py", line 5, in <module>
from cryptography.fernet import Fernet
File "/opt/whoogle-search/venv/lib/python3.9/site-packages/cryptography>/fernet.py", line 18, in <module>
from cryptography.hazmat.primitives import hashes, padding
File "/opt/whoogle-search/venv/lib/python3.9/site-packages/cryptography/hazmat/primitives/padding.py", line 13, in <module>
from cryptography.hazmat.bindings._padding import libImportError: libffi.so.8: cannot open shared object file: No such file or directory
You could try chown -R whoogle.whoogle /opt/whoogle-search/app/static/config
, as its done in .install.
@dr460nf1r3, /opt/whoogle-search/app/static/config is not a file, but a folder :) this folder already exists in tar.zst package, but for some reason it require whoogle rights to this folder being able to perform it's privacy and ad-free duty
Could you try manually creating that file? Since I can't reproduce the issue, might the file have been created before for me?
Pinned Comments
dr460nf1r3 commented on 2021-03-06 18:07 (UTC) (edited on 2021-12-05 12:09 (UTC) by dr460nf1r3)
Installs with official instructions to /opt. Read here for more information and options for the systemd service. ( -> e) manual) The search engine is accessible at localhost:5000, set it as default engine using your browsers option. Binary builds are available at Chaotic-AUR!