uget-chrome-wrapper
uget-chrome-wrapper copied to clipboard
Error: Unable to connect to the uget-chrome-wrapper
If you are getting this error message in the uGet Integration extension, please make sure that you have installed Python 3.4
or greater, uGet 2.0.8
or greater and the latest version of uget-chrome-wrapper
.
To see how to install uget-chrome-wrapper
, visit the official page: Installation Guide Also make sure that you have restarted the browser after installing all the above tools.
If you still have the problem after installing uget-chrome-wrapper
, enable the log by following the steps given below and share the log information along with your uGet version, Browser name and version and the Operating System with version.
- Open uget-chrome-wrapper
sudo gedit /usr/bin/uget-chrome-wrapper
Windows users can find it at C:\Program Files (x86)\uget-chrome-wrapper\uget-chrome-wrapper.py
- Uncomment the following two lines and save the changes
# log_file_path = join(expanduser('~'), 'uget-chrome-wrapper.log')
# logging.basicConfig(format='%(asctime)s [%(levelname)s]: %(message)s', filename=log_file_path, filemode='a', level=logging.DEBUG)
After uncommenting, it should become:
log_file_path = join(expanduser('~'), 'uget-chrome-wrapper.log')
logging.basicConfig(format='%(asctime)s [%(levelname)s]: %(message)s', filename=log_file_path, filemode='a', level=logging.DEBUG)
-
Just open your web browser.
-
There should be a file created at
~/uget-chrome-wrapper.log
. In Windows (I beleive) it should beC:\Users\<User-Name>\uget-chrome-wrapper.log
. If the file is there, share its content. If not, please specify that.
i have followed the steps here and now it is working well !
although i followed the steps on the software's website and installed the extension from chrome extensions, but it didn't install the uget-chrome-wrapper
any way, now it is working well, thank you :)
Software's web site?? Did you mean the Chrome extension web store? Because https://slgobinath.github.io/uget-chrome-wrapper is the official website.
what about this one !? http://ugetdm.com/
@KhogaEslam that's the official site of uGet Download Manager. Actually, the uGet does not offer any official extensions for any browser and I tried to fill that gap by developing my own wrapper named uget-chrome-wrapper
and the extension uGet Integration
. I remember MichaelTunnell, mentioned this extension in his comments but still uget-chrome-wrapper
is not officially part of uGet.
Sorry for the inconvenience.
@slgobinath OK, Thank you, By the way Your work is amazing, thanks again :)
hi i have same probleam. on deepin linux 15.4.1 and chrome 58.0.3029.110 (64-bit).
chrome console log:
chrome-extension://efjgjleilhflffpbnkaofpmdnajdpepi/content.js:29 Uncaught ReferenceError: browser is not defined
at window.onkeyup (chrome-extension://efjgjleilhflffpbnkaofpmdnajdpepi/content.js:29)
Hi @ByCnck, Due to this bug, the keyboard shortcuts were not working and thanks for reporting this bug.I have fixed the issue in https://github.com/slgobinath/uget-chrome-wrapper/commit/581396fdfd01bba896d16059c6d12726ee539c2a and released a new version of the extension 2.0.5 which is now available in chrome store. However, this bug affects the shortcuts only and the extension should work as expected. Could you please follow the instructions given in my first comment on this issue and share the log message.
Thanks.
@slgobinath there is no error log after i started or restarted chrome.
clark@MiAir:~$ cat /usr/bin/uget-chrome-wrapper | grep log_file
log_file_path = join(expanduser('~'), 'uget-chrome-wrapper.log')
logging.basicConfig(format='%(asctime)s [%(levelname)s]: %(message)s', filename=log_file_path, filemode='a', level=logging.DEBUG)
clark@MiAir:~$ cat /usr/bin/uget-chrome-wrapper | grep logging.basicConfig
logging.basicConfig(format='%(asctime)s [%(levelname)s]: %(message)s', filename=log_file_path, filemode='a', level=logging.DEBUG)
clark@MiAir:~$ /usr/bin/python3 -V
Python 3.5.3
clark@MiAir:~$ ll /usr/bin/uget-chrome-wrapper
-rwxr-xr-x 1 root root 4739 7月 16 22:31 /usr/bin/uget-chrome-wrapper*
clark@MiAir:~$ more uget-chrome-wrapper.log
clark@MiAir:~$ google-chrome
[1:1:0717/153504.318639:ERROR:chrome_content_client.cc(371)] Failed to locate and load the component updated flash plugin.
[1:1:0717/153504.320027:ERROR:chrome_content_client.cc(371)] Failed to locate and load the component updated flash plugin.
[2777:2777:0717/153504.363388:ERROR:chrome_content_client.cc(371)] Failed to locate and load the component updated flash plugin.
[2777:2859:0717/153504.465439:ERROR:connection.cc(1954)] sqlite error 1, errno -2: table urls has 8 columns but 7 values were supplied, sql: INSERT INTO urls SELECT * FROM history.urls WHERE typed_count > 0
[2777:2859:0717/153504.465597:ERROR:connection.cc(1954)] sqlite error 1, errno -2: no such column: u.favicon_id, sql: INSERT OR IGNORE INTO urls SELECT u.id, u.url, u.title, u.visit_count, u.typed_count, u.last_visit_time, u.hidden, u.favicon_id FROM history.urls u JOIN history.keyword_search_terms kst WHERE u.typed_count = 0 AND u.id = kst.url_id
[2777:2807:0717/153504.547199:ERROR:login_database.cc(550)] Password store database is too new, kCurrentVersionNumber=18, GetCompatibleVersionNumber=19
[2777:2807:0717/153504.547286:ERROR:password_store_default.cc(45)] Could not create/open login database.
[2777:2777:0717/153505.310215:ERROR:CONSOLE(21)] "Uncaught ReferenceError: browser is not defined", source: chrome-extension://efjgjleilhflffpbnkaofpmdnajdpepi/content.js (21)
[2777:2812:0717/153506.155088:ERROR:sync_resource_handler.cc(54)] Cross origin redirect denied
[2777:2812:0717/153506.173646:ERROR:sync_resource_handler.cc(54)] Cross origin redirect denied
[2777:2777:0717/153510.328572:ERROR:CONSOLE(21)] "Uncaught ReferenceError: browser is not defined", source: chrome-extension://efjgjleilhflffpbnkaofpmdnajdpepi/content.js (21)
[2777:2777:0717/153515.019980:ERROR:CONSOLE(21)] "Uncaught ReferenceError: browser is not defined", source: chrome-extension://efjgjleilhflffpbnkaofpmdnajdpepi/content.js (21)
[2777:2807:0717/153515.883696:ERROR:password_syncable_service.cc(163)] Passwords datatype error was encountered: Failed to get passwords from store.
clark@MiAir:~$ cat uget-chrome-wrapper.log
clark@MiAir:~$

clark@MiAir:~$ tail /etc/chromium/native-messaging-hosts/com.javahelps.ugetchromewrapper.json
{
"name": "com.javahelps.ugetchromewrapper",
"description": "Integrate uGet with Google Chrome, Chromium, Vivaldi and Opera",
"path": "/usr/bin/uget-chrome-wrapper",
"type": "stdio",
"allowed_origins": [
"chrome-extension://efjgjleilhflffpbnkaofpmdnajdpepi/",
"chrome-extension://akcbnhoidebjpiefdkmaaicfgdpbnoac/"
]
}
@ByCnck,
Did you install the uget-chrome-wrapper
manually?
If so, please ensure that the com.javahelps.ugetchromewrapper.json
is in the /etc/opt/chrome/native-messaging-hosts
directory.
/etc/chromium/native-messaging-hosts
is for Chromium and Vivaldi.
Hi @slgobinath I have this message
Info: Found uGet: and uget-chrome-wrapper: 2.0.4
It seems that it works. But when I try to download something, uGet window does not open and when I open the uget-chrome-wrapper.log some of the lines reveal these:
2017-07-18 11:29:18,741 [INFO]: uget-chrome-wrapper is reading the message 2017-07-18 11:29:35,779 [INFO]: uget-chrome-wrapper is reading the message 2017-07-18 11:29:35,779 [DEBUG]: Message length: 19 2017-07-18 11:29:35,794 [DEBUG]: Received message: {"version":"2.0.6"} 2017-07-18 11:29:35,957 [DEBUG]: uGet version: 2017-07-18 11:29:35,957 [INFO]: Sending message: {"enable": true, "version": "2.0.4", "uget": ""} 2017-07-18 11:35:04,029 [INFO]: uget-chrome-wrapper is reading the message 2017-07-18 11:35:04,030 [DEBUG]: Message length: 1369 2017-07-18 11:35:04,030 [DEBUG]: Received message: {"url":"http://www72.zippyshare.com/d/eZP3HuBo/15054/IseSho_03_HD_HS_ACB.mkv","cookies":"www72.zippyshare.com\tFALSE\t/\tFALSE\tNaN\tJSESSIONID\tBC57A2FB8BA5BB891EC6BF3E3EE9F40B\n.zippyshare.com\tTRUE\t/\tFALSE\t1500395668\tzippop\t6\n.zippyshare.com\tTRUE\t/\tFALSE\t1500353069\t__utmt\t1\n.zippyshare.com\tTRUE\t/\tFALSE\t10140266086\tzippyadb\t0\n.zippyshare.com\tTRUE\t/\tFALSE\t1563424486\t__utma\t46003887.908056981.1451722260.1500348052.1500352469.13\n.zippyshare.com\tTRUE\t/\tFALSE\t1500354286\t__utmb\t46003887.2.9.1500352486021\n.zippyshare.com\tTRUE\t/\tFALSE\tNaN\t__utmc\t46003887\n.zippyshare.com\tTRUE\t/\tFALSE\t1516120486\t__utmz\t46003887.1497823259.2.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none)\nwww72.zippyshare.com\tTRUE\t/\tFALSE\t1563424486\t__atuvc\t3%7C29\nwww72.zippyshare.com\tTRUE\t/\tFALSE\t1500354286\t__atuvs\t596d8fd430fc710f000\n.zippyshare.com\tTRUE\t/\tFALSE\t2147472000\tadmaven_pop_621656_ts\t1500352486308\n.zippyshare.com\tTRUE\t/\tFALSE\t2147472000\tadmaven_pop_621656_d\t1500352486325_1\n.zippyshare.com\tTRUE\t/\tFALSE\t2147472000\tadmaven_pop_621656_u["2567885998"]\t1500352486330_1\n","useragent":"Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.115 Safari/537.36","filename":"","filesize":"17595","referrer":"http://www72.zippyshare.com/v/eZP3HuBo/file.html","postdata":""} 2017-07-18 11:35:04,033 [INFO]: Sending message: {"state": "accepted"}
Is there anything wrong?
Thanks
Hi @trickymindful, I think you do not have uGet download manager. Please install the uGet download manager from this URL: http://ugetdm.com/downloads
The infor message should be something like this:
Info: Found uGet: 2.0.9 and uget-chrome-wrapper: 2.0.4
I use windows 7 and the site does not provide any installer just portable executable ones. I try moving its extracted files in c://uget/ still not working.On Jul 18, 2017 6:21 PM, Gobinath [email protected] wrote:Hi @trickymindful, I think you do not have uGet download manager. Please install the uGet download manager from this URL: http://ugetdm.com/downloads The infor message should be something like this:
Info: Found uGet: 2.0.9 and uget-chrome-wrapper: 2.0.4
—You are receiving this because you were mentioned.Reply to this email directly, view it on GitHub, or mute the thread.
In Windows, you need to setup add the C:\uget\bin
directory to the environment variable PATH
. How to add this to the environment variable is explained in the installation guide to Windows users in https://slgobinath.github.io/uget-chrome-wrapper/.
Once you have added the path, you must be able to launch the uGet download manager from command prompt by using this command: uget
The path to uget folder is already done and I can call it via cmd. But the chrome extension still cannot detect the uget. Must I restart my computer, or just the browser?On Jul 18, 2017 7:27 PM, Gobinath [email protected] wrote:In Windows, you need to setup add the C:\uget\bin directory to the environment variable PATH. How to add this to the environment variable is explained in the installation guide to Windows users in https://slgobinath.github.io/uget-chrome-wrapper/. Once you have added the path, you must be able to launch the uGet download manager from command prompt by using this command: uget
—You are receiving this because you were mentioned.Reply to this email directly, view it on GitHub, or mute the thread.
@slgobinath yes,i installed it manually."com.javahelps.ugetchromewrapper.json" is in the /etc/opt/chrome/native-messaging-hosts and i am ok now.thanks a lot.
Hello @slgobinath, it is somehow doing well now. I don't know why though. I just uninstall and remove both 'uget' and 'uget-chrome-wrapper'. Then installing both again etracting the uget directly to 'c:/uget/' and then making sure uget can be executed from cmd. After that I install again the 'uget-chrome-wrapper' and run its bat file again. Not going well at first and I just give it up and rest. The google chrome is still open at that time. I try to restart the browser repeatedly while executing the bat file.After some time, suddenly after clicking a download link, uget capture the link even though I don't copy the link (I activate the url monitoring feature). I tried to copy the url and it does the job. I try just to click it again and it also does the job. I don't know why but I suspect restarting the browser while running the bat file affect it. Tbh, this is confusing.I think there is a sequence way to install and execute them. Maybe I messed up halfway before. Thank you @slgobinath for the help and sorry if I burden you too much.On Jul 18, 2017 7:46 PM, [email protected] wrote:The path to uget folder is already done and I can call it via cmd. But the chrome extension still cannot detect the uget. Must I restart my computer, or just the browser?On Jul 18, 2017 7:27 PM, Gobinath [email protected] wrote:In Windows, you need to setup add the C:\uget\bin directory to the environment variable PATH. How to add this to the environment variable is explained in the installation guide to Windows users in https://slgobinath.github.io/uget-chrome-wrapper/. Once you have added the path, you must be able to launch the uGet download manager from command prompt by using this command: uget
—You are receiving this because you were mentioned.Reply to this email directly, view it on GitHub, or mute the thread.
@trickymindful, no worries and I am happy to hear that it has been resolved.
I'm using Fedora 27 and Mozilla Firefox. The installation guide for firefox doesn't work for me and after de-commenting the two lines mentioned here no log file can be found in my home directory.
Strangely enough, after moving the native-messaging-hosts file from globa position(i.e. /usr/lib/mozilla) to user position(i.e. ~/.mozilla), it works nicely as I would expected.
By the way, filename with Chinese characters and Japenese characters can't be transfer properly to uget. Is there a coding problem or I did something wrong?
Hi @AlwaysPS,
Thanks for reporting the issue. According to my testing, in Fedora, the directory must be /usr/lib64/mozilla/native-messaging-hosts
. I have updated the document.
Thanks again
Hi @slgobinath , First thanks for your job, was using wrapper on archlinux perfectly, but for job reason I had to switch to debian9, and I did not manage to make it works with Stretch & chromium. (Error: Unable to connect to the uget-chrome-wrapper).
I followed the installation guide (ttps://slgobinath.github.io/uget-chrome-wrapper/#installation) except point 5 cause related to opera if I am correct.
Moreover log file is not generated after uncommenting the 2 lines as you described. Does someone has tried it with debian 9 ? Or I am the first one having the issue.
Uget v2.0.8 - python 3.5.3-1 - debian 9 - chromium 59.0.3071.86 - uname -v --> SMP Debian 4.9.30-2+deb9u2 (2017-06-26)
Thanks for your help, kind regards
Hi @BerthaG,
Can you add the com.javahelps.ugetchromewrapper.json
in both of the following directories and restart the browser:
/etc/opt/chrome/native-messaging-hosts
and
/etc/opt/chrome/native-messaging-hosts
Please do let me know the result. If it is not working, I'll give a try on Debian.
Hi @slgobinath ,
Thanks for the quick answer, I think you copy - paste twice the same directory. com.javahelps.ugetchromewrapper.json was already in /etc/opt/chrome/native-messaging-hosts. I reuploaded it, i give it a try but same result.
@slgobinath , I guessed you mean /etc/chrome/native-messaging-hosts, ans still same result
@slgobinath , Not sure what make it works, but now it is ;) So I copied com.javahelps.ugetchromewrapper.json in /etc/chrome/native-messaging-hosts and /etc/opt/chrome/native-messaging-hosts : Was not working. Then I dL the .deb package available and install over && reboot pc and now it is green ;) Maybe the deb package is more suitable, no idea ... Thanks for your help, maybe adding debian in the list of tested distro should be nice in the future. Enjoy the rest of your day. Regards
@BerthaG, Thanks for reporting the result. Of course, I am thinking of providing a script to automate the installation because the behavior of browsers changes with the operating systems. I will release a script soon.
Thanks
I had this error message as well. Originally I had Python 2.7 installed on my CentOS 7. So, I installed Python 3.6, but none of the suggestions I read from this page solved my problem.
I looked around for a while. In the wrapper file located in /usr/bin/uget-chrome-wrapper
and its first line was this:
#!/usr/bin/env python3
I looked in the /usr/bin
directory and there wasn't any "python3", but the Python 3.6 that I had installed was there. So I changed that line to...
#!/usr/bin/env python3.6
and relaunched chrome.
It solved the error!
sorry but I have this problem too, and after uncomment these, I still can't find the log, where exactly is the log?
C:\Users\[myusername] doesn't have the log file.
I have this issue after updating the wrapper. It works before.
Windows 10, Vivaldi 1.12.955.48 Portable, uGet Integration 2.1.0, wrapper 2.0.6, Python 3.6.1
Getting the "unable to connect to uget-chrome-wrapper" error in Firefox 57 on Ubuntu 17.10. No log file generated after uncommenting the relevant lines. Working fine in Vivaldi, however, so it's definitely a Firefox issue.
"3. Open the browser and share the content of ~/uget-chrome-wrapper.log. Windows users will get this log in their User directory."
It is very frustrating when you state a step as this and someone like me has no idea what you are talking about or how to do this. So, can you please explain how to do this step.