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

Windows from source install (was: Sudden Crash when starting) #2066

Closed
arradoq opened this issue Dec 19, 2018 · 13 comments
Closed

Windows from source install (was: Sudden Crash when starting) #2066

arradoq opened this issue Dec 19, 2018 · 13 comments

Comments

@arradoq
Copy link

arradoq commented Dec 19, 2018

Issue

Add these issues to elsewhere:

Other Wekan issues can be added here.

Server Setup Information:

  • Did you test in newest Wekan?:
  • For new Wekan install, did you configure root-url correctly https://github.com/wekan/wekan/wiki/Settings ?
  • Wekan version:
  • If this is about old version of Wekan, what upgrade problem you have?:
  • Operating System:
  • Deployment Method(snap/docker/sandstorm/mongodb bundle/source):
  • Http frontend if any (Caddy, Nginx, Apache, see config examples from Wekan GitHub wiki first):
  • Node Version:
  • MongoDB Version:
  • ROOT_URL environment variable http(s)://(subdomain).example.com(/suburl):

Problem description:

  • REQUIRED: Add recorded animated gif about how it works currently, and screenshot mockups how it should work. Use peek to record animgif in Linux https://github.com/phw/peek
  • Explain steps how to reproduce
  • In webbrowser, what does show Right Click / Inspect / Console ? Chrome shows more detailed info than Firefox.
  • If using Snap, what does show command sudo snap logs wekan.wekan ?
  • If using Docker, what does show command sudo docker logs wekan-app ?
  • If logs are very long, attach them in .zip file

C:\Users\<user>\wekan-devel\.meteor\local\build\programs\server\boot.js:467
W20181220-06:03:35.145(7)? (STDERR) }).run();

W20181220-06:03:35.147(7)? (STDERR) ^

W20181220-06:03:35.148(7)? (STDERR)

W20181220-06:03:35.150(7)? (STDERR) Error: EPERM: operation not permitted, stat
'C:\Users`\wekan-devel.meteor\local\build\programs\server\node_modules'`

W20181220-06:03:35.151(7)? (STDERR) at Object.realpathSync (fs.js:1670:17)

W20181220-06:03:35.152(7)? (STDERR) at toRealPath (module.js:156:13)

W20181220-06:03:35.157(7)? (STDERR) at tryFile (module.js:152:22)

W20181220-06:03:35.158(7)? (STDERR) at tryExtensions (module.js:164:22)

W20181220-06:03:35.159(7)? (STDERR) at Function.Module._findPath (module.js:217:20)

W20181220-06:03:35.161(7)? (STDERR) at Function.Module._resolveFilename (module.js:534:25)

W20181220-06:03:35.162(7)? (STDERR) at Function.Module._load (module.js:466:25)

W20181220-06:03:35.166(7)? (STDERR) at Module.require (module.js:579:17)

W20181220-06:03:35.168(7)? (STDERR) at require (internal/module.js:11:18)

W20181220-06:03:35.170(7)? (STDERR) at Object.require (C:\Users\<user>\wekan-devel\.meteor\local\build\programs\server\boot.js:283:20)

at first, fibers cannot be found, then underscore, and then this.

@xet7
Copy link
Member

xet7 commented Dec 20, 2018

Did you try to build Wekan from source on Windows directly? I do not know does that work. You need correctly installed fibers etc.

Or is this with Docker? Docker updates do not work, updating switches to Windows Docker containers. You need to backup (info at Wekan GitHub wiki, although I don't know what file paths Docker on Windows uses), remove Docker and containers, reinstall Docker and make sure you use Linux containers. Then use docker-compose to run Wekan again.

@arradoq
Copy link
Author

arradoq commented Dec 20, 2018

I try to source on Windows, i've done it before, but somehow it needs to be redone, i want to know which dependency are not compatible. I use node 4.8.1 npm 2.5.1 with meteor 1.6.0.1

@xet7
Copy link
Member

xet7 commented Dec 26, 2018

Current versions can be seen at Dockerfile
https://github.com/wekan/wekan/blob/devel/Dockerfile#L79-L83

So currently it's node 8.14.1 and latest npm.

@xet7 xet7 changed the title Sudden Crash when starting Windows from source install (was: Sudden Crash when starting) Dec 26, 2018
@xet7 xet7 added this to the 2019-02-28 Add/Remove/Bugs milestone Jan 11, 2019
@nerminator
Copy link

Is there any update on this? I also have the same problem.
at first, fibers cannot be found, then underscore, and then this wierd operation not permitted error.

@xet7
Copy link
Member

xet7 commented Feb 28, 2019

@nerminator

Wekan has lowest RAM/CPU consumption on Windows when installing to Win10:

  1. Windows Subsystem for Linux
  2. Ubuntu for Windows from Windows Store
  3. Using rebuild-wekan.sh 1 and 2, start-wekan.sh from https://github.com/wekan/wekan and MongoDB 3.2.21 from MongoDB website.

That way fibers etc works.

@nerminator
Copy link

The solution is actually running on Ubuntu rather than running on Windows. I'll try with Oracle VirtualBox.
Thanks.

@arradoq
Copy link
Author

arradoq commented Mar 1, 2019

if you are just interested in wekan only rather than overall ubuntu things, option 2 is more RAM friendly

@xet7
Copy link
Member

xet7 commented Mar 1, 2019

I'm unable to fix fibers on Windows, I'm not fibers or Windows developer.

When I some years ago tried to make Windows Service, Windows file permissions did lock me out of using files.

Once I tried to install Nim programming language to Windows, and then Windows Defender deleted it.

So I failed as Windows developer, and I'm unable to make Wekan working on Windows Source install. I can not fix this. This would require some Windows developer to get it working.

@xet7 xet7 closed this as completed Mar 1, 2019
@xet7 xet7 mentioned this issue Mar 1, 2019
@beppe9000
Copy link

I got Wekan running natively in windows server 2016 with node 10.12.0 x64. I had no problem with fibers so I think some update fixed that.

@xet7
Copy link
Member

xet7 commented May 28, 2019

@beppe9000

Please write all details how you did it, step by step.

@xet7 xet7 reopened this May 28, 2019
@beppe9000
Copy link

beppe9000 commented May 28, 2019

I basically followed this: https://github.com/wekan/wekan/wiki/Install-Wekan-from-source-on-Windows#source-install-required-dependencies

Running everything in cmd.exe

I actually started with creating a test package where i installed fibers:

[1662]npm install --global --production windows-build-tools
[1665]npm install --global node-gyp
[1668]npm install fibers

It compiled.

I did not do npm config -g set msvs_version 2015 and meteor npm config -g set msvs_version 2015. Might be of note: I use this machine for development so I already had visual studio, python and many other utilities like compilers and the rest.

While I was at it I tested nexe with the fibers test package and it worked (generated an exe that does not depend on node).

I installed meteor with choco install meteor.

Typescript needs to be made available to node:

[1700]choco intall typescript

Then I cloned wekan (specifying the latest version tag) with:

[1751]git clone --branch v2.75 https://github.com/wekan/wekan.git && cd wekan

Then it's meteor time... with some troubleshooting (I got some random hangups often caused by some random 'lstat' errors on temp folders while meteor was doing installs like working the kadira flow package and on other occasions but I think it may be a problem of my machine since meteor create . --full on a new folder got stuck too). I think I solved (didn't get app hangs till now) by switching to powershell for running the meteor command.

[1808]meteor --h
[1809]meteor npm install --save xss --verbose
[1810]meteor npm install --save kadira:flow-router --verbose
[1811]meteor npm install --save flow-router --verbose
[1812]npm update
[1813]npm install
[1814]meteor npm install
[1815]tasklist | ag node
[1816]tasklist | ag "(node|met)"
[1817]taskkill /im meteor.exe
[1818]taskkill /im node.exe
[1819]meteor
[1820]cls
[1821]taskkill /im node.exe /f
[1823]mkdir C:\Users\Administrator\Desktop\wekan-test\nu-clone\wekan\packages\kadira-flow-router\.npm\package-new-vug0z7.bv73\node_modules
[1825]npm install kadira-flow-router
[1826]meteor npm install kadira-flow-router --save --verbose
[1827]meteor --verbose

Now I can launch everything with meteor.

@arradoq
Copy link
Author

arradoq commented Jun 20, 2019

On my case I installed it on Windows 10 pro, after auto update, suddenly cannot use fiber again. So, i think maybe different version from OS matters here.

Somebody please kindly update this issue if the matter on win 10 is resolved

@xet7
Copy link
Member

xet7 commented Jan 12, 2021

choco install meteor etc should work now OK.

@xet7 xet7 closed this as completed Jan 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants