Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WSL Support #322

Open
ghost opened this issue Nov 19, 2019 · 3 comments
Open

WSL Support #322

ghost opened this issue Nov 19, 2019 · 3 comments

Comments

@ghost
Copy link

ghost commented Nov 19, 2019

Presently the site seems to work fine on WSL, with some issues:

  1. WSL does not properly support systemctl, so commands like amusewiki start/stop do not work properly.

  2. Perhaps this is an issue on my side and not WSL, but amusewiki does not seem to be able to publish, and instead is stuck on the job pending. There's no log file under lib/amusewiki/log/jobs (I'm guessing since it's still 'running'), but if there's a way I can help diagnose the issue I'd be happy to assist.

@melmothx
Copy link
Owner

@Seth1 I have no knowledge about WSL. If amusewiki runs, how was started? How was installed? With the deb I suppose?

If publishing isn't happening, that's an indicator that the jobber isn't running. Try to run it in the foreground:

sudo -u amusewiki -- amusewiki-jobber and see what happens.

@melmothx
Copy link
Owner

cd /var/lib/amusewiki
sudo -u amusewiki -- amusewiki-jobber

Or you can use the wrapper:

amusewiki jobber (as root, which does the same thing)

@ghost
Copy link
Author

ghost commented Nov 22, 2019

"cd /var/lib/amusewiki
sudo -u amusewiki -- amusewiki-jobber"

This fixed the problem with publishing, and now I'm guessing amusewiki is fully functioning on WSL (well save start/stop). I'll be sure to report back if anything else seems off.

"If amusewiki runs, how was started?"
Truthfully I'm not entirely sure, I did do amusewiki restart at one point which seemed to worked.

"How was installed? With the deb I suppose?"
I used Ubuntu on WSL, so yes I just used the same exact instructions on packages.amusewiki.com. The only thing I had to do was start mysql manually ("sudo /etc/init.d/mysql start") to fix this issue:
microsoft/WSL#745
Maybe I also had to start nginx manually, can't quite remember.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant