How To - Log data to an external CIFS share (e.g. NAS) - No more USB

What am i doing wrong?

When I try to follow this guide:

cd /tmp/ opkg update wget [url]http://download.mios.com/firmware/openwrt/ramips/packages/kmod-crypto-md5_2.6.37.1-1_ramips.ipk[/url] opkg install kmod-crypto-md5_2.6.37.1-1_ramips.ipk wget [url]http://download.mios.com/firmware/openwrt/ramips/packages/kmod-crypto-hmac_2.6.37.1-1_ramips.ipk[/url] opkg install kmod-crypto-hmac_2.6.37.1-1_ramips.ipk wget [url]http://download.mios.com/firmware/openwrt/ramips/packages/kmod-fs-cifs_2.6.37.1-1_ramips.ipk[/url] opkg install kmod-fs-cifs_2.6.37.1-1_ramips.ipk opkg install cifsmount rm kmod-crypto-md5_2.6.37.1-1_ramips.ipk kmod-fs-cifs_2.6.37.1-1_ramips.ipk kmod-crypto-hmac_2.6.37.1-1_ramips.ipk

I get this

[code]/tmp# wget http://download.mios.com/firmware/openwrt/ramips/packages/kmod-
crypto-md5_2.6.37.1-1_ramips.ipk
Connecting to download.mios.com (173.254.216.41:80)
wget: can’t open ‘kmod-crypto-md5_2.6.37.1-1_ramips.ipk’: File exists
root@MiOS_45105625:/tmp# opkg install kmod-crypto-md5_2.6.37.1-1_ramips.ipk
Installing kmod-crypto-md5 (3.10.34-1) to root…
Downloading http://download1204.mios.com/firmware/mt7620a/openwrt/ramips/packages/kmod-crypto-md5_3.10.34-1_ramips_24kec.ipk.
wget: server returned error: HTTP/1.1 404 Not Found
Collected errors:

I’m using a VeraEdge and the latest firmware. Can someone please help me?

Hi da1901,

On my edge I have used just
opkg install --force-depends kmod-fs-cifs

and that worked after the last update. it may give a warning, but nothing like what you have. Have you tried to mount afterwards?

Cheers Rene

Hi!

This is what happens when i write:

opkg install --force-depends kmod-fs-cifs

[code]root@MiOS_********:/# opkg install --force-depends kmod-fs-cifs
Installing kmod-fs-cifs (3.10.34-1) to root…
Downloading http://download1204.mios.com/firmware/mt7620a/openwrt/ramips/packages/kmod-fs-cifs_3.10.34-1_ramips_24kec.ipk.
wget: server returned error: HTTP/1.1 404 Not Found
Collected errors:

So something about the “Cannot install package kmod-fs-cifs” message don’t feel quite right…

Then if I try to mount using

mount -t cifs -o user=<user on my nas>,pass=<My password on nas> //192.168.1.221/vera /nas

I get:

root@MiOS_********:/# mount -t cifs -o user=********,pass=********** //192.168.1.221/vera /nas mount: mounting //192.168.1.221/vera on /nas failed: No such device

can please someone help me? step by step.

1 What do I need to do on my NAS (Synology)?
2 How do I install the CIFS files?
3 how do I mount the share?

I would be ever thankful! :-*

Hi,

I fear it is time to ask Vera for support. They did reply to me when I had a problem with CIFS mount. Not the right answer, but still ;D

No idea why yours is not finding the packages, they may be able to answer that.

Cheers Rene

I think you’re right, I’ve allready contacted them, but no reply yet ::slight_smile:

I was not able to use datamine when an USB flash drive was connected to one of my vera 3 USB ports directly.
I could mount the location but all broke down after a few hours of logging

currently I can log using this guide on my cheap-ass-NAS (router with USB port and flash drive connected to a powered USB hub)

I had no problems installing the cifs plugin and mounting the NAS drive went smooth.

the disk size and %availability are reported correctly by df -h ssh putty but not by the datamine app. Should I bother?

has anyone figured out a way to mount network subdirectories?
This works fine for /// but fails with ////

[quote=“SchattenMann, post:87, topic:176822”]has anyone figured out a way to mount network subdirectories?
This works fine for /// but fails with ////[/quote]

The key word is “nested share” here. Take a look here which is not exactly what you are looking for but it covers in detail all options what you can enable or disable. Per default “nested shares” don’t work out of the box forcing you to create a new share below the top level share but you have other options as you will see below.

Hope this helps.

Does anybody know the cifs commands for VeraPlus?

I am also looking for any answer to this.

I noticed on my VeraPlus that the opkg.conf had this entry:
src/gz barrier_breaker_base http://downloads.openwrt.org/barrier_breaker/14.07/ramips/mt7621/packages/base
As 14.07 is not supported and available any more this does not work.

I sent a question to Vera and asked about this.

I returned my Edge, which had working Datamine2 on USB, for a Plus. Thought I’d give cifs a try. If you are getting this error from opkg commands:

wget: server returned error: HTTP/1.1 404 Not Found

then be patient. The server is run by people like us volunteering their time to make a contribution. It has been down for a few days and is still down. The two mirrors that have been set up do not contain the necessary packages for the VeraPlus.

Once the server is back up, it is likely some manual changes will be needed to get this working. The Plus is currently configured to use this server for opkg http://downloads.openwrt.org. My understanding from several posts on [url=https://forum.openwrt.org/]https://forum.openwrt.org/[/url] is that, when the server comes back up, the download url will be changed to http://old-releases.openwrt.org. In addition, older OpenWRT packages (what the Plus uses) will require additional package directories. To get opkg working again, it is likely that you will have to ssh to your Plus and modify etc/opkg.conf to look like this:

dest root /
dest ram /tmp
lists_dir ext /var/opkg-lists
option overlay_root /overlay
#src barrier_breaker_base http://downloads.openwrt.org/barrier_breaker/14.07/ramips/mt7621/packages/base
src/gz barrier_breaker_base http://old-releases.openwrt.org/barrier_breaker/14.07/ramips/mt7621/packages/base
src/gz barrier_breaker_luci http://old-releases.openwrt.org/barrier_breaker/14.07/ramips/mt7621/packages/luci
src/gz barrier_breaker_packages http://old-releases.openwrt.org/barrier_breaker/14.07/ramips/mt7621/packages/packages
src/gz barrier_breaker_oldpackages http://old-releases.openwrt.org/barrier_breaker/14.07/ramips/mt7621/packages/oldpackages

[size=12pt]PLEASE NOTE:[/size] This information is based on about 4 hours of research and is totally unconfirmed at this point! I am pretty motivated to get this working and will post results when that happens. But until the server is back up, there’s nothing to do but wait…

Cheers,
cb4

Cifs is not supported yet. It is expected to be added in a future update.

Thanks for the info. It may be too soon to ask, but if I don’t someone else will. Do you have any timeline?

cb4

@cb4, thank you for checking in on this in more depth.

Glad to hear, and hope it will be coming real soon.

I’m also waiting for the Cifs to be supported on the VeraPlus

Right i am slowly getting somewhere but still stuck
my mount point is there.

root@MiOS_45103990:~# df
Filesystem 1K-blocks Used Available Use% Mounted on
rootfs 9728 5700 4028 59% /
/dev/root 9472 9472 0 100% /rom
tmpfs 63344 1844 61500 3% /tmp
/dev/mtdblock6 9728 5700 4028 59% /overlay
overlayfs:/overlay 9728 5700 4028 59% /
tmpfs 512 0 512 0% /dev
/dev/mtdblock10 66304 7632 58672 12% /storage
/dev/mtdblock10 66304 7632 58672 12% /etc/cmh-firmware
/dev/mtdblock10 66304 7632 58672 12% /etc/cmh-backup
/dev/mtdblock9 5888 5888 0 100% /mios
//192.168.1.200/ours/Nick/Vera/DataMine
11522946296 11225602900 297224612 97% /nas

It can read/write to it
root@MiOS_45103990:~# ls /nas/
database

Attached screenshots show Datamine and the setting needed for CIF’s to work

Any idea where i am going wrong?

Thanks
Nick

Logs:
-1-===========================================================================
09 04/22/16 11:13:21.685 JobHandler_LuaUPnP::Run device 155 dataMine 2 graphing and logging plugin room 0 type urn:schemas-cd-jackson-com:device:DataMine:1 cat 0:-1 id parent 0/0xec3580 upnp: 0 plugin:8526 pnp:0 mac: ip: <0x77c91320>
50 04/22/16 11:13:36.941 luup_log:155: dataMine: Initialising dataMine System (1.913) <0x77728520>
06 04/22/16 11:13:36.941 Device_Variable::m_szValue_set device: 155 service: urn:cd-jackson-com:serviceId:DataMine1 variable: e[35;1merrorStatuse[0m was: true now: false #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:0 <0x77728520>
06 04/22/16 11:13:36.942 Device_Variable::m_szValue_set device: 155 service: urn:cd-jackson-com:serviceId:DataMine1 variable: e[35;1mChannelCnte[0m was: 0 now: 0 #hooks: 0 upnp: 0 skip: 0 v:0x10e5b28/NONE duplicate:1 <0x77728520>
06 04/22/16 11:13:36.943 Device_Variable::m_szValue_set device: 155 service: urn:cd-jackson-com:serviceId:DataMine1 variable: e[35;1mChannelRece[0m was: 0 now: 0 #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:1 <0x77728520>
50 04/22/16 11:13:36.973 luup_log:155: dataMine: Error reading tmpfile during mountcheck <0x77728520>
06 04/22/16 11:13:36.974 Device_Variable::m_szValue_set device: 155 service: urn:cd-jackson-com:serviceId:DataMine1 variable: e[35;1mmountLocatione[0m was: now: #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:1 <0x77728520>
06 04/22/16 11:13:36.974 Device_Variable::m_szValue_set device: 155 service: urn:cd-jackson-com:serviceId:DataMine1 variable: e[35;1mmountTypee[0m was: now: #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:1 <0x77728520>
50 04/22/16 11:13:37.021 luup_log:155: dataMine: Mounting dataMine storage (

//192.168.1.200/ours/Nick/Vera/DataMine
) to (/nas/) <0x77728520>
50 04/22/16 11:13:37.092 luup_log:155: dataMine: mount command output:‘’ <0x77728520>
50 04/22/16 11:13:37.152 luup_log:155: dataMine: Error reading tmpfile during mountcheck <0x77728520>
06 04/22/16 11:13:37.153 Device_Variable::m_szValue_set device: 155 service: urn:cd-jackson-com:serviceId:DataMine1 variable: e[35;1mmountLocatione[0m was: now: #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:1 <0x77728520>
06 04/22/16 11:13:37.153 Device_Variable::m_szValue_set device: 155 service: urn:cd-jackson-com:serviceId:DataMine1 variable: e[35;1mmountTypee[0m was: now: #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:1 <0x77728520>
50 04/22/16 11:13:37.196 luup_log:155: dataMine: Mount point error: ::
//192.168.1.200/ours/Nick/Vera/DataMine
<0x77728520>
06 04/22/16 11:13:37.197 Device_Variable::m_szValue_set device: 155 service: urn:cd-jackson-com:serviceId:DataMine1 variable: e[35;1merrorStatuse[0m was: false now: true #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:0 <0x77728520>
50 04/22/16 11:13:37.254 luup_log:155: dataMine: ERROR: Startup state is ‘uninitialised’! <0x77728520>
06 04/22/16 11:13:37.254 Device_Variable::m_szValue_set device: 155 service: urn:cd-jackson-com:serviceId:DataMine1 variable: e[35;1mChannelCnte[0m was: 0 now: 0 #hooks: 0 upnp: 0 skip: 0 v:0x10e5b28/NONE duplicate:1 <0x77728520>
06 04/22/16 11:13:37.255 Device_Variable::m_szValue_set device: 155 service: urn:cd-jackson-com:serviceId:DataMine1 variable: e[35;1mChannelRece[0m was: 0 now: 0 #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:1 <0x77728520>
50 04/22/16 11:13:37.255 luup_log:155: dataMine: Reinitialising configuration structure <0x77728520>
50 04/22/16 11:13:37.257 luup_log:155: dataMine: Startup complete <0x77728520>
50 04/22/16 11:13:52.202 luup_log:155: dataMine: Delete backups complete - No files found <0x73928520>
06 04/22/16 11:13:52.239 Device_Variable::m_szValue_set device: 155 service: urn:cd-jackson-com:serviceId:DataMine1 variable: e[35;1mdiskTotale[0m was: 9728 now: 9728 #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:1 <0x73928520>
06 04/22/16 11:13:52.239 Device_Variable::m_szValue_set device: 155 service: urn:cd-jackson-com:serviceId:DataMine1 variable: e[35;1mdiskUsede[0m was: 5716 now: 5824 #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:0 <0x73928520>
06 04/22/16 11:13:52.240 Device_Variable::m_szValue_set device: 155 service: urn:cd-jackson-com:serviceId:DataMine1 variable: e[35;1mdiskFreee[0m was: 4012 now: 3904 #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:0 <0x73928520>
06 04/22/16 11:13:52.241 Device_Variable::m_szValue_set device: 155 service: urn:cd-jackson-com:serviceId:DataMine1 variable: e[35;1mdiskUsedPcnte[0m was: 59 now: 60 #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:0 <0x73928520>
-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/mtdblock6 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-/nas/
SetMountUUID -
SetMountPoint -
//192.168.1.200/ours/Nick/Vera/DataMine

SetManualMount -0
-6-===========================================================================
{“dbVersion”:2,“Events”:{“count”:0,“last”:0},“Version”:“1.913”,“Variables”:[],“Graphs”:[],“guiConfig”:[],“nextId”:1}
-7-===========================================================================

Hi @alpha1 - looking at the debug log I see:
[tt]SetMountPoint -

//192.168.1.200/ours/Nick/Vera/DataMine
[/tt]

I’m not sure why those

tags are in there but it is causing an issue…

[tt]50 04/22/16 11:13:37.196 luup_log:155: dataMine: Mount point error: ::

<0x77728520>[/tt]

is that something you can look at?

Also, what are you trying to show with your screen shot “still no1.jpg”? Don’t be worried by both these sections being empty. There are no General Properties in dataMine2 and most variables do not have Y-axis look-ups.

[quote=“ConstantSphere, post:98, topic:176822”]Hi @alpha1 - looking at the debug log I see:
[tt]SetMountPoint -

//192.168.1.200/ours/Nick/Vera/DataMine
[/tt]

I’m not sure why those

tags are in there but it is causing an issue…

[tt]50 04/22/16 11:13:37.196 luup_log:155: dataMine: Mount point error: ::

<0x77728520>[/tt]

is that something you can look at?

Also, what are you trying to show with your screen shot “still no1.jpg”? Don’t be worried by both these sections being empty. There are no General Properties in dataMine2 and most variables do not have Y-axis look-ups.[/quote]

Thanks for the reply. Will give it a go tonight and report back

Thanks
Nick

Bump

Hi Marc

is there an update as to when Vera Plus will support CIFS?
i have been using veralite for years with no problem and enjoyed my Datamine plugin connected to the NAS.

now i want to install datamine 2 and run it on vera plus using NAS, but without CIFS support i get stuck

hope you have some promising news for me?