Erlang Cowboy crashing. How to change logging levels? - debugging

I am running an Erlang Cowboy server and it strangely crashes sometimes with the error message:
> heart: Thu Dec 23 08:31:33 2021: Erlang has closed.
heart: Thu Dec 23 08:31:33 2021: Would reboot. Terminating.
gmake: *** [erlang.mk:7564: run] Killed
Lines 7564 in erlang.mk is
7563 run:: all
7564 $(verbose) $(RELX_OUTPUT_DIR)/$(RELX_REL_NAME)/bin/$(RELX_REL_NAME)$(RELX_REL_EXT) $(RELX_REL_CMD)
I am unable to figure out why it is crashing because I can find no logs.
The logs on the date of the crash are completely empty.
There are no core dumps on the OS or any crash dumps from Erlang.

Related

ruby: /usr/lib/x86_64-linux-gnu/libcrypt.so.1: version `XCRYPT_2.0` not found (required by ...)

I'm trying to edit a ruby file in my spacemacs editor.
When I open the ruby file I get this debugging information:
[rbenv] Using the currently activated ruby.
evil-line-move: End of buffer
Suspicious state from syntax checker ruby: Flycheck checker ruby returned 1, but its output contained no errors: ruby: /usr/lib/x86_64-linux-gnu/libcrypt.so.1: version `XCRYPT_2.0' not found (required by /home/sfernandez/.rbenv/versions/2.7.0/lib/libruby.so.2.7)
Try installing a more recent version of ruby, and please open a bug report if the issue persists in the latest release. Thanks!
I've tried the solution from this post:
https://ubuntuforums.org/showthread.php?t=2375927
I tried doing this after changing directory to /usr/lib/x86_64-linux-gnu
sudo mv libcrypt.so.1 libcrypt.so.1.old
After I executed this line I was locked out from doing any commands with sudo. And received an error: sudo: account validation failure, is your account locked. I was able to get sudo access again by just refresh installing my system with Pop!_OS, I guess moving the link for libcrypt.so.1 caused something bad to happen, so won't do that again.
I'm sure this all makes sense, but I feel like I'm missing something and that this shouldn't be hard to fix. Would appreciate any guidance on this.
If it helps here's my system info with neofetch
///////////// sfernandez#pop-os
///////////////////// -----------------
///////*767//////////////// OS: Pop!_OS 20.04 LTS x86_64
//////7676767676*////////////// Host: Inspiron 7559 1.3.1
/////76767//7676767////////////// Kernel: 5.4.0-7634-generic
/////767676///*76767/////////////// Uptime: 9 mins
///////767676///76767.///7676*/////// Packages: 1763 (dpkg), 20 (flatpak)
/////////767676//76767///767676//////// Shell: bash 5.0.16
//////////76767676767////76767///////// Resolution: 1920x1080, 1920x1080
///////////76767676//////7676////////// DE: GNOME
////////////,7676,///////767/////////// WM: Mutter
/////////////*7676///////76//////////// WM Theme: Pop
///////////////7676//////////////////// Theme: Pop [GTK2/3]
///////////////7676///767//////////// Icons: Pop [GTK2/3]
//////////////////////'//////////// Terminal: gnome-terminal
//////.7676767676767676767,////// CPU: Intel i5-6300HQ (4) # 3.200GHz
/////767676767676767676767///// GPU: Intel HD Graphics 530
/////////////////////////// GPU: NVIDIA GeForce GTX 960M
///////////////////// Memory: 2328MiB / 7828MiB
/////////////
After doing some more work on this I've learned a little about symbolic links. I know that libcrypt.so.1 is a symbolic link to libcrypt.so.1.1.0 after running ls -l | grep "libcrypt.so.1" I get the following:
lrwxrwxrwx 1 root root 39 Mar 10 12:24 libcrypt.so -> /lib/x86_64-linux-gnu/libcrypt.so.1.1.0
lrwxrwxrwx 1 root root 17 Mar 10 12:24 libcrypt.so.1 -> libcrypt.so.1.1.0
-rw-r--r-- 1 root root 202760 Mar 10 12:24 libcrypt.so.1.1.0
Running ls -l after changing directory to $HOME/.rbenv/versions/2.7.0/lib I get the following output:
lrwxrwxrwx 1 sfernandez sfernandez 16 Jun 27 20:25 libruby.so -> libruby.so.2.7.0
lrwxrwxrwx 1 sfernandez sfernandez 16 Jun 27 20:25 libruby.so.2.7 -> libruby.so.2.7.0
Now, I think the problem is that libruby.so.2.7 can reference the ruby code just fine, but it also needs access to whatever is referenced by libcrypt.so.1. Anyone got any ideas?
This question is still relevant please help
I have the same issue (pop_os 20.04 LTS, spacemacs 0.300.0#27.1).
The only way I managed to make it work was downgrading emacs to version 26.3.
[UPDATE]
So after about half a year I had to set up a new laptop and was faced with the same problem. After hours of debugging I've finally found my old answer and managed to fix the problem.
Again, the solution for pop_os is to install the app from the pop!_shop that is named Emacs (Terminal).

How can I handle this error in CodeBLocks?

I have recently (10 minutes ago) installed CodeBlocks, i have mac as my operating system and when i run the basic "Hello World" program i get this error: (btw i am a beginner in mac os)
Last login: Thu Nov 15 16:21:24 on ttys000
MacBooks-MacBook-Pro:~ macbook$ /Users/macbook/Desktop/CodeBlocks.app/Contents/MacOS/cb_console_runner DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:. /Users/macbook/CodeBlocksProject/Backtracking Test/bin/Debug/Backtracking Test
sh: /Users/macbook/CodeBlocksProject/Backtracking: No such file or directory
Process returned 127 (0x7F) execution time : 0.008 s
Press ENTER to continue.

Reinstall libprotobuf.so files in /usr/lib/x86_64-linux-gnu

While encountering problems updating protobuf to 3.1 I foolishly ended up removing the libprotbuf* files in /usr/lib/x86_64-linux-gnu
Fortunately Protoc --version now outputs "libprotoc 3.1.0", but I am now trying to get the libprotobuf.so files back. When trying to use things that link to protobuf like matplotlib.pyplot I get an error like
** (process:15246): WARNING **: Failed to load shared library 'libgdk-3.so.0' referenced by the typelib: libprotobuf-lite.so.9: cannot open shared object file: No such file or directory
I have been able to reinstall some of libprotobuf files but the .so files are still missing.
$ ll /usr/lib/x86_64-linux-gnu/libprotobuf*
-rw-r--r-- 1 root root 2.3M Oct 23 2015 /usr/lib/x86_64-linux-gnu/libprotobuf.a
-rw-r--r-- 1 root root 387K Oct 23 2015 /usr/lib/x86_64-linux-gnu/libprotobuf-lite.a
lrwxrwxrwx 1 root root 25 Oct 23 2015 /usr/lib/x86_64-linux-gnu/libprotobuf-lite.so -> libprotobuf-lite.so.9.0.1
lrwxrwxrwx 1 root root 20 Oct 23 2015 /usr/lib/x86_64-linux-gnu/libprotobuf.so -> libprotobuf.so.9.0.1
Anyone know a way to recover the protobuf.so.9.0.1 and libprotobuf-lite.so.9.0.1 files in ubuntu 16.04?
Build Protobuf 2.6.1 version. After building this version it will create libprotobuf.so.9.0.1 and libprotobuf-lite.so.9.0.1.
download the right protobuf version, build it yourself, and you will be just fine.
the original so and the so you are going to build should be the same, the later one will work just fine.

Installation of Xcode 4.3.1 fails (OSX 10.7.3)

Been battling this for hours. I've downloaded the latest installer from the App Store, hoping to be able to run my code on the device again after updating it to 5.1. Not so fast! I get a cryptic error saying the installation failed. It's almost as if it's telling me "your installation failed because it failed". Thanks, Captain Obvious.
Looking into /var/log/install.log I see this (snippet of the last few lines before failure):
Mar 11 21:11:52 Yuriy-Aleksyeyevs-MacBook-Pro _securityagent[577]: Running Install Scripts . . .
Mar 11 21:11:52 Yuriy-Aleksyeyevs-MacBook-Pro _securityagent[579]: Begin script: AlertAll.sh
Mar 11 21:11:53 Yuriy-Aleksyeyevs-MacBook-Pro installd[567]: ./preinstall: sudo: unknown user: Yuri
Mar 11 21:11:53 Yuriy-Aleksyeyevs-MacBook-Pro _securityagent[582]: End script: AlertAll.sh
Mar 11 21:11:53 Yuriy-Aleksyeyevs-MacBook-Pro _securityagent[583]: Begin script: cleanUp
Mar 11 21:11:53 Yuriy-Aleksyeyevs-MacBook-Pro _securityagent[586]: End script: cleanUp
Mar 11 21:11:53 Yuriy-Aleksyeyevs-MacBook-Pro _securityagent[587]: Begin script: preflight
Mar 11 21:11:53 Yuriy-Aleksyeyevs-MacBook-Pro _securityagent[590]: End script: preflight
Mar 11 21:11:53 Yuriy-Aleksyeyevs-MacBook-Pro _securityagent[591]: Begin script: writelocation
Mar 11 21:11:53 Yuriy-Aleksyeyevs-MacBook-Pro _securityagent[594]: End script: writelocation
Mar 11 21:11:53 Yuriy-Aleksyeyevs-MacBook-Pro _securityagent[595]: Begin script: zzzcleanup
Mar 11 21:11:53 Yuriy-Aleksyeyevs-MacBook-Pro _securityagent[599]: End script: zzzcleanup
Mar 11 21:11:53 Yuriy-Aleksyeyevs-MacBook-Pro _securityagent[600]: 5 Install Scripts run.
Mar 11 21:13:18 Yuriy-Aleksyeyevs-MacBook-Pro installd[567]: PackageKit: Install Failed: Error Domain=PKInstallErrorDomain Code=112 "An error occurred while running scripts from the package “DeveloperTools.pkg”." UserInfo=0x7f9d46575c90 {NSFilePath=./preinstall, NSURL=file://localhost/Applications/Install%20Xcode.app/Contents/Resources/Packages/DeveloperTools.pkg, PKInstallPackageIdentifier=com.apple.pkg.DeveloperToolsLeo, NSLocalizedDescription=An error occurred while running scripts from the package “DeveloperTools.pkg”.} {
NSFilePath = "./preinstall";
NSLocalizedDescription = "An error occurred while running scripts from the package \U201cDeveloperTools.pkg\U201d.";
NSURL = "file://localhost/Applications/Install%20Xcode.app/Contents/Resources/Packages/DeveloperTools.pkg";
PKInstallPackageIdentifier = "com.apple.pkg.DeveloperToolsLeo";
}
Mar 11 21:13:18 Yuriy-Aleksyeyevs-MacBook-Pro installer[560]: install:didFailWithError:Error Domain=PKInstallErrorDomain Code=112 "An error occurred while running scripts from the package “DeveloperTools.pkg”." UserInfo=0x7f8bc3197060 {NSFilePath=./preinstall, NSURL=file://localhost/Applications/Install%20Xcode.app/Contents/Resources/Packages/DeveloperTools.pkg, PKInstallPackageIdentifier=com.apple.pkg.DeveloperToolsLeo, NSLocalizedDescription=An error occurred while running scripts from the package “DeveloperTools.pkg”.}
Mar 11 21:13:19 Yuriy-Aleksyeyevs-MacBook-Pro installer[560]: Install failed: The Installer encountered an error that caused the installation to fail. Contact the software manufacturer for assistance.
I made sure my user name is on the sudoers list. What else could I be missing? I tried installing it after a fresh restart with nothing running but the installer.
PS: I have not tried removing the previous installation of Xcode. I don't ever recall that being necessary, and I'd rather keep developing on the simulator than lose that ability altogether.
Created a new "Admin" user with administrative privileges and installed XCode successfully through that account.
Solution found and copied from here: https://discussions.apple.com/thread/3863980?start=0&tstart=0
Double click Xcode 4.3.1 dmg file ...
Window will show Xcode app.
Right Cick App
Show Package contents
Then go to /Contents/Resources/Packages/
Install That MobileDevice.pkg ...
After installation double click on Xcode app ...
Just See Xcode is ready ...

Fatal IO error 0 (Success) on X server

What does the error "Fatal IO error 0 (Success) on X server" mean? The error is produced when an X client tries to call XvCreateImage(), and it results in the client terminating.
X.0.log shows the following version information:
X.Org X Server 1.6.4
Release Date: 2009-9-27
X Protocol Version 11, Revision 0
Build Operating System: Linux 2.6.24-23-server i686 Ubuntu
Current Operating System: Linux ori-laptop 2.6.31-17-generic #54-Ubuntu SMP Thu Dec 10 16:20:31 UTC 2009 i686
Kernel command line: BOOT_IMAGE=/boot/vmlinuz-2.6.31-17-generic root=UUID=df637de9-47ed-4453-9393-67e2e2ffaa2f ro quiet splas
I had the same problem, i could solve it by removing ~/.gconf/desktop/gnome/peripherals. You can move/rename the whole ~/.gconf/desktop/gnome directory just to test if it works. Then just test folder by folder which one of the configurations causes the problem.
Hope it helps.

Resources