question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

OS: Windows 10 x64

winsw.exe.conf: <configuration> <startup> <supportedRuntime version="v2.0.50727" /> <supportedRuntime version="v4.0" /> </startup> <runtime> <generatePublisherEvidence enabled="false" /> </runtime> </configuration>

winsw.xml: <configuration> <id>nginx</id> <name>nginx</name> <description>High Performance Web Service</description> <executable>C:\Wnmp\nginx\nginx.exe</executable> <logpath>C:\Wnmp\nginx\logs\</logpath> <log mode="roll-by-size"> <sizeThreshold>10240</sizeThreshold> <keepFiles>8</keepFiles> </log> <depend></depend> <startargument>-p C:\Wnmp\nginx</startargument> <stopargument>-p C:\Wnmp\nginx -s stop</stopargument> </configuration>

nginx version: 1.10.1

error log: nginx: [alert] could not open error log file: CreateFile() " C:\Wnmp\nginx/logs/error.log" failed (123: The filename, directory name, or volume label syntax is incorrect) 2016/07/12 10:35:03 [emerg] 716#5388: CreateFile() " C:\Wnmp\nginx/conf/nginx.conf" failed (123: The filename, directory name, or volume label syntax is incorrect)

when I removed path argument (-p C:\Wnmp\nginx) from startargument and stopargument, the service can startup normally.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

10reactions
brkastnercommented, Apr 24, 2017

I was having the same problem when specifying -p and came across this issue. For future reference, you just need to split up your start/stop arguments. WinSW puts the entire argument into quotes which confuses nginx.

<startargument>-p C:\Wnmp\nginx</startargument> should be changed to <startargument>-p</startargument> <startargument>C:\Wnmp\nginx</startargument>

0reactions
nxtncommented, Jul 16, 2020

Duplicate of #89

Read more comments on GitHub >

github_iconTop Results From Across the Web

The Answer to Every File Path Related Problem
The Answer to Every File Path Related Problem. If you do anything at all with file path, you need the Path class (in...
Read more >
"Windows cannot access the specified device, path, or file ...
Troubleshooting error message: Windows cannot access the specified device, path, or file. You may not have the appropriate permission to access the item....
Read more >
11 Ways to Fix "The System Cannot Find The Path ...
11 Ways to Fix "The System Cannot Find The Path Specified" Error on Windows · 1. Run Command Prompt as an Administrator ·...
Read more >
How to overcome the windows long path issue
The only 100% working suggestion is to reorganize and rename the files and folders to avoid having the long path issue at all....
Read more >
Having issue with file path - java
I am not getting any error. But, Path is always locating at Downloads file. I don't know why. After looking at uri I...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found