jpillora / cloud-torrent

☁️ Cloud Torrent: a self-hosted remote torrent client
GNU Affero General Public License v3.0
5.84k stars 1.81k forks source link

The abnormal with cloud torrent #201

Open WeiHo5 opened 7 years ago

WeiHo5 commented 7 years ago

Hello, why the page become error like this?

ct

jpillora commented 7 years ago

Looks like a javascript error. Can you open the browser console and copy+paste over any errors?

On Wed, 18 Oct 2017 at 22:24 weiho5 notifications@github.com wrote:

Hello, why the page become error like this?

[image: ct] https://user-images.githubusercontent.com/24877690/31716267-b3f8856e-b3cc-11e7-90b1-06ca2ca46030.png

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/jpillora/cloud-torrent/issues/201, or mute the thread https://github.com/notifications/unsubscribe-auth/AAmr87Od7e5JrtbjwMs9lbIuldQwakaOks5std_mgaJpZM4P9jn6 .

WeiHo5 commented 7 years ago

Do you mean this follow?

Error: [$injector:unpr] http://errors.angularjs.org/1.3.15/$injector/unpr?p0=roundFilterProvider%20%3C-%20roundFilter http://IP:port/js/vendor/angular.min.js:7:422 http://IP:port/js/vendor/angular.min.js:39:9 d@http://IP:port/js/vendor/angular.min.js:37:14 http://IP:port/js/vendor/angular.min.js:39:84 d@http://IP:port/js/vendor/angular.min.js:37:14 filter@http://IP:port/js/vendor/angular.min.js:195:193 filterChain@http://IP:port/js/vendor/angular.min.js:195:142 statements@http://IP:port/js/vendor/angular.min.js:194:452 parse@http://IP:port/js/vendor/angular.min.js:190:425 http://IP:port/js/vendor/angular.min.js:111:290 g@http://IP:port/js/vendor/angular.min.js:89:328 za@http://IP:port/js/vendor/angular.min.js:68:81 X@http://IP:port/js/vendor/angular.min.js:55:81 S@http://IP:port/js/vendor/angular.min.js:52:429 S@http://IP:port/js/vendor/angular.min.js:53:96 S@http://IP:port/js/vendor/angular.min.js:53:96 D@http://IP:port/js/vendor/angular.min.js:50:468 fa@http://IP:port/js/vendor/angular.min.js:62:44 S@http://IP:port/js/vendor/angular.min.js:52:467 S@http://IP:port/js/vendor/angular.min.js:53:96 S@http://IP:port/js/vendor/angular.min.js:53:96 S@http://IP:port/js/vendor/angular.min.js:53:96 S@http://IP:port/js/vendor/angular.min.js:53:96 S@http://IP:port/js/vendor/angular.min.js:53:96 D@http://IP:port/js/vendor/angular.min.js:50:468 http://IP:port/js/vendor/angular.min.js:19:5 $apply@http://IP:port/js/vendor/angular.min.js:127:246 http://IP:port/js/vendor/angular.min.js:18:485 d@http://IP:port/js/vendor/angular.min.js:18:406 Jd@http://IP:port/js/vendor/angular.min.js:18:2 http://IP:port/js/vendor/angular.min.js:251:431 a@http://IP:port/js/vendor/angular.min.js:165:284 c@http://IP:port/js/vendor/angular.min.js:33:393

jpillora commented 7 years ago

Looks like a caching issue, hard refresh help? On Thu, 19 Oct 2017 at 3:03 am weiho5 notifications@github.com wrote:

Do you mean this follow?

Error: [$injector:unpr] http://errors.angularjs.org/1.3.15/$injector/unpr?p0=roundFilterProvider%20%3C-%20roundFilter http://IP:port/js/vendor/angular.min.js:7:422 http://IP:port/js/vendor/angular.min.js:39:9 d@http://IP:port/js/vendor/angular.min.js:37:14 http://IP:port/js/vendor/angular.min.js:39:84 d@http://IP:port/js/vendor/angular.min.js:37:14 filter@http://IP:port/js/vendor/angular.min.js:195:193 filterChain@http://IP:port/js/vendor/angular.min.js:195:142 statements@http://IP:port/js/vendor/angular.min.js:194:452 parse@http://IP:port/js/vendor/angular.min.js:190:425 http://IP:port/js/vendor/angular.min.js:111:290 g@http://IP:port/js/vendor/angular.min.js:89:328 za@http://IP:port/js/vendor/angular.min.js:68:81 X@http://IP:port/js/vendor/angular.min.js:55:81 S@http://IP:port/js/vendor/angular.min.js:52:429 S@http://IP:port/js/vendor/angular.min.js:53:96 S@http://IP:port/js/vendor/angular.min.js:53:96 D@http://IP:port/js/vendor/angular.min.js:50:468 fa@http://IP:port/js/vendor/angular.min.js:62:44 S@http://IP:port/js/vendor/angular.min.js:52:467 S@http://IP:port/js/vendor/angular.min.js:53:96 S@http://IP:port/js/vendor/angular.min.js:53:96 S@http://IP:port/js/vendor/angular.min.js:53:96 S@http://IP:port/js/vendor/angular.min.js:53:96 S@http://IP:port/js/vendor/angular.min.js:53:96 D@http://IP:port/js/vendor/angular.min.js:50:468 http://IP:port/js/vendor/angular.min.js:19:5 $apply@http://IP:port/js/vendor/angular.min.js:127:246 http://IP:port/js/vendor/angular.min.js:18:485 d@http://IP:port/js/vendor/angular.min.js:18:406 Jd@http://IP:port/js/vendor/angular.min.js:18:2 http://IP:port/js/vendor/angular.min.js:251:431 a@http://IP:port/js/vendor/angular.min.js:165:284 c@http://IP:port/js/vendor/angular.min.js:33:393

— You are receiving this because you commented.

Reply to this email directly, view it on GitHub https://github.com/jpillora/cloud-torrent/issues/201#issuecomment-337641502, or mute the thread https://github.com/notifications/unsubscribe-auth/AAmr82ojyO6ce82GWS26sP4OFpnjFtSUks5stiFUgaJpZM4P9jn6 .

WeiHo5 commented 7 years ago

Er...I am sorry refresh is no help. I found an interesting phenomenon when I opened by the phone browser, this problem will not appear.But if i open by the computer browser,it will. And then i found another phenomenon that in version 0.8.20 it is normal,but this error appear after i update to version 0.8.23

WeiHo5 commented 7 years ago

Oh, please pay attention to that is the error appear sometime,it means somtime is normal.

jpillora commented 7 years ago

Ah okay definitely caching if it works some times On Thu, 19 Oct 2017 at 11:55 am weiho5 notifications@github.com wrote:

Oh, please pay attention to that is the error appear sometime,it means somtime is normal.

— You are receiving this because you commented.

Reply to this email directly, view it on GitHub https://github.com/jpillora/cloud-torrent/issues/201#issuecomment-337768792, or mute the thread https://github.com/notifications/unsubscribe-auth/AAmr880vEldAJcFBr_jdB2Qy6p3u-wrlks5stp4SgaJpZM4P9jn6 .

jpillora commented 7 years ago

You just need to figure out what's doing the caching On Thu, 19 Oct 2017 at 12:26 pm Jaime Pillora jpillora@gmail.com wrote:

Ah okay definitely caching if it works some times On Thu, 19 Oct 2017 at 11:55 am weiho5 notifications@github.com wrote:

Oh, please pay attention to that is the error appear sometime,it means somtime is normal.

— You are receiving this because you commented.

Reply to this email directly, view it on GitHub https://github.com/jpillora/cloud-torrent/issues/201#issuecomment-337768792, or mute the thread https://github.com/notifications/unsubscribe-auth/AAmr880vEldAJcFBr_jdB2Qy6p3u-wrlks5stp4SgaJpZM4P9jn6 .

WeiHo5 commented 7 years ago

Regrettably I can not deal that after clean the caching.I have two server,with the same system(Debian8) and the same version(cloud torrent). But one is failed,the other is ok.I do not know what is the cause. Can you please give me some help for that?

WeiHo5 commented 7 years ago

And i try to reinstall the system and the cloud torrent. But it still...

jpillora commented 7 years ago

Does

http:///js/utils.js

Contain

app.filter("round", function() {

? On Thu, 19 Oct 2017 at 2:08 pm weiho5 notifications@github.com wrote:

And i try to reinstall the system and the cloud torrent. But it still...

— You are receiving this because you commented.

Reply to this email directly, view it on GitHub https://github.com/jpillora/cloud-torrent/issues/201#issuecomment-337787059, or mute the thread https://github.com/notifications/unsubscribe-auth/AAmr804NrtUj6jTgGnX-I2bV7pgC9pRbks5str00gaJpZM4P9jn6 .

WeiHo5 commented 7 years ago

app.filter("round", function() { return function(n) { if (typeof n !== "number") { return n; } return Math.round(n * 10) / 10; }; });

app.directive("ngEnter", function() { return function(scope, element, attrs) { element.bind("keydown keypress", function(event) { if (event.which === 13) { scope.$apply(function() { scope.$eval(attrs.ngEnter); }); event.preventDefault();

jpillora commented 7 years ago

That's strange, because your javascript error:

Error: [$injector:unpr] http://errors.angularjs.org/1.3.15/$injector/unpr?p0=roundFilterProvider%20%3C-%20roundFilter

says that it can't find that round filter...

if i open by the computer browser,it will

have you tested on: edge/safari, firefox and chrome? Same thing there?

Otherwise if you email me the link to your instance of cloud-torrent, i could see if i can reproduce?

WeiHo5 commented 7 years ago

After i reinstall the system and Cloud-Torrent, it is ok now!

anazhd commented 7 years ago

I got this too from 0.8.20 to any 0.8.21+ version. And the fix was simply by clearing the cache. Reinstalling the server and CT won't help with anything if the old 0.8.20 cache is still in the browser. Anyway, glad that OP managed to get his CT working now.