snoopy86

[Support] Snoopy repo

Recommended Posts

Installation

  • Navigate to "Docker" and "Docker repositories" in the unRAID webui
  • Enter in a URL of https://github.com/snoopy86/docker-repo/tree/master/snoopy in the "Template repositories" field
  • Click on the "Save" button
  • Click back to "Docker" menu and then click on the "Add" button
  • Click on the "Template" dropdown menu and select the desired Docker image
  • Click the "Advanced View" toggle on the top right and fill in required fields e.g. volume data, environment variables etc
  • Click on the "Add" button at the bottom of the window to begin pulling down the Docker image
  • Once the image is downloaded you should see it appear in the "Docker" section

Dockers

                  Emoncms is a powerful open-source web-app for processing, logging and visualising energy, temperature and other environmental data.

  • icon-ubuntu-circle-24x24.png Ubuntu XRDP

                  Ubuntu virtual desktop with browser, apps....

  • 0020_999_1442386253_0020_14587_1380862677_logite.png Logitech Media Server ( LMS )

                Logitech media server for music (with airplay).

 

  • ico-flicker.png Flickr uploader

                Upload pictures to flickr.

 

Flickr instructions:

Before you start the docker you must create folder folders2flickr. There you must copy uploader.ini from https://github.com/snoopy86/flickr-uploader. Go to http://www.flickr.com/services/apps/create/apply and apply for an API key Edit the following variables in the uploadr.ini. When the docker is started you must check log. You will have to copy the url from log and put it in the browser to accept this app. You have 60s to do this :) . After that uploader will get token from Flickr and start uploading your pictures to flickr.

Share this post


Link to post
Share on other sites


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

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

No, the changes after container restart won't exist when you install some new app. Only way to have this is to commit running container after you have installed the app or changed something.

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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!

Share this post


Link to post
Share on other sites

Firstly put your mappings in seperate folders. I see that you have some mappings in the same folders...

 

How is your port mapping. Do you maybe have any other docker with mysql running on 3306 port?

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

Strange. You have set your variable MYSQL_PASSWORD in environment variables right?

 

 

I would stop the docker. Delete all from this folders you have created and start it as fresh. If this doesn't help i don't have any more ideas.

 

 

 

 

 

Share this post


Link to post
Share on other sites

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?

Share this post


Link to post
Share on other sites

I have the same problem as rjstott. Waiting for MySql to start.

 

Is it a permissions problem?

Share this post


Link to post
Share on other sites

Hi Snoopy, let us know when a new version is available, I want to use my RPi to send the data to my unraid box.

 

Thanks

Share this post


Link to post
Share on other sites

Can you make the settings.php available in the data directory?

I have quite a few changes made to the settings.php file but unless i'm mistaken it's not accessible and persistent in your docker?

 

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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 ;)

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Copyright © 2005-2017 Lime Technology, Inc. unRAID® is a registered trademark of Lime Technology, Inc.