Can't access folders through windows explorer

Every time I try and enter my information into the prompt to access my files via explorer I get this error

I have tried adding new users and passwords to samba, I have done the reset/fix option in openhabconfig, but nothing I do will let me into this file.

I can’t really tell, but maybe you have to enable samba v1. As far as I can remember only a few new thing uses the new samba protocol. You can enable it in the Windows features on/off

did you ever have it working? you have to enter your openhabian user name and password

1 Like

Yes I tried it. I’ve tried every combo. How do you enable samba v1?

start up openhabian-config, goto 10, apply improvements, 13 should setup the shares.

I did apply improvements and now nothing in my sitemaps work, whether through cloud or local

I had that happen once as I was getting started with OH . It ended up the only way I could access those files was to start over with a fresh install of OH. Then everything worked. I know, not what you really wanted to hear.

I can access them ssh, but they don’t seem to be doing anything

Looking at my log, it says this:

2018-10-15 16:13:01.444 [ome.event.ItemCommandEvent] - Item ‘Light2_Brightness’ received command ON

2018-10-15 16:13:01.457 [vent.ItemStateChangedEvent] - Light2_Brightness changed from 0 to 100

2018-10-15 16:13:01.468 [vent.ItemStateChangedEvent] - Light2_Color changed from 180,100,0 to 180,100,100

==> /var/log/openhab2/openhab.log <==

2018-10-15 16:13:01.493 [INFO ] [nal.protocol.MilightV6SessionManager] - Bridge reports an invalid command: -127

2018-10-15 16:13:01.584 [INFO ] [nal.protocol.MilightV6SessionManager] - Bridge reports an invalid command: -126

==> /var/log/openhab2/events.log <==

2018-10-15 16:13:02.545 [ome.event.ItemCommandEvent] - Item ‘Light1_Brightness’ received command OFF

2018-10-15 16:13:02.575 [vent.ItemStateChangedEvent] - Light1_Color changed from 180,100,100 to 180,100,0

2018-10-15 16:13:02.581 [vent.ItemStateChangedEvent] - Light1_Brightness changed from 100 to 0

==> /var/log/openhab2/openhab.log <==

2018-10-15 16:13:02.592 [INFO ] [nal.protocol.MilightV6SessionManager] - Bridge reports an invalid command: -125

2018-10-15 16:13:02.697 [INFO ] [nal.protocol.MilightV6SessionManager] - Bridge reports an invalid command: -124

If you go to /etc/openhab2 then do ls -l what are permissions?

I suspect you have a permissions issue.

drwxrwxr-x+ 2 openhab openhabian 4096 Sep 28 16:25 html
drwxrwxr-x+ 3 openhab openhabian 4096 Sep 28 16:25 icons
drwxrwxr-x+ 2 openhab openhabian 4096 Oct 14 23:14 items
drwxrwxr-x+ 2 openhab openhabian 4096 Sep 28 16:25 persistence
drwxrwxr-x+ 2 openhab openhabian 4096 Oct 12 01:54 rules
drwxrwxr-x+ 2 openhab openhabian 4096 Sep 28 16:25 scripts
drwxrwxr-x+ 2 openhab openhabian 4096 Oct 10 22:19 services
drwxrwxr-x+ 2 openhab openhabian 4096 Oct 9 17:29 sitemaps
drwxrwxr-x+ 2 openhab openhabian 4096 Sep 28 16:25 sounds
drwxrwxr-x+ 2 openhab openhabian 4096 Oct 14 23:14 things
drwxrwxr-x+ 2 openhab openhabian 4096 Sep 28 16:25 transform

Looks correct. This thread seemed similar. Wonder if you could try this command. Seems like it fixes permissions.

If the above does not fix then,

Also, try \\192.168.1.155 see does anything show. If it does then samba running, if not then there is another issue.

Last ditch effort would be run:

  1. openhabian-config
  2. select 60
  3. select 66 for samba install.

This should default all the samba settings.

I know you can trouble shoot further using smbstatus and/or smbclient. You would have to google around. Note:smbstatus is installed, but not smbclient.

Hey, that worked! I’m in, Now I just have to figure out why nothing is working

Great one thing down!! Mark the solution please.

What is your other error?

Whenever I did reset permissions in openhabian config, all of my items stopped working

If I go into the log, after trying to turn on my lights this is the error I get:

2018-10-15 20:02:55.762 [ERROR] [ui.internal.items.ItemUIRegistryImpl] - Cannot retrieve item ‘Light2_Power’ for widget org.eclipse.smarthome.model.sitemap.Switch

2018-10-15 20:02:55.765 [ERROR] [ui.internal.items.ItemUIRegistryImpl] - Cannot retrieve item for widget org.eclipse.smarthome.model.sitemap.Switch

2018-10-15 20:02:55.768 [ERROR] [ui.internal.items.ItemUIRegistryImpl] - Cannot retrieve item ‘Light2_Power’ for widget org.eclipse.smarthome.model.sitemap.Switch

2018-10-15 20:02:55.771 [ERROR] [ui.internal.items.ItemUIRegistryImpl] - Cannot retrieve item ‘Light2_Power’ for widget org.eclipse.smarthome.model.sitemap.Switch

2018-10-15 20:02:55.774 [ERROR] [ui.internal.items.ItemUIRegistryImpl] - Cannot retrieve item ‘Light2_Power’ for widget org.eclipse.smarthome.model.sitemap.Switch

==> /var/log/openhab2/events.log <==

2018-10-15 20:06:13.942 [ome.event.ItemCommandEvent] - Item ‘Light1_Nightmode’ received command ON

==> /var/log/openhab2/openhab.log <==

2018-10-15 20:06:13.977 [INFO ] [nal.protocol.MilightV6SessionManager] - Bridge reports an invalid command: -121

2018-10-15 20:06:14.069 [INFO ] [nal.protocol.MilightV6SessionManager] - Bridge reports an invalid command: -120

==> /var/log/openhab2/events.log <==

2018-10-15 20:11:45.280 [ome.event.ItemCommandEvent] - Item ‘Light1_Nightmode’ received command OFF

2018-10-15 20:11:45.309 [vent.ItemStateChangedEvent] - Light1_Nightmode changed from ON to OFF

==> /var/log/openhab2/openhab.log <==

2018-10-15 20:11:45.655 [INFO ] [nal.protocol.MilightV6SessionManager] - Bridge reports an invalid command: -119

2018-10-15 20:11:45.668 [INFO ] [nal.protocol.MilightV6SessionManager] - Bridge reports an invalid command: -118

==> /var/log/openhab2/events.log <==

2018-10-15 20:11:45.857 [ome.event.ItemCommandEvent] - Item ‘Light1_Whitemode’ received command ON

2018-10-15 20:11:45.869 [vent.ItemStateChangedEvent] - Light1_Whitemode changed from OFF to ON

==> /var/log/openhab2/openhab.log <==

2018-10-15 20:11:45.880 [INFO ] [nal.protocol.MilightV6SessionManager] - Bridge reports an invalid command: -117

==> /var/log/openhab2/events.log <==

2018-10-15 20:11:46.751 [ome.event.ItemCommandEvent] - Item ‘Light2_Nightmode’ received command ON

2018-10-15 20:11:46.774 [vent.ItemStateChangedEvent] - Light2_Nightmode changed from OFF to ON

==> /var/log/openhab2/openhab.log <==

2018-10-15 20:11:46.784 [INFO ] [nal.protocol.MilightV6SessionManager] - Bridge reports an invalid command: -116

2018-10-15 20:11:46.889 [INFO ] [nal.protocol.MilightV6SessionManager] - Bridge reports an invalid command: -115

==> /var/log/openhab2/events.log <==

2018-10-15 20:11:47.474 [ome.event.ItemCommandEvent] - Item ‘Light2_Whitemode’ received command ON

2018-10-15 20:11:47.494 [vent.ItemStateChangedEvent] - Light2_Whitemode changed from OFF to ON

==> /var/log/openhab2/openhab.log <==

2018-10-15 20:11:47.687 [INFO ] [nal.protocol.MilightV6SessionManager] - Bridge reports an invalid command: -114

First thing I would try is to clear cache and restart openhab now that the other issue is fixed.

After that, if you are able to now see your files and make an offline copy aka backup, you can then go in as sited above for samba and select openhab. This will reinstall openhab also. That may be the easiest route. Then copy you files back.

Keep in mind there is a backup program that will copy all pertinent data to a zip file. I would at a minimum recommend running it. I believe running sudo openhab-cli backup will execute it.

I just reboot it and it seems to working now

1 Like

I had to do a clean install, none of which was clean, and I’m back to square one on this. I have tried all of the above and it is not working. I have followed every instruction online and it is still not working. Not a single project that I have done today has worked if I followed the instructions on this site to a “t”.

1 Like