[Support] Snoopy - Logitech Media Server, Emoncms, Ubuntu, FFmpeg


Recommended Posts

Supported Dockers

  • Ubuntu XRDP

                  Ubuntu virtual desktop with browser, apps....

                           username: ubuntu 

                           password: PASSWD 

  • Logitech Media Server ( LMS )

                Logitech media server for music (with airplay, youtube,...).

  • Emoncms

                  Energy monitor

 

  • FFmpeg

                  A Docker container designed to watch a directory and encode media files.

Edited by snoopy86
update
Link to comment


Installation
  • Navigate to "Extensions" and then "Docker" in the unRAID webui

  • Click back to "Extensions" menu and then click on the "Add" button

Once the image is downloaded you should see it appear in the "Extensions" section under the heading "Docker Apps"[/font]

Dockers

Wow.  You must still be running an early 6.0 Beta.  I don't think that the extensions tab has existed for quite a while  :o

Link to comment
  • 3 weeks later...

I've installed this docker, which is pretty awesome by the way, but I have a question about keeping changes persistent.  From my understanding, and experience, let's say you use apt-get within the ubuntu vm to install a new application.  Then you decide to make a change to the docker configuration in unraid (say adding a new port that gets carried through), which results in the base image being reloaded and you lose the changes you made (i.e. the newly installed application).

 

Is there any way around this?

 

One thing that I saw you can do is to map /etc from the ubuntu vm to a directory on the cache drive in unraid.  Do you see a downside to this?

 

EDIT:  Actually just saw that I can't even start the docker when I do this, so clearly it's not a viable option.  Back to the first question - any way to keep something persistently installed?  Say apache for example...which installs to /etc/apache2.

Link to comment
  • 2 weeks later...

I just set up this docker (or at least I think I did), two problems.

 

1) "Waiting for MySQL to start" is repeating in the log file so startup isn't right (probably 'cos I got the setup wrong)

2) The WEBUI isn't running so no way to get into the package.

 

Anyone got this working and could elaborate on the setup requirement?

If I can get this working then I can move on to buy some of the "Openenergymonitor" kit!

 

Thanks

Link to comment

I pointed all the volume mappings to a folder called emon on my cache drive.Below is the list from the Docker page.:

 

/var/lib/phpfina    /mnt/cache/apps/Docker/apps/emon/

/var/lib/phptimeseries    /mnt/cache/apps/Docker/apps/emon/

/etc/mysql    /mnt/cache/apps/Docker/apps/emon/mysql

/var/lib/mysql    /mnt/cache/apps/Docker/apps/emon/mysql

/var/lib/phpfiwa    /mnt/cache/apps/Docker/apps/emon/

 

This is probably hopelessly wrong. Could you let me know what I need or where to find info? Most installs 'probably' aren't like unRaid so being a novice and a User rather than a developer shows my limits!

Link to comment

Hi thanks but

 

I created the additional folders so each fas its own. The CMS log has changed to look like

 

=> Using an existing volume of MySQL

Waiting for MySQL to start...

Waiting for MySQL to start...

Waiting for MySQL to start...

Waiting for MySQL to start...

Waiting for MySQL to start...

Waiting for MySQL to start...

Waiting for MySQL to start...

Waiting for MySQL to start...

 

I think I did see it start once in the log but now it is a long wait!

 

I don't have sql anywhere else, unless Emby or Plex hide it. The WebUI still doesn't run.

 

The unRaid main log file now has this for Start through to Stop

 

Nov 28 20:09:30 Media autofan: Highest disk temp is 29°C, adjusting fan speed from: OFF (0% @ 0rpm) to: 372 (145% @ 903rpm)

Nov 28 20:09:34 Media php: /usr/local/emhttp/plugins/dynamix.docker.manager/scripts/docker 'start' 'Emoncms'

Nov 28 20:09:34 Media kernel: device vethce9f7e9 entered promiscuous mode

Nov 28 20:09:34 Media kernel: docker0: port 1(vethce9f7e9) entered forwarding state

Nov 28 20:09:34 Media kernel: docker0: port 1(vethce9f7e9) entered forwarding state

Nov 28 20:09:34 Media avahi-daemon[21294]: Withdrawing workstation service for vetha0b9f82.

Nov 28 20:09:34 Media kernel: docker0: port 1(vethce9f7e9) entered disabled state

Nov 28 20:09:34 Media kernel: eth0: renamed from vetha0b9f82

Nov 28 20:09:34 Media kernel: docker0: port 1(vethce9f7e9) entered forwarding state

Nov 28 20:09:34 Media kernel: docker0: port 1(vethce9f7e9) entered forwarding state

Nov 28 20:09:36 Media ntpd[1424]: Listen normally on 9 docker0 172.17.42.1:123

Nov 28 20:09:36 Media ntpd[1424]: new interface(s) found: waking up resolver

Nov 28 20:09:38 Media emhttp: cmd: /usr/local/emhttp/plugins/dynamix.docker.manager/scripts/docker logs --tail=350 -f Emoncms

Nov 28 20:09:49 Media kernel: docker0: port 1(vethce9f7e9) entered forwarding state

Nov 28 20:11:39 Media emhttp: cmd: /usr/local/emhttp/plugins/dynamix/scripts/tail_log syslog

Nov 28 20:12:21 Media emhttp: cmd: /usr/local/emhttp/plugins/dynamix.docker.manager/scripts/docker logs --tail=350 -f Emoncms

Nov 28 20:12:26 Media emhttp: cmd: /usr/local/emhttp/plugins/dynamix.docker.manager/scripts/docker logs --tail=350 -f Emoncms

Nov 28 20:12:52 Media php: /usr/local/emhttp/plugins/dynamix.docker.manager/scripts/docker 'stop' 'Emoncms'

Nov 28 20:13:02 Media kernel: vetha0b9f82: renamed from eth0

Nov 28 20:13:02 Media kernel: docker0: port 1(vethce9f7e9) entered disabled state

Nov 28 20:13:02 Media kernel: docker0: port 1(vethce9f7e9) entered disabled state

Nov 28 20:13:02 Media avahi-daemon[21294]: Withdrawing workstation service for vetha0b9f82.

Nov 28 20:13:02 Media kernel: device vethce9f7e9 left promiscuous mode

Nov 28 20:13:02 Media kernel: docker0: port 1(vethce9f7e9) entered disabled state

Nov 28 20:13:02 Media avahi-daemon[21294]: Withdrawing workstation service for vethce9f7e9.

Nov 28 20:13:04 Media ntpd[1424]: Deleting interface #9 docker0, 172.17.42.1#123, interface stats: received=0, sent=0, dropped=0, active_time=208 secs

 

Thanks for your help

Link to comment

Hi,

 

All deleted and a fresh start. This is the log:

 

=> Installing MySQL ...

Installing MySQL system tables...

OK

Filling help tables...

OK

 

To start mysqld at boot time you have to copy

support-files/mysql.server to the right place for your system

 

PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !

To do so, start the server, then issue the following commands:

 

/usr/bin/mysqladmin -u root password 'new-password'

/usr/bin/mysqladmin -u root -h 5e73e4deab69 password 'new-password'

 

Alternatively you can run:

/usr/bin/mysql_secure_installation

 

which will also give you the option of removing the test

databases and anonymous user created by default. This is

strongly recommended for production servers.

 

See the manual for more instructions.

 

You can start the MySQL daemon with:

cd /usr ; /usr/bin/mysqld_safe &

 

You can test the MySQL daemon with mysql-test-run.pl

cd /usr/mysql-test ; perl mysql-test-run.pl

 

Please report any problems at http://bugs.mysql.com/

 

Waiting for MySQL to start...

Waiting for MySQL to start...

Waiting for MySQL to start...

Waiting for MySQL to start...

Waiting for MySQL to start...

Waiting for MySQL to start...

Waiting for MySQL to start...

Waiting for MySQL to start...

 

And of course it goes on this way. Here are the mappings:

 

/var/lib/phpfiwa /mnt/cache/apps/Docker/apps/emon/fiwa/

/var/lib/phpfina /mnt/cache/apps/Docker/apps/emon/fina/

/var/lib/phptimeseries /mnt/cache/apps/Docker/apps/emon/time/

/etc/mysql /mnt/cache/apps/Docker/apps/emon/mysql/

/var/lib/mysql /mnt/cache/apps/Docker/apps/emon/mysqllib/

 

The environment variable MYSQL_PASSWORD is set to emoncms but yet there is still no GUI.

 

The log implies I should be doing some extra things directly, should I?

Link to comment
  • 1 month later...
  • 1 month later...
  • 3 weeks later...

Folder for emoncms /var/www should be now persistent so you can modify settings.php.

 

 

I've also created docker for Logitech Media Server because the one from gfjardim hasn't been updated for ages and added Flickr uploader for uploading photos to flickr. You have 1TB for free.

Link to comment

While you are in the docker authoring mood, would you mind taking a look at rolling an apache docker that could run http://www.directorypass.com/? I've been trying to get that software running on linuxserver's version, but no luck. I can add the cgi-bin support easily enough myself, but the perl script doesn't seem to be able to create files, it fails with a permissions problem.

 

If this doesn't sound like something you want to play with, no worries, I'm just trying to get out of doing the work myself.  :D

Link to comment

Folder for emoncms /var/www should be now persistent so you can modify settings.php.

 

 

I've also created docker for Logitech Media Server because the one from gfjardim hasn't been updated for ages and added Flickr uploader for uploading photos to flickr. You have 1TB for free.

Thanks for LMS. Using it now. Not clear how it is different than gfjardim though. I see it has a newer phusion. Is that the only difference? Do you plan on doing more with it? Here is an old request for adding the airplay plugin ;)
Link to comment

Today's emoncms seems to break the dashboard module?

The dasboard dropdown menu dissapeared and when i go for the direct link i just get

URI not acceptable. No controller 'dashboard'. (view/)

 

Something went wrong?

 

*edit: I forgot this at first, but you might have missed that some parts of emoncms have been separated and should be added manualley since 9.31. See:

https://openenergymonitor.org/emon/node/11798

I can confirm that doing a

git clone https://github.com/emoncms/dashboard.git

in the modules directory solves this.

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.