Project

General

Profile

Bug #6154

CIFS share with Unicode character: service won't start

Added by Jos Bol about 6 years ago. Updated about 6 years ago.

Status:
Resolved
Priority:
Important
Assignee:
William Grzybowski
Category:
OS
Target version:
Severity:
New
Reason for Closing:
Reason for Blocked:
Needs QA:
Yes
Needs Doc:
Yes
Needs Merging:
Yes
Needs Automation:
No
Support Suite Ticket:
n/a
Hardware Configuration:
ChangeLog Required:
No

Description

After upgrading our Freenas install (8.3.2) to 9.2.1.7, the CIFS service woudldn't start. Apparently having a unicode character in the fs path of a share causes a problem in the script that generates the smb config file(s). This obviously prevents the service from starting and actuall breaking the freenas install. We worked around this by pointing the share to a symlink which points to the problematic directory. Freenas does not warn in any way that having unicode characters in the fs path is not supported.

Sep 19 18:41:53 arquivos generate_smb4_conf.py: [common.pipesubr:58] Popen()ing: zfs list -H -o mountpoint
Sep 19 18:41:53 arquivos last message repeated 2 times
Sep 19 18:41:53 arquivos notifier: Traceback (most recent call last):
Sep 19 18:41:53 arquivos notifier: File "/usr/local/libexec/nas/generate_smb4_conf.py", line 847, in <module>
Sep 19 18:41:53 arquivos notifier: main()
Sep 19 18:41:53 arquivos notifier: File "/usr/local/libexec/nas/generate_smb4_conf.py", line 814, in main
Sep 19 18:41:53 arquivos notifier: generate_smb4_shares(smb4_shares)
Sep 19 18:41:53 arquivos notifier: File "/usr/local/libexec/nas/generate_smb4_conf.py", line 500, in generate_smb4_shares
Sep 19 18:41:53 arquivos notifier: if not os.path.isdir(share.cifs_path):
Sep 19 18:41:53 arquivos notifier: File "/usr/local/lib/python2.7/genericpath.py", line 41, in isdir
Sep 19 18:41:53 arquivos notifier: st = os.stat(s)
Sep 19 18:41:53 arquivos notifier: UnicodeEncodeError: 'ascii' codec can't encode characters in position 53-54: ordinal not in range(128)
Sep 19 18:41:54 arquivos notifier: winbindd not running? (check /winbindd.pid).
Sep 19 18:41:54 arquivos notifier: smbd not running? (check /smbd.pid).
Sep 19 18:41:54 arquivos notifier: nmbd not running? (check /nmbd.pid).

Associated revisions

Revision 0424aba9 (diff)
Added by William Grzybowski about 6 years ago

Fix non-ascii cifs path traceback in CIFS config file generation Ticket: #6154

Revision e834d32b (diff)
Added by William Grzybowski about 6 years ago

Fix non-ascii cifs path traceback in CIFS config file generation Ticket: #6154

History

#1 Updated by Josh Paetzel about 6 years ago

  • Category set to 57
  • Status changed from Unscreened to Screened
  • Assignee set to Josh Paetzel
  • Target version set to 9.2.1.8-RELEASE

#2 Updated by Josh Paetzel about 6 years ago

  • Assignee changed from Josh Paetzel to William Grzybowski

I'll sit on this one line fix for a week.

#3 Updated by William Grzybowski about 6 years ago

  • Status changed from Screened to Resolved

Also available in: Atom PDF