Tmux panes dead with nZEDb

Status
Not open for further replies.

NasKar

Guru
Joined
Jan 8, 2016
Messages
739
@Joshua Parker Ruehlig thanks for your helps so far. I'm trying to automate nZEDb with tmux. I have tmux 2.0 installed in my jail and have nZEDb working. I'm trying to get tmux to work by using
Code:
php start.php

it brings up a tmux window with 3 dead panes. I installed python to fix a prior error message.
Code:
pkg install python

BTW tmux is enabled in the admin/tmux section with basic sequential and simple threaded update. Any idea on why my panes are dead?
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
I'm not sure, but I think you need to enable stuff on the tmux settings page
 

NasKar

Guru
Joined
Jan 8, 2016
Messages
739
I did enable
BTW tmux is enabled in the admin/tmux section with basic sequential and simple threaded update. Any idea on why my panes are dead?
I did that but still dead panes
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
maybe provide a screenshot
and are you running the sequential script? You could try running it directly to make sure it works.

By the way, you really shouldn't need python. I use this in my user_threaded script.
Code:
  $PHP ${MULTI_PATH}/releases.php
   $PHP ${MULTI_PATH}/fixrelnames.php nfo
   $PHP ${MULTI_PATH}/fixrelnames.php filename
   $PHP ${MULTI_PATH}/fixrelnames.php predbft
   $PHP ${MULTI_PATH}/fixrelnames.php miscsorter
   $PHP ${MULTI_PATH}/fixrelnames.php md5
   $PHP ${MULTI_PATH}/fixrelnames.php par2
   $PHP ${NZEDB_PATH}/decrypt_hashes.php full
   $PHP ${DEV_PATH}/renametopre.php all
   $PHP ${NZEDB_PATH}/requestid.php all true
   $PHP ${DB_PATH}/populate_nzb_guid.php true
   $PHP ${MULTI_PATH}/requestid.php   
   $PHP ${MULTI_PATH}/postprocess.php add   
   $PHP ${MULTI_PATH}/postprocess.php nfo   
   $PHP ${MULTI_PATH}/postprocess.php mov true   
   $PHP ${MULTI_PATH}/postprocess.php tv true
   $PHP ${TEST_PATH}/delete_disabled_category_releases.php true
   $PHP ${TEST_PATH}/removeCrapReleases.php true full wmv_all
   $PHP ${TEST_PATH}/removeCrapReleases.php true full sample
   $PHP ${TEST_PATH}/removeCrapReleases.php true full size
   $PHP ${TEST_PATH}/removeCrapReleases.php true full scr
   $PHP ${TEST_PATH}/removeCrapReleases.php true full passwordurl
   $PHP ${TEST_PATH}/removeCrapReleases.php true full passworded
   $PHP ${TEST_PATH}/removeCrapReleases.php true full installbin
   $PHP ${TEST_PATH}/removeCrapReleases.php true full executable
   $PHP ${TEST_PATH}/removeCrapReleases.php true full short
   $PHP ${MULTI_PATH}/binaries.php 500000
   $PHP ${MULTI_PATH}/backfill.php 500000
 

NasKar

Guru
Joined
Jan 8, 2016
Messages
739
tmux pane is dead2.jpg
Code:
php start.php
Info: Starting the tmux server and monitor script.
Starting Tmux...
Resetting expired collections dateadded to now. This could take a minute or two. Really.
0 collections reset.
pane still active: nZEDb:0.0

I'm using start.php in the tmux directory.
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
View attachment 11769
Code:
php start.php
Info: Starting the tmux server and monitor script.
Starting Tmux...
Resetting expired collections dateadded to now. This could take a minute or two. Really.
0 collections reset.
pane still active: nZEDb:0.0

I'm using start.php in the tmux directory.
not sure, that top left area is the monitor area and should always have stuff shown. I set this up so long ago I don't remember the specifics, but running 'php start.php' should work
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
also, I'd make sure you are running as the www user, with the sh shell.
 

NasKar

Guru
Joined
Jan 8, 2016
Messages
739
1) I thought I need to be in the bash shell to run these scripts
2) Are you running start.sh from /usr/local/www/nZEDb/misc/update/nix/tmux
3) what does the init script you describe in the other thread do?
tmux1.jpg

tmux2.jpg

tmux3.jpg
 

NasKar

Guru
Joined
Jan 8, 2016
Messages
739
all the ownership is www:www
Just checked I'm running as root user how do I change it to www
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
1) I believe you do need bash, I noticed the user_threaded script calls it. But when I call it from my init script, it is using sh initially.

2) Yes, my init script is in the directory I specify with "nzedb_tmux_chdir"

3) Unless I am debugging stuff my nzedb tmux scripts are started by the init script I posted before. It starts tmux when my jail boots, and I can use that script to start/stop/connect to tmux.

you can change to a user with su, 'su www'. By default you'll need to change www's shell first. 'chsh -s /bin/sh www'
The fact you don't know this, makes me think you don't have the unix experience to run/maintain your own nZEDb. It is a very complicated program compared to say, owncloud.
 

NasKar

Guru
Joined
Jan 8, 2016
Messages
739
It works now. Thanks. Most of what I have learned is from your help and playing with these programs. Every problem brings more learning <G>.

1)on a related note, do you have to change the user/group for the storage
change storage permission.jpg



2) My last step is to get ZNC installed the nzedb ZNC guide if for Ubuntu. Should I follow this guide or do you have another suggestion?
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
It works now. Thanks. Most of what I have learned is from your help and playing with these programs. Every problem brings more learning <G>.

1)on a related note, do you have to change the user/group for the storage
View attachment 11778


2) My last step is to get ZNC installed the nzedb ZNC guide if for Ubuntu. Should I follow this guide or do you have another suggestion?
nice! learn from try stuff to, just saying nZEDb is pretty difficult to setup so most people trying to learn would never get it working well. just make sure you document your setup, that's what I always do so if anything screws up I could always setup the application again quickly.

I pretty much used that guide for znc, except change stuff for freebsd obviously. looking at my notes I did create a used for znc, not sure if this is (still) required. also used 'znc --makeconf'
 
Status
Not open for further replies.
Top