[FreeNAS 9 Plugin] - MineOS

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
Nope. It says

Code:
ln: /usr/local/lib/librsync.so.1: File exists


Maybe I'm running it from the wrong location? I'm opening the shell on the jail and running the code. That's the correct location, right?
Yeah you should be running this command from within the jail.
Weird that it's there, but mineos still complains about it.

Can you try this
ls -l /usr/local/lib/librsync.so.1
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
Can you also try the commands '/usr/pbi/mineos-amd64/bin/rsync' and '/usr/pbi/mineos-amd64/bin/rdiff-backup'
 

Rogallaig

Cadet
Joined
Feb 24, 2015
Messages
4
Checking the permissions on the file:
lrwxr-xr-x 1 root wheel 39 Feb 8 21:28 /usr/local/lib/librsync.so.1 -> /usr/pbi/mineos-amd64/lib/librsync.so.1

Perhaps it doesn't like that root has ownership of some files, while I'm logged into the server (and creating restore points) as mcserver?

Can you also try the commands '/usr/pbi/mineos-amd64/bin/rsync' and '/usr/pbi/mineos-amd64/bin/rdiff-backup'

The rsync command errors out, and the command options scroll by and eventually ends in:
rsync error: syntax or usage error (code 1) at main.c(1559) [client=3.1.1]

Next I ran the rdiff-backup command:
Code:
root@mineos_1:/ # /usr/pbi/mineos-amd64/bin/rdiff-backup                                                                            
Traceback (most recent call last):                                                                                                  
  File "/usr/pbi/mineos-amd64/bin/rdiff-backup", line 20, in <module>                                                              
    import rdiff_backup.Main                                                                                                        
  File "/usr/pbi/mineos-amd64/lib/python2.7/site-packages/rdiff_backup/Main.py", line 25, in <module>                              
    import Globals, Time, SetConnections, selection, robust, rpath, \                                                              
  File "/usr/pbi/mineos-amd64/lib/python2.7/site-packages/rdiff_backup/SetConnections.py", line 30, in <module>                    
    import Globals, connection, rpath                                                                                              
  File "/usr/pbi/mineos-amd64/lib/python2.7/site-packages/rdiff_backup/connection.py", line 539, in <module>                        
    import Globals, Time, Rdiff, Hardlink, FilenameMapping, C, Security, \                                                          
  File "/usr/pbi/mineos-amd64/lib/python2.7/site-packages/rdiff_backup/Rdiff.py", line 22, in <module>                              
    import os, librsync                                                                                                            
  File "/usr/pbi/mineos-amd64/lib/python2.7/site-packages/rdiff_backup/librsync.py", line 28, in <module>                          
    import _librsync                                                                                                                
ImportError: Shared object "librsync.so.1" not found, required by "_librsync.so"  
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
Checking the permissions on the file:
lrwxr-xr-x 1 root wheel 39 Feb 8 21:28 /usr/local/lib/librsync.so.1 -> /usr/pbi/mineos-amd64/lib/librsync.so.1

Perhaps it doesn't like that root has ownership of some files, while I'm logged into the server (and creating restore points) as mcserver?



The rsync command errors out, and the command options scroll by and eventually ends in:
rsync error: syntax or usage error (code 1) at main.c(1559) [client=3.1.1]

Next I ran the rdiff-backup command:
Code:
root@mineos_1:/ # /usr/pbi/mineos-amd64/bin/rdiff-backup                                                                           
Traceback (most recent call last):                                                                                                 
  File "/usr/pbi/mineos-amd64/bin/rdiff-backup", line 20, in <module>                                                             
    import rdiff_backup.Main                                                                                                       
  File "/usr/pbi/mineos-amd64/lib/python2.7/site-packages/rdiff_backup/Main.py", line 25, in <module>                             
    import Globals, Time, SetConnections, selection, robust, rpath, \                                                             
  File "/usr/pbi/mineos-amd64/lib/python2.7/site-packages/rdiff_backup/SetConnections.py", line 30, in <module>                   
    import Globals, connection, rpath                                                                                             
  File "/usr/pbi/mineos-amd64/lib/python2.7/site-packages/rdiff_backup/connection.py", line 539, in <module>                       
    import Globals, Time, Rdiff, Hardlink, FilenameMapping, C, Security, \                                                         
  File "/usr/pbi/mineos-amd64/lib/python2.7/site-packages/rdiff_backup/Rdiff.py", line 22, in <module>                             
    import os, librsync                                                                                                           
  File "/usr/pbi/mineos-amd64/lib/python2.7/site-packages/rdiff_backup/librsync.py", line 28, in <module>                         
    import _librsync                                                                                                               
ImportError: Shared object "librsync.so.1" not found, required by "_librsync.so"  
root ownership is as expected for system libraries.
Ok, the rsync command worked as expected.

Maybe the lib that is supposed to be linked to doesn't exist anymore? What does this give you?
Code:
ls -l /usr/pbi/mineos-amd64/lib/librsync.so.1
 

Rogallaig

Cadet
Joined
Feb 24, 2015
Messages
4
Here's the results of the command:

Code:
root@mineos_1:/ # ls -l /usr/pbi/mineos-amd64/lib/librsync.so.1
lrwxr-xr-x 1 root wheel 17 Sep 18 00:51 /usr/pbi/mineos-amd64/lib/librsync.so
.1 -> librsync.so.1.0.2


And here's the info on librsync.so.1.0.2:

Code:
root@mineos_1:/ # ls -l /usr/pbi/mineos-amd64/lib/librsync.so.1.0.2
-rwxrwxr-x 1 mcserver wheel 50080 Sep 18 00:51 /usr/pbi/mineos-amd64/lib/libr
sync.so.1.0.2


Should librsync.so.1 be linked to librsync.so.1.0.2 ?? They have the same timestamp, so I'm a little confused.
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
Here's the results of the command:

Code:
root@mineos_1:/ # ls -l /usr/pbi/mineos-amd64/lib/librsync.so.1
lrwxr-xr-x 1 root wheel 17 Sep 18 00:51 /usr/pbi/mineos-amd64/lib/librsync.so
.1 -> librsync.so.1.0.2


And here's the info on librsync.so.1.0.2:

Code:
root@mineos_1:/ # ls -l /usr/pbi/mineos-amd64/lib/librsync.so.1.0.2
-rwxrwxr-x 1 mcserver wheel 50080 Sep 18 00:51 /usr/pbi/mineos-amd64/lib/libr
sync.so.1.0.2


Should librsync.so.1 be linked to librsync.so.1.0.2 ?? They have the same timestamp, so I'm a little confused.
Yes that's how shared libraries usually work. A lot of symlinks until you get to the actual lib version.

What's strange is the settings of librsync.so.1.0.2, it's owned by mcserver and has very open 775 permissions. You might try settings this to the same as the rest of the directory, probably root:wheel 644. But maybe the for got overwritten looking at those weird permission levels.
 

ElGusto

Explorer
Joined
Mar 19, 2015
Messages
72
Hello!

I am trying FreeNAS 9.3 and the MineOS plugin at the moment. When I first installed the plugin, it worked normally, but I noticed it had installed the jail directory onto my z2pool. I wanted it to install on the additional SSD-Volume I also have.
So I uninstalled the plugin, changed the Jail path in general configuration, deleted the old jail directory and installed the plugin again.

But the plugin doesn't show up under installed plugins.

I tried changing the jail location to the z2pool again and the plugin installation worked.
But it won't work with the changed jail path.
What could I do about this?

Thank you!
 
Last edited:

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
Hello!

I am trying FreeNAS and the MineOS plugin at the moment. When I first installed the plugin, it worked normally, but I noticed it had installed the jail directory onto my z2pool. I wanted it to install onto the additional SSD-Volume I have. So I uninstalled the plugin, changed the Jail path in general configuration, deletet the old jail directory and installed the plugin again.

But the plugin doesn't show up under installed plugins.

I tried changing the jail location to the z2pool again and the plugin installation worked.
But it won't work with the changed jail path.
What could I do about this?

Thank you!
this doesn't sound specific to mineos. can you install any jails to your ssd pool?
 

ElGusto

Explorer
Joined
Mar 19, 2015
Messages
72
Yes, I installed the Couchpotato and the Headphone plugin, just for trying.
They are both working with the SSD-jail path.

Does the plugin have a check for free space or similar?
I have just about 12GByte free on the SSD-pool.
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
Yes, I installed the Couchpotato and the Headphone plugin, just for trying.
They are both working with the SSD-jail path.

Does the plugin have a check for free space or similar?
I have just about 12GByte free on the SSD-pool.
on your ssd pool was a jail created for mineos, how about a dataset?
if not, please try again and see what, if anything is created.
 

ElGusto

Explorer
Joined
Mar 19, 2015
Messages
72
on your ssd pool was a jail created for mineos, how about a dataset?
if not, please try again and see what, if anything is created.

There's a jail called:
mineos_1

And there are two datasets:
jails/.warden-template-pluginjail
jails/mineos_1

It's all on the SSD-pool.

But the entry at Plugins/Installed is not there. (unlike it is when using the z2pool on my harddisks)

Some pictures, in case I'm wrong somehow:
 

Attachments

  • datasets.png
    datasets.png
    20.6 KB · Views: 430
  • jails.png
    jails.png
    6.9 KB · Views: 417
Last edited:

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
There's a jail called:
mineos_1

And there are two datasets:
jails/.warden-template-pluginjail
jails/mineos_1

It's all on the SSD-pool.

But the entry at Plugins/Installed is not there. (unlike it is when using the z2pool on my harddisks)
sounds like something went wrong part way during the install. I would try again just to double check.

I think 12GB should be enough, but the install of java and python with mineos does take a few GB.
 

ElGusto

Explorer
Joined
Mar 19, 2015
Messages
72
I already installed and uninstalled the plugin three times on both pools. I have also rebootet FreeNAS in between. But it was the same everytime.
As I'm new to FreeNAS, I have just added two pictures to my previous post, in case I am misinterpreting this Information.
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
it looks like the jail did install but I'm guessing something got messed up during plugin installation. please download the mineos PBI from download.freenas.org, and upload it to your mineos jail.
 

ElGusto

Explorer
Joined
Mar 19, 2015
Messages
72
Ok, I did so. It is working now!

Thank you for the super fast help! :)

Though, I wonder what has gone wrong?
Wouldn't reinstalling the plugin from the list download and install it all again? What's the difference when downloading it manually and transferring to the jail?
I deleted the jail after every try before...

Is there a cache or some temporary storage involved that I could clean, for preventing potential problems?
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
Ok, I did so. It is working now!

Thank you for the super fast help! :)

Though, I wonder what has gone wrong?
Wouldn't reinstalling the plugin from the list download and install it all again? What's the difference when downloading it manually and transferring to the jail?
I deleted the jail after every try before...

Is there a cache or some temporary storage involved that I could clean, for preventing potential problems?
installing from the repo always installs a new jail. uploading a pbi can be to a new jail or in this case an already created jail.

maybe creating the jail+installing the pbi somehow was timing out on your system. Im not sure if PBIs are locally cached.
 

rcdevils

Dabbler
Joined
Feb 8, 2015
Messages
17
Hello, I'm a bit of a newbie so I will apologize in advanced if the solution to my question is obvious.

Write now I'm trying to get HTTPS working for the mineos web GUI but it doesnt work for me, even though I have checked the box to "Enable SSL:" and generated a key and CRT from star SSL and installed them into the /etc/ssl/certs/.
With https enabled whenever I try to access the webgui it just times out.

Any help would be appreciated. :)


EDIT
I read this post http://discourse.codeemo.com/t/ssl-error-with-private-certificate/403/7

So the solution was for me to create the csr and private key inside the jail using openssl then submitting the csr to startssl. Then with the crt given by startssl and key created by openssl it all worked.
 
Last edited:

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
Hello, I'm a bit of a newbie so I will apologize in advanced if the solution to my question is obvious.

Write now I'm trying to get HTTPS working for the mineos web GUI but it doesnt work for me, even though I have checked the box to "Enable SSL:" and generated a key and CRT from star SSL and installed them into the /etc/ssl/certs/.
With https enabled whenever I try to access the webgui it just times out.

Any help would be appreciated. :)
When you enabled SSL did you also specify your cert+key?
 

rcdevils

Dabbler
Joined
Feb 8, 2015
Messages
17

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
Yes, I named the crt and key mineos so that the default directory is correct.
I recommend trying to restart the plugin.
If that still doesn't work I would ask on the MineOS forum.
 
Top