ikreymer / pywb-ia

pywb setup for Internet Archive web archives
MIT License
3 stars 0 forks source link

problem with use or in installation #1

Open markosii opened 6 years ago

markosii commented 6 years ago

Hi,

I want to use your pywb-ia.

When I do this : uwsgi uwsgi.ini

I Have this "message" :

[user@server pywb-ia]# uwsgi uwsgi.ini
[uWSGI] getting INI configuration from uwsgi.ini
*** Starting uWSGI 2.0.15 (64bit) on [Thu Feb  1 15:35:06 2018] ***
compiled with version: 4.8.5 20150623 (Red Hat 4.8.5-16) on 01 February 2018 15:13:30
os: Linux-3.10.0-229.1.2.el7.x86_64 #1 SMP Fri Mar 27 03:04:26 UTC 2015
nodename: server
machine: x86_64
clock source: unix
pcre jit disabled
detected number of CPU cores: 16
current working directory: /root/pywb/pywb-ia
*** running under screen session 28883.PYWB ***
detected binary path: /usr/local/bin/uwsgi
uWSGI running as root, you can use --uid/--gid/--chroot options
*** WARNING: you are running uWSGI as root !!! (use the --uid flag) ***
your processes number limit is 256559
your memory page size is 4096 bytes
detected max file descriptor number: 32768
- async cores set to 1000 - fd table size: 32768
lock engine: pthread robust mutexes
thunder lock: disabled (you can enable it with --thunder-lock)
*** Cache "sesh" initialized: 0MB (key: 152 bytes, keys: 76000 bytes, data: 32000 bytes, bitmap: 0 bytes) preallocated ***
uwsgi socket 0 bound to TCP address :8080 fd 4
Python version: 3.4.5 (default, Dec 13 2016, 11:33:45)  [GCC 4.8.3 20140911 (Red Hat 4.8.3-9)]
Python main interpreter initialized at 0xf6daa0
python threads support enabled
your server socket listen backlog is limited to 100 connections
your mercy for graceful operations on workers is 60 seconds
mapped 143610928 bytes (140245 KB) for 1000 cores
*** Operational MODE: async ***
while constructing a Python object
cannot find module 'tools.archivereplayview' (No module named 'pywb.webapp')
  in "config.yaml", line 31, column 20
WSGI app 0 (mountpoint='') ready in 1 seconds on interpreter 0xf6daa0 pid: 42855 (default app)
*** uWSGI is running in multiple interpreter mode ***
spawned uWSGI master process (pid: 42855)
spawned uWSGI worker 1 (pid: 42861, cores: 1000)
cache sweeper thread enabled
*** running gevent loop engine [addr:0x4a52a0] ***

Is this normal?

How can I correctly use your module?

Thank you for helping me

markosii commented 6 years ago

I tried to test pywb-ia

http://localhost:8080/web/20111231161728//example.com/

I have this error :

Pywb Error
No handler for "/web"

Here is a screenshot err

Can you tell me if pywb-ia still fonctional

Thank you

ikreymer commented 6 years ago

Unfortunately, pywb-ia is not currently maintained and requires an old version of pywb. However, the core functionality you're looking for, connecting to a remote index source, is now part of pywb itself. Using pywb 2.0.x, you can just add this to your config.yaml:

collections:
    web: memento+https://web.archive.org/web/

And then you'll have a /web collection pointing to the IA index source.

markosii commented 6 years ago

Thank you, it works for me without proxy mode.

How can I do the same thing but in proxy mode with pywb?

Thank you