I have issues with my app: when it goes in the "idle" state and then goes back to the "started" state, it messes up one of my cartridges. Basically a PID file is not removed, so I have to delete it manually before restarting the cartridge. This PID file is removed when stopping the cartridge manually.
So I am wondering: what happens when the app goes in the "idle" state? Is it equivalent to stopping the app manually? Which cartridge scripts are executed when that happens?
Thanks for your help
You may try the web console restart command.
But mostly the force restart from the rhc command tools renders better results.
http://www.howtech.ga
Related
My symptoms are as follows:
1. Cannot run Google Chrome; Task Manager tells me there are a single chrome.exe sitting in RAM, and the Task Manager cannot kill it:
2. Since the process is still in RAM, I cannot reinstall the Google Chrome:
Any help is much appreciated!
You can use the command prompt to terminate the process:
Search for cmd/Command Prompt in the search bar.
Open cmd with "Run as Administrator." option (Use right-click to get the menu).
Use the command tasklist to list all processes.
Use the command taskkill /F /IM "chrome.exe" /T to terminate all its processes.
Restarting your computer would take care of the RAM issue.. from there, you should be able to uninstall chrome no problem. As for not being able to kill the chrome processes in task manager, that seems like a permissions thing.
Additionally, it might be beneficial for you to disable all chrome plugins and extensions, and check again if you can kill any chrome tasks with task manager. If that doesn't solve it, try to clear your browser cache.
#Aayush Sethi answer should solve your problem.
For completion, I might add my personal app that I wrote based on the same concept Aayush wrote.
Source: https://github.com/AndreiLucaci/killapp
Binary: https://github.com/AndreiLucaci/killapp/releases/download/v1.0.0/KillApp.exe
Restart your computer to fix the RAM issue, then try to reinstall chrome, if there is some process running on it then run task manager as administrator and then kill those processes.
The TASKKILL command didn't work for me, I got the same "access denied" error posted above. I found another solution using the System Configuration tool, which describes how to disable services from running when you reboot. I disabled the Google services before rebooting again, and that was the only thing that worked. I was finally able to uninstall Chrome with no errors, no phantom Google Chrome windows open. It's detailed here: https://support.microsoft.com/en-us/help/929135/how-to-perform-a-clean-boot-in-windows
For me, Aayush Sethin’s solution is the best. When I close the Chrome browser (v.107.0.5304.88 x64), the task is still processing. If I want to open a new browser window again I must go to Task Manager and kill the Chrome task. I have created a «bat file» with the command line, taskkill /F /IM "chrome.exe" /T, so as not to have to enter the Task Manager.
Same problem on an old Win7 Laptop just now. TASKKILL doesn't work, even when issued from a CMD session run as Administrator. Errors are of the form
ERROR: The process with PID 28264 (child process of PID 28448) could not be terminated.
Reason: there is no running instance of the task.
My guess is that when I earlier killed off several chrome.exe processes (after Chrome became totally unresponsive), maybe one or more of those that I killed were the parents of these, and maybe those parents need to exist for the child to be properly terminated, e.g. because termination "has to be reported to the parent." I've seen that concept in other OSes, though I don't entirely agree with the idea from a design standpoint. And in any case, if the parent is gone, surely the proper way to handle that is to let the child be killed without having to report, not to REFUSE to kill the child!
So I'm guessing these processes are holding onto a communication endpoint,
such as a mailbox or pipe, trying to write a message back to their parent, and it's failing because the parent isn't there reading the other end and the I/O fails. Maybe if a tool could find the parent endpoint, grab it, and read it, these things could be killed without having to reboot the whole darn machine. That's a technique that works on some other OSes.
I have Windows 10 build 1511, where I have installed SQL Server 2014.
After installation everything is OK.
I've made several times shutdown on Windows 10, and after if I turn on my PC everything is OK.
But if I restart the system, after the restart, the SQL Server service remains stopped (startup type is Automatic). I try another restart and shutdown, but the service doesn't start automatically anymore.
I've started the service manually, and after the service is started and everything works ok. If I shut down everything, it is ok afterwards. But if I just restart, the problem that I've described above appears again.
What can I do ?
Thank you !
Update
It seems that the problem is already reported to Microsoft :
https://connect.microsoft.com/SQLServer/feedback/details/1873617/sql-server-not-coming-online-after-os-upgrade-to-windows-10-even-when-startup-type-is-automatic
If you starts services.msc and serach for the SqlServer service, in properties, set the startup as automatic delay instead of automatic.
I'm dealing with the same issue on Win 2012. and it looks like the same issue described here:
Add your windows level user in following path:
Click on Start - Run - Secpol.msc Go to Local Policies - User right assignments
Act as a part of the Operating system
bypass Traverse checking
Lock pages in memory
Log on as a service
Log on a batch job
Replace process level token
If not, please add them and try restarting your system. Your SQL Server should be starting as a service. All the best.
I had this issue on Windows 10 and SQL Server 2014 Express.
The delayed start option didn't work for me, but here's what did work - granting higher DCOM permissions to the Network Service and Local Service accounts.
Click Start, type Component and then click the Component Services
app
In Component Services, double-click Component Services, and then double- click Computers. Right-click My Computer, and then click Properties.
Click the COM Security tab.
In the Launch and Activation Permissions area, click Edit Default.
Click Add, type Network Service, and then click OK. While Network Service is selected, click to select the Allow check boxes for the following items:
Local Launch
Remote Launch
Local Activation
Remote Activation
Repeat step 4 for the Local Service account.
Reboot and SQL Server should not start automatically.
In my case, this is a development environment so I'm less concerned about the security implications of this change and more concerned about getting it to work. So be advised to check out potential security ramifications if that's important in your situation.
pay Attention in suffix too
example: if in your user Secedit.msc is as contoso\usersql, in the windows service needs to be the same, I was putting usersql#contoso.com and was having problems to start the service automatic, after change to contoso\usersql, working fine
follow the way,
SQL SERVER INSTALLATION CENTER (C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Microsoft SQL Server 2019\Configuration Tools) > Maintenance > Edition Upgrade
and restart service
Another solution worked for me:
Open SQL Server Configuration Manager
Select SQL Server Services
Select any service (double click or right click and properties)
Go to "Log On" tab (My Log On settings was "This Account")
Choose "Built-in account" and "Local Service" under it.
Then I did this steps for every other services and it worked. I have no more problem while I am connecting to SQL Server Databases.
SQL Server Services Log On Settings
I faced this issue today , as my server is dependent on SQL server connection , that was also not booting up. It was simple in my case. I saw in services screen its status is STOP. So I started there ans it started working.
windows+R--> services.msc--> right click on the service and start it.
When I try to update my VM that host my tuleap forge with yum tools, I lost access to the drop-down menus of the forge web interface.
I can just rollback to the last snapshot to solve this problem. Is a way to keep the forge up to date exist?
Did you follow this guide to proceed to the update? Try to issue a service httpd restart to see if it fixes your problem. If not, delete the file you will find at /usr/share/tuleap/src/www/scripts/combined/*.js and
service httpd restart and then reload your page.
If you follow correctly the instructions in the guide you should be able to update smoothly.
When I change a file in the directory, the change is not reflected on the web page shown when I access it through localhost, but it is shown when I access it directly by the file path on my system. Why?
I am on a Windows machine. My files are stored at C:\Program Files (x86)\Ampps\www\connor.dev . When I directly reference a file, by going to a link like this in the browser, file:///C:/Program%20Files%20(x86)/Ampps/www/connor.dev/index.php, the changes I made and saved in Sublime Text are shown. When I access it by going to localhost/connor.dev/, the changes are not shown. Even if I delete the file completely, it is still shown in localhost. This started happening recently on xampp, so I uninstalled it and used Ampps, and now the same thing is happening. If you need more info please ask.
Press Ctrl-F5 to hard refresh the page (to not use Browser's cache).
If you still see the previous pages or changes, then Apache has mod_cache caching them, or PHP has its opcode cache settings set to not refresh changes for X amount of time.
I'm using Bitnami and the way I fixed it was to go inside C:\Bitnami\wappstack-version-number\php\php.ini, you can make the following changes and then reset your server:
opcache.enable=0
opcache.revalidate_freq=0
My php was updating every 60 seconds before, so I decided to turn that to 0 and just disable caching.
Its happening because of apache mod_cache caching the resources.
For quick fix. Just restart the Apache server.
In ubuntu i use this below command in terminal to restart the Apache server
systemctl restart apache2
Now refresh the browser, then you will get the updated one.
It comes out to be an issue with the cache thing, so in simple words all you have to do is to remove the cached data of the specific webpage.
I am trying to create a new mail session in the weblogic console. I am acquiring the lock and
activating the changes to make it visible in the session. I am also able to use it in the
current session. But the problem is that mail session change is lost when I restart my
server. I have to reconfigure the mail session to use it again.
The weblogic server is running in production mode.
Please help.
Thanks & Regards,
Sujeet
It was happening because of a custom script which was overwriting the changes to config.xml upon restart.
In order to make configuration changes through the WLS console, obtain a lock on the editable collection of Configuration MBeans for all servers in the domain. The lock is obtained by clicking the Lock & Edit button.
After performing configuration changes you click the Save or the Finish button. However the changes do not take effect immediately. You have to click the Activate Changes button in the Change Center so that the configuration changes are distributed to each of the servers in the domain. Some changes require a server restart in order to take effect.
The configuration changes are saved in the config.xml file which is located in the path: your_domain_name\config.
You should see a mail-session element in the config.xml:
<mail-session>
<name>MailSession-0</name>
</mail-session>