anticorruzione / openwhistleblowing

Software per il riuso
Other
19 stars 14 forks source link

L'installazione fallisce #77

Open piripallo opened 1 year ago

piripallo commented 1 year ago

l'installazione fallisce in qualsiasi maniera (sorgenti, installatore, manuale e docker) credo dipenda dal fatto che non si riesce a scaricare postgres 9.6 dal link indicato. Vi prego di modificare la pagina: https://www.anticorruzione.it/-/whistleblowing-7 perché quanto indicato non corrisponde alla realtà. Cordiali Saluti.

TedAleMatrix commented 1 year ago

Confermo il problema, ho provato a modificare il file Docker, inserendo un link aggiornato, ma comunque postgres 9.6 non è più disponibile, quindi ho provato a installare postgres11, ma l'installazione fallisce comunque.

Grazie Saluti

shabadan commented 1 year ago

La soluzione rimane obsoleta ma sono riuscito a scaricare postgre 9.6 e creare l'immagine docker usando uno special repo config file come spiegato su https://yum.postgresql.org/repopackages/#pg91 Nel Dockerfile ho sostituito la linea RUN yum -y install https://download.postgresql.org/pub/repos/yum/9.6/redhat/rhel-6-x86_64/pgdg-redhat-repo-latest.noarch.rpm && yum -y install postgresql96-devel con

RUN echo -e '[pgdg90]\n\ name=PostgreSQL 9.6 RPMs for RHEL/CentOS 7\n\ baseurl=https://yum-archive.postgresql.org/9.6/redhat/rhel-7-x86_64\n\ enabled=1\n\ gpgcheck=0\n\ gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-PGDG\n'\ >> /etc/yum.repos.d/pgdg-96.repo RUN yum -y install postgresql96-devel

Tuttavia dopo aver avviato il container non ho nessuna risposta sulla porta 80.

piripallo commented 1 year ago

Tramite: https://yum.postgresql.org/repopackages/

Sono riuscito a installare il db.

Ma ottengo comunque l’ errore di seguito, credo dovuto in questo caso a l’uso di librerie python già deprecate e ormai inutilizzate.

Ho anche provato con l’installazione dell’operativo senza fare gli aggiornamenti:

Saluti

/etc/init.d/owb restart

Restarting : owbStopping Owb daemon: owb.

Starting Owb daemon: owbStarting GlobaLeaks

/usr/local/owb/backend/lib/python2.7/site-packages/OpenSSL/crypto.py:12: CryptographyDeprecationWarning: Python 2 is no longer supported by the Python core team. Support for it is now deprecated in cryptography, and will be removed in the next release.

from cryptography import x509

Serving the client from directory: /usr/local/owb/frontend/client/

GlobaLeaks is now running and accessible at the following urls:

Unhandled Error

Traceback (most recent call last):

File "/usr/local/owb/backend/bin/owb", line 302, in

run_backend()

File "/usr/local/owb/backend/bin/owb", line 292, in run_backend

GlobaLeaksRunner(config).run()

File "/usr/local/owb/backend/lib/python2.7/site-packages/twisted/application/app.py", line 381, in run

self.application = self.createOrGetApplication()

File "/usr/local/owb/backend/lib/python2.7/site-packages/twisted/application/app.py", line 453, in createOrGetApplication

application = getApplication(self.config, passphrase)

--- ---

File "/usr/local/owb/backend/lib/python2.7/site-packages/twisted/application/app.py", line 464, in getApplication

application = service.loadApplication(filename, style, passphrase)

File "/usr/local/owb/backend/lib/python2.7/site-packages/twisted/application/service.py", line 416, in loadApplication

application = sob.loadValueFromFile(filename, 'application')

File "/usr/local/owb/backend/lib/python2.7/site-packages/twisted/persisted/sob.py", line 177, in loadValueFromFile

eval(codeObj, d, d)

File "/usr/local/owb/backend/lib/python2.7/site-packages/globaleaks/backend.py", line 13, in

from twisted.application import internet, service

File "/usr/local/owb/backend/lib/python2.7/site-packages/twisted/application/internet.py", line 54, in

from automat import MethodicalMachine

File "/usr/local/owb/backend/lib/python2.7/site-packages/automat/init.py", line 2, in

from ._methodical import MethodicalMachine

File "/usr/local/owb/backend/lib/python2.7/site-packages/automat/_methodical.py", line 7, in

from inspect import getfullargspec as getArgsSpec

exceptions.ImportError: cannot import name getfullargspec

Failed to load application: cannot import name getfullargspec

Da: shabadan @.> Inviato: giovedì 20 luglio 2023 00:49 A: anticorruzione/openwhistleblowing @.> Cc: piripallo @.>; Author @.> Oggetto: Re: [anticorruzione/openwhistleblowing] L'installazione fallisce (Issue #77)

La soluzione rimane obsoleta ma sono riuscito a scaricare postgre 9.6 e creare l'immagine docker usando uno special repo config file come spiegato su https://yum.postgresql.org/repopackages/#pg91 Nel Dockerfile ho sostituito la linea RUN yum -y install https://download.postgresql.org/pub/repos/yum/9.6/redhat/rhel-6-x86_64/pgdg-redhat-repo-latest.noarch.rpm && yum -y install postgresql96-devel con RUN echo -e '[pgdg90]\n name=PostgreSQL 9.6 RPMs for RHEL/CentOS 7\n baseurl=https://yum-archive.postgresql.org/9.6/redhat/rhel-7-x86_64\n\ https://yum-archive.postgresql.org/9.6/redhat/rhel-7-x86_64%5Cn%5C enabled=1\n gpgcheck=0\n gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-PGDG\n'\

/etc/yum.repos.d/pgdg-96.repo RUN yum -y install postgresql96-devel

Tuttavia dopo aver avviato il container non ho nessuna risposta sulla porta 80.

— Reply to this email directly, view it on GitHub https://github.com/anticorruzione/openwhistleblowing/issues/77#issuecomment-1642864089 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AJJC7N2GMLUOVM6UKSNF3OLXRBP6HANCNFSM6AAAAAAVK6LCXY . You are receiving this because you authored the thread. https://github.com/notifications/beacon/AJJC7NZNH34V4TXLA47NRJ3XRBP6HA5CNFSM6AAAAAAVK6LCX2WGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTTB5QO5S.gif Message ID: @. @.> >

AlainL88 commented 9 months ago

Mi aggiungo alla segnalazione. Qualcuno è riuscito a trovare una soluzione funzionante?

evilaliv3 commented 9 months ago

@AlainL88 : credo che questo repository verrà presto dismesso.

L'autorità stessa si sta dotando del software https://github.com/globaleaks in versione ufficiale.