Expected string or buffer

[Please complete the below template with details of the problem reported on your Web-UI. Be as detailed as possible. Community members, including developers, shall try and help. Thanks for your time in reporting this issue! We recommend purchasing commercial support for expedited support directly from the developers.]

Brief description of the problem

Trying to turn on active directory after configuring it.

Detailed step by step instructions to reproduce the problem

populate all the active directory settings, flip the switch to turn it on.

Web-UI screenshot

Error Traceback provided on the Web-UI

Traceback (most recent call last): File "/opt/rockstor/src/rockstor/rest_framework_custom/generic_view.py", line 40, in _handle_exception yield File "/opt/rockstor/src/rockstor/smart_manager/views/active_directory.py", line 198, in post smb_config = self._get_config(smbo) File "/opt/rockstor/src/rockstor/smart_manager/views/base_service.py", line 40, in _get_config return json.loads(service.config) File "/usr/lib64/python2.7/json/__init__.py", line 338, in loads return _default_decoder.decode(s) File "/usr/lib64/python2.7/json/decoder.py", line 365, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) TypeError: expected string or buffer

Brief description of the problem

Same here.
Detailed step by step instructions to reproduce the problem

Tried to join an existing Windows2008 AD (settings see screenshot). Doesnt matter if it try to join with IP or Server DNS or AD name, it doesnt work.
System is running the latest Rockstor version: 3.8.16-6
Web-UI screenshot

[
Bildschirmfoto vom 2017-01-11 19-33-00.png1920x1080 271 KB

Bildschirmfoto vom 2017-01-11 19-37-22.png1920x1080 192 KB
Error Traceback provided on the Web-UI

Traceback (most recent call last):
File “/opt/rockstor/src/rockstor/rest_framework_custom/generic_view.py”, line 40, in handleexception
yield
File “/opt/rockstor/src/rockstor/smart_manager/views/active_directory.py”, line 198, in post
smb_config = self.getconfig(smbo)
File “/opt/rockstor/src/rockstor/smart_manager/views/base_service.py”, line 40, in getconfig
return json.loads(service.config)
File “/usr/lib64/python2.7/json/init.py”, line 338, in loads
return defaultdecoder.decode(s)
File “/usr/lib64/python2.7/json/decoder.py”, line 365, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
TypeError: expected string or buffer

Pls update Rockstor, that’s a really old one: services configuration run over a modal window and meanwhile we had some major Rockstor samba code updates

Hi Mirko,

sorry but im running the lastest as up to now.

System is running the latest Rockstor version: 3.8.16-6

Installed 2 days ago. so there must be additional problems.

sash

Ok,
had a new Rockstor VM with join to AD without issues, can you please help us reproduce it?

Thanks
M.

Found the problem!

Samba was disabled, after enableing samba and adding the right woukgroup AD connects und pulls userdata.

So there should be an errormessage when samba needs to be enabled first (dont know if its nessesary by vendor to start samba even if you only nee the winbind suff…?! but anyway so it be!), like it is with NTP .

Hi @g6094199,
happy to hear it’s ok, had an “on the fly” and it seems ok.
Had one test too:

  • Samba turned off via Rockstor WebUI
root@rockstone:~# systemctl status smb
smb.service - Samba SMB Daemon
   Loaded: loaded (/etc/systemd/system/smb.service; disabled; vendor preset: disabled)
   Active: inactive (dead)

gen 13 15:03:47 rockstone smbd[10011]: [2017/01/13 15:03:47.666196,  0] ../lib/util/become_daemon.c:124(daemon_ready)
gen 13 15:03:47 rockstone smbd[10011]:   STATUS=daemon 'smbd' finished starting up and ready to serve connections
gen 13 18:42:57 rockstone smbd[12744]: [2017/01/13 18:42:57.728950,  0] ../lib/util/become_daemon.c:124(daemon_ready)
gen 13 18:42:57 rockstone smbd[12744]:   STATUS=daemon 'smbd' finished starting up and ready to serve connections
gen 13 18:43:18 rockstone smbd[12911]: [2017/01/13 18:43:18.078695,  0] ../lib/util/become_daemon.c:124(daemon_ready)
gen 13 18:43:18 rockstone smbd[12911]:   STATUS=daemon 'smbd' finished starting up and ready to serve connections
  • AD test join + AD status
root@rockstone:~# net ads status -U Administrator
Enter Administrator's password:
objectClass: top
objectClass: person
objectClass: organizationalPerson
objectClass: user
objectClass: computer
cn: ROCKSTONE
instanceType: 4
whenCreated: 20170113174302.0Z
uSNCreated: 134389
name: ROCKSTONE
etc
etc
etc

So it should be ok with or without samba (workgroup find via AD)

M.

1 Like