Skip to content
This repository has been archived by the owner on Oct 1, 2018. It is now read-only.

it does not download form the server :( #148

Closed
Blockattester opened this issue May 3, 2016 · 4 comments
Closed

it does not download form the server :( #148

Blockattester opened this issue May 3, 2016 · 4 comments

Comments

@Blockattester
Copy link

Blockattester commented May 3, 2016

Hi
i tried every thing i could think of but it is still not working.

any help is much appreciated

05-03 11:30:48.123 3627-3627/com.Blockat.app1 I/art: Late-enabling -Xcheck:jni
05-03 11:30:48.123 3627-3627/com.Blockat.app1 I/art: VMHOOK: rlim_cur : 0 pid:3627
05-03 11:30:53.833 3627-3627/com.Blockat.app1 E/Typeface: SANS_LOC file not found.
05-03 11:30:53.843 3627-3627/com.Blockat.app1 E/Typeface: SANS_LOC file not found.
05-03 11:30:54.053 3627-3627/com.Blockat.app1 I/WebViewFactory: Loading com.google.android.webview version 49.0.2623.105 (code 262310500)
05-03 11:30:54.153 3627-3627/com.Blockat.app1 I/cr_LibraryLoader: Time to load native libraries: 58 ms (timestamps 9659-9717)
05-03 11:30:54.153 3627-3627/com.Blockat.app1 I/cr_LibraryLoader: Expected native library version number "49.0.2623.105", actual native library version number "49.0.2623.105"
05-03 11:30:54.193 3627-3627/com.Blockat.app1 I/cr_LibraryLoader: Expected native library version number "49.0.2623.105", actual native library version number "49.0.2623.105"
05-03 11:30:54.223 3627-3627/com.Blockat.app1 I/chromium: [INFO:library_loader_hooks.cc(144)] Chromium logging enabled: level = 0, default verbosity = 0
05-03 11:30:54.243 3627-3627/com.Blockat.app1 I/cr_BrowserStartup: Initializing chromium process, singleProcess=true
05-03 11:30:54.333 3627-3627/com.Blockat.app1 I/Adreno-EGL: <qeglDrvAPI_eglInitialize:410>: EGL 1.4 QUALCOMM build: TEST SBA LA.BF.1.1.1_RB1 AU_LINUX_ANDROID_LA.BF.1.1.1_RB1.05.00.02.042.012 + c1105519 + c_apilogging ()
OpenGL ES Shader Compiler Version: E031.25.03.00
Build Date: 01/23/15 Fri
Local Branch:
Remote Branch: refs/tags/AU_LINUX_ANDROID_LA.BF.1.1.1_RB1.05.00.02.042.012
Local Patches: NONE
Reconstruct Branch: NOTHING
05-03 11:30:54.403 3627-4038/com.Blockat.app1 W/cr_media: Requires BLUETOOTH permission
05-03 11:30:54.423 3627-3627/com.Blockat.app1 I/art: Rejecting re-init on previously-failed class java.lang.Class<com.android.webview.chromium.WebViewContentsClientAdapter$WebResourceErrorImpl>
05-03 11:30:54.423 3627-3627/com.Blockat.app1 I/art: Rejecting re-init on previously-failed class java.lang.Class<com.android.webview.chromium.WebViewContentsClientAdapter$WebResourceErrorImpl>
05-03 11:30:54.503 3627-3627/com.Blockat.app1 I/art: Rejecting re-init on previously-failed class java.lang.Class<org.chromium.content.browser.FloatingWebActionModeCallback>
05-03 11:30:54.503 3627-3627/com.Blockat.app1 I/art: Rejecting re-init on previously-failed class java.lang.Class<org.chromium.content.browser.FloatingWebActionModeCallback>
05-03 11:30:54.563 3627-3627/com.Blockat.app1 W/cr_AwContents: onDetachedFromWindow called when already detached. Ignoring
05-03 11:30:55.413 3627-4132/com.Blockat.app1 E/libEGL: validate_display:255 error 3008 (EGL_BAD_DISPLAY)
05-03 11:30:56.273 3627-3627/com.Blockat.app1 W/cr_BindingManager: Cannot call determinedVisibility() - never saw a connection for the pid: 3627
05-03 11:30:57.103 3627-3627/com.Blockat.app1 I/chromium: [INFO:CONSOLE(69)] "Received Event: deviceready", source: file:///android_asset/www/js/index.js (69)
05-03 11:30:57.103 3627-3627/com.Blockat.app1 I/chromium: [INFO:CONSOLE(50)] "Failed to load the update with error code: -18", source: file:///android_asset/www/js/index.js (50)
05-03 11:30:57.103 3627-3627/com.Blockat.app1 I/chromium: [INFO:CONSOLE(51)] "API requests are ignored until assets are installed. Please, wait.", source: file:///android_asset/www/js/index.js (51)
05-03 11:31:00.113 3627-4334/com.Blockat.app1 W/System.err: java.io.FileNotFoundException: http://blockat.com/filelist/.htaccess
05-03 11:31:00.123 3627-4334/com.Blockat.app1 W/System.err: at com.android.okhttp.internal.http.HttpURLConnectionImpl.getInputStream(HttpURLConnectionImpl.java:197)
05-03 11:31:00.123 3627-4334/com.Blockat.app1 W/System.err: at java.net.URL.openStream(URL.java:470)
05-03 11:31:00.123 3627-4334/com.Blockat.app1 W/System.err: at com.nordnetab.chcp.main.network.FileDownloader.download(FileDownloader.java:85)
05-03 11:31:00.123 3627-4334/com.Blockat.app1 W/System.err: at com.nordnetab.chcp.main.network.FileDownloader.downloadFiles(FileDownloader.java:52)
05-03 11:31:00.123 3627-4334/com.Blockat.app1 W/System.err: at com.nordnetab.chcp.main.updater.UpdateLoaderWorker.downloadNewAndChangedFiles(UpdateLoaderWorker.java:224)
05-03 11:31:00.123 3627-4334/com.Blockat.app1 W/System.err: at com.nordnetab.chcp.main.updater.UpdateLoaderWorker.run(UpdateLoaderWorker.java:114)
05-03 11:31:00.123 3627-4334/com.Blockat.app1 W/System.err: at com.nordnetab.chcp.main.updater.UpdatesLoader$1.run(UpdatesLoader.java:60)
05-03 11:31:00.123 3627-4334/com.Blockat.app1 W/System.err: at java.lang.Thread.run(Thread.java:818)
05-03 11:33:10.653 3627-3627/com.Blockat.app1 W/cr_AwContents: WebView.destroy() called while WebView is still attached to window.
05-03 11:33:16.283 3627-3627/com.Blockat.app1 W/cr_AwContents: onDetachedFromWindow called when already detached. Ignoring
05-03 11:33:16.383 3627-3627/com.Blockat.app1 W/cr_BindingManager: Cannot call determinedVisibility() - never saw a connection for the pid: 3627
05-03 11:33:16.413 3627-3627/com.Blockat.app1 W/cr_BindingManager: Cannot call determinedVisibility() - never saw a connection for the pid: 3627
05-03 11:33:16.593 3627-3627/com.Blockat.app1 I/chromium: [INFO:CONSOLE(69)] "Received Event: deviceready", source: file:///data/data/com.Blockat.app1/files/cordova-hot-code-push-plugin/2016.05.02-16.21.10/www/js/index.js (69)
05-03 11:33:16.593 3627-3627/com.Blockat.app1 I/chromium: [INFO:CONSOLE(50)] "Failed to load the update with error code: -17", source: file:///data/data/com.Blockat.app1/files/cordova-hot-code-push-plugin/2016.05.02-16.21.10/www/js/index.js (50)
05-03 11:33:16.593 3627-3627/com.Blockat.app1 I/chromium: [INFO:CONSOLE(51)] "Download already in progress", source: file:///data/data/com.Blockat.app1/files/cordova-hot-code-push-plugin/2016.05.02-16.21.10/www/js/index.js (51)
05-03 11:33:17.393 3627-8584/com.Blockat.app1 W/System.err: java.io.FileNotFoundException: http://blockat.com/filelist/.htaccess
05-03 11:33:17.393 3627-8584/com.Blockat.app1 W/System.err: at com.android.okhttp.internal.http.HttpURLConnectionImpl.getInputStream(HttpURLConnectionImpl.java:197)
05-03 11:33:17.393 3627-8584/com.Blockat.app1 W/System.err: at java.net.URL.openStream(URL.java:470)
05-03 11:33:17.393 3627-8584/com.Blockat.app1 W/System.err: at com.nordnetab.chcp.main.network.FileDownloader.download(FileDownloader.java:85)
05-03 11:33:17.393 3627-8584/com.Blockat.app1 W/System.err: at com.nordnetab.chcp.main.network.FileDownloader.downloadFiles(FileDownloader.java:52)
05-03 11:33:17.393 3627-8584/com.Blockat.app1 W/System.err: at com.nordnetab.chcp.main.updater.UpdateLoaderWorker.downloadNewAndChangedFiles(UpdateLoaderWorker.java:224)
05-03 11:33:17.393 3627-8584/com.Blockat.app1 W/System.err: at com.nordnetab.chcp.main.updater.UpdateLoaderWorker.run(UpdateLoaderWorker.java:114)
05-03 11:33:17.393 3627-8584/com.Blockat.app1 W/System.err: at com.nordnetab.chcp.main.updater.UpdatesLoader$1.run(UpdatesLoader.java:60)
05-03 11:33:17.393 3627-8584/com.Blockat.app1 W/System.err: at java.lang.Thread.run(Thread.java:818)

can some one help figure what wrong!
thanks in advance

@nikDemyankov
Copy link
Member

Hi,

It seems that plugin can't download http://blockat.com/filelist/.htaccess. And I think he should not do that. Check, that this file is not in your chcp.manifest file. If he is - remove it from the manifest.

@Blockattester
Copy link
Author

thanks. after removing it I got

05-03 12:16:41.121 27686-27686/com.Blockat.app1 E/Typeface: SANS_LOC file not found.
05-03 12:16:41.131 27686-27686/com.Blockat.app1 E/Typeface: SANS_LOC file not found.
05-03 12:16:41.371 27686-27686/com.Blockat.app1 I/WebViewFactory: Loading com.google.android.webview version 49.0.2623.105 (code 262310500)
05-03 12:16:41.441 27686-27686/com.Blockat.app1 I/cr_LibraryLoader: Time to load native libraries: 12 ms (timestamps 1584-1596)
05-03 12:16:41.441 27686-27686/com.Blockat.app1 I/cr_LibraryLoader: Expected native library version number "49.0.2623.105", actual native library version number "49.0.2623.105"
05-03 12:16:41.501 27686-27686/com.Blockat.app1 I/cr_LibraryLoader: Expected native library version number "49.0.2623.105", actual native library version number "49.0.2623.105"
05-03 12:16:41.531 27686-27686/com.Blockat.app1 I/chromium: [INFO:library_loader_hooks.cc(144)] Chromium logging enabled: level = 0, default verbosity = 0
05-03 12:16:41.561 27686-27686/com.Blockat.app1 I/cr_BrowserStartup: Initializing chromium process, singleProcess=true
05-03 12:16:41.681 27686-27686/com.Blockat.app1 I/Adreno-EGL: <qeglDrvAPI_eglInitialize:410>: EGL 1.4 QUALCOMM build: TEST SBA LA.BF.1.1.1_RB1 AU_LINUX_ANDROID_LA.BF.1.1.1_RB1.05.00.02.042.012 + c1105519 + c_apilogging ()
OpenGL ES Shader Compiler Version: E031.25.03.00
Build Date: 01/23/15 Fri
Local Branch:
Remote Branch: refs/tags/AU_LINUX_ANDROID_LA.BF.1.1.1_RB1.05.00.02.042.012
Local Patches: NONE
Reconstruct Branch: NOTHING
05-03 12:16:41.801 27686-28106/com.Blockat.app1 W/cr_media: Requires BLUETOOTH permission
05-03 12:16:41.831 27686-27686/com.Blockat.app1 I/art: Rejecting re-init on previously-failed class java.lang.Class<com.android.webview.chromium.WebViewContentsClientAdapter$WebResourceErrorImpl>
05-03 12:16:41.831 27686-27686/com.Blockat.app1 I/art: Rejecting re-init on previously-failed class java.lang.Class<com.android.webview.chromium.WebViewContentsClientAdapter$WebResourceErrorImpl>
05-03 12:16:41.901 27686-27686/com.Blockat.app1 I/art: Rejecting re-init on previously-failed class java.lang.Class<org.chromium.content.browser.FloatingWebActionModeCallback>
05-03 12:16:41.901 27686-27686/com.Blockat.app1 I/art: Rejecting re-init on previously-failed class java.lang.Class<org.chromium.content.browser.FloatingWebActionModeCallback>
05-03 12:16:41.981 27686-27686/com.Blockat.app1 W/cr_AwContents: onDetachedFromWindow called when already detached. Ignoring
05-03 12:16:42.221 27686-27701/com.Blockat.app1 W/art: Suspending all threads took: 9.852ms
05-03 12:16:42.841 27686-28197/com.Blockat.app1 E/libEGL: validate_display:255 error 3008 (EGL_BAD_DISPLAY)
05-03 12:16:43.651 27686-27686/com.Blockat.app1 W/cr_BindingManager: Cannot call determinedVisibility() - never saw a connection for the pid: 27686
05-03 12:16:44.521 27686-27686/com.Blockat.app1 I/chromium: [INFO:CONSOLE(69)] "Received Event: deviceready", source: file:///android_asset/www/js/index.js (69)
05-03 12:16:44.521 27686-27686/com.Blockat.app1 I/chromium: [INFO:CONSOLE(50)] "Failed to load the update with error code: -18", source: file:///android_asset/www/js/index.js (50)
05-03 12:16:44.521 27686-27686/com.Blockat.app1 I/chromium: [INFO:CONSOLE(51)] "API requests are ignored until assets are installed. Please, wait.", source: file:///android_asset/www/js/index.js (51)
05-03 12:16:48.811 27686-27686/com.Blockat.app1 W/cr_BindingManager: Cannot call determinedVisibility() - never saw a connection for the pid: 27686
05-03 12:16:48.951 27686-27686/com.Blockat.app1 I/chromium: [INFO:CONSOLE(51)] "Received Event: deviceready", source: file:///data/data/com.Blockat.app1/files/cordova-hot-code-push-plugin/2016.05.03-12.15.06/www/js/index.js (51)
05-03 12:18:17.921 27686-27686/com.Blockat.app1 W/cr_AwContents: WebView.destroy() called while WebView is still attached to window.
05-03 12:18:21.971 27686-27686/com.Blockat.app1 W/cr_AwContents: onDetachedFromWindow called when already detached. Ignoring
05-03 12:18:22.041 27686-27686/com.Blockat.app1 W/cr_BindingManager: Cannot call determinedVisibility() - never saw a connection for the pid: 27686
05-03 12:18:22.061 27686-27686/com.Blockat.app1 W/cr_BindingManager: Cannot call determinedVisibility() - never saw a connection for the pid: 27686
05-03 12:18:22.221 27686-27686/com.Blockat.app1 I/chromium: [INFO:CONSOLE(51)] "Received Event: deviceready", source: file:///data/data/com.Blockat.app1/files/cordova-hot-code-push-plugin/2016.05.03-12.15.06/www/js/index.js (51)

I think the problem is with BindingManager: Cannot call determinedVisibility() - never saw a connection for the pid:
searching google for answers !
thanks again

@nikDemyankov
Copy link
Member

As I understand - you are trying to fetch updates from JS side. Have you tried to make plugin do it for you automatically? From logs I see, that it installed www folder form assets onto external storage, but after that - no requests are done to the server for updates.

If you are using your current app with other plugins - try to start from small. Create a separate project with only chcp plugin, upload on server some test config with test web content. And then let plugin fetch data and update. And then extend complexity: if basic setup will work - it should not be a problem.

@nordnet-deprecation-bot
Copy link
Contributor

👋 Hi! Thank you for your interest in this repo.

😢 We are not using nordnet/cordova-hot-code-push anymore, and we lack the manpower and the experience needed to maintain it. We are aware of the inconveniece that this may cause you. Feel free to use it as is, or create your own fork.

🔒 This will now be closed & locked.

ℹ️ Please see #371 for more information.

@nordnet nordnet locked and limited conversation to collaborators Sep 19, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants