Author Topic: How To - Log data to an external CIFS share (e.g. NAS) - No more USB  (Read 43056 times)

Offline Sender

  • Hero Member
  • *****
  • Posts: 921
  • Karma: +546/-453
  • Sr. manager of my Vera
Re: How To - Log data to an external CIFS share (e.g. NAS) - No more USB
« Reply #105 on: March 31, 2018, 07:08:37 am »
Hi @sender

I?m looking to attempt it on my VeraPlus for the first time (have used it for years on UI5) but saw that people had many issues under UI7.

Please could you confirm the steps, install packages etc you followed to enable CIFS support, and also the script you have in your vera Start Up to connect and mount each time.

Sorry dont know what I did exactly anymore. But if you follow the big thread on this forum from begin to end I remember getting it to work.
Good firmware is more important than good karma. (and this costed me lots of Karma)

Offline samyoue

  • Jr. Member
  • **
  • Posts: 67
  • Karma: +6/-5
Re: How To - Log data to an external CIFS share (e.g. NAS) - No more USB
« Reply #106 on: August 23, 2018, 06:44:48 am »
Hi,

For those of you subscribed to this thread or come across it,
I've posted instructions on how to mount a cifs share easily from within veras web ui here. Thanks to everyone in this sub forum in particular

Hope it helps,

Sam

Offline physiker123

  • Newbie
  • *
  • Posts: 7
  • Karma: +1/-0
Re: How To - Log data to an external CIFS share (e.g. NAS) - No more USB
« Reply #107 on: August 27, 2018, 09:53:32 am »
Hello there,

thank you for your tutorial!

It worked great for me, I mounted a folder of my Diskstation to my vera under /dataMine, and this folder appears under df -h.

I reinstalled datamine because I wanted a fresh start from the beginning. But since there, I have big problems using Datamine. I set the manualmount to 1, the rest of the configuration is standard.

It seems like the configuration does fail, and therefore there is no webpage for the configuration. I already manually deleted the datamine2...file under /www/dm/. to force a reload, without any help.

Debug-Page:

Code: [Select]
-1-===========================================================================
09 08/27/18 15:49:42.907 JobHandler_LuaUPnP::Run device 804 ptr 0xe3c4b0 dataMine 2 graphing and logging plugin room 0 type urn:schemas-cd-jackson-com:device:DataMine:1 cat 0:-1 id  parent 0/0xf7eec8 upnp: 0 plugin:8526 pnp:0 mac: ip: <0x77e89320>
50 08/27/18 15:49:47.144 luup_log:804: dataMine: Initialising dataMine System (2.000) <0x773f8520>
06 08/27/18 15:49:47.144 Device_Variable::m_szValue_set device: 804 service: urn:cd-jackson-com:serviceId:DataMine1 variable: errorStatus was: false now: false #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:1 <0x773f8520>
06 08/27/18 15:49:47.145 Device_Variable::m_szValue_set device: 804 service: urn:cd-jackson-com:serviceId:DataMine1 variable: ChannelCnt was: 0 now: 0 #hooks: 0 upnp: 0 skip: 0 v:0x10cfbb0/NONE duplicate:1 <0x773f8520>
06 08/27/18 15:49:47.145 Device_Variable::m_szValue_set device: 804 service: urn:cd-jackson-com:serviceId:DataMine1 variable: ChannelRec was: 0 now: 0 #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:1 <0x773f8520>
06 08/27/18 15:49:47.145 Device_Variable::m_szValue_set device: 804 service: urn:cd-jackson-com:serviceId:DataMine1 variable: mountLocation was:  now: ** Manual #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:0 <0x773f8520>
06 08/27/18 15:49:47.146 Device_Variable::m_szValue_set device: 804 service: urn:cd-jackson-com:serviceId:DataMine1 variable: mountType was:  now: ** Manual #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:0 <0x773f8520>
50 08/27/18 15:49:47.146 luup_log:804: dataMine: Manual mounting to (/dataMine/) <0x773f8520>
50 08/27/18 15:49:47.191 luup_log:804: dataMine: Mounted: //192.168.1.33/vera on /dataMine type cifs (rw,mand,relatime,vers=1.0,sec=ntlm,cache=strict,username=vera,uid=0,noforceuid,gid=0,noforcegid,addr=192.168.1.33,unix,posixpaths,serverino,acl,rsize=1048576,wsize=1048576,actimeo=1) <0x773f8520>
06 08/27/18 15:49:47.192 Device_Variable::m_szValue_set device: 804 service: urn:cd-jackson-com:serviceId:DataMine1 variable: mountLocation was: ** Manual now: //192.168.1.33/vera #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:0 <0x773f8520>
06 08/27/18 15:49:47.192 Device_Variable::m_szValue_set device: 804 service: urn:cd-jackson-com:serviceId:DataMine1 variable: mountType was: ** Manual now: cifs #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:0 <0x773f8520>
50 08/27/18 15:49:47.230 luup_log:804: dataMine: Mount point error - umount: //192.168.1.33/vera:: <0x773f8520>
50 08/27/18 15:49:47.264 luup_log:804: dataMine: Mounting dataMine storage () to (/dataMine/) <0x773f8520>
50 08/27/18 15:49:47.346 luup_log:804: dataMine: mount command output:'mount: can't read '/etc/fstab': No such file or directory
50 08/27/18 15:49:47.391 luup_log:804: dataMine: Error reading tmpfile during mountcheck <0x773f8520>
06 08/27/18 15:49:47.392 Device_Variable::m_szValue_set device: 804 service: urn:cd-jackson-com:serviceId:DataMine1 variable: mountLocation was: //192.168.1.33/vera now:  #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:0 <0x773f8520>
06 08/27/18 15:49:47.393 Device_Variable::m_szValue_set device: 804 service: urn:cd-jackson-com:serviceId:DataMine1 variable: mountType was: cifs now:  #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:0 <0x773f8520>
50 08/27/18 15:49:47.491 luup_log:804: dataMine: Installing update of dataMine web application <0x773f8520>
50 08/27/18 15:50:00.929 luup_log:804: dataMine: ERROR: Unable to open config file for read :: /dataMine/dataMineConfig.json <0x773f8520>
50 08/27/18 15:50:00.959 luup_log:804: dataMine: Primary config file load failed. No backup file found! <0x773f8520>
06 08/27/18 15:50:00.961 Device_Variable::m_szValue_set device: 804 service: urn:cd-jackson-com:serviceId:DataMine1 variable: ChannelCnt was: 0 now: 0 #hooks: 0 upnp: 0 skip: 0 v:0x10cfbb0/NONE duplicate:1 <0x773f8520>
06 08/27/18 15:50:00.962 Device_Variable::m_szValue_set device: 804 service: urn:cd-jackson-com:serviceId:DataMine1 variable: ChannelRec was: 0 now: 0 #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:1 <0x773f8520>
50 08/27/18 15:50:00.962 luup_log:804: dataMine: Reinitialising configuration structure <0x773f8520>
50 08/27/18 15:50:00.965 luup_log:804: dataMine: Startup complete <0x773f8520>
50 08/27/18 15:50:30.122 luup_log:804: dataMine: Initialising dataMine System (2.000) <0x77214520>
06 08/27/18 15:50:30.122 Device_Variable::m_szValue_set device: 804 service: urn:cd-jackson-com:serviceId:DataMine1 variable: errorStatus was: false now: false #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:1 <0x77214520>
06 08/27/18 15:50:30.123 Device_Variable::m_szValue_set device: 804 service: urn:cd-jackson-com:serviceId:DataMine1 variable: ChannelCnt was: 0 now: 0 #hooks: 0 upnp: 0 skip: 0 v:0xf68bb0/NONE duplicate:1 <0x77214520>
06 08/27/18 15:50:30.123 Device_Variable::m_szValue_set device: 804 service: urn:cd-jackson-com:serviceId:DataMine1 variable: ChannelRec was: 0 now: 0 #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:1 <0x77214520>
06 08/27/18 15:50:30.123 Device_Variable::m_szValue_set device: 804 service: urn:cd-jackson-com:serviceId:DataMine1 variable: mountLocation was:  now: ** Manual #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:0 <0x77214520>
06 08/27/18 15:50:30.124 Device_Variable::m_szValue_set device: 804 service: urn:cd-jackson-com:serviceId:DataMine1 variable: mountType was:  now: ** Manual #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:0 <0x77214520>
50 08/27/18 15:50:30.125 luup_log:804: dataMine: Manual mounting to (/dataMine/) <0x77214520>
50 08/27/18 15:50:30.153 luup_log:804: dataMine: Error reading tmpfile during mountcheck <0x77214520>
06 08/27/18 15:50:30.153 Device_Variable::m_szValue_set device: 804 service: urn:cd-jackson-com:serviceId:DataMine1 variable: mountLocation was: ** Manual now:  #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:0 <0x77214520>
06 08/27/18 15:50:30.154 Device_Variable::m_szValue_set device: 804 service: urn:cd-jackson-com:serviceId:DataMine1 variable: mountType was: ** Manual now:  #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:0 <0x77214520>
50 08/27/18 15:50:30.222 luup_log:804: dataMine: Installing update of dataMine web application <0x77214520>
50 08/27/18 15:50:41.313 luup_log:804: dataMine: ERROR: Unable to open config file for read :: /dataMine/dataMineConfig.json <0x77214520>
50 08/27/18 15:50:41.336 luup_log:804: dataMine: Primary config file load failed. No backup file found! <0x77214520>
06 08/27/18 15:50:41.337 Device_Variable::m_szValue_set device: 804 service: urn:cd-jackson-com:serviceId:DataMine1 variable: ChannelCnt was: 0 now: 0 #hooks: 0 upnp: 0 skip: 0 v:0xf68bb0/NONE duplicate:1 <0x77214520>
06 08/27/18 15:50:41.337 Device_Variable::m_szValue_set device: 804 service: urn:cd-jackson-com:serviceId:DataMine1 variable: ChannelRec was: 0 now: 0 #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:1 <0x77214520>
50 08/27/18 15:50:41.338 luup_log:804: dataMine: Reinitialising configuration structure <0x77214520>
50 08/27/18 15:50:41.338 luup_log:804: dataMine: Startup complete <0x77214520>
09 08/27/18 15:50:55.091 JobHandler_LuaUPnP::Run device 804 ptr 0xc1e488 dataMine 2 graphing and logging plugin room 0 type urn:schemas-cd-jackson-com:device:DataMine:1 cat 0:-1 id  parent 0/0xd60ec8 upnp: 0 plugin:8526 pnp:0 mac: ip: <0x77788320>
//192.168.1.33/vera       6.0T      2.0T      4.0T  33% /dataMine
//192.168.1.33/vera       6.0T      2.0T      4.0T  33% /dataMine
//192.168.1.33/vera       6.0T      2.0T      4.0T  33% /dataMine
09 08/27/18 15:51:10.863 JobHandler_LuaUPnP::Run device 804 ptr 0x111e488 dataMine 2 graphing and logging plugin room 0 type urn:schemas-cd-jackson-com:device:DataMine:1 cat 0:-1 id  parent 0/0x1260ec8 upnp: 0 plugin:8526 pnp:0 mac: ip: <0x777ce320>
50 08/27/18 15:51:15.273 luup_log:804: dataMine: Initialising dataMine System (2.000) <0x76d3e520>
06 08/27/18 15:51:15.274 Device_Variable::m_szValue_set device: 804 service: urn:cd-jackson-com:serviceId:DataMine1 variable: errorStatus was: false now: false #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:1 <0x76d3e520>
06 08/27/18 15:51:15.274 Device_Variable::m_szValue_set device: 804 service: urn:cd-jackson-com:serviceId:DataMine1 variable: ChannelCnt was: 0 now: 0 #hooks: 0 upnp: 0 skip: 0 v:0x13b1bb0/NONE duplicate:1 <0x76d3e520>
06 08/27/18 15:51:15.274 Device_Variable::m_szValue_set device: 804 service: urn:cd-jackson-com:serviceId:DataMine1 variable: ChannelRec was: 0 now: 0 #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:1 <0x76d3e520>
06 08/27/18 15:51:15.275 Device_Variable::m_szValue_set device: 804 service: urn:cd-jackson-com:serviceId:DataMine1 variable: mountLocation was:  now: ** Manual #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:0 <0x76d3e520>
06 08/27/18 15:51:15.275 Device_Variable::m_szValue_set device: 804 service: urn:cd-jackson-com:serviceId:DataMine1 variable: mountType was:  now: ** Manual #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:0 <0x76d3e520>
50 08/27/18 15:51:15.276 luup_log:804: dataMine: Manual mounting to (/dataMine/) <0x76d3e520>
50 08/27/18 15:51:15.302 luup_log:804: dataMine: Mounted: //192.168.1.33/vera on /dataMine type cifs (rw,mand,relatime,vers=1.0,sec=ntlm,cache=strict,username=vera,uid=0,noforceuid,gid=0,noforcegid,addr=192.168.1.33,unix,posixpaths,serverino,acl,rsize=1048576,wsize=1048576,actimeo=1) <0x76d3e520>
06 08/27/18 15:51:15.303 Device_Variable::m_szValue_set device: 804 service: urn:cd-jackson-com:serviceId:DataMine1 variable: mountLocation was: ** Manual now: //192.168.1.33/vera #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:0 <0x76d3e520>
06 08/27/18 15:51:15.303 Device_Variable::m_szValue_set device: 804 service: urn:cd-jackson-com:serviceId:DataMine1 variable: mountType was: ** Manual now: cifs #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:0 <0x76d3e520>
50 08/27/18 15:51:15.328 luup_log:804: dataMine: Mount point error - umount: //192.168.1.33/vera:: <0x76d3e520>
50 08/27/18 15:51:15.358 luup_log:804: dataMine: Mounting dataMine storage () to (/dataMine/) <0x76d3e520>
50 08/27/18 15:51:15.407 luup_log:804: dataMine: mount command output:'mount: can't read '/etc/fstab': No such file or directory
50 08/27/18 15:51:15.434 luup_log:804: dataMine: Error reading tmpfile during mountcheck <0x76d3e520>
06 08/27/18 15:51:15.434 Device_Variable::m_szValue_set device: 804 service: urn:cd-jackson-com:serviceId:DataMine1 variable: mountLocation was: //192.168.1.33/vera now:  #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:0 <0x76d3e520>
06 08/27/18 15:51:15.435 Device_Variable::m_szValue_set device: 804 service: urn:cd-jackson-com:serviceId:DataMine1 variable: mountType was: cifs now:  #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:0 <0x76d3e520>
50 08/27/18 15:51:15.504 luup_log:804: dataMine: Installing update of dataMine web application <0x76d3e520>
50 08/27/18 15:51:24.711 luup_log:804: dataMine: ERROR: Unable to open config file for read :: /dataMine/dataMineConfig.json <0x76d3e520>
50 08/27/18 15:51:24.745 luup_log:804: dataMine: Primary config file load failed. No backup file found! <0x76d3e520>
06 08/27/18 15:51:24.746 Device_Variable::m_szValue_set device: 804 service: urn:cd-jackson-com:serviceId:DataMine1 variable: ChannelCnt was: 0 now: 0 #hooks: 0 upnp: 0 skip: 0 v:0x13b1bb0/NONE duplicate:1 <0x76d3e520>
06 08/27/18 15:51:24.746 Device_Variable::m_szValue_set device: 804 service: urn:cd-jackson-com:serviceId:DataMine1 variable: ChannelRec was: 0 now: 0 #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:1 <0x76d3e520>
50 08/27/18 15:51:24.746 luup_log:804: dataMine: Reinitialising configuration structure <0x76d3e520>
50 08/27/18 15:51:24.747 luup_log:804: dataMine: Startup complete <0x76d3e520>
50 08/27/18 15:51:39.193 luup_log:804: dataMine: Delete backups complete - No files found <0x6c33e520>
06 08/27/18 15:51:39.218 Device_Variable::m_szValue_set device: 804 service: urn:cd-jackson-com:serviceId:DataMine1 variable: diskTotal was: 8832 now: 8832 #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:1 <0x6c33e520>
06 08/27/18 15:51:39.219 Device_Variable::m_szValue_set device: 804 service: urn:cd-jackson-com:serviceId:DataMine1 variable: diskUsed was: 8636 now: 8648 #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:0 <0x6c33e520>
06 08/27/18 15:51:39.219 Device_Variable::m_szValue_set device: 804 service: urn:cd-jackson-com:serviceId:DataMine1 variable: diskFree was: 196 now: 184 #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:0 <0x6c33e520>
06 08/27/18 15:51:39.220 Device_Variable::m_szValue_set device: 804 service: urn:cd-jackson-com:serviceId:DataMine1 variable: diskUsedPcnt was: 98 now: 98 #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:1 <0x6c33e520>
-2-===========================================================================
-3-===========================================================================
rootfs on / type rootfs (rw)
/dev/root on /rom type squashfs (ro,relatime)
proc on /proc type proc (rw,noatime)
sysfs on /sys type sysfs (rw,noatime)
tmpfs on /tmp type tmpfs (rw,nosuid,nodev,noatime)
/dev/mtdblock7 on /overlay type jffs2 (rw,noatime)
overlayfs:/overlay on / type overlayfs (rw,noatime,lowerdir=/,upperdir=/overlay)
tmpfs on /dev type tmpfs (rw,relatime,size=512k,mode=755)
devpts on /dev/pts type devpts (rw,relatime,mode=600)
debugfs on /sys/kernel/debug type debugfs (rw,noatime)
/dev/mtdblock10 on /storage type jffs2 (rw,relatime)
/dev/mtdblock10 on /etc/cmh-firmware type jffs2 (rw,relatime)
/dev/mtdblock10 on /etc/cmh-backup type jffs2 (rw,relatime)
/dev/mtdblock9 on /mios type squashfs (ro,relatime)
-4-===========================================================================
-5-===========================================================================
SetDataDirectory-/dataMine/
SetMountUUID    -
SetMountPoint   -
SetManualMount  -1
-6-===========================================================================
{"dbVersion":2,"Events":{"count":0,"last":0},"Version":"2.000","Variables":[],"Graphs":[],"guiConfig":[],"nextId":1}
-7-===========================================================================

Does anybody have a clue? Thank you in advance!