# Photon used to work, now cannot connect to it

**URL:** <https://community.particle.io/t/photon-used-to-work-now-cannot-connect-to-it/39840>\
**Category:** Troubleshooting\
**Created:** [February 22, 2018, 11:02pm UTC](https://community.particle.io/t/photon-used-to-work-now-cannot-connect-to-it/39840 "2018-02-22T23:02:36Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![JAndle](https://avatars.discourse-cdn.com/v4/letter/j/85f322/32.png) [@JAndle](https://community.particle.io/u/JAndle)\
**Post date:** [February 22, 2018, 11:02pm UTC](https://community.particle.io/t/photon-used-to-work-now-cannot-connect-to-it/39840/1 "2018-02-22T23:02:36Z")

</div>

Photon P0 (dip style with USB). It had working code load and was visible to my desktop IDE. I hadn’t used it in months. Last night I could not see it in the IDE, so i used setup and was able to run that process. It took my connection in AP mode, let me set it to my SSID, and started running code.

flashes green, flashes faster, goes cyan and my code runs BLUE LED…

Still cannot find it in IDE and after 2-5 minuts it goes belly up with a shange to green breathing and eventually solid green.

---

<div class="post-metadata">

**Author:** ![JAndle](https://avatars.discourse-cdn.com/v4/letter/j/85f322/32.png) [@JAndle](https://community.particle.io/u/JAndle)\
**Post date:** [February 22, 2018, 11:17pm UTC](https://community.particle.io/t/photon-used-to-work-now-cannot-connect-to-it/39840/2 "2018-02-22T23:17:07Z")

</div>

tried CLI:

```nohighlight
C:\WINDOWS\system32>particle setup
 _ __ _ _ _
| '_ \ ___ ___ | |_(_) ___| |___
| |_) |/ _` | ' __|__ | |/ __| |/ _ \
| __/| (_| | | | |_| | (__| | __/
|_| \ __,_|_| \__ |_|\ ___|_|\___ |
                 https://particle.io

> Setup is easy! Let's get started...
> It appears as though you are already logged in as jandle@synergisticscience.us
? Would you like to use this account? Yes

! PROTIP: Hold the MODE/SETUP button on your device until it blinks blue!
! PROTIP: Please make sure you are connected to the internet.

> I have detected a Photon connected via USB.
? Would you like to continue with this one? Yes
! The Photon supports secure Wi-Fi setup. We'll try that.

! PROTIP: Wireless setup of Photons works like a wizard!
! PROTIP: We will automagically change the Wi-Fi network to which your computer is connected.
! PROTIP: You will lose your connection to the internet periodically.

? Found "Photon-ELZD". Would you like to perform setup on this one now? Yes

! PROTIP: You will need to know the password for your Wi-Fi network (if any) to proceed.
! PROTIP: You can press ctrl + C to quit setup at any time.

(node:12300) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): ReferenceError: when is not defined
(node:12300) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

C:\WINDOWS\system32>

```

---

<div class="post-metadata">

**Author:** ![HEng](https://avatars.discourse-cdn.com/v4/letter/h/c77e96/32.png) [@HEng](https://community.particle.io/u/HEng)\
**Post date:** [February 22, 2018, 11:37pm UTC](https://community.particle.io/t/photon-used-to-work-now-cannot-connect-to-it/39840/3 "2018-02-22T23:37:41Z")

</div>

Try reinstalling the particle CLI and dev tools.

---

<div class="post-metadata">

**Author:** ![JAndle](https://avatars.discourse-cdn.com/v4/letter/j/85f322/32.png) [@JAndle](https://community.particle.io/u/JAndle)\
**Post date:** [February 23, 2018, 12:30am UTC](https://community.particle.io/t/photon-used-to-work-now-cannot-connect-to-it/39840/4 "2018-02-23T00:30:06Z")

</div>

that was a fresh reinstall of cli. By dev tools do you mean the desktop IDE?

---

<div class="post-metadata">

**Author:** ![HEng](https://avatars.discourse-cdn.com/v4/letter/h/c77e96/32.png) [@HEng](https://community.particle.io/u/HEng)\
**Post date:** [February 23, 2018, 12:40am UTC](https://community.particle.io/t/photon-used-to-work-now-cannot-connect-to-it/39840/5 "2018-02-23T00:40:28Z")

</div>

Yeah. I was banging my head a couple of weeks ago because my device wouldn’t show up in the devices list, and a reinstall took care of it. 🤷‍♂️

---

<div class="post-metadata">

**Author:** ![RWB](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/rwb/32/22599_2.png) [@RWB](https://community.particle.io/u/RWB)\
**Post date:** [February 23, 2018, 2:02am UTC](https://community.particle.io/t/photon-used-to-work-now-cannot-connect-to-it/39840/6 "2018-02-23T02:02:05Z")

</div>

Usually, if you Log Out and Back into Particle your devices will then show up. It’s happened and helped others also.

---

<div class="post-metadata">

**Author:** ![JAndle](https://avatars.discourse-cdn.com/v4/letter/j/85f322/32.png) [@JAndle](https://community.particle.io/u/JAndle)\
**Post date:** [February 23, 2018, 2:19am UTC](https://community.particle.io/t/photon-used-to-work-now-cannot-connect-to-it/39840/7 "2018-02-23T02:19:47Z")

</div>

well, that might have helped, but uninstalling and reinstalling the tools did not - except openssl is not missing…  
and I made the mistake of resetting the keys, so it’s a brick.

---

<div class="post-metadata">

**Author:** ![ScruffR](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/scruffr/32/6952_2.png) [@ScruffR](https://community.particle.io/u/ScruffR)\
**Post date:** [February 23, 2018, 7:21am UTC](https://community.particle.io/t/photon-used-to-work-now-cannot-connect-to-it/39840/8 "2018-02-23T07:21:40Z")

</div>

You are executing the command from `Windows/System32` which is generally not a good idea due to possible permission issues.

> [@JAndle](#):
>
> except openssl is not missing…

It might be installed on your system, but is it also referenced in PATH?

> [@JAndle](#):
>
> uninstalling and reinstalling the tools did not

How did you uninstall and most importantly reinstall? Did you use the Windows CLI Installer?  
[https://docs.particle.io/guide/tools-and-features/cli/photon/#using-windows](https://docs.particle.io/guide/tools-and-features/cli/photon/#using-windows)

---

<div class="post-metadata">

**Author:** ![JAndle](https://avatars.discourse-cdn.com/v4/letter/j/85f322/32.png) [@JAndle](https://community.particle.io/u/JAndle)\
**Post date:** [February 23, 2018, 6:25pm UTC](https://community.particle.io/t/photon-used-to-work-now-cannot-connect-to-it/39840/9 "2018-02-23T18:25:58Z")

</div>

sorry, I meant it is missing.

Uninstalled cli with C:…\AppData\Local\particle\Uninstall.exe  
Reinstalled with ParticleCLISetup.exe per the web page.  
I am an admin and UAC did not trigger on it.

There are no particle tools (no obvious ones) installed to windows/system32 and no files or folders in the time period that might be related.
