How can I fix this bug with ScyllaDB? - scylla

I'm trying to work through the ScyllaDB tutorial series here: https://www.scylladb.com/2017/11/30/mutant-monitoring-system-day-1/
I've got a Docker container running (on Windows, using Powershell) and have cloned their repo, and run it with Docker Compose:
PS C:\repos\scylla-code-samples\mms> docker-compose up -d
mms_scylla-node3_1 is up-to-date
mms_scylla-node2_1 is up-to-date
Creating mms_scylla-node1_1 ... done
Trying to check its status with the nodetool returns a container restarting error:
PS C:\repos\scylla-code-samples\mms> docker exec -it mms_scylla-node1_1 nodetool status
>>
Error response from daemon: Container c2940e14078fcdbbcf70f60392b05eb3d5c90273a15970c8575aad46cd797a02 is restarting, wait until the container is running
The logs show these unexpected end of file errors:
2019-03-05T09:39:36.882128500Z /start.sh: line 36: syntax error: unexpected end of file
2019-03-05T09:40:38.038237500Z /start.sh: line 4: $'\r': command not found
2019-03-05T09:40:38.038383700Z /start.sh: line 36: syntax error: unexpected end of file
2019-03-05T09:41:38.922861400Z /start.sh: line 4: $'\r': command not found
2019-03-05T09:41:38.923067400Z /start.sh: line 36: syntax error: unexpected end of file
2019-03-05T09:42:39.801821900Z /start.sh: line 4: $'\r': command not found
2019-03-05T09:42:39.802078500Z /start.sh: line 36: syntax error: unexpected end of file
2019-03-05T09:43:40.696641100Z /start.sh: line 4: $'\r': command not found
2019-03-05T09:43:40.696928800Z /start.sh: line 36: syntax error: unexpected end of file
How can I fix this, preferably without writing code?

The \r is indicative of windows-style carriage returns, so maybe it is related to your Windows environment somehow. Advise is to try this on a Linux box, and in parallel open a bug with the scylla-code-samples.git project so that it can be fixed.

On windows, you can try using the Docker Toolbox which uses a Virtual Box based docker host rather than the one that's part of the new "Docker for Windows". This ensure that you are running on Linux without having a Linux box.
Even though it says "Legacy Desktop Solution" It still works well.
https://docs.docker.com/toolbox/toolbox_install_windows/

Related

Valgrind configure build script "Syntax Error" OSX Monterey - how to fix?

I'm trying to build Valgrind 3.19.0 on OSX monterey and when i run the configure script i get a syntax error at line 6594:
checking for diff -u... yes
./configure: line 6594: syntax error near unexpected token `newline'
./configure: line 6594: ` '''
This is the code sippet of the configure script where the error is occuring.
for as_dir in $PATH
do
IFS=$as_save_IFS
case $as_dir in #(((
''
as_dir=./ ;;
*/) ;;
*) as_dir=$as_dir/ ;;
Let me know if you need any more info.

Xcode 13 build error - Command PhaseScriptExecution failed with a nonzero exit code

Cannot build with xcode 13, I keep getting this error.
I have tried everything from this thread but nothing works, https://github.com/react-native-community/upgrade-support/issues/161
I've nuked the repo pulled down again and still get the same error. I'm out of ideas, can anyone please help?
/bin/sh -c /Users/xxx/Library/Developer/Xcode/DerivedData/xxx-glxuojrfejxbhqgircpjgklctbto/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/FBReactNativeSpec.build/Script-85ABEEFECFDEC6A1611D2CF5A77EABBC.sh
/Users/xxx/apps/xxx/node_modules/react-native/scripts/generate-specs.sh: line 27: readlink: command not found
/Users/xxx/apps/xxx/node_modules/react-native/scripts/generate-specs.sh: line 27: dirname: command not found
/Users/xxx/apps/xxx/node_modules/react-native/scripts/generate-specs.sh: line 27: cd: : No such file or directory
Command PhaseScriptExecution failed with a nonzero exit code
Using xcode 13, RN 64.2, macOS Big Sur 11.6
Fixed by modifying generate-specs.sh
https://github.com/facebook/react-native/issues/32157#issuecomment-915165442
Try to add arm64 in debug & Release if excluded archivecture

Building Chromium on windows throws an error message

After fetching Chromium's source code, I executed the following command
$ gn gen out/Default
This results in an execution error:
/c/src/depot_tools/gn: line 8: exec: python3: not found
What's the problem and how to solve this error?

How to fix invoke uiautomator from command Prompt

I want to run uiautomatorviewer from command Prompt.
But it gives an error:
-Djava.ext.dirs=..\lib\x86_64;..\lib is not supported. Use
-classpath instead.
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
Please guide.
Download JDK 8 version & install it
Set Environment variable as [JAVA_HOME : C:\Program Files\Java\jdk1.8.0_65]
Path = %JAVA_HOME%\bin & %JAVA_HOME%\lib
and provide uiautomatorviewer.bat command in cmd
The above scenario will work.

Sejda Console Error Invalid Value for Location of File

This is my batch file but I am getting the following error:
sejda-console splitdownthemiddle -f C:\Users\rigo\Test.pdf C:\Users\rigo\Split.pdf -o C:\Users\rigo\
exit
Invalid value does not exit. The file is in the correct location though.
Any leads would be appreciated.
Windows 7 Prof 64. Using Sejda Console 2.0.0.M14