Drawpile icon indicating copy to clipboard operation
Drawpile copied to clipboard

[2.0.4]Unknown option 'web-admin-port'

Open pachuco opened this issue 7 years ago • 12 comments

I am trying to set web admin port to headless dedicated server, but it's telling me it's an unknown option.

This is how I am launching it: drawpile-srv --web-admin-port INSERTPORT --local-host INSERTHOST --database myserv\data.db --sessions myserv\sessions

pachuco avatar May 01 '17 16:05 pachuco

I'm assuming this is with the Windows version? In that case the problem is that the Windows version is not built with libmicrohttpd, so the remote admin feature is not enabled. (I didn't expect that anyone would want to run the windows version in headless mode.) I'll see if I can enable it in the next release.

callaa avatar May 02 '17 15:05 callaa

Yes, windows.

pachuco avatar May 09 '17 08:05 pachuco

@callaa , any updates on this?

SpawnSean avatar Nov 10 '19 18:11 SpawnSean

Yeah, I haven't added it to the build script yet. I suppose all that's needed is to install libmicrohttpd in the build image dockerfile. At some point, I'm going to write a new web based admin UI for the server, which will probably replace the current UI, so I'll have to add Windows support then.

callaa avatar Nov 11 '19 16:11 callaa

How would be go about doing this? I haven't had a chance to work with docker properly yet, otherwise I'd be happy to submit a PR for this, or even build it for personal use. I can't figure out when in the dockerfile it'd go, assuming I'm looking at the right dockerfile.

I'm also interested in this feature

Wazbat avatar Nov 12 '19 19:11 Wazbat

The Dockerfile in question is the one in pkg/win. Where it runs the "make download-*" stuff, download-libmicrohttpd should be added, and also on the build line. I'll try to add it when building the next release. I should also update the other dependencies, since they're so old they're probably not available for download anymore.

Do note that, at the moment, the admin API can only be enabled when running the server in headless mode, so even on windows you'll need to run it in the command prompt.

callaa avatar Nov 12 '19 20:11 callaa

I appreciate the prompt reply. I'll try building it locally to see if that works.

I'm eager to see what the web based UI will look like. I'm guessing that'd use this same API? If so, how do you think you'll implement starting/stopping the server? Would that option work for remote servers too?

Wazbat avatar Nov 13 '19 08:11 Wazbat

This is not a support issue.

Wade821 avatar May 08 '20 07:05 Wade821

It's a support issue, they built it with missing dependencies. Look at how old it is as well...

notfood avatar May 08 '20 14:05 notfood

Yeah, I haven't added it to the build script yet. I suppose all that's needed is to install libmicrohttpd in the build image dockerfile. At some point, I'm going to write a new web based admin UI for the server, which will probably replace the current UI, so I'll have to add Windows support then.

The Dockerfile in question is the one in pkg/win. Where it runs the "make download-*" stuff, download-libmicrohttpd should be added, and also on the build line. I'll try to add it when building the next release. I should also update the other dependencies, since they're so old they're probably not available for download anymore.

It's definitely a missing feature. I see how old it is, but @callaa is basically saying he needs to modify the build script so compiling from script will properly build the server so it can run in headless mode.

Wade821 avatar May 08 '20 16:05 Wade821

Sorry, I keep forgetting this feature. I'm planning a (yet another) big rewrite of the server, but it looks like that's not going to happen in the immediate future, so I'll look into this right away.

callaa avatar May 17 '20 15:05 callaa

Looks like this isn't as straightforward as I thought. For some reason, libmicrohttpd is refusing to build in the dockcross/MXE environment. Running make libmicrohttpd will just say say that the package is disabled, but will mark it as installed. This seems to be due to me using the mingw.shared build type, but the package is apparently made for static build only. If I remove the line that disables the shared build, the build still fails because it can't compile the test program.

callaa avatar May 17 '20 16:05 callaa

This is solved in Drawpile 2.2, we now build with libmicrohttpd on Windows.

askmeaboutlo0m avatar May 10 '23 21:05 askmeaboutlo0m