hbollon / IGopher

⚡ Powerful, customizable and easy to use Instagram dm bot. With TUI and Electron.js GUI! Using Selenium webdriver and Yaml configuration files. (WIP)
MIT License
160 stars 30 forks source link

Access denied on chromedriver installation #12

Closed Maurolix closed 3 years ago

Maurolix commented 3 years ago

Describe the bug As soon as the installation of the dependencies finishes it gives me this line:

"WARN [0004] Error renaming". \ lib \ chromedriver_win32 \ chromedriver.exe "to". \ lib \ chromedriver.exe ": rename. \ Lib \ chromedriver_win32 \ chromedriver.exe. \ Lib \ chromedriver. exe: Access denied. function = handleFile line = 412 "

Then this:

"ERRO [0015] unknown error - 33: Unable to create session from { "desiredCapabilities": { "browserName": "chrome", "chromeOptions": { "binary": ". \ lib \ chrome-win \ chrome.exe", "args": [ "--disable-extensions", "--disable-infobars", "--disable-dev-shm-usage", "--no-sandbox", "--window-size = 360,640" ], "mobileEmulation": { "deviceName": "Nexus 5" }, "w3c": false }, "goog: chromeOptions": { "binary": ". \ lib \ chrome-win \ chrome.exe", "args": [ "--disable-extensions", "--disable-infobars", "--disable-dev-shm-usage", "--no-sandbox", "--window-size = 360,640" ], "mobileEmulation": { "deviceName": "Nexus 5" }, "w3c": false } }, "capabilities": { "firstMatch": [ { "browserName": "chrome", "goog: chromeOptions": { "binary": ". \ lib \ chrome-win \ chrome.exe", "args": [ "--disable-extensions", "--disable-infobars", "--disable-dev-shm-usage", "--no-sandbox", "--window-size = 360,640" ], "mobileEmulation": { "deviceName": "Nexus 5" }, "w3c": false } } ] } } Build info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11-14T08:25:53' System info: host: 'DESKTOP', ip: '', os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '16.0.2' Driver info: driver.version: unknown function=InitChromeWebDriver line=146"

Afterwards it opens 3 blank google windows.is.

To Reproduce Steps to reproduce the behavior:

  1. Go to 'IGopherTUI-windows-amd64'
  2. Click on 'launch'
  3. See error

Expected behavior

Screenshots If applicable, add screenshots to help explain your problem.

Error output Are written above

Desktop (please complete the following information):

Additional context Add any other context about the problem here.

hbollon commented 3 years ago

Hi, Can you, please, provide me:

According to your logs, it's seems related the a rights issue. You seems to be on Windows so can you check that the folder where you put the executable isn't in read-only mode? If so, disable this option, apply changes and restart IGopher by removing the lib/ folder or with the following command: ./IGopherTUI-windows-amd64.exe --force-download. Otherwise create a new folder IGopher in your user's root directory and move the original IGopher executable here and retry.

If none of the solutions above work, I will need the complete log file generated by IGopher in debug mode:

Be careful to delete all logged credentials if they are real and you don't want me to see them. If you forgot don't panic I personally don't mind and I will delete the message and the file right after my analyse :wink:

Please keep me updated :smile: Keep in mind that IGopher is in development and the dependency manager is not yet able to detect corrupted dependencies and reinstall it. So always run it with --force-download flag during the tests or keep delete the lib/ sub-folder :+1:

Maurolix commented 3 years ago

Hi, sorry for the delay. Of course now I attach the file: logs.log Thanks for your help.

hbollon commented 3 years ago

Thanks for the update Have you tried all step above? It's definitely caused by a right issue which prevent dependency manager to extract and install chrome. Try a fresh installation with lastest IGopher version as explained in my previous message 👍

Maurolix commented 3 years ago

Hi, nothing to do. 😔 I have tried several times, even on different PCs (with windows), but nothing, same problem. From the / lib folder it appears that the dependencies are installed correctly.

I don't know if it can help but I tried on 5 PCs and only one works correctly, so from this PC I transferred the dependencies to the PC where it doesn't work but nothing.

I hope you can understand the problem.

hbollon commented 3 years ago

Hi, sorry for the delay I'm very busy actually... In your logs we can see that: WARN[0037] Error renaming ".\\lib\\chromedriver_win32\\chromedriver.exe" to ".\\lib\\chromedriver.exe": rename .\lib\chromedriver_win32\chromedriver.exe .\lib\chromedriver.exe: Accesso negato.

Which clearly indicate a rights issue Can you check:

hbollon commented 3 years ago

I close this issue due to inactivity. If you still encounter this bug reopen it.