Giter VIP home page Giter VIP logo

archivebox_ynh's People

Contributors

alexaubin avatar ericgaspar avatar madman247 avatar mhfowler avatar oniricorpe avatar salamandar avatar tituspijean avatar yalh76 avatar yunohost-bot avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

archivebox_ynh's Issues

Application requires CPU supporting SSE3

Describe the bug

Installation fails because this package depends on Chromium, which depends on CPU supporting SSE3 (depends on package sse3-support)

Context

  • Hardware: Old PC - HP T510
  • YunoHost version: 11.0.7 (testing)
  • I have access to my server: *Through SSH and webadmin
  • Are you in a special context or did you perform some particular tweaking on your YunoHost instance?: yes
    • If yes, please explain: Hardware requires nonfree kernel modules and specific load order to work, edited modprobe blacklists/whitelists to reflect that
  • Using, or trying to install package version/branch: 0.6.2~ynh9 (from the panel)

Steps to reproduce

Begin installation process of ArchiveBox through panel or ssh

Expected behavior

It should be mentioned in the Readme file that this application requires SSE3. Alternatively, allow option of installing this application without Chromium (it seems to not be a required dependency, although ArchiveBox would work with degraded functionality when its missing)

Logs

https://paste.yunohost.org/raw/unatakomah

How do I remove tags from an existing snapshot using the python api?


Describe the bug

A clear and concise description of what the bug is.

I cant use the python api. I am trying to keep tags for wallabag and archivebox in sync (see https://zulip.archivebox.io/#narrow/stream/154-support/topic/Managing.20Tags.20in.20CLI for more details) and therefore need to be able to remove tags using a script.

I know that if I need to run an archivebox cli command I need to do for example:

cd /home/yunohost.app/archivebox/
sudo -u archivebox /var/www/archivebox/venv/bin/archivebox add "$1" --tag "$2"

But when I try to run commands on python api for example, I get a bunch of weird errors:

root@yunohost:~# cd /home/yunohost.app/archivebox/
root@yunohost:/home/yunohost.app/archivebox# sudo -u archivebox /var/www/archivebox/venv/bin/python3 -c "from archivebox.main import setup_django, Tag, Snapshot; setup_django(); Snapshot.objects.get(url='https://example.com').tag_set.remove(Tag.objects.get(name='tag1'))"
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/var/www/archivebox/venv/lib/python3.9/site-packages/archivebox/main.py", line 14, in <module>
    from .cli import (
  File "/var/www/archivebox/venv/lib/python3.9/site-packages/archivebox/cli/__init__.py", line 83, in <module>
    SUBCOMMANDS = list_subcommands()
  File "/var/www/archivebox/venv/lib/python3.9/site-packages/archivebox/cli/__init__.py", line 43, in list_subcommands
    module = import_module('.archivebox_{}'.format(subcommand), __package__)
  File "/usr/lib/python3.9/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "/var/www/archivebox/venv/lib/python3.9/site-packages/archivebox/cli/archivebox_version.py", line 11, in <module>
    from ..main import version
ImportError: cannot import name 'version' from partially initialized module 'archivebox.main' (most likely due to a circular import) (/var/www/archivebox/venv/lib/python3.9/site-packages/archivebox/main.py)

Not sure what to do with this. Any help would be appreciated.

Settings don't seem to work

Settings in this ArchiveBox.conf file don't seem to persist, any ideas why? I have done systemctl restart archivebox as well after changing settings. I am trying to disable archive_org so I can archive personal info.

$ pwd
/etc/yunohost/apps/archivebox
$ cd
cd conf/
$ ls
ArchiveBox.conf  nginx.conf  package.json  package-lock.json  requirements.txt  start.sh  systemd.service
$ cat ArchiveBox.conf
[DEPENDENCY_CONFIG]
NODE_BINARY=__YNH_NODE__
[ARCHIVE_METHOD_TOGGLES]
SAVE_ARCHIVE_DOT_ORG = False

$ systemctl restart archivebox

This doesn't work even though I get no errors.
I have also tried settting SAVE_ARCHIVE_DOT_ORG = False as its own line not within the [ARCHIVE_METHOD_TOGGLES] group.

Archivebox fails to install on yunohost 4.2.8

Describe the bug

App fails to install on yunohost 4.2.8 inside virtual machine.

Context

  • Hardware: Virtualbox with latest Yunohost installed from the iso downloaded from the official site
  • YunoHost version: 4.2.8

Steps to reproduce

  • download yunohst ISO
  • setup new virtual machine
  • setup a domain
  • try installing Archivebox through cli or web interface

Logs

https://paste.yunohost.org/raw/xunuzizigo

password with $ symbol breaks installation

Describe the bug

password with $ symbol breaks installation

Context

  • Hardware: VPS bought online
  • YunoHost version: 4.2.8.3
  • I have access to my server: Through SSH | through the webadmin
  • Using, or trying to install package version/branch: 0.6.2~ynh8

Steps to reproduce

install archivebox with passsword JF8@$xtQwx

Expected behavior

installed

Logs

2021-10-10 16:55:09,696: DEBUG - �[01;30m[i] [2021-10-10 20:55:09] ArchiveBox v0.6.2: archivebox manage createsuperuser --username admin --email [email protected]�[00;00m
2021-10-10 16:55:09,696: DEBUG - �[01;30m > /home/yunohost.app/archivebox�[00;00m
2021-10-10 16:55:09,696: DEBUG -
2021-10-10 16:55:11,490: WARNING - can't read "xtQwx": no such variable
2021-10-10 16:55:11,490: WARNING - while executing
2021-10-10 16:55:11,491: WARNING - "send -- "**********\r""
2021-10-10 16:55:11,501: DEBUG - Password: + ynh_exit_properly
2021-10-10 16:55:11,502: DEBUG - + local exit_code=1
2021-10-10 16:55:11,502: DEBUG - + rm -rf /var/cache/yunohost/download/
2021-10-10 16:55:11,509: DEBUG - + '[' 1 -eq 0 ']'
2021-10-10 16:55:11,510: DEBUG - + trap '' EXIT
2021-10-10 16:55:11,510: DEBUG - + set +o errexit
2021-10-10 16:55:11,510: DEBUG - + set +o nounset
2021-10-10 16:55:11,510: DEBUG - + sleep 0.5
2021-10-10 16:55:12,014: DEBUG - + type -t ynh_clean_setup
2021-10-10 16:55:12,015: DEBUG - + ynh_clean_setup
2021-10-10 16:55:12,015: DEBUG - + true
2021-10-10 16:55:12,016: DEBUG - + exit 1
2021-10-10 16:55:13,019: ERROR - Unable to install archivebox: An error occurred inside the app installation script

Probably that bug in other apps with custom password

Fresh install fails

Hi,

Describe the bug

Can't install archivebox. Here is the log.
Seems to be related to npm.

Context

  • Yunohost 4.3.3 on a Kimsufi server

Install failes is password is similar to username

Describe the bug

Installation failed silently (continually stuck on "creating user") if password of admin account is too similar to username

Context

  • Hardware: baremetal amd64

  • YunoHost version: 4.2.8.3

  • I have access to my server: direct access

  • Are you in a special context or did you perform some particular tweaking on your YunoHost instance?: *no

  • Using, or trying to install package version/branch: stable

Steps to reproduce

Installing using an account with similar username and pass.

Expected behavior

Display error message or allow the install to continue with a prompt

Logs

Https://paste.yunohost.org/raw/ihuhipocug

Outdated Build

Describe the bug

The ArchiveBox program is currently beginning a pre-release of version 0.8.0. Version 0.6.2 (which this yunohost package uses) was released April 10th, 2021, and is outdated by several versions.

Context

  • Hardware: Raspberry pi 4
  • YunoHost version: 11.2.11.2
  • I have access to my server: Through SSH | through the webadmin
  • Are you in a special context or did you perform some particular tweaking on your YunoHost instance?: no
  • Using, or trying to install package version/branch: Using "0.7.2~ynh1" (archivebox 0.6.2 - very confusing + misleading), trying to install ArchiveBox 0.7.2.

Steps to reproduce

  • using graphical administration window, install ArchiveBox
  • go to archive box, and see the version number at the bottom of the page (e.g. www.example.com/public/)
  • see
    image

Expected behavior

Installs an up-to-date version of archive box.

from my archivebox /public/ directory
image

Logs

A previous installation error, may be relevant? : https://paste.yunohost.org/raw/qoreqezihu

My successful installation attempt, a few days after the first: https://paste.yunohost.org/raw/nonatoteku

Interesting lines from successful install:

(looks like it's going to install 0.7.2)

2024-04-11 19:53:32,649: DEBUG - + local 'sources_json={
2024-04-11 19:53:32,650: DEBUG -   "url": "https://github.com/ArchiveBox/ArchiveBox/archive/refs/tags/v0.7.2.tar.gz",
2024-04-11 19:53:32,650: DEBUG -   "sha256": "19c83716039a1401940c5a8cc0eada10f0d5ee3e7a8dbfa4f7cf35b17ecd8a0b",
2024-04-11 19:53:32,651: DEBUG -   "autoupdate": {
2024-04-11 19:53:32,651: DEBUG -     "strategy": "latest_github_release"
2024-04-11 19:53:32,651: DEBUG -   }
2024-04-11 19:53:32,652: DEBUG - }'
2024-04-11 19:53:32,652: DEBUG - + jq -re .url
2024-04-11 19:53:32,749: DEBUG - https://github.com/ArchiveBox/ArchiveBox/archive/refs/tags/v0.7.2.tar.gz

(all from 0.6.2)

2024-04-11 19:53:58,427: DEBUG - Collecting archivebox==0.6.2 (from -r /var/www/archivebox/requirements.txt (line 1))
2024-04-11 19:54:00,256: DEBUG -   Downloading https://www.piwheels.org/simple/archivebox/archivebox-0.6.2-py3-none-any.whl (489 kB)
2024-04-11 19:54:00,861: DEBUG -      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 489.2/489.2 kB 973.5 kB/s eta 0:00:00
2024-04-11 19:54:01,325: DEBUG - Collecting requests>=2.24.0 (from archivebox==0.6.2->-r /var/www/archivebox/requirements.txt (line 1))
2024-04-11 19:54:02,408: DEBUG -   Downloading https://www.piwheels.org/simple/requests/requests-2.31.0-py3-none-any.whl (62 kB)
2024-04-11 19:54:02,649: DEBUG -      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 62.6/62.6 kB 406.6 kB/s eta 0:00:00

no application updates available
image

version 0.7.2-ynh1 installed
image

from the official demo
image

Strange version of shipped package

Normally first part means package version and second part means ynh script's version
image
But the latest version of package is 0.6.2
image
So, expected something like 0.6.2~ynh7

Singlefile archiving method fails

Describe the bug

Archiving a webpage using singlefile archive method doesn't work

Context

  • Hardware: VPS bought online (DigitalOcean - 1 AMD CPU)
  • YunoHost version: 4.3.6.2
  • I have access to my server: Through SSH; through the webadmin
  • Are you in a special context or did you perform some particular tweaking on your YunoHost instance?: No
  • Using, or trying to install package version/branch: 0.6.2~ynh9

Steps to reproduce

In ArchiveBox webadmin:

  1. Go to 'ADD +'
  2. Add any url in 'URLs' field (e.g. https://css-tricks.com/css-tricks-is-joining-digitalocean/)
  3. Set "Archive depth" as depth = 0 and select singlefile for 'Archive methods'
  4. Click 'Add URLs and archive +'
  5. Go to 'SNAPSHOTS'. The snapshot with singlefile is unavailable

Logs

  • STATUS: FAILED
  • CMD Version: 0.3.32
  • CMD STR:
    /home/yunohost.app/archivebox/node_modules/single-file/cli/single-file --browser-executable-path=chromium --browser-args=[\"--headless\", \"--user-agent=Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.61 Safari/537.36 ArchiveBox/{VERSION} (+https://github.com/ArchiveBox/ArchiveBox/)\", \"--window-size=1440,2000\"] https://css-tricks.com/css-tricks-is-joining-digitalocean/ singlefile.html
  • Output STR: "SingleFile was not able to archive the page"

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.