What OS does heroku cedar run? - heroku

I had though cedar was running on Ubuntu 10.04, but when checking it seems this is not the case:
heroku run python
from platform import platform
platform()
'Linux-3.8.11-ec2-x86_64-with-debian-squeeze-sid'
A binary I previously compiled on 10.04 and ran happily on heroku is now segfaulting, so I'd like to work out what stack to compile against.

It's Ubuntu 10.04, here's the output from heroku run bash
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 10.04 LTS
Release: 10.04
Codename: lucid

Based on their documentation, it is running Ubuntu 10.04

They are now running Ubuntu 14.04 :
https://devcenter.heroku.com/articles/stack#cedar

In one line (based on John Beynon's answer ):
heroku run "lsb_release -a"
Response:
...
Description: Ubuntu 18.04.4 LTS

Related

install linux distribution under wsl [migrated]

This question was migrated from Stack Overflow because it can be answered on Super User.
Migrated 25 days ago.
I am trying to use WSL under Windows 10 Pro, and while WSL itself was installed without a problem, I cannot install any Linux distribution under it.
PS C:\WINDOWS\system32> wsl --version
WSL version: 1.0.3.0
Kernel version: 5.15.79.1
WSLg version: 1.0.47
MSRDC version: 1.2.3575
Direct3D version: 1.606.4
DXCore version: 10.0.25131.1002-220531-1700.rs-onecore-base2-hyp
Windows version: 10.0.19042.2486
PS C:\WINDOWS\system32> wsl -l
Windows Subsystem for Linux has no installed distributions.
Use 'wsl.exe --list --online' to list available distributions
and 'wsl.exe --install <Distro>' to install.
Distributions can also be installed by visiting the Microsoft Store:
https://aka.ms/wslstore
Error code: Wsl/WSL_E_DEFAULT_DISTRO_NOT_FOUND
PS C:\WINDOWS\system32> wsl -l -o
The following is a list of valid distributions that can be installed.
Install using 'wsl.exe --install <Distro>'.
NAME FRIENDLY NAME
Ubuntu Ubuntu
Debian Debian GNU/Linux
kali-linux Kali Linux Rolling
SLES-12 SUSE Linux Enterprise Server v12
SLES-15 SUSE Linux Enterprise Server v15
Ubuntu-18.04 Ubuntu 18.04 LTS
Ubuntu-20.04 Ubuntu 20.04 LTS
Ubuntu-22.04 Ubuntu 22.04 LTS
OracleLinux_8_5 Oracle Linux 8.5
OracleLinux_7_9 Oracle Linux 7.9
PS C:\WINDOWS\system32> wsl --install Ubuntu
Installing: Ubuntu
Error: 0x80244018 0.0% ]
Error code: Wsl/InstallDistro/0x80244018
PS C:\WINDOWS\system32> wsl --install Debian
Installing: Debian GNU/Linux
Error: 0x80244018 0.0% ]
Error code: Wsl/InstallDistro/0x80244018
PS C:\WINDOWS\system32>
I did try disabling proxy, as I found in one of the posts, but instead of Error: 0x80244018 got Catastrophic Failure.
Can anybody recommend what I can do to install a distro?
As I believe you've discovered (from your proxy comment), this error is usually due to a failure in the Windows Update service. By default, WSL uses this service to install distributions from the Microsoft Store, but many other Windows components and applications use the service as well.
While the information below may help with WSL, it's likely that you have a more significant issue that you'll need to resolve. If that's the case, you'll probably want to post a new question that is broader in scope, rather than just this one that focuses on WSL.
That said, my suggested workaround for installing WSL distributions would be to try:
wsl --install --web-download Debian
The --web-download option skips the Store (and shouldn't use the Windows Update service), and will download the distribution directly then install it.
Alternatively, if you can get access to a working Docker installation apart from this system, you could use the steps found in Import any Linux distribution to use with WSL.

asdf errors when starting Linux shell

Sorry it's hard to be specific here but I'm struggling to pin down the source of various error messages in my Linux shell with asdf.
I've got Fish shell 3.4.0 running on a RHEL 8.5 GNU/Linux system, and have installed and used asdf with it for several months with no problems. I've used asdf to install and use Python and R virtual environments with direnv as well.
However, starting yesterday, when I open my Gnome Terminal application to start the Fish shell, I get this error:
environment:987: use_asdf: command not found
I can still use the shell, but I noticed the the pipx tool I installed via my asdf-managed Python can no longer be found.
Also, if I start a Bash shell instead, I'm presented with this error:
bash: register-python-argcomplete: command not found... Install package 'python3-argcomplete' to provide command 'register-python-argcomplete'? [N/y]
If I choose N ("no"), I can still get to the bash shell.
The problem is, I have no idea where these errors are coming from or how to find the root of the problem. How can I begin to troubleshoot these errors?
Thank you.
UPDATE:
asdf and its plugins are all fully updated.
There's the output from asdf info:
OS:
Linux [hostname] 4.18.0-348.20.1.el8_5.x86_64 #1 SMP Tue Mar 8 12:56:54 EST 2022 x86_64 x86_64 x86_64 GNU/Linux
SHELL:
fish, version 3.4.1
ASDF VERSION:
v0.10.0-77fd510
ASDF ENVIRONMENT VARIABLES:
ASDF_DIR=/home/[username]/.asdf
ASDF INSTALLED PLUGINS:
direnv https://github.com/asdf-community/asdf-direnv.git master 7dcd571
nodejs https://github.com/asdf-vm/asdf-nodejs.git master f9957f3
python https://github.com/danhper/asdf-python.git master 57a4d72
R https://github.com/asdf-community/asdf-r.git master 3eab1a6
I do not recognize the environment:987: use_asdf: command not found error or the register-python-argcomplete: command not found error.
I'd suggest upgrading to the latest version of asdf and the latest version of all the asdf plugins you are using. If you still have issues please update you r question with the output from asdf info so we can get a better understanding of what your environment is like.

Heroku: understanding what version of Linux Kernel is used

I'm confused about which Linux Kernel is used to run Heroku apps, and the docs don't seem to spell it out.
Heroku offers "stacks" synced to Ubuntu LTS releases, and I just upgraded one of our apps from Heroku-18 (Ubuntu 18.04) to Heroku-20 (Ubuntu 20.04), and I was curious as to whether that would constitute a Linux Kernel upgrade.
So, before I upgraded the stack, I logged into a dyno and ran the following (on Heroku-18):
~ $ cat /proc/version_signature
Ubuntu 4.4.0-1097.102-aws 4.4.262
~ $ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 18.04.6 LTS
Release: 18.04
Codename: bionic
and then after upgrading to Heroku-20:
~ $ cat /proc/version_signature
Ubuntu 4.4.0-1097.102-aws 4.4.262
~ $ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 20.04.3 LTS
Release: 20.04
Codename: focal
So, upgrading did NOT change the Kernel version 4.4.262, which appears to have been released March 2021 (10 months ago).
The docs for Ubuntu 20 say that it's based on LTS Linux 5.4, so why is Heroku continuing to use the older 4.4.x Kernel? When might this be upgraded, and how might it be communicated?
I was also curious what the Kernel version would be for Heroku's container stack; I'm not sure how to find this out, but given the above, I'm betting that it too would be 4.4.x. This matters to me because I'm curious to try out io_uring and some other recent Linux Kernel developments, but it seems like I'd have to wait a long time to try out something like that on Heroku.

RubyPython doesn't work on Ubuntu 14.04

I'm having a problem with my Rails application in production, RubyPython won't run; I get the following error:
RubyPython::InvalidInterpreter: An invalid interpreter was specified.
I'm using ruby 2.3.0, the python version is 2.7.6 (CPython). It's running on an ubuntu 14.04 server.
It works fine locally on my Mac.
Any ideas what the issue might be?
Thanks

problems installing condor package on Ubuntu

I tried to install the condor package on Ubuntu 12.10 but an error message appears.
Theses pictures show my problems :
The packages that ship with Ubuntu are quite old. Install using the HTCondor debian repo: http://research.cs.wisc.edu/htcondor/debian/
I run the wheezy packages on 12.04 just fine.

Resources