Giter Site home page Giter Site logo

Comments (24)

gpkvt avatar gpkvt commented on August 16, 2024

Have you tried to run a VBox guestcontrol command manually, did they work correctly? If not you have to fix your VirtualBox-Installation.

Also the "Source file "Tools/*" does not exist or is not a file" seems to imply that you don't had set up the Tools directory/config correctly. Are you sure everything is in place like the readme stated?

If guestcontrol works fine manually and you're sure Tools-Dir and Config are fine please enable the debugging uncomment the following lines in mkvm.sh:

#set -x
#set -e

set -x will print commands and their arguments as they are executed
set -e will exit the script when an error occurs

from modernie_selenium.

madhavajay avatar madhavajay commented on August 16, 2024

I have these issues too, does anyone know what the issue is? New version of VirtualBox maybe?

from modernie_selenium.

madhavajay avatar madhavajay commented on August 16, 2024
  • counter=0
  • '[' 0 -lt 10 ']'
  • echo 'Running VBoxManage modifyvm "IE9 - Win7" --nic1 bridged --bridgeadapter1 "en0"'
    Running VBoxManage modifyvm "IE9 - Win7" --nic1 bridged --bridgeadapter1 "en0"
  • bash -c 'VBoxManage modifyvm "IE9 - Win7" --nic1 bridged --bridgeadapter1 "en0"'
  • '[' 0 = 0 ']'
  • guestcontrol_error=0
  • break
  • '[' 0 = 0 ']'
  • return 0
  • chk error 0 'Could not set Bridge'
  • '[' 0 '!=' 0 ']'
  • log '[OK]'
  • tee -a IE9-Win7.log
  • echo '[OK]'
    [OK]
  • set_rdp_config
  • log 'Setting VRDE-Port ...'
  • echo Setting VRDE-Port ...
  • tee -a IE9-Win7.log
    Setting VRDE-Port ...
    ++ find VMs/ -name '*.vbox' -print0
    ++ xargs -0 grep TCP/Ports
    ++ awk '-F"' '{print $4}'
    ++ sort
  • vrdeports=
  • (( i=9000 ))
  • (( i<=10000 ))
  • echo
  • grep -q 9000

from modernie_selenium.

gpkvt avatar gpkvt commented on August 16, 2024

Is your adapter name for the bridge really "en0" or "eth0" maybe?

from modernie_selenium.

madhavajay avatar madhavajay commented on August 16, 2024

en0: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500
inet 192.168.23.78

WiFi Seems to be en0

Also I have en3 for Thunderbolt -> CAT5
If I manually switch to en0 and then run:
VBoxManage modifyvm "IE9 - Win7" --nic1 bridged --bridgeadapter1 "en0"
It switches to en3?
Some kind of preferencing?
Still, I dont get why it quits, its not really an error using either.

from modernie_selenium.

madhavajay avatar madhavajay commented on August 16, 2024

Looks like thats not the problem anyway. It goes OK and moves onto the next method: set_rdp_config()

  • chk error 0 'Could not set Bridge'
  • '[' 0 '!=' 0 ']'
  • log '[OK]'
  • echo '[OK]'
  • tee -a IE9-Win7.log
    [OK]
  • set_rdp_config
  • log 'Setting VRDE-Port ...'
  • echo Setting VRDE-Port ...
  • tee -a IE9-Win7.log
    Setting VRDE-Port ...
    ++ find VMs/ -name '*.vbox' -print0
    ++ xargs -0 grep TCP/Ports
    ++ awk '-F"' '{print $4}'
    ++ sort
  • vrdeports=
  • (( i=9000 ))
  • (( i<=10000 ))
  • echo
  • grep -q 9000

from modernie_selenium.

gpkvt avatar gpkvt commented on August 16, 2024

Sorry, my fault. Have you checked that the value for vm_path="VMs/" in config.sh is correct? It's the path were your VMs are created. It seems that the script isn't able to find a free port for VRDE (the port you use to connect to the machine via RDP). echo shouldn't be empty.

If your Path is correct you can skip the set_rdp_config-part (delete/comment line 585) and set the port manually after the Machines are created (or use the random port VirtualBox will set automatically), just to see if everything else works fine. If you don't want to connect to the machines via RDP it doesn't matter at all.

from modernie_selenium.

madhavajay avatar madhavajay commented on August 16, 2024

I commented out the RDP line and now I get this.

[OK]

  • create_temp_path
  • vm_temp='C:\Temp'
  • log 'Creating C:\Temp...'
  • echo Creating 'C:\Temp...'
  • tee -a IE9-Win7.log
    Creating C:\Temp...
  • execute 'VBoxManage guestcontrol "IE9 - Win7" createdirectory "C:\Temp" --username '''IEUser''' --password '''Passw0rd!''''
  • counter=0
  • '[' 0 -lt 10 ']'
  • echo 'Running VBoxManage guestcontrol "IE9 - Win7" createdirectory "C:\Temp" --username '''IEUser''' --password '''Passw0rd!''''
    Running VBoxManage guestcontrol "IE9 - Win7" createdirectory "C:\Temp" --username 'IEUser' --password 'Passw0rd!'
  • bash -c 'VBoxManage guestcontrol "IE9 - Win7" createdirectory "C:\Temp" --username '''IEUser''' --password '''Passw0rd!''''
    bash: -c: line 0: unexpected EOF while looking for matching `"'
    bash: -c: line 1: syntax error: unexpected end of file

from modernie_selenium.

gpkvt avatar gpkvt commented on August 16, 2024

Can you run guestcontrol commands by hand successfully?

from modernie_selenium.

madhavajay avatar madhavajay commented on August 16, 2024

Interesting.
This is what the script does:
VBoxManage guestcontrol "IE9 - Win7" createdirectory "C:\Temp" --username 'IEUser' --password 'Passw0rd!'

and i get: -bash: !': event not found

If I try this it seems to work:
VBoxManage guestcontrol 'IE9 - Win7' createdirectory 'C:\Temp' --username 'IEUser' --password 'Passw0rd!'

??? escaping the double quote? or something weird?

from modernie_selenium.

gpkvt avatar gpkvt commented on August 16, 2024

You can try to change execute "VBoxManage guestcontrol \"${vm_name}\" createdirectory \"${vm_temp}\" --username 'IEUser' --password 'Passw0rd!'" to execute "VBoxManage guestcontrol \"${vm_name}\" createdirectory \"${vm_temp}\" --username \"IEUser\" --password \"Passw0rd!\"" and see if it plays nice. If so you have to do this on every VBoxManage-line containing username and password, of course.

If all works fine I'll change the script here.

from modernie_selenium.

madhavajay avatar madhavajay commented on August 16, 2024

[OK]

  • create_temp_path
  • vm_temp='C:\Temp'
  • log 'Creating C:\Temp...'
  • echo Creating 'C:\Temp...'
  • tee -a IE9-Win7.log
    Creating C:\Temp...
  • execute 'VBoxManage guestcontrol "IE9 - Win7" createdirectory "C:\Temp" --username "IEUser" --password "Passw0rd!"'
  • counter=0
  • '[' 0 -lt 10 ']'
  • echo 'Running VBoxManage guestcontrol "IE9 - Win7" createdirectory "C:\Temp" --username "IEUser" --password "Passw0rd!"'
    Running VBoxManage guestcontrol "IE9 - Win7" createdirectory "C:\Temp" --username "IEUser" --password "Passw0rd!"
  • bash -c 'VBoxManage guestcontrol "IE9 - Win7" createdirectory "C:\Temp" --username "IEUser" --password "Passw0rd!"'
    bash: -c: line 0: unexpected EOF while looking for matching `"'
    bash: -c: line 1: syntax error: unexpected end of file

from modernie_selenium.

madhavajay avatar madhavajay commented on August 16, 2024

The commands work when I run them manually with single quotes just not double quotes.
I tried to do a find replace but i think i just made it worse.

from modernie_selenium.

gpkvt avatar gpkvt commented on August 16, 2024

Well. Try the other way. Replace " with ' and vice versa. Or try to escape the ! in Passw0rd! as it is a special char for bash.

from modernie_selenium.

madhavajay avatar madhavajay commented on August 16, 2024

hrm super annoying, i tried Passw0rd\! and that didnt work, and then Passw0rd\\! and that didnt work, goddamn escaping. Is there a way to use a different password?

from modernie_selenium.

madhavajay avatar madhavajay commented on August 16, 2024

Github is hiding my extra slashes? I can see them when I hit edit on the post!!! WTF?

from modernie_selenium.

gpkvt avatar gpkvt commented on August 16, 2024

I'm afraid not. You might can change it using a Windows-Command-Line-Tool using VBox guestcontrol, but you have to provide the initial Password.

What system you are using? Maybe your bash is different to ours.

(I've updated you comment to make the slashes visible.)

from modernie_selenium.

madhavajay avatar madhavajay commented on August 16, 2024

OSX Yosemite and iTerm 2

from modernie_selenium.

gpkvt avatar gpkvt commented on August 16, 2024

I know that https://github.com/tobyontour/modernie_selenium some changes for MacOS (some of them were already backported here), but I don't know if it was for Yosemite. But maybe toby has some advice that might help you.

I can check the script on Yosemite by myself but not in the next 2 weeks, sorry.

from modernie_selenium.

happy-tanuki avatar happy-tanuki commented on August 16, 2024

I got the same error.
I tried to change the path separator from backslash to slash.
It works without errors.

-  vm_temp="C:\\Temp\\"
+  vm_temp="C:/Temp/"

from modernie_selenium.

gpkvt avatar gpkvt commented on August 16, 2024

Please check if you can run the guestcommand hand. What's your virtualbox version?

I got a similiar error a while ago because virtualbox guestcommand now needs a filename in the target for all copy actions, before it just used the source filename if just a path was given. This was fixed in ievms a while ago, so this shouldn't be your problem but maybe it's just another syntax problem.

I'm using 4.3.28-100309Debianwheezy without problems.

from modernie_selenium.

happy-tanuki avatar happy-tanuki commented on August 16, 2024

My virtualbox version is 4.3.28r100309 on OS X Yosemite 10.10.3, bash 4.3.33.
If I entered the command manually, I got the error above: "-bash: !': event not found"...
I think this problem may be only occurred on yosemite virtualbox.
Thank you for replying my comment.

from modernie_selenium.

gpkvt avatar gpkvt commented on August 16, 2024

I assume it's the ! in --password 'Passw0rd!', which is a reserved char in bash. Usually this shouldn't be a problem, because it's enclosed in ', but it's worth a try. Just add a \ before the ! and run the command again.

from modernie_selenium.

soleilnoirmedia-deprecated avatar soleilnoirmedia-deprecated commented on August 16, 2024

I had a similar issue, a few notes:

  • The method copyto required full, really full, path (I used pwd to format the path on the script). In config.sh I used: tools_path="$(pwd)/Tools/" (@julienbechade @madhavajay).
  • When using single quotes I didn't need to escape the ! on the password, when using double quotes I did need to escape (@gpkvt).

This was tested on Ubuntu 14.04 LTS.

from modernie_selenium.

Related Issues (12)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.