Installation pyload avec freenas

Status
Not open for further replies.

sensor76140

Explorer
Joined
Oct 25, 2014
Messages
91
à tout hasard j'ai essayé ça dans la jail:

Code:
root@pyload:/ # pyload
06.06.2015 19:45:36 INFO Démarrage pyLoad 0.4.9
06.06.2015 19:45:36 INFO Utilisation du dossier principal : /root/pyload
Traceback (most recent call last):
File "/usr/local/bin/pyload", line 668, in <module>
main()
File "/usr/local/bin/pyload", line 659, in main
pyload_core.start()
File "/usr/local/bin/pyload", line 393, in start
self.pluginManager = PluginManager(self)
File "/usr/local/share/pyload/module/plugins/PluginManager.py", line 50, in __init__
self.createIndex()
File "/usr/local/share/pyload/module/plugins/PluginManager.py", line 73, in createIndex
self.plugins["hooks"] = self.hookPlugins = self.parse("hooks")
File "/usr/local/share/pyload/module/plugins/PluginManager.py", line 196, in parse
temp = self.parse(folder, pattern, plugins)
File "/usr/local/share/pyload/module/plugins/PluginManager.py", line 163, in parse
config = literal_eval(config[0].strip().replace("\n", "").replace("\r", ""))
File "/usr/local/share/pyload/module/lib/SafeEval.py", line 45, in const_eval
return eval(c, None, _locals)
File "", line 1, in <module>

TypeError: bad operand type for unary +: 'tuple'
root@pyload:/ #
 

sensor76140

Explorer
Joined
Oct 25, 2014
Messages
91
Je me suis décidé à supprimer la jail et recommencer tout mais de nouveau bloqué..

à l'étape pkg_add -r git, ça me dit que c'est introuvable..

et effectivement en allant voir avec mon navigateur le dossier "packages stable 9 latest" n'y est plus... qu'est ce qui se passe ?
 

SmallGuy

Guru
Joined
Jun 7, 2013
Messages
560
Que donne le résultat de
Code:
pkg -vv

Et
Code:
pkg search git
 

SmallGuy

Guru
Joined
Jun 7, 2013
Messages
560
As-tu mis à jour pkg?
Peux-tu poster le résultat des commandes demandées ci dessus SVP?
 

sensor76140

Explorer
Joined
Oct 25, 2014
Messages
91
J'ai mis à jour les pkg mais lorsque je tape la commande il me dit que tout est à jour, sinon pour les commandes:

Code:
root@pyload:/ # pkg -vv
Version                 : 1.5.3
PKG_DBDIR = "/var/db/pkg";
PKG_CACHEDIR = "/var/cache/pkg";
PORTSDIR = "/usr/ports";
INDEXDIR = "";
INDEXFILE = "INDEX-9";
HANDLE_RC_SCRIPTS = false;
DEFAULT_ALWAYS_YES = false;
ASSUME_ALWAYS_YES = false;
REPOS_DIR [
    "/etc/pkg/",
    "/usr/local/etc/pkg/repos/",
]
PLIST_KEYWORDS_DIR = "";
SYSLOG = true;
ABI = "FreeBSD:9:amd64";
ALTABI = "freebsd:9:x86:64";
DEVELOPER_MODE = false;
VULNXML_SITE = "http://vuxml.freebsd.org/freebsd/vuln.xml.bz2";
FETCH_RETRY = 3;
PKG_PLUGINS_DIR = "/usr/local/lib/pkg/";
PKG_ENABLE_PLUGINS = true;
PLUGINS [
]
DEBUG_SCRIPTS = false;
PLUGINS_CONF_DIR = "/usr/local/etc/pkg/";
PERMISSIVE = false;
REPO_AUTOUPDATE = true;
NAMESERVER = "";
EVENT_PIPE = "";
FETCH_TIMEOUT = 30;
UNSET_TIMESTAMP = false;
SSH_RESTRICT_DIR = "";
PKG_ENV {
}
PKG_SSH_ARGS = "";
DEBUG_LEVEL = 0;
ALIAS {
    all-depends = "query %dn-%dv";
    annotations = "info -A";
    build-depends = "info -qd";
    cinfo = "info -Cx";
    comment = "query -i \"%c\"";
    csearch = "search -Cx";
    desc = "query -i \"%e\"";
    download = "fetch";
    iinfo = "info -ix";
    isearch = "search -ix";
    prime-list = "query -e '%a = 0' '%n'";
    leaf = "query -e '%#r == 0' '%n-%v'";
    list = "info -ql";
    noauto = "query -e '%a == 0' '%n-%v'";
    options = "query -i \"%n - %Ok: %Ov\"";
    origin = "info -qo";
    provided-depends = "info -qb";
    raw = "info -R";
    required-depends = "info -qr";
    roptions = "rquery -i \"%n - %Ok: %Ov\"";
    shared-depends = "info -qB";
    show = "info -f -k";
    size = "info -sq";
}
CUDF_SOLVER = "";
SAT_SOLVER = "";
RUN_SCRIPTS = true;
CASE_SENSITIVE_MATCH = false;
LOCK_WAIT = 1;
LOCK_RETRIES = 5;
SQLITE_PROFILE = false;
WORKERS_COUNT = 0;
READ_LOCK = false;
PLIST_ACCEPT_DIRECTORIES = false;
IP_VERSION = 0;
AUTOMERGE = true;
VERSION_SOURCE = "";
CONSERVATIVE_UPGRADE = true;
PKG_CREATE_VERBOSE = false;


Repositories:
  FreeBSD: {
    url             : "pkg+http://pkg.FreeBSD.org/freebsd:9:x86:64/latest",
    enabled         : yes,
    priority        : 0,
    mirror_type     : "SRV"
  }


et

Code:
root@pyload:/ # pkg search git
abbayedesmorts-git20150512
bzr-git-0.6.8_1
cgit-0.11.2
digitalcoin-1.0.0.0b_3
digitemp-3.6.0
easygit-0.98
git-2.4.2
git-bzr-ng-git20140423
git-extras-3.0.0
git-lite-2.4.2
git-merge-changelog-20140202
git-modes-emacs24-20150317_1
git-review-1.24_1
git-subversion-2.4.2
gitflow-1.8.0
gitg-3.16.1
gitg0-0.0.8_1
github-backup-utils-2.2.0
gitinspector-0.3.2
gitolite-3.6.1_1,1
gitolite2-2.3.1_1
gitphp-0.2.8_1
gittrac-2.0.1_1
griels-quest-git20150512
gtk-digital-cream-theme-1.0_8
gtk-digital-harmony-theme-1.1_8
hs-git-annex-5.20140817_1
hs-gitit-0.10.6.1_1
libgit2-0.22.2
libgit2-glib-0.22.8
libvterm-git20150527
magit-emacs24-1.4.0_1
metacity-digital-cream-theme-1.0_8
metacity-digital-harmony-theme-1.1_8
osmium-git20130522_9
p5-Algorithm-CheckDigits-1.3.0_1
p5-App-GitGot-1.33
p5-App-GitHub-1.0.1_1
p5-Config-GitLike-1.16
p5-Git-PurePerl-0.51
p5-Git-Repository-1.314
p5-Git-Repository-Plugin-Log-1.312_1
p5-Git-Sub-0.130270_1
p5-Git-Wrapper-0.044
p5-GitDDL-0.03
p5-GitDDL-Migrator-0.07
p5-Net-GitHub-0.75
p5-WWW-GitHub-Gist-0.17_1
p5-github_creator-0.15_1
pear-SebastianBergmann_Git-1.2.0
pear-VersionControl_Git-0.4.4
py27-django-taggit-0.12.1
py27-git-up-1.2.2
py27-gitdb-0.6.4_1
py27-gitosis-0.2.20090917_1
py27-hg-git-0.8.1
py27-pygit2-0.22.0
py27-pygithub-1.25.0
py27-python-digitalocean-1.3
py27-setuptools-git-1.1
py27-wsgitools-0.3
qgit-qt4-2.3_1
rubygem-gemnasium-gitlab-service-0.2.6
rubygem-git-1.2.9.1
rubygem-github-linguist-4.5.2
rubygem-github-markdown-0.6.8
rubygem-github-markup-1.3.3
rubygem-github_api-0.12.3
rubygem-gitlab-flowdock-git-hook-0.4.2.2
rubygem-gitlab-gollum-lib-1.1.0_3
rubygem-gitlab-grack-2.0.2_1
rubygem-gitlab-grit-2.7.3_1
rubygem-gitlab-linguist-3.0.1
rubygem-gitlab-pygments.rb-0.5.4
rubygem-gitlab_emoji-0.1.0
rubygem-gitlab_git-7.1.13
rubygem-gitlab_meta-7.0
rubygem-gitlab_omniauth-ldap-1.2.1
rubygem-html-pipeline-gitlab-0.2.0
rubygem-omniauth-github-1.1.2
rubygem-omniauth-github-discourse-1.1.2
rubygem-omniauth-gitlab-1.0.0
sagittarius-scheme-0.6.3
svn2git-1.0.10
uwsgitop-0.8
wyrmgus-git20150601
xtgyoretsu-git20140822


voilà voilà ^^
 

sensor76140

Explorer
Joined
Oct 25, 2014
Messages
91
Voilà l'erreur que j'ai en fait:

Code:
root@pyload:/ # pkg_add -r git
Error: Unable to get ftp://ftp.freebsd.org/pub/FreeBSD/ports/amd64/packages-9-stable/Latest/git.tbz: File unavailable (e.g., file not found, no access)
pkg_add: unable to fetch 'ftp://ftp.freebsd.org/pub/FreeBSD/ports/amd64/packages-9-stable/Latest/git.tbz' by URL
 

SmallGuy

Guru
Joined
Jun 7, 2013
Messages
560
Depuis la Jail fais
Code:
ping www.google.com
 

sensor76140

Explorer
Joined
Oct 25, 2014
Messages
91
Code:
root@pyload:/ # ping www.google.com
PING www.google.com (173.194.45.82): 56 data bytes
64 bytes from 173.194.45.82: icmp_seq=0 ttl=55 time=7.994 ms
64 bytes from 173.194.45.82: icmp_seq=1 ttl=55 time=7.199 ms
64 bytes from 173.194.45.82: icmp_seq=2 ttl=55 time=8.201 ms
64 bytes from 173.194.45.82: icmp_seq=3 ttl=55 time=7.517 ms
64 bytes from 173.194.45.82: icmp_seq=5 ttl=55 time=7.331 ms
64 bytes from 173.194.45.82: icmp_seq=6 ttl=55 time=7.327 ms
64 bytes from 173.194.45.82: icmp_seq=8 ttl=55 time=8.377 ms
64 bytes from 173.194.45.82: icmp_seq=9 ttl=55 time=8.430 ms
64 bytes from 173.194.45.82: icmp_seq=10 ttl=55 time=8.182 ms
64 bytes from 173.194.45.82: icmp_seq=11 ttl=55 time=7.718 ms
64 bytes from 173.194.45.82: icmp_seq=12 ttl=55 time=7.239 ms


Le problème c'est qu'il pointe vers un dossier qui n'éxiste pas. Lorsqu'on tape ça http://ftp.freebsd.org/pub/FreeBSD/ports/amd64/ dans le navigateur le dossier packages 9 n'y est plus, il faudrait que je le télécharge d'ailleurs
 

SmallGuy

Guru
Joined
Jun 7, 2013
Messages
560
Et avec
Code:
pkg install git

Sinon depuis port:
Code:
portsnap fetch extract
cd /usr/ports/devel/git
make install clean
 

SmallGuy

Guru
Joined
Jun 7, 2013
Messages
560
Je suis avec mon téléphone, dès que je serais a la maison je regarderais ça de plus prêt.
 

sensor76140

Explorer
Joined
Oct 25, 2014
Messages
91
ça a l'air de marcher mais une erreur à la fin de l'install de git...
et si je continue l'install normal de pyload error code 1
 

SmallGuy

Guru
Joined
Jun 7, 2013
Messages
560
Bonsoir,
Bon, j'ai pris le temps de regarder, bien que je ne comprends pas pourquoi pyload ne se mette plus à fonctionner soudainement (je ne l'utilises pas et je l'ai viré, alors j'ai pas vraiment d'avis avertis), et je passe le détail des subtilités, en trois mots "FreeBSD a évolué" (cf. https://forums.freenas.org/index.ph...0-4-9-self-made-port.13823/page-3#post-208794 thanks to Joshua):

Template Standard Jail: http://download.freenas.org/jails/9.2/x64/freenas-standard-9.2-RELEASE.tgz
Code:
portsnap fetch extract

Code:
pkg update

Code:
pkg2ng

Code:
pkg install git

Code:
cd /usr/ports/www

Code:
git clone https://github.com/mrhanky17/pyload-freebsd.git pyload

Code:
cd pyload/

Code:
make makesum

Code:
make install clean

[Edit]
ha oui j'ai oublié, il y a toujours un problème de droit à règler:
Code:
chmod -R 755 /usr/local/share/pyload/

[Fin Edit]
Code:
pyload

Code:
echo 'pyload_enable="YES"' >> /etc/rc.conf
echo 'pyload_flags="--daemon"' >> /etc/rc.confecho 'pyload_pid="/var/run/pyload.pid" ' >> /etc/rc.conf
echo 'pyload_config="/root/pyload"' >> /etc/rc.conf
ln -s /usr/ports/www/pyload/work/stage/usr/local/etc/rc.d/pyload /etc/rc.d/pyload

Code:
service pyload start


En résumé la commande suivante est ton salut (thanks to Joshua one more time), avec un peu de recherche et d’opiniâtreté tu pouvais t'en sortir seul (et poster pour les autres :p ) :
Code:
make makesum

J'ai validé la procèdure, j'aurais voulu l'avoir fait plus tôt, mais j'ai une vie professionnelle et familiale bien remplie ;).
Bon pyload!
upload_2015-6-12_23-55-54.png
 
Last edited:

Zeito

Cadet
Joined
Mar 27, 2016
Messages
3
freenas v 9.3

Salut,

Je pensais avoir tout bien fait comme indiqué dans le post #77 mais j'ai deux problèmes :

- configuration de pyload : lors de la vérification du système PyQt4 et jinja2 sont notés absents. Pour jinja2, j'obtiens la précision suivante "la version 2.8 semble trop ancienne". C'est problématique ?

- Via l'interface web, j'ai ajouté le plugin OneFichierCom et dans l'onglet "comptes", j'ai ajouté les id et pswd associés à ce plugin. Dans le tableau récap, je vois bien "statut" disponible mais "Premium" affiche "non" et il n'y a pas de date de validité. Pourtant, mon compte 1fichier est bien premium et il est bien à jour. Où ai-je foiré ?

Configuration


Plugin
Nom Mot de passe Statut Premium Valide jusqu'au Trafic restant Temps Maximum en Parallèle Supprimer ?
OneFichierCom xxxx valide non non disponible non disponible

Merci !
 
Status
Not open for further replies.
Top