Installing MongoDB. failed to start service - mongodb

Cannot find much on the internet about this problem. I even reset my computer because other things were messing up and it was about time i reset everything anyway. How ever I am still getting this error when I try to install it. I saw another post about it but it seemed it only applied to Windows 7, and I use Windows 10. Any help would be appreciated.
EDIT - I have solved my problem. I downloaded Java and it didn't install so i checked for updates and i Updated my system and it worked.
Error

You can look into this
http://blog.iswix.com/2008/09/different-year-same-problem.html
To confirm, with the installer on the abort, retry, ignore, cancel dialog up... go into services.msc and set the username and password manually. If you get a message saying the user was granted logon as a service right, try hitting retry on the MSI dialog and see if it starts.
It could also be missing dependencies or exceptions being thrown in your code.
Also,
Error 1920 service failed to start. Verify that you have sufficient privileges to start system services

Open command prompt in administrator mode(Windows) and navigate to the directory having the .msi file.
Now directly install it, by just writing the filename in the command line, itll be installed.

Related

Cannot install latest version of moodle4mac on Catalina

I'm trying to install moodle4mac on Catalina via a .dmg file. The .dmg file mounts okay. However, when I try to drag the MAMP folder to the Applications folder, I get the message "The operation can’t be completed because you don’t have permission to access some of the items."
When install dialog is showing 4 folders;
.DocumentRevisions-V100
.TemporaryItems
.Trashes
.fseventsd
The first three have no go signs on the folders suggesting that these are the problematic ones. I have checked the read/write permissions of the Applications folder, which looks fine. I have also run sudo spctl --master-disable which gives me the opportunity to download apps from anywhere, but this does not make any difference.
Any pointers greatly welcome!
Okay. It turns out the culprit was Sophos Home Antivirus. There was no indication in any of the error messages that Sophos was blocking this, hence I did not put two and two together. However, a warning message about the mounted volume popped up this morning, and I was able to trace this back to Sophos. It would be great if Sophos / MacOS could provide more detailed messages regarding such errors in future.

Push Failed - IntelliJ

I am trying to push any commits from IntelliJ but keep getting this error message:
"Push failed Cannot spawn C:\Users\laure\AppData\Local\JetBrains\IdeaIC2020.1\tmp\intellij-git-askpass.sh: No such file or directory could not read Username for 'https://github.com': No such file or directory"
I can do it from terminal but not from the IDE.
Seems like antivirus is blocking execution of the script, which is needed to authenticate into the remote via IDE.
Please try disabling antivirus or add C:\Users\laure\AppData\Local\JetBrains\IdeaIC2020.1\tmp\intellij-git-askpass.sh
It might be a result of AV, or group policy blocking java scripts.
Also please check whether the file intellij-git-askpass.sh exists.
I checked AV. Bitdefender tends to be paranoid, but i checked the notifications on it and I can se that it is not blocking the push.
I am new to IntelliJ, might I ask what you mean by adding:
C:\Users\laure\AppData\Local\JetBrains\IdeaIC2020.1\tmp\intellij-git-askpass.sh.
Also I could not find the file:
intellij-git-askpass.sh
PS
Thank you for taking your time to answer.

Service 'MongoDB Server' (MongoDB) failed to start

I'm trying to install mongo DB on my local machine with the installer from the official website. But I'm continuously getting this message, can someone help?
I've tried the solution provided here but didn't help.
I suggest doing the following:
Hit Win+R to open up you run.exe then inside of it enter services.msc to open up services. Try locating the service under the name of MongoDB Server and set the Startup Type manually to Automatic - [In addition to that, you could set the username and password manually. If you get a message saying the user was granted login as a service right, try hitting retry on the MSI dialog and see if it starts].
Important:
Don't forget to save and close everything (services.msc) before continuing.
Also very important, you should (must) check your .NET framework version and update it to version 4.5 and above. You could download a software like eg Driver Booster to update all of your drivers and additional components that are outdated.
I ran into the same issue. My problem was the installation location. I was trying to install under C:\MongoDB. I resolved it by installing in the default MongoDb location which is C:\Program Files\MongoDB.
For me this is usually an issue with the configuration file %ProgramFiles%\MongoDB\Server\x.x\bin\mongod.cfg
At some time there was an invalid option "snmp" enabled (only valid in enterprise version).
Nowadays, although the installer asks for directories for data and logs it doesn't ALWAYS seem to use these, but defaults to %MONGO_DATA_PATH% or %MONGO_LOG_PATH%, respectively. I don't know where these should be defined, but the server fails at accessing c:\data\db (which doesn't exist). So you have to correct the paths.
I also faced this kind of error. But I just change the Network service to Local system in Log On As tab.
Follow my step-by-step below to resolve it:
Press Win+R, type: services.msc, then looking for MongoDB Server (MongoDB)
Double click on MongoDB Server (MongoDB).
Then it will open properties tab. On that tab click on Log On
After that check two items i.e. Local System account and Allow service to interact with desktop
After that press Apply and OK button. That's it, cheers!!
Open command prompt and copy the following command:-
"C:\Program Files\MongoDB\Server\4.2\bin\mongo.exe"
NOTE: This Tricks is work on my Windows 8.1 PC.
Comment out string with mp: in configuration file: %ProgramFiles%\MongoDB\Server\x.x\bin\mongod.cfg
Like this:
...
#snmp:
#mp:
Click Windows+r, type lusemgr.msc , Go to Groups and double click Administrators, Click Add, Click Advanced and click Find Now. Double click in Network Service (in bottom list) and click OK.
It worked for me.
Installing in the other locations other than the windows directory caused me this error. Reinstalling the setup with the recommended method of "complete" fixed it.
The problem occurs if you have Windows version previous to Windows 10.
Install the following update before installing MongoDB. Click on the link below.
https://support.microsoft.com/en-us/help/2999226/update-for-universal-c-runtime-in-windows
It worked for me.
The problem occurs if you have Windows version previous to Windows 7. Install the following update by going to below link you have to download
Windows6.1-KB2999226-x64.msu
#You have to download and install then go to servies.msu and start MongoDB server by Start also go into log on and set to #local machine
https://support.microsoft.com/en-us/help/2999226/update-for-universal-c-runtime-in-windows

WHM Upgrade Blocked by EXIMUP

I am in the middle of rebuilding my VPS and I am getting an error in WHM.
CENTOS 6.5 x86_64 virtuozzo – vps-1......... WHM 11.34.2 (build 8)
Reasons for blocked updates
Please correct these issues and rerun updates.
fatal: Upgrade is blocked because EXIMUP is set to 'never' in your configuration. To proceed, you can touch file '/var/cpanel/exim.unmanaged' and run the upgrade one more time. Please refer to our documentation at http://go.cpanel.net/1136UpgradeExim for more information.
The URL for help doesn't exist.
I do not see this file in when I check for it.
I found the Exim Configuration Manager but do not see anything that matches what the error states.
I have a feeling this is fairly easy fix but I am far from an expert on VPS managing. I'm learning the hard way to put it nicely...
Does anyone know how I can clear this out so I can upgrade WHM?
I see in their documentation:
To upgrade from cPanel & WHM version 11.34 and earlier:
Touch /var/cpanel/exim.unmanaged
Run the upgrade again.
What does "Touch"mean? I tried toggling the exim option in preferences but it made no difference.
After a night of fighting this I find the answer right after I post. Here is how I solved it.
Touch means to create or modify a file without actually writing to it. So in this case since the file did not exist. I created a new file in /var/cpanel/ called 'exim.unmanaged'
After placing that file in the directory I ran the updates again and it is now upgrading WHM and cPanel.
Pros know this I am sure but hopefully this will be helpful for newbi VPS admins like myself.

TeamCity Windows Tray Notifier stuck on "logged in"

When I run the Windows Tray Notifier on my Windows 8 virtual machine, it remains stuck on a "logged in" message if I hover over the icon of the program in the system tray, and I can't do anything else other than force the shutdown with the Task Manager. I set the correct address where my TeamCity test server is running but it seems unable to connect to. Any help is appreciated.
Fixed it via the following steps:
Repaired via installer (this clears saved login data)
Logged into a different server running Teamcity 6.5.3 - this worked
logged out again and logged into our main teamcity server (running 7.1) - tray notifier is working again
Very strange! Above workaround would only work if you had access to a second server too.
EDIT: Two further workarounds have been posted on the thread I started on the Jetbrains forum, so I'll repost them here for the benefit of others.
Solution 1:
Kill running tray notifier in task manager
Open regedit, in HKEY_CURRENT_USER\Software\JetBrains\TeamCity\WindowsTray\Login, update the “S” property to http://192.168.1.1:8080 (substitute real ip address, without the quotes, trailing / seems to be important)
Open IE, go to team city site
Log in, checking “remember me”
While IE is open and connected to TeamCity, start up tray notifier.
Takes about 15 sec to change from “logging in” to connected.
Solution 2:
Open IE, select Internet Options, Security Tab, add the TeamCity server address to the trusted list.
Please note, I haven't personally tested either of these methods, just posting them here for information since others have found them to work. Hope this helps!
Since upgrading the server to 7.1.1 this issue hasn't reoccurred for me. Looks like it's been fixed as per Eugene's comment elsewhere on this thread.
This issue is definitely a bug in the tray notifier.
It isn't popping up login credentials, so
Log first into IE
Check remember me - try to save credentials
Close IE/Launch the notifier
It should be successful
Henry Wilson posted the answer in their forums. Hopefully it's fixed soon.
I had a similar problem, the only difference is that it was stuck in "Loading..." and not in "Logging in...".
I added a trailing slash to the URL in "HKEY_CURRENT_USER\Software\JetBrains\TeamCity\WindowsTray\Login" but it didn't help, so I deleted the whole tree "HKEY_CURRENT_USER\Software\JetBrains\TeamCity". After a restart of the application, it asked again for the URL.
I use 8.0.5 on the server. The tray notification reports "build NA" in the about window...
I have had this on:
Windows 7 - 64 bit,
TeamCity Pro 7.1 (build 23907)
All other effects are identical as above.
The suggestions above didn't work for me, but it did allow me to re-enter the server address.. still the problem persisted.
What worked for me was to remove then re-install in "Program Files" instead of the default "Program Files (x86)". There are a few reasons why this as-a-fix should be unnecessary, but it worked and I'm happy.
This worked for me:
Open the CI-Server URL in Internet Explorer
Log out from the CI-Server
Restart the Tray Notifier (maybe kill via Taskamanger)
Log in again
p.s. not sure if it is relevant, but for completeness:
I also added the CI-Server URL in the trusted sites in Internet Explorer → Internet Options (as mentioned in this answer: https://stackoverflow.com/a/12001721/1520422)