Strange thing in filesystem

Status
Not open for further replies.

pasiz

Explorer
Joined
Oct 3, 2016
Messages
62
Strange query appeared to filelist in /

Code:
pasiz@storage:/ % ls -la
total 79
-rw-r--r--   1 root  wheel	 0 Sep 24 10:43 ??SELECT???plugin_name,???plugin_jail,???plugin_path,???plugin_enabled??FROM???plugins_plugins?? WHERE ( plugin_jail = 'couchpotato_1' AND plugin_name = 'couchpotato' )
drwxr-xr-x  19 root  wheel	27 Oct  5 21:15 ./
drwxr-xr-x  19 root  wheel	27 Oct  5 21:15 ../
-rw-r--r--   1 root  wheel   898 Apr  6  2016 .cshrc
-rw-r--r--   1 root  wheel   188 Apr  6  2016 .profile
-rw-------   1 root  wheel  1024 Nov  3  2015 .rnd
-r--r--r--   1 root  wheel  6142 Apr  6  2016 COPYRIGHT
drwxr-xr-x   2 root  wheel	47 Oct  5 21:08 bin/
drwxr-xr-x  10 root  wheel	56 Oct  5 21:10 boot/
drwxr-xr-x   3 root  wheel	 3 Apr  6  2016 compat/
drwxr-xr-x   4 root  wheel	 4 Apr 15  2015 conf/
drwxr-xr-x   7 www   www	  14 Oct  8 12:35 data/
dr-xr-xr-x  11 root  wheel   512 Oct  5 21:13 dev/
-rw-------   1 root  wheel  4096 Oct  5 21:15 entropy
drwxr-xr-x  29 root  wheel  8064 Oct  7 21:02 etc/
drwxr-xr-x   3 root  wheel	51 Sep 28 21:55 lib/
drwxr-xr-x   3 root  wheel	 4 Sep 28 21:55 libexec/
drwxr-xr-x   2 root  wheel	 2 Apr  6  2016 media/
drwxr-xr-x   4 root  wheel   192 Oct  5 21:15 mnt/
dr-xr-xr-x   2 root  wheel	 2 Apr  6  2016 proc/
drwxr-xr-x   2 root  wheel   143 Sep 28 21:55 rescue/
drwxr-xr-x   3 root  wheel	18 Oct  5 20:36 root/
drwxr-xr-x   2 root  wheel   128 Oct  5 21:08 sbin/
lrwxr-xr-x   1 root  wheel	11 Apr  6  2016 sys@ -> usr/src/sys
lrwxr-xr-x   1 root  wheel	 8 Apr  6  2016 tmp@ -> /var/tmp
drwxr-xr-x  16 root  wheel	16 Apr  6  2016 usr/
drwxr-xr-x  30 root  wheel  1920 Oct  5 21:16 var/


Anybody have any idea how to delete that, and is some db connector leaking?
 

DrKK

FreeNAS Generalissimo
Joined
Oct 15, 2013
Messages
3,630
You should be able to smoke it by doing rm \? and then tab-completing.

But still, what is that? Probably should be reported as a bug...
 

pasiz

Explorer
Joined
Oct 3, 2016
Messages
62
You should be able to smoke it by doing rm \? and then tab-completing.

But still, what is that? Probably should be reported as a bug...


Tab completion not working... i smoked it by rm *, adding symlinks to sys and tmp afterwards.

Strange thing, i cannot replicate it. May be it's left on previous versions...
 

SweetAndLow

Sweet'NASty
Joined
Nov 6, 2013
Messages
6,421
Tab completion not working... i smoked it by rm *, adding symlinks to sys and tmp afterwards.

Strange thing, i cannot replicate it. May be it's left on previous versions...
Lol this is not going to end well for you. You need to just reinstall and backup config. It looks like you probably didn't delete anything important but who knows.

Sent from my Nexus 5X using Tapatalk
 

wblock

Documentation Engineer
Joined
Nov 14, 2014
Messages
1,506
Which version of FreeNAS was this?
 

Jailer

Not strong, but bad
Joined
Sep 12, 2014
Messages
4,977
??SELECT???plugin_name,???plugin_jail,???plugin_path,???plugin_enabled??FROM???plugins_plugins?? WHERE ( plugin_jail = 'couchpotato_1' AND plugin_name = 'couchpotato' )

I get that same error when I connect via SFTP using fireftp in firefox. It started showing up after I updated to 9.10.1. Something tells me it's some leftover bits from my previous 9.3 jails that I rebuilt after I updated.

I don't know the exact build I'm on off the top of my head. If there is a way to get the build from the CLI I can SSH in and get it otherwise I'm at work so I'll update this response later when I get home.
 

pasiz

Explorer
Joined
Oct 3, 2016
Messages
62
Lol this is not going to end well for you. You need to just reinstall and backup config. It looks like you probably didn't delete anything important but who knows.

Could you please be more specific?? I did not delete anything important, just two symlinks that i backed up before. Easiest way to get rid. But why reinstall and backup.
 

Jailer

Not strong, but bad
Joined
Sep 12, 2014
Messages
4,977
Ok my error is slightly different but similar. This is the error I get when I connect with FireFTP. FreeNAS build is 9.10.1 (d989edd)
TypeError: items[x][3] is undefined["SELECT"]
TypeError: items[x][3] is undefined["plugin_nam", "e,"]
TypeError: items[x][3] is undefined["plugin_jai", "l,"]
TypeError: items[x][3] is undefined["plugin_pat", "h,"]
TypeError: items[x][3] is undefined["plugin_ena", "bled"]
TypeError: items[x][3] is undefined["FROM"]
TypeError: items[x][3] is undefined["plugins_pl", "ugins"]
 

SweetAndLow

Sweet'NASty
Joined
Nov 6, 2013
Messages
6,421
Hmm this is interesting why a file would exist with this name. Looks like a bug of some kind. I wonder what else isn't working because of this. Maybe some user specified sysctls are not working and no one has noticed?
https://github.com/freenas/freenas/...a38fe95/src/freenas/etc/ix.rc.d/ix-sysctl#L41
Code:
[root@tubby] /# ll
total 79
drwxr-xr-x  19 root  wheel	27 Oct  6 07:46 ./
drwxr-xr-x  19 root  wheel	27 Oct  6 07:46 ../
-rw-r--r--   1 root  wheel   898 Oct  6 07:35 .cshrc
-rw-r--r--   1 root  wheel   188 Oct  6 07:35 .profile
-rw-------   1 root  wheel  1024 Sep 25 15:49 .rnd
-r--r--r--   1 root  wheel  6142 Oct  6 07:35 COPYRIGHT
-rw-r--r--   1 root  wheel	 0 Oct  2 18:33 SELECT tun_var, tun_value FROM system_tunable WHERE tun_enabled = 1 AND tun_type = 'sysctl' ORDER BY id
drwxr-xr-x   2 root  wheel	47 Oct  6 07:35 bin/
drwxr-xr-x  10 root  wheel	56 Oct  6 07:43 boot/
drwxr-xr-x   3 root  wheel	 3 Sep 25 07:17 compat/
drwxr-xr-x   3 root  wheel	 3 Sep 25 07:17 conf/
drwxr-xr-x   7 www   www	  14 Oct  6 07:47 data/
dr-xr-xr-x  16 root  wheel   512 Oct  6 07:46 dev/
-rw-------   1 root  wheel  4096 Oct  6 07:46 entropy
drwxr-xr-x  28 root  wheel  7872 Oct  6 11:48 etc/
drwxr-xr-x   3 root  wheel	51 Oct  6 07:36 lib/
drwxr-xr-x   3 root  wheel	 4 Oct  6 07:36 libexec/
drwxr-xr-x   2 root  wheel	 2 Oct  6 07:39 media/
drwxr-xr-x   3 root  wheel   128 Oct  6 07:46 mnt/
dr-xr-xr-x   2 root  wheel	 2 Oct  6 07:39 proc/
drwxr-xr-x   2 root  wheel   143 Oct  6 07:36 rescue/
drwxr-xr-x   3 root  wheel	15 Oct  6 07:36 root/
drwxr-xr-x   2 root  wheel   128 Oct  6 07:36 sbin/
lrwxr-xr-x   1 root  wheel	11 Oct  6 07:36 sys@ -> usr/src/sys
lrwxr-xr-x   1 root  wheel	 8 Oct  6 07:36 tmp@ -> /var/tmp
drwxr-xr-x  16 root  wheel	16 Oct  6 07:39 usr/
drwxr-xr-x  29 root  wheel  1856 Oct  6 07:47 var/
 
Status
Not open for further replies.
Top