Instructions to setup Muximum in a jail?

Status
Not open for further replies.

Rudi Pittman

Contributor
Joined
Dec 22, 2015
Messages
161
[All comparisons against HTPC_Manager plugin]

Muximux [ https://github.com/mescon/Muximux ]appears to support more apps and has a more unified look. I'd like to give it a try but all my muddling around has not gotten it running. I'd be willing to run the preconfigured docker image if someone can point to a walkthrough of how to add a docker image to Freenas 11 (I just upgraded).

Thanks for your time.
 
Last edited:

SweetAndLow

Sweet'NASty
Joined
Nov 6, 2013
Messages
6,421
Muximum appears to support more apps and has a more unified look. I'd like to give it a try but all my muddling around has not gotten it running. I'd be willing to run the preconfigured docker image if someone can point to a walkthrough of how to add a docker image to Freenas 11 (I just upgraded).

Thanks for your time.
Running a docker image is not easy.

Create Linux vm, then install docker and lastly download the docker image you want.

Sent from my Nexus 5X using Tapatalk
 

danb35

Hall of Famer
Joined
Aug 16, 2011
Messages
15,504

Rudi Pittman

Contributor
Joined
Dec 22, 2015
Messages
161
What is Muximum? "more apps" than what? "more unified look" than what?

Should have been "Muximux" and will be updated shortly. In comparison to "HTPC_Manager" which after my upgrade from 9.10 to 11 no longer shows up in the list of installed plugins so if I'm going to HAVE to recreate it now is the time to also evaluate alternatives.
 

Jailer

Not strong, but bad
Joined
Sep 12, 2014
Messages
4,977
Looks like all it needs is a webserver with PHP installed in a jail to get it running. Should be simple enough.
 

Rudi Pittman

Contributor
Joined
Dec 22, 2015
Messages
161
Looks like all it needs is a webserver with PHP installed in a jail to get it running. Should be simple enough.

Yes it does look simple enough and I have nginx running with php in an existing jail for several other applications including an aria2c webgui however when I clone the Muximux repo into the web browser directory and attempt to access http://myserverip/Muximux all I get is:

An error occurred.
Sorry, the page you are looking for is currently unavailable.
Please try again later.

If you are the system administrator of this resource then you should check the error log for details.

Faithfully yours, nginx.
 

Rudi Pittman

Contributor
Joined
Dec 22, 2015
Messages
161
Code:
2016/10/22 04:03:43 [emerg] 5841#100623: bind() to 0.0.0.0:80 failed (49: Can't assign requested address)
2016/10/22 04:03:43 [emerg] 5842#100623: bind() to 0.0.0.0:80 failed (49: Can't assign requested address)
2016/10/22 04:27:21 [emerg] 5819#101438: bind() to 0.0.0.0:80 failed (49: Can't assign requested address)
2016/10/22 04:27:21 [emerg] 5821#101438: bind() to 0.0.0.0:80 failed (49: Can't assign requested address)
2016/10/26 18:54:38 [emerg] 5911#100616: bind() to 0.0.0.0:80 failed (49: Can't assign requested address)
2016/10/26 18:54:38 [emerg] 5923#100616: bind() to 0.0.0.0:80 failed (49: Can't assign requested address)
2016/10/26 23:14:13 [error] 6040#101496: *3 open() "/usr/local/www/nginx/favicon.ico" failed (2: No such file or directory), client: 192.168.3.122, server: localhost, request: "GET /favicon.ico HTTP/1.1", host: "192.168.3.105", referrer: "http://192.168.3.105/rm_manage/"
2016/11/10 06:31:02 [error] 5977#100621: *2 open() "/usr/local/www/nginx/favicon.ico" failed (2: No such file or directory), client: 192.168.3.122, server: localhost, request: "GET /favicon.ico HTTP/1.1", host: "192.168.3.105", referrer: "http://192.168.3.105/rm_manage/"
2016/11/22 21:02:27 [error] 5980#101501: *1 open() "/usr/local/www/nginx/favicon.ico" failed (2: No such file or directory), client: 192.168.3.2, server: localhost, request: "GET /favicon.ico HTTP/1.1", host: "192.168.3.105", referrer: "http://192.168.3.105/"
2016/12/24 01:50:18 [error] 6148#101502: *1 open() "/usr/local/www/nginx/Muximux" failed (2: No such file or directory), client: 192.168.3.2, server: localhost, request: "GET /Muximux HTTP/1.1", host: "192.168.3.105"
2016/12/24 01:50:19 [error] 6148#101502: *1 open() "/usr/local/www/nginx/favicon.ico" failed (2: No such file or directory), client: 192.168.3.2, server: localhost, request: "GET /favicon.ico HTTP/1.1", host: "192.168.3.105", referrer: "http://192.168.3.105/Muximux"
2016/12/24 01:50:51 [error] 6148#101502: *1 open() "/usr/local/www/nginx/Muximum/index.phpo" failed (2: No such file or directory), client: 192.168.3.2, server: localhost, request: "GET /Muximum/index.phpo HTTP/1.1", host: "192.168.3.105"
2016/12/24 01:50:55 [error] 6148#101502: *1 open() "/usr/local/www/nginx/Muximum/index.php" failed (2: No such file or directory), client: 192.168.3.2, server: localhost, request: "GET /Muximum/index.php HTTP/1.1", host: "192.168.3.105"
2016/12/24 01:51:01 [error] 6148#101502: *1 open() "/usr/local/www/nginx/Muximum/index.php" failed (2: No such file or directory), client: 192.168.3.2, server: localhost, request: "GET /Muximum/index.php HTTP/1.1", host: "192.168.3.105"
2016/12/24 01:51:18 [error] 6148#101502: *1 open() "/usr/local/www/nginx/Muximum/muximux.php" failed (2: No such file or directory), client: 192.168.3.2, server: localhost, request: "GET /Muximum/muximux.php HTTP/1.1", host: "192.168.3.105"


I don't have any idea why some of the lines are looking for /Muximum instead of /Muximux but I setup a symbolic link on the off chance it would help. The only thing I did was a git clone into /usr/local/www/nginx which created the "Muximux" subdir then tried to access it. There is an index.php inside that directory.

I deleted the dirs and did a fresh clone..tried again.

Code:
2016/12/24 01:50:51 [error] 6148#101502: *1 open() "/usr/local/www/nginx/Muximum/index.phpo" failed (2: No such file or directory), client: 192.168.3.2, server: localhost, request: "GET /Muximum/index.phpo HTTP/1.1", host: "192.168.3.105"
2016/12/24 01:50:55 [error] 6148#101502: *1 open() "/usr/local/www/nginx/Muximum/index.php" failed (2: No such file or directory), client: 192.168.3.2, server: localhost, request: "GET /Muximum/index.php HTTP/1.1", host: "192.168.3.105"
2016/12/24 01:51:01 [error] 6148#101502: *1 open() "/usr/local/www/nginx/Muximum/index.php" failed (2: No such file or directory), client: 192.168.3.2, server: localhost, request: "GET /Muximum/index.php HTTP/1.1", host: "192.168.3.105"
2016/12/24 01:51:18 [error] 6148#101502: *1 open() "/usr/local/www/nginx/Muximum/muximux.php" failed (2: No such file or directory), client: 192.168.3.2, server: localhost, request: "GET /Muximum/muximux.php HTTP/1.1", host: "192.168.3.105"


Only thing I can figure is the php might not be correct for this application.
 
Last edited:

Rudi Pittman

Contributor
Joined
Dec 22, 2015
Messages
161
The latest log entry you posted is from more than six months ago. What do the current logs say?

Your right and of course I didn't even pay attention since I did a cat and went to the end of the file but those are the last entries in /var/log/nginx-errors.log. I'm not sure why. The date is correct in the jail.
 

Jailer

Not strong, but bad
Joined
Sep 12, 2014
Messages
4,977
Only thing I can figure is the php might not be correct for this application
Looks like your document root is set incorrectly, it's saying it's not found. Check your nginx config and make sure the root directory in your config matches your actual directory.
 

Rudi Pittman

Contributor
Joined
Dec 22, 2015
Messages
161
It was saying Not Found in December. Who knows what it's doing now?

Well any suggestion on how to get nginx to generate a log file? Cause it hasn't touched the existing ones since December as you mentioned:

-rw-r--r-- 1 root wheel 334433 Dec 24 2016 nginx-access.log
-rw-r--r-- 1 root wheel 100919 Dec 24 2016 nginx-error.log


@Jailer

The entry looks correct to me in nginx.conf:

location / {
root /usr/local/www/nginx;
index index.php index.html index.htm;
}
 

Jailer

Not strong, but bad
Joined
Sep 12, 2014
Messages
4,977
There is something different before that and nginx is looking in /usr/local/www/nginx/Muximum/ according to your log file.
Edit: You should move that up to right below your server name line so it looks there first.

Do you currently have logging enabled in your http block?
Code:
error_log /var/log/nginx/error.log warn;

It was saying Not Found in December. Who knows what it's doing now?
True but it still points to a misconfigured nginx config file.
 

Rudi Pittman

Contributor
Joined
Dec 22, 2015
Messages
161
I managed to get the error log going again. I have no recollection of every stopping it but the error_log wasn't even looking in the right place. Latest entry tells my my fastcgi installation isn't working.

2017/07/05 16:46:04 [error] 53053#102164: *1 kevent() reported that connect() failed (61: Connection refused) while connecting to upstream, client: 192.168.3.3, server: localhost, request: "GET /Muximux/ HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "192.168.3.105"


Ok...got PHP-FPM straightened out....ran it again and now it just says "No Input File Specified" with the error log showing:

2017/07/05 16:53:34 [error] 53053#102164: *3 FastCGI sent in stderr: "Unable to open primary script: /scripts/Muximux/index.php (No such file or directory)" while reading response header from upstream, client: 192.168.3.3, server: localhost, request: "GET /Muximux/index.php HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "192.168.3.105"

I'm still running down the /scripts reference. Ok...I've made edits to the nginx.conf but apparently I'm missing something..not sure what the path should be since it seems to indicate root is /usr/local/www/nginx and it's looking for /Muximux/index.php which does exist but it says it doesn't.

location ~ \.php$ {
root /usr/local/www/nginx;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $fastcgi_script_name;
include fastcgi_params;
}

2017/07/05 17:01:47 [error] 54894#100687: *1 FastCGI sent in stderr: "Unable to open primary script: /Muximux/index.php (No such file or directory)" while reading response header from upstream, client: 192.168.3.3, server: localhost, request: "GET /Muximux/ HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "192.168.3.105"
 
Last edited:

danb35

Hall of Famer
Joined
Aug 16, 2011
Messages
15,504
So, rather than bookmarking CP/SAB/Sonarr/Headphones/whatever, you install a web server, install PHP, and use this web app? I guess it looks prettier, but...
 

Jailer

Not strong, but bad
Joined
Sep 12, 2014
Messages
4,977
One interface to rule them all......
 

Rudi Pittman

Contributor
Joined
Dec 22, 2015
Messages
161
I would think freenas users would understand unification.

This is what I use now for about 20 different applications (some as simple as my router's interface, another nas, remote potato on my htpc etc)

http://htpc.io/

Easier for me to have one ip to go to and then access from there. Ive given up on muximux until I can setup a new jail with fresh copy of nginx and php. The current server is working fine for the other apps I have running with it.
 

danb35

Hall of Famer
Joined
Aug 16, 2011
Messages
15,504
I would think freenas users would understand unification.
I don't see how this "unifies" anything, or indeed how it's anything more than a glorified bookmarks page. But maybe I'm missing something.
 
Status
Not open for further replies.
Top