Chrome服务工作进程在端口3000上运行? [英] Chrome service-worker process running on port 3000?

查看:432
本文介绍了Chrome服务工作进程在端口3000上运行?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

以下错误显示在我的Rails应用程序日志和我的Chrome浏览器JavaScript控制台中,但仅在Chrome浏览器中显示,并且只有当应用程序在端口3000上的localhost上运行时:

 开始GET/service-worker.js为127.0.0.1于2015-12-15 09:31:04 -0800 
ActionController :: RoutingError(No route匹配[GET]/service-worker.js):

显然有这个相同的问题,但通过重新安装操作系统(!)解决了这个问题。这不是我的选择。



根据 lsof ,还有其他一些其他进程正在运行端口3000:

 命令PID类型节点名称
Google 49368 174u IPv4 TCP localhost:55612-> localhost: hbci(CLOSE_WAIT)
ruby​​ 57985 17u IPv4 TCP *:hbci(LISTEN)

注意:


  • 已安装NodeJS

  • Chrome版本47.0.2526.80(64位) OS X 10.10.5
  • chrome:// flags / 中的内容已被重置为默认值

  • 我禁用了所有Chrome扩展程序

  • 如果我杀了那个Google进程,它会再次出现



这个不请自来的过程是什么?

解决方案

访问 chrome:// serviceworker-internals / b

点击取消注册按钮以取消注册违法者。



Google Web Starter Kit安装了一个服务工作者,在使用其本地开发服务器后可以继续运行。



此答案的所有信用转至 Jeff Posnick 。只是觉得这个问题应该有一个正式的答案,很容易找到,因为它在我遇到这个页面之前让我发疯了)


The following error shows up in my Rails app logs and in my Chrome JavaScript console, but only on Chrome, and only when the app is running on localhost on port 3000:

Started GET "/service-worker.js" for 127.0.0.1 at 2015-12-15 09:31:04 -0800
ActionController::RoutingError (No route matches [GET] "/service-worker.js"):

Apparently someone else has had this same problem, but solved it by reinstalling the OS (!). This isn't an option for me.

According to lsof, there is some other some other process running on port 3000:

COMMAND     PID   FD   TYPE   NODE NAME
Google    49368  174u  IPv4   TCP localhost:55612->localhost:hbci (CLOSE_WAIT)
ruby      57985  17u   IPv4   TCP *:hbci (LISTEN)

Other things of note:

  • NodeJS is installed
  • Chrome Version 47.0.2526.80 (64-bit) on OS X 10.10.5
  • The stuff in chrome://flags/ has been reset to default
  • I've disabled all Chrome extensions
  • If I kill that Google process, it just reappears

What is this uninvited process?

解决方案

Visit chrome://serviceworker-internals/ to view a list of service workers.

Click the "Unregister" button to remove the registration of the offender.

The Google Web Starter Kit installs a service worker that may continue running after using its local development server.

ALL CREDIT for this answer goes to Jeff Posnick. Just thought this question should have a formal answer that's easy to find since it was driving me to madness before I came across this page :)

这篇关于Chrome服务工作进程在端口3000上运行?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆