Latest News:
2018-11-29: XigmaNAS 11.2.0.4.6229 - released!

We really need "Your" help on XigmaNAS https://translations.launchpad.net/xigmanas translations. Please help today!

Producing and hosting XigmaNAS cost money, please consider a donation to our project so we can continue to offer you the best.
We need your support! eg: PAYPAL

[Solved]Error starting WebGUI - need files Lighttpd pulls from

Webserver service.
Forum rules
Set-Up GuideFAQsForum Rules
Post Reply
equinox
NewUser
NewUser
Posts: 11
Joined: 07 Aug 2014 01:51
Status: Offline

[Solved]Error starting WebGUI - need files Lighttpd pulls from

#1

Post by equinox » 06 Dec 2018 20:43

I apologize in that I asked this question back in the summer but then got totally side-tracked, and since the site change to XigmaNAS can't find my original post.

My WebGUI no longer works since I made a change to a custom parameter, as I believe I added the parameter in the wrong place. Now when I issue "service lighttpd restart" I get this error: 2018-12-06 19:33:38: (configfile.c.1154) source: /var/etc/lighttpd.conf line: 115 pos: 18 parser failed somehow near here: extensions

Opening lighttpd.conf I see the offending lines I added. They appear at the end of the file:
unix extensions = no
wide links = yes

If I delete the lines, save my changes and reopen lighttpd.conf, I see that they are gone. If I then restart the lighttpd service, I get the same error, and the lines are back. It seems that the config file is being built on the fly, and is pulling these lines from another config file somewhere. I would suspect these are entries associated with mod_setenv.

I've searched Google high and low trying to figure out how to find these entries and delete them, but have had no success. Can someone point me in the right direction? XigmaNAS is otherwise functioning well. Thanks!
Last edited by equinox on 07 Dec 2018 02:52, edited 1 time in total.

User avatar
ms49434
Developer
Developer
Posts: 444
Joined: 03 Sep 2015 18:49
Location: Neuenkirchen, Germany - GMT+1
Status: Offline

Re: Error starting WebGUI - need files Lighttpd pulls from

#2

Post by ms49434 » 07 Dec 2018 00:16

equinox wrote:
06 Dec 2018 20:43
I apologize in that I asked this question back in the summer but then got totally side-tracked, and since the site change to XigmaNAS can't find my original post.

My WebGUI no longer works since I made a change to a custom parameter, as I believe I added the parameter in the wrong place. Now when I issue "service lighttpd restart" I get this error: 2018-12-06 19:33:38: (configfile.c.1154) source: /var/etc/lighttpd.conf line: 115 pos: 18 parser failed somehow near here: extensions

Opening lighttpd.conf I see the offending lines I added. They appear at the end of the file:
unix extensions = no
wide links = yes

If I delete the lines, save my changes and reopen lighttpd.conf, I see that they are gone. If I then restart the lighttpd service, I get the same error, and the lines are back. It seems that the config file is being built on the fly, and is pulling these lines from another config file somewhere. I would suspect these are entries associated with mod_setenv.

I've searched Google high and low trying to figure out how to find these entries and delete them, but have had no success. Can someone point me in the right direction? XigmaNAS is otherwise functioning well. Thanks!
lighttpd.conf is always being built from the configuration stored in config.xml.
It looks like you did paste samba settings into the Additional Parameters section of the lighttpd configuration on the system.php page:
system.php.png
In order to fix the issue you can
a) reset your system to defaults and restore your configuration from a working backup or
b) edit config.xml and inactivate the offending lines by adding remarks (mount /cf read-write -> modify /cf/conf/config.xml -> mount /cf readonly -> reboot).
You do not have the required permissions to view the files attached to this post.
1) XigmaNAS 11.2.0.4 amd64-embedded on a Dell T20 running in a VM on ESXi 6.7, 22GB out of 32GB ECC RAM, LSI 9300-8i IT mode in passthrough mode. Pool 1: 2x HGST 10TB, mirrored, SLOG: Samsung 850 Pro, L2ARC: Samsung 850 Pro, Pool 2: 1x Samsung 860 EVO 1TB , services: Samba AD, CIFS/SMB, ftp, ctld, rsync, syncthing, zfs snapshots.
2) XigmaNAS 11.2.0.4 amd64-embedded on a Dell T20 running in a VM on ESXi 6.7, 8GB out of 32GB ECC RAM, IBM M1215 crossflashed, IT mode, passthrough mode, 1x HGST 10TB , services: rsync.

equinox
NewUser
NewUser
Posts: 11
Joined: 07 Aug 2014 01:51
Status: Offline

Re: Error starting WebGUI - need files Lighttpd pulls from

#3

Post by equinox » 07 Dec 2018 02:51

That seems to have worked, thanks very much. Due to my lack of knowledge it was somewhat torturous to implement, but for anyone that needs to do the same, I'll record here the commands I used:

Code: Select all

mount -l                    ;used to see a list of mount points.  My USB stick was /cf
mount -u -o rw, /cf         ;remount USB stick in read-write mode
find /cf -name config.xml   ;find the config.xml file on the USB stick
ee /cf/conf/config.xml      ;use editor program to open config.xml.  Didn't know how to comment my lines safely so I just deleted them and resaved.
mount -u -o ro, /cf         ;remount USB stick as read-only
shutdown -r now             ;shutdown and restart  

Post Reply

Return to “WebServer”