You are not logged in.
On a Devuan Jessie server at a customer they have an issue that has me stumped:
The apt command is failing with "Connection failed", yet wget against the same IPs works fine. For example:
apt update
Ign http://deb.devuan.org jessie InRelease
Ign http://deb.devuan.org jessie-security InRelease
Err http://deb.devuan.org jessie Release.gpg
Connection failed [IP: 5.196.38.18 80]
Err http://deb.devuan.org jessie-security Release.gpg
Connection failed [IP: 46.4.50.2 80]
Ign http://deb.devuan.org jessie Release
Ign http://deb.devuan.org jessie-security Release
Err http://deb.devuan.org jessie/main amd64 Packages
Connection failed [IP: 5.196.38.18 80]
Err http://deb.devuan.org jessie/non-free amd64 Packages
Connection failed [IP: 46.4.50.2 80]...etc. However using those failed IPs thing like the following all work:
wget http://5.196.38.18That works perfectly and will download an index.html file.
I'm thinking they've reconfigured something that they're not telling us about. The only things I can think of that could cause this might include:
1. Some global proxy was configured(?) that wget is using, but apt isn't, or
2. Someone broke the apt configuration somehow...maybe by incorrectly adding some proxy configuration.
Is anyone aware of any other scario that could cause this? Thanks!
Tom
Just noticed this today. We currently use Jessie with the PHP 7.2 from sury.org but luckily we don't use php fpm at all and everything appears to be OK.
Note however that we've been leaving the sury.org repo commented out of /etc/apt/sources.list.d/php.list, and uncommenting only to update php. That is a) uncomment the sury repo, b) apt-update, and c) apt-get install --only-upgrade "php7*", d) comment out the repo, and e) apt-update.
The original reason for that was the fact that sury.org wanted to pull in a different version of openssl. I have no idea why, but we wanted to avoid that. As far as we can tell it wasn't necessary, so we went with the above for php only.
Tom
Head_on_a_Stick wrote:Note that the apt-transport-https package is needed to take advantage of https sources.
Tried this and it didn't work. I think I discussed this in a thread a while ago, but I couldn't find it.
Maybe I'm off base here, but this may mean that apt-transport-https may allow use of https sources that come from the round robin, but NOT https used directly in sources.list(??). That was sort of how I'd interpreted it.
Tom
I just recently tested a Beowulf LAMP server by a) installing from Ascii 2.1, just installing enough to get a running server, b) changing the sources.list to beowulf, c) doing an apt update and apt dist-upgrade, and d) installing everything I needed after that.
I have to say it worked flawlessly. I've done pretty extensive testing with the application this is intended for and it's pretty awesome. Looking forward for the stable version for sure.
Tom
Wow. It seems like Debian has made this whole handling of root in mariadb 10.3 astonishingly cryptic. I was just reading this, which mentions the program mysql_secure_installation, which I knew nothing about:
https://www.digitalocean.com/community/ … -debian-10
Several things concern/confuse me about this:
They seem to push you towards having the root account use the unix_socket plugin authentication with no password. My initital installation ended up with the root user set for mysql_native_password and no password.
They also aren't clear at all as to what to do in cases where you actually want a password on the root account as apposed to relying on the unix_socket login. What I did...adding the root password to debian.cnf...is the only way I could find. While the debian.cnf file says "# Automatically generated for Debian scripts. DO NOT TOUCH!", I'm actually not sure that really applies with mariadb 10.3 since they've abandoned the use of the debian-sys-maint user and all that.
They also seem to imply that the changes I made to either the root user or the debian.cnf (adding the root password) file might get lost in a future update(?).
I'm not sure it could get more confusing.
EDIT: As a test I tried a fresh install of mariadb server, and then used that mysql_secure_installation to set the root password. That however set the root user's plugin to unix_socket and still allowed it to login without a password locally. It also left that debian.cnf as-is with the root user and no password. So for cases where you actually want the root user to require a password, the only option is to change (or set to '') that plugin for the root user, and that requires putting the root password in debian.cnf or the service cannot stop or start.
Tom
Ahhh! Got it...well sort of. This is apparently different with MariaDB. I just found this in the file /usr/share/doc/mariadb-server-10.3/README.Debian.gz:
* ROOT USER AUTHENTICATION VIA UNIX SOCKET
==========================================
On new installs no root password is set and no debian-sys-maint user is
created anymore. Instead the MariaDB root account is set to be authenticated
using the unix socket, e.g. any mysqld invocation by root or via sudo will
let the user see the mysqld prompt.
You may never ever delete the mysql user "root". Although it has no password
is set, the unix_auth plugin ensure that it can only be run locally as the root
user.
The credentials in /etc/mysql/debian.cnf specify the user which is used by the
init scripts to stop the server and perform logrotation. This used to be the
debian-sys-maint user which is no longer used as root can run directly.
If you have start/stop problems make sure that the /etc/mysql/debian.cnf file
specifies the root user and no password.In our case however we actually need to have a password on the root user. Given that, I think what I have is correct...though that's a little confusing.
Tom
I installed default-mysql-server which installed these:
default-mysql-server galera-3 gawk libcgi-fast-perl libcgi-pm-perl libconfig-inifiles-perl libdbd-mysql-perl
libdbi-perl libfcgi-perl libhtml-template-perl libmpfr6 libsigsegv2 libsnappy1v5 libterm-readkey-perl
mariadb-client-10.3 mariadb-client-core-10.3 mariadb-server-10.3 mariadb-server-core-10.3 socatWhen you refer to installing "db-servers" are you referring to, in this case for example, mariadb-server-10.3? I definitely didn't get any prompts or errors of any kind.
When you get the root password prompt, did you end up with a debian-sys-maint user and password in /etc/mysql/debian.cnf? Mine ended up like this:
cat /etc/mysql/debian.cnf
# Automatically generated for Debian scripts. DO NOT TOUCH!
[client]
host = localhost
user = root
password =
socket = /var/run/mysqld/mysqld.sock
[mysql_upgrade]
host = localhost
user = root
password =
socket = /var/run/mysqld/mysqld.sock
basedir = /usrAdding the root password there gets everything working, though I'm unclear as to what was supposed to have happened. I'm also unclear as to whether that's any less secure than the setup with the debian-sys-maint user. As far as a purge and a re-install, there's certainly no reason to think it's going to behave any differently then it did yesterday.
Tom
I've been installing LAMP stuff on a beowulf server (upgraded from ascii) and just ran into something that took me forever to untangle that didn't seem right:
I installed default-mysql-server which installed the mariadb client and server 10.3. After getting it installed I set the root@localhost password. After doing that it refused to stop or start correctly. What I finally discovered was that I needed to expressly add the root password to the password entries in /etc/mysql/debian.cnf. I just checked, and under Devuan jessie with mysql installed instead of mariadb, the /etc/mysql/debian.cnf file ended up automatically configured with a user named debian-sys-maint and a generated password...which was why it worked fine in that case.
Does anyone have any idea how that's supposed to work? That certainly didn't seem right. Thanks in advance!
EDIT: Related question: The root@localhost user was originally created with a "plugin" entry of "mysql_native_password". Based on severl things I read I had ended up changing that to an empty string, though the above stuff was the issue and it had nothing to do with that. The user appears to work either way. Does anyone know how that should actually be set?
Tom
A few things (somewhat OT) that I meant to ask: As mentioned above I did an install of ascii 2.1 and then changed my sources to beowulf and updated. That by the way went flawlessly. Great work on everyone's part there!
Am I correct in assuming that once beowulf goes stable and I update after that, what I'll end up with should be basically identical as if I had installed using the actual beowulf ISO that will then be available? That is, that there's no compelling reason to reinstall etc?
The other thing I was curious about is the fact that I currently see this:
cat /etc/devuan_version
beowulf/ceresAm I correct in assuming that after an update to a stable beowulf, that will show just "beowulf" as apposed to "beowulf/ceres"?
Thanks in advance, and thanks again for all your hard work fighting the good fight!
Tom
It might be available in the beowulf backports which aren't available yet but will be soon.
Awesome. I'll check back on that. Thanks!
Tom
Thanks! Yea, I just tried adding the unstable branch to my sources.list and I can see that. It's a bit scary though and wants 13 upgrades and 25 new installs all from unstable, including some pretty significant stuff.
Does anyone know whether mysql will eventually be available in Beowulf?
Thanks again.
Tom
I actually did understand what meta packages are, for example I use the linux-image-amd64 to install my kernel. I think what had me a bit confused was around the versions reported for them in this case, but I understand that now. That is, that the specific version of php that actually gets installed will be based on the version of php7.3 pulled in by the php meta package. Sorry for the confusion.
I'll look into installing aptitude, thought I'm not sure I'll need it. It appear I can get the information I need about packages with commands like "apt-cache show" etc.
Thanks!
Tom
Mariadb = MySQL, but with less baggage strapped to it. Oracle didn't play nice, so MySQL was forked and became Mariadb.
I understand exactly what Mariadb is, but my company already has installs in the field using MySQL and, for a list of reasons, we want to stick with that. We're using MySQL with Devuan Jessie servers for example.
Again as I pointed out, MySQL is in fact an option in Jessie and Ascii, but it doesn't appear to be an option in Beowulf, at least as it stands now. I was hoping to find out if that's the case, or if I'm missing something. I do have the non-free option enabled for my sources, so it's apparently not related to that.
Tom
Investigate the concept of meta-packages.
PS: in aptitude you can get a description of the selected/highlighted package by pressing Enter.
HTH!
As far as what you describe in aptitude, this is a headless install with no GUI at all. I'm assuming that you're saying that, for example, "php" is a meta package that will pull in php7.3, and again, I'm assuming I probably want to install the php meta package. Having said that, I'm not sure I understand how that would differ from installing php7.3 directly.
Tom
As mentioned in a previous thread, I'm installing LAMP stuff on a new headless server (a VM) that was installed as ascii 2.1 and upgraded to beowulf.
For various reasons, I'd like to install mysql-server and the mysql client etc, as apposed to mariadb, but it doesn't appear to be available, unless I'm misunderstanding something. I see that there are meta package named default-mysql-server and default-mysql-server-core, but those appear to want to pull in mariadb. Maybe I'm missing something there.
I also notice that in the https://pkginfo.devuan.org search actually has mysql-server packages for Jessie and Ascii, but not for Beowulf.
Thanks in advance!
Tom
I'm testing a new install of beowulf of a headless server for LAMP stuff. One of the many reasons I want to use beowulf is because it has PHP 7.3 which is what I want.
As per instructions I've found here, I initially installed the current ascii 2.1, changed my sources to beowulf, and upgraded everything. All that went pretty well. For my initial install I installed as little as possible.
I'm about to install PHP but I'm confused as to the fact that there are packages named as, for example, just "php" as well as others using a name with the 7.3 suffix such as "php7.3", and I'm unclear as to which I should be specifying there. It appears that installing the former (without the 7.3 suffix) does in fact pull in the appropriate package with the 7.3 suffix, but directly installing the package with the 7.3 suffix, does NOT install the one without it.
Any clarification would be appreciated. My inclination is to install the ones without the suffix and to let it pull in what it needs, but I'd like to understand what's actually going on there.
Thanks!
Tom
I was just looking and it doesn't appear I kept track, and can't recall. However seeing as version 28.7.2 is available I just kicked off an update (running with nice), and will post back. To clarify, this is an old Dell 8250 with a 2.53GHz P4...pretty ancient.
Compiling Palemoon 28.7.2 with gcc 8.3.0 (using nice) took me almost exactly 12 hours:
time nice emerge -auv palemoon
Calculating dependencies... done!
[ebuild U ~] www-client/palemoon-28.7.2::palemoon [28.5.0::palemoon] USE="devtools gtk2 jemalloc official-branding optimize -dbus -debug -gnome (-gtk3) -necko-wifi -pulseaudio -threads -valgrind" CPU_FLAGS_X86="sse sse2" 0 KiB
....
real 722m4.230s
user 550m32.601s
sys 33m4.531sAlso note that I only have 2 GB of RAM which is a big factor as well. No possible way could I compile FF I'd imagine, even if it didn't require rust (the rust source alone is like 275 MB....ouch).
Tom
Interesting, what was the compile time for palemoon on that old hardware? Im pretty sure my old hardware would probably break if using the cpu at 100 % for more than 30 minutes, but ive never tried it so cant comment.
I was just looking and it doesn't appear I kept track, and can't recall. However seeing as version 28.7.2 is available I just kicked off an update (running with nice), and will post back. To clarify, this is an old Dell 8250 with a 2.53GHz P4...pretty ancient.
I can tell you that it's nothing compared to Libreoffice, which I build from source via Gentoo (as rarely as I can get away with). That takes like a day and a half! ![]()
Tom
^ Looks like you would need to build firefox from source to be able to patch it, would that be right?
It certainly appears that way, and that's a really massive compile (requiring rust for some time now) if you've never attempted it.
My company uses Devuan for headless servers, and our needs are very lean so none of this applies. On my own machines I'm currently using Gentoo, and switched from FF to palemoon quite some time ago for more reasons than I can count, including the compile requirements. I can even compile palemoon on very old hardware where I literally wouldn't live long enough to compile FF. Also note that palemoon already has a configuration option to omit dbus.
Tom
Thanks for the explanation! I didn't realize that's how it all worked...very cool.
Tom
Thanks! In the case of the Debian link that works, and redirects to a mirror with everything beginning with that letter. The Devuan link just goes directly to that link as-is and for some reason only has directories for five packages. Not sure what's going there.
Another question: I'm assuming those would be for the current stable release(?)...for example ascii on the case of Devuan. What would the links be for other releases?
Thanks.
Tom
Forgive my ignorance on this, but once I find a package using that Devuan package info search, how can I go about finding a download for the package? Thanks in advance.
EDIT: Yea, if anyone has an ideas on this, I'd like to download the ascii deb files for this. I've turned over every rock I can imagine and can't figure out any means of finding direct download links.
Tom
Thanks for all the replies!
Looks like that package is in ascii:
https://pkginfo.devuan.org/cgi-bin/d1pk … elease=any
Yea, that's the same package as is available for Debian Stretch. That can (sort of) be installed as long as you also manually install ca-certificates-java as well:
https://pkginfo.devuan.org/cgi-bin/d1pk … ease=ascii
Even then however it complains about breaking tzdata-java and will only install by adding --auto-deconfigure. Pretty ugly to say the least.
It appears to work, but I'm not sure as to what issues that ugliness with tzdata-java might cause.
Tom
On our current Devuan Jessie installs we have openjdk-7-jre-headless installed. Is there any source available for us to get the openjdk-8 version of that?
Thanks in advance
Tom
Regarding that openssl, I believe you're correct about something requiring it, however if that's the case it must be something in php 7.3, because nothing in 7.2 needed to pull it in. However the regular update/upgrade process of course wants to pull it in as long as the repo is active.
This actually gave me an idea and I tried totally redoing the upgrade with the following steps:
1. Upgrade wth "apt update" and "apt dist-upgrade".
2. Added the new repo.
3. Removed all php5 packages.
4. Install required php7.2 pacakges: Note that this time this installed BOTH php7.2 and 7.3 which it did NOT do the last time with the exact same command. Odd one. Even stranger is that even this did NOT pull in that openssl1.1.
5. Chose php 7.2 using "update-alternatives --config php"
6. Comments out the new repo.
7. Ran "apt update"
After the above of course the regular updates won't install that new openssl. However I'm still confused as to why it's even there if it wasn't pulled in by any of this. While I haven't tried this yet...and someone can correct me if this is wrong...I believe I could update just php in the future by doing the following:
1. Uncomment the new repo.
2. apt update
3. apt-get install --only-upgrade "php7*"
4. Comment out the new repo.
3. apt update
I going to test that php install and see if I run into any issues as a result of not having that openssl1.1. Still don't get why that's there.
Tom