Project

General

Profile

Bug #8828

Service WebDAV/apache24 unable to start due to syntax error

Added by Erich F. over 5 years ago. Updated about 3 years ago.

Status:
Resolved
Priority:
Nice to have
Assignee:
Suraj Ravichandran
Category:
OS
Target version:
Seen in:
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

When trying to switch WebDAV on (with TLS), I get this output in /var/log/messages besides WebDAV won't be enabled:

Mar 24 14:03:05 nas notifier: Traceback (most recent call last):
Mar 24 14:03:05 nas notifier: File "/usr/local/libexec/nas/generate_webdav_conf.py", line 187, in <module>
Mar 24 14:03:05 nas notifier: main()
Mar 24 14:03:05 nas notifier: File "/usr/local/libexec/nas/generate_webdav_conf.py", line 182, in main
Mar 24 14:03:05 nas notifier: if (share.webdav_perm and dav_protocol != "httphttps"):
Mar 24 14:03:05 nas notifier: UnboundLocalError: local variable 'share' referenced before assignment
Mar 24 14:03:06 nas notifier: Performing sanity check on apache24 configuration:
Mar 24 14:03:06 nas notifier: httpd: Syntax error on line 137 of /usr/local/etc/apache24/httpd.conf: Syntax error on line 2 of /usr/local/etc/apache24/Includes/webdav-ssl.conf: /usr/local/etc/apache24/Includes/webdav-ssl.conf:2: <VirtualHost> was not closed.
Mar 24 14:03:06 nas notifier: Starting apache24.
Mar 24 14:03:06 nas notifier: httpd: Syntax error on line 137 of /usr/local/etc/apache24/httpd.conf: Syntax error on line 2 of /usr/local/etc/apache24/Includes/webdav-ssl.conf: /usr/local/etc/apache24/Includes/webdav-ssl.conf:2: <VirtualHost> was not closed.
Mar 24 14:03:06 nas root: /usr/local/etc/rc.d/apache24: WARNING: failed to start apache24
Mar 24 14:03:06 nas notifier: /usr/local/etc/rc.d/apache24: WARNING: failed to start apache24

The line apache complains about contains this:
182 if (share.webdav_perm and dav_protocol != "httphttps"):
183 _pipeopen("chown -R webdav:webdav %s" % share.webdav_path)
184 f2.write(dav_config_posttext)

Informations systeme.PNG (10.7 KB) Informations systeme.PNG Informations système FreeNAS Jean-Daniel Gonon, 04/15/2016 02:44 AM
logs console.PNG (25.2 KB) logs console.PNG logs d'erreurs dans la console Jean-Daniel Gonon, 04/15/2016 02:44 AM
5682
5683

Associated revisions

Revision 3e0c79ba (diff)
Added by Jordan Hubbard over 5 years ago

Fix whitespace-induced python derpage. Ticket: #8828

Revision 5a8536b6 (diff)
Added by Jordan Hubbard over 5 years ago

Fix whitespace-induced python derpage. Ticket: #8828

Revision 6521bc96 (diff)
Added by Jordan Hubbard over 5 years ago

Fix whitespace-induced python derpage. Ticket: #8828

History

#1 Updated by Erich F. over 5 years ago

The above mentioned error only occurs when HTTPS was selected in Protocol input field.
If either HTTP or HTTP+HTTPS was selected, no error shows up.

#2 Updated by Jordan Hubbard over 5 years ago

  • Status changed from Unscreened to 19
  • Assignee changed from Suraj Ravichandran to Jordan Hubbard
  • Target version set to Unspecified

#3 Updated by Roger Hayter over 5 years ago

I wondered if this was nearly finished testing? Tnx.

#4 Updated by Jordan Hubbard over 5 years ago

  • Status changed from 19 to Ready For Release

Thanks for catching that. It's actually RforR.

#5 Updated by Jordan Hubbard over 5 years ago

  • Status changed from Ready For Release to Resolved

#6 Updated by Jean-Daniel Gonon over 4 years ago

5682
5683

Hello,
I am a newbie on FreeNAS : I am currently on FreeNAS-9.10-STABLE-201604140622 (8781269)

When I want to configure and start Webdav service, I have these errors in console :

Apr 15 11:39:34 freenas notifier: Traceback (most recent call last):
Apr 15 11:39:34 freenas notifier: File "/usr/local/libexec/nas/generate_webdav_conf.py", line 187, in <module>
Apr 15 11:39:34 freenas notifier: main()
Apr 15 11:39:34 freenas notifier: File "/usr/local/libexec/nas/generate_webdav_conf.py", line 172, in main
Apr 15 11:39:34 freenas notifier: f2.write("\t Alias /"+share.webdav_name+temp_path+"\n")
Apr 15 11:39:34 freenas notifier: UnicodeEncodeError: 'ascii' codec can't encode character u'\xe9' in position 12: ordinal not in range(128)
Apr 15 11:39:34 freenas notifier: Performing sanity check on apache24 configuration:
Apr 15 11:39:34 freenas notifier: httpd: Syntax error on line 148 of /usr/local/etc/apache24/httpd.conf: Syntax error on line 2 of /usr/local/etc/apache24/Includes/webdav-ssl.conf: /usr/local/etc/apache24/Includes/webdav-ssl.conf:2: <VirtualHost> was not closed.
Apr 15 11:39:34 freenas notifier: Starting apache24.
Apr 15 11:39:34 freenas notifier: httpd: Syntax error on line 148 of /usr/local/etc/apache24/httpd.conf: Syntax error on line 2 of /usr/local/etc/apache24/Includes/webdav-ssl.conf: /usr/local/etc/apache24/Includes/webdav-ssl.conf:2: <VirtualHost> was not closed.
Apr 15 11:39:34 freenas root: /usr/local/etc/rc.d/apache24: WARNING: failed to start apache24
Apr 15 11:39:34 freenas notifier: /usr/local/etc/rc.d/apache24: WARNING: failed to start apache24

Is there always this bug on last FOG version ?

Thanks for help
Jean-Daniel

#7 Updated by Jordan Hubbard over 4 years ago

  • Assignee changed from Jordan Hubbard to Suraj Ravichandran

#8 Avatar?id=14398&size=24x24 Updated by Kris Moore about 4 years ago

  • Target version changed from Unspecified to N/A

#9 Avatar?id=14398&size=24x24 Updated by Kris Moore about 3 years ago

  • Seen in changed from to N/A

Also available in: Atom PDF