UB-Mannheim / RaiseWikibase

Knowledge graph construction: Fast inserts into a Wikibase instance
https://ub-mannheim.github.io/RaiseWikibase/
MIT License
45 stars 7 forks source link

Windows installation (2) #19

Closed MHuberFaust closed 2 years ago

MHuberFaust commented 2 years ago

Hi again,

I started installing RaiseWikibase on a Mac parallel to Windows, so I can see if problems are Windows specific.

The jobrunner seems to have, again, an issue with (probably) encoding:


")syntax error: invalid arithmetic operator (error token is "

")syntax error: invalid arithmetic operator (error token is "

wait-for-it.sh: waiting for mysql.svc:3306 without a timeout

wait-for-it.sh: mysql.svc:3306 is available after 0 seconds

/jobrunner-entrypoint.sh: line 12: $'\r': command not found

/jobrunner-entrypoint.sh: line 13: syntax error near unexpected token `$'{\r''

'jobrunner-entrypoint.sh: line 13: `kill_runner() {

/jobrunner-entrypoint.sh: line 2: $'\r': command not found

/jobrunner-entrypoint.sh: line 5: $'\r': command not found

")syntax error: invalid arithmetic operator (error token is "

")syntax error: invalid arithmetic operator (error token is "

wait-for-it.sh: waiting for mysql.svc:3306 without a timeout

wait-for-it.sh: mysql.svc:3306 is available after 0 seconds

sleep: invalid time interval '1\r'

Try 'sleep --help' for more information.

Line endings are differently encoded. Is there a way to ensure they have the correct one for Windows as well?

Best, Michael

shigapov commented 2 years ago

Hi Michael, the jobrunner-entrypoint.sh comes from Wikibase Release Pipeline. May be you could report it there or even at Phabricator.

Do you run docker-compose -f docker-compose.yml -f docker-compose.extra.yml up -d --scale wikibase_jobrunner=2 ? What does it say if you run only docker-compose -f docker-compose.yml -f docker-compose.extra.yml up -d ?

MHuberFaust commented 2 years ago

Well that one is on me :(

I must have opened the file with a Texteditor and Windows converted linebreaks etc... and could not reproduce the issue.

I need to install the whole package on a different windows machine in a few days. I will reopen the issue if it shows again.