I have this error when i try to use cpanel upgrade to new version
There is another upcp process running, and you are watching the log from the existing process.
And then in box i see
Unable to find log file: /var/cpanel/updatelogs/last
please help how can i terminate as ps aux | grep upcp shows no process running. I also have deleted update_in_progress.txt from /usr/local/cpanel. I am able to access tweak settings but not able to upgrade. Also tried upcp --force. Please help
If /scripts/upcp --force is not working, then I think your best option is to reboot the server and run it again.
Related
I use github action to deploy my website to my server. The last ssh cmd is npm run start. It will output ready - started server on http://localhost:4000(Since i use Nextjs) finally but it seems that github doesn't know what did it mean and print :
2021/01/09 14:24:14 Error: command timeout
err: Run Command Timeout!
Although the website is successfully deployed, it shows that the Github action failed to execute.
So how to tell github action that the job had done successfully?
You should find a way to start the application in a daemon process of its own, rather than as a process within the SSH session. Perhaps this tool (pm2) might solve your problem? This question and answer is somewhat related.
There are definitely other ways to start your app in a daemon process, or perhaps as a service, but this might be the most straightforward for you since it's a Node tool.
Steps to reproduce are very easy.
Create a Dockerfile.
My Dockerfile has many more lines, but I have trimmed them so we can focus in the source of the problem.
Said that, these two lines alone (without anything more) show the problem.
FROM microsoft/iis
SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue'; $VerbosePreference = 'Continue'; "]
Run docker build . and you get hcsshim::PrepareLayer - failed failed in Win32: Función incorrecta. (0x1).
Windows 10 Pro 1909 (but it happened too in 1903)
Docker version: 2.1.0.5
Engine: 19.03.5
Machine: 0.16.2
I have found the solution to the problem.
Reading all the https://github.com/docker/for-win/issues/3884 bug, some have found a simple solution: rename C:\windows\system32\driver\cbfsconnect2017.sys so it isn't loaded the next boot.
Disabling that driver enables me to do a docker build for the first time in windows containers in almost a year.
In my case Box Sync was the one using that driver.
EDIT: #GustavoTM have found that pCloud raises the same problem.
EDIT2: #VonC have noticed that some people in the issue in GitHub has solved it deleting this other file: C:\Windows\System32\drivers\cbfs6.sys. I haven't tried that, but i put it if it helps others.
The good thing is that I don't need to uninstall Box, but only rename that file.
This is still an issue (still open) with Win10.
Looks like uninstalling cloud storage providers with file system filters like Dropbox, Box, etc. as a workaround is an option for some users.
Deinstall cloud storage providers or virus scanners; if you identify which one is not working please share in https://github.com/docker/for-win/issues/3884
In my case was the problem similar but the file cbfs6.sys was placed somewhere in the rest of uninstalled application Jungle disk, somewhere in the folder c:\Program files\Jungle disk .... It's part of Callback File System signed by EldoS Corporation.
The folder could be rename only and not delete directly. So I could delete its immediately after the PC restart, before running the Docker. So it could be delete during the Docker service restart too.
I want to clear my Apache log without stopping apache or anything like that, but I have a problem while apache's running I can not edit the active log file.
I attempted some solutions but all is not good, or it just does not work - for example:
cat /dev/null > /path/to/log.log
It works but it kills the CPU.
Now I want to know has anybody got a good solution for clearing log files or creating a new log file with a new name every N hours which doesn't kill the CPU,RAM,etc ...
What can I do? Please give me a solution :((
Kind regards.
Install and set up logrotate, assuming you are on a debian or ubuntu distribution do this :
$ sudu apt-get install logrotate
This is an "industry standard" solution for what you want to achieve.
Recommended reading:
http://articles.slicehost.com/2010/6/30/understanding-logrotate-on-ubuntu-part-1
http://articles.slicehost.com/2010/6/30/understanding-logrotate-on-centos-part-1
https://unix.stackexchange.com/questions/66292/learning-about-general-logging-logrotation-on-linux
I have a VPS and root ssh access. I'm sure I've restarted Qmail before via SSH but can't figure out how.
I've tried to run /etc/init.d/qmail restart but all I get is -bash: /etc/init.d/qmail: No such file or directory.
I've also run:
ps ax | grep qmail-send
12035 pts/0 S+ 0:00 grep qmail-send
I'd greatly appreciate direction on how to do this, and also what the process would be for figuring this sort of thing out in the future would be.
Many thanks.
Stevie
Edit:
While I use Plesk, I've also got WebMin installed, and it tells me that the command to start Qmail is: "Just run rc script", while the command to stop it is: "Just kill qmail-send". I'm still a little lost though.
Turns out, my 1&1 Plesk driven VPS is crap... it's using Postfix rather than Qmail, which explains why it cannot be restarted.
This is blurred by the fact that my mailbox configurations are automatically stored in a folder called /var/qmail/mailnames
Thanks!
Not sure my answer would still be actual for you, but anyway -
if on Plesk, you can check whether Qmail is installed with
rpm -q psa-qmail
yet lack of /etc/init.d/qmail script definitely indicates there are no Qmail installed. At some point it was declared that Postfix is replacing Qmail for Plesk.
Postfix can be restarted like any other Linux service
/etc/init.d/postfix {start|stop|restart|reload|abort|flush|check|status|condrestart}
Depends on location of installation
/etc/init.d/qmail restart (will probably not work)
So try the following commands
sudo pkill -9 qmail
/var/qmail/bin/qmail-start
Can anyone help regarding this... i'm stuck :(
Goto the folder apache-archiva-1.3.3 and the following:
.\bin\archiva.bat install
As khmarbaise says above, you probably need to log in with administrative rights.
Another alternative is to run:
archiva console
This will start it within that console - however you'll then need to keep it open and restart manually after a reboot, where a service can run in the background and start automatically.