-
Notifications
You must be signed in to change notification settings - Fork 100
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to start the dev server. Error: The dev server is not running on port 3000. #190
Comments
You're not doing anything wrong but I'm not sure what causing it to not work for you. If you run If you run Also, please let me know whether you're using Mac or Windows. |
Hi Adam, I'm on Windows 10. When I run npx office-addin-dev-certs verify, I get "You need to install certificates for trusted access to https://localhost." Is this the issue then probably? |
I've begun to see this as well. The dev certs have somehow become unusable. |
@B45man The dev certs have a limited expiration, and when running the dev server, it should prompt when it needs to create new certs. I think you're not seeing the prompt appear. |
@akrantz I've tried reinstalling the certs multiple times to no avail. The dev script also tries to reinstall them every time I run it. Is it possible that something has changed in the way you check for the the certs? I'm on a Mac by the way, so if it wasn't for the fact that this worked just a week or two ago, I would've said that #168 might be related. |
@denkristoffer Can you please try running 'npx office-addin-certs uninstall" and then run 'npx office-addin-dev-certs install' as @akrantz suggested? Perhaps this will get your machine back to a clean state. When you run 'npx office-addin-dev-certs uninstall' you will get prompted for an admin password. After entering the password, the certs will be removed. Then run run 'npx office-addin-dev-certs install' to install them again |
@TCourtneyOwen I'm having the same issues as @denkristoffer , I'm also on a Mac and every time I run On top of that, I'm also running into the following error now when I run
No clue why, it was working (though annoying) maybe a half hour ago. Here's how those scripts are defined in my
Running |
I think you might be running into a bug on Mac when the certs are within one day of expiring. If you manually do |
Also, please use |
@akrantz all office-addin's are up to date (have even done a full node_modules reinstall). Please see the following outputs:
|
Thanks for the info. I find it surprising that verify does not show it installed after the explicit install. Run "Keychain Access" and look for the "Developer CA for Microsoft Office Add-ins" certificate. |
Using my mac machine, I had an expired certificate installed. When I ran the verify command, it said that I did not have trusted access. I ran the install command, and then ran verify again. I saw that it added a new cert but did not remove the old cert, and verify said that I didn't have trusted access. I manually removed the older cert, and ran the verify command, but it still said that I did not have access. I manually removed the new cert as well, so there were no Developer CA certs, and then ran the install command. It installed a new cert, and the verify command now says that I have trusted access. I think that something has changed in the OS so the uninstall command isn't working right, and if it cannot remove the old cert, then verify will fail. |
@DannyHinshaw I believe the manual workaround is to run "Webchain Access" and to remove all of the "Developer CA for Microsoft Office Addins" certificates listed. Then run "npx office-addin-dev-certs install". Please let me know whether that helps solve this. |
@akrantz that unfortunately did not work :/ Edit: Oops I was only looking in the login folder. I'll browser around for more littered certs in the other folders. |
What part didn't work?
The certs are installed into ~/.office-addin-dev-certs. The uninstall command should delete them. You shouldn't have to deal with them yourself. You can validate whether the files are deleted when the uninstall command is run, and you can delete them manually if you wish. I'm more concerned about whether the keychain is updated properly or not. |
@akrantz it worked! I just had to track down all certs in Keychain Access, originally I had only checked the login folder, but the majority were in Guess I'll write a script to do this correctly now since |
Danny, which OS version are you running? This obviously worked at some point, and I am wondering if something changed in the OS to break it. We'll need to figure out how to get this working again. Sorry for the difficulty here. |
MacOS Mojave |
I have the same issue. For me, not even manually deleting the cert files seems to be working. When I use npx office-addin-dev-certs verify it says: "You need to install certificates for trusted access to https://localhost.". When running uninstall, it says "The CA certificate is not installed." even after running npx office-addin-dev-certs install, which seems to run fine. |
@miacrd Please see comments above. If you remove all of the certs manually from the keychain, then the command can run successfully. It appears that a Mac OS change broke functionality used to find the cert in the keychain and we've not found a fix yet. |
@TCourtneyOwen Bumping visibility of this issue. |
@akrantz Yes, I tried via keychain and it worked then, I just wanted to add the extra info of the install/uninstall commands. Sorry for the miscommunication. |
I will look into this, as I have been hitting the same issue on my Mac following the holiday break. I’ve tried numerous workarounds so far, all to no avail thus far. Unfortunately snowy weather here in Seattle may prevent me from being able to get to the office today so I can debug on my Mac. I will keep everyone posted of my findings on this thread. |
I was working on this issue yesterday, and it wasn't until I removed a cert from Keychain --> Login --> Certificates that things started working for me again on Mac. The cert I removed was not actually named "Developer CA for Microsoft Office Addins", which is the name we look for when verifying the certs during install and uninstall. Rather, the cert was issued from Microsoft and was named something like localhost 127.0.0.1. I am wondering if some sort of previous error in the cert registration process might have caused a certificate to not be fully registered and then left me in a broken state where the cert couldn't be detected and thus not removed or removed or updated with a new expiration date. I am investigating this some more, but at this point have lost my repro of the issue (i.e. everything is working for me now). -Courtney |
That cert could have come from someone else. Needing a cert for localhost is a common scenario. |
Just encountered the same issue on Mac and was able to work around it with sudo for now: Interestingly, everything was working without |
I ran into this issue on my Mac when my original certificate was close to expiration / already expired. The issue is that After a bunch of searching, the answer is that you need to remove all of the existing certificates, including the old and new, and then try again. You can do this by running To fix this, the There should also be some investigation into the |
@advisoray Thanks for reporting this issue. We are aware of the problem and haven't had the opportunity to fix this yet. In fact we have a PR opened for this but it's still under review: #245. I will try and set aside some time soon to look at this some more. Please feel free to make comments or suggestion on the PT. Thanks, Courtney |
@advisoray Somehow this did the trick, it deleted some certificates that did not show up when searching manually in "Keychain Access" after which everything started to work again |
I believe this is a dupe of Issue#233: #233 |
I just re-open this for tracking purpose: I had the same problem this morning on Windows 10: System: Windows 10 - Pro - version 1909
So even in Admin PowerShell , I miss the Certificate Provider Workaround: I install PowerShell V.7.1 and set it as default powershell. Then I uninstall/install with Improvment: It would be really helpful if the output of the install script would notify the error about the PowerShell function rather than fail silently Thx for the great work on certificate |
I seem to be bumping into the same or very similar issue, but can't seem to resolve it. As others reported I was bumping into this:
Opening up Keychain I had numerous certifcates for I deleted them all from Keychain, and then installed again:
At this point, others seem to have the problem resolved, but it persists for me:
Running the dev server with Something I just noticed is that even though even with the errors from
As per the tutorial I'm following I'm expecting to get a message:
Attempting a Manual Side Load via the web, and I actually do have success loading up the tutorial add in: So it seems my problem has migrated to one to do with certificates, to one to do with an inability to sideload. Any help or advice would be appreciated. |
I have the same problem on Arch Linux (latest build) and I'm sideloading taskpane add-ins through web. |
Also what it can cause the problem is that the |
When I start the devserver, no problem happened at all ;)
But I can’t load it in word btw :/
On 26 Aug 2021, at 10:37, Bogdan ***@***.******@***.***>> wrote:
Also what it can cause the problem is that the webpack.config.js file is misconfigured.
You better try to run npm run dev-server to see what problems has webpack to run your server. ;)
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub<#190 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ATE5DZ4XQ3CDOBMQM7XQTGLT6WZHLANCNFSM4IL4KQMQ>.
Triage notifications on the go with GitHub Mobile for iOS<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675> or Android<https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email>.
|
On Fedora 39, this ca-trust directory does not exist.
|
Also
does not exist - it is in
|
Also, to verify Simplest workaround would be to set as root when installing file-level permissions to 644. |
After this, |
@akrantz might be relevant to other *nix systems |
I'm going through the tutorial to build my first Outlook add-in. I am on Windows 10, and am using the Yeoman generator to create an Angular app:
https://docs.microsoft.com/en-us/outlook/add-ins/quick-start?context=office%2Fdev%2Fadd-ins%2Fcontext&tabs=yeomangenerator
Everything is going well until I get to this step:
If I run npm start, I get this output:
What am I doing wrong?
The text was updated successfully, but these errors were encountered: