Latest Server related questions

Score: 1
Vinayak avatar
Getting the connection pool properties
ca flag

I have set up a connection pool in tomcat's server.xml and context.xml.

I am using the below code to establish a connection.

DataSource ds = (DataSource) context.lookup("jdbc/TestDB"); ds.getConnection();

Now I want to get the properties like MaxActive, MaxIdle etc. But I don't see any method that can be called using DataSource object. How can I get those parameter values ?

Score: 1
Ne00n avatar
Converting sgdisk to sfdisk for old machine with MBR
cn flag

I want to put ZFS on an old machine, however it apparently fails to boot with GPT. So I wanted to convert this script, mainly these 3 lines to sfdisk, which uses MBR.

https://github.com/terem42/zfs-hetzner-vm (Debian11)

sgdisk -a1 -n1:24K:+1000K            -t1:EF02 "$selected_disk"
sgdisk -n2:0:+512M                   -t2:BF01 "$selected_disk" # Boot pool
sgdisk -n3:0:"$tail_space_parameter" -t3:BF01 "$ ...
Score: 0
Orphans avatar
Illumos - configure Unbound to start automatically
cn flag

I am running Illumos on a production system that is getting the DNS-settings from DHCP, and I would like to use Unbound as a local resolver to resolve hosts over DNS-over-TLS.

However, I am not sure about how to automatically start Unbound at boot, or even configure the host to use the Unbound DNS-resolver (except modifying resolv.conf). I am not able to reconfigure the DHCP-server to my needs.

How ...

Score: 0
Suggestions for backup plans on Godaddy VPS
in flag

I have subscribed for GoDaddy VPS, where I am hosting GitLab servers. I would like to understand the backup methodologies used in the industry, to keep the data secure. I know GoDaddy provides a weekly automatic backup plan. I'm interested in daily backup plans if available.

Score: 0
Problems after trying nohup rsync
in flag

I tried to run some rsync with nohup, which I couldnt get to run properly. I tried to delete the nohup.out file which it created but it seems everything in the directory I was working in is hanging now. I cannot even try ls in the directory anymore... The rsync commands I have tried:

nohup rsync -avP ADRESS:PATH/* .
nohup rsync -avP ADRESS:PATH/* . &
nohup rsync -avP ADRESS:PATH/* . & >  ...
Score: 0
Andrew Newby avatar
Composer telling me " PHP extension ext-gmp * but it is missing" when it shouldn't be
in flag

I'm new to Composer, so be gentle!

I'm trying to install a script that uses Composer, but I get:

  Problem 1
    - Root composer.json requires PHP extension ext-gmp * but it is missing from your system. Install or enable PHP's gmp extension.

After researching, I've found you have to install GMP, so I did:

sudo apt-get install php7.4-gmp

That installed fine. Then I both:

/etc/php/7.4/cli/php.ini
/e ...
Score: 0
dacabdi avatar
How to improve TCP tolerance to out-of-order delivery in Linux balance-rr bonds and/or FreeBSD roundrobin laggs?
cn flag

I have 3 servers networ kwise configured as follows

  • A is a DELL R710 is running Linux 5.13.19-1-pve Proxmox VE 7.1 and has 4 NICs teamed in a balance-rr mode bond.
  • B is a DELL R610 is running Linux 5.13.19-1-pve Proxmox VE 7.1 and has 4 NICs teamed in a balance-rr mode bond.
  • C is a DELL R710 running FreeBSD 12.2-RELEASE-p1 with a lagg over 8 NICs in roundrobin (this is a TrueNAS distro).

All NICs are ...

Score: -1
Super User avatar
Access router admin page with static IP
gb flag

I have a static IP and can access my servers from the outside world by port mapping. For e.g.: A service running on the 192.168.1.98:8080, can be accessed by going to {Static_IP}:8080, if I have mapped 8080 of the 192.168.1.98 to 8080 external port.

The IP of my router is 192.168.1.1, now, when I want to access the router admin page, I map 192.168.1.1:80 to port 80 on the static IP(external port), but ...

Score: 0
Sami Hulkko avatar
Apple client unable to login with LDAP backend and GSSAPI or PLAIN
ck flag

I have a OpenLDAP server with Kerberos5 for authentication and on Linux/Unix/Windows environments I am able to login without a problem. The LDAP server is configured to use GSSAPI or PLAIN that passes trough SASL2 the password to PAM that authenticates against KERBEROS. This is due some server software do not support GSSAPI directly yet. On macOS (latest Monterey) I am able to get ID of the users and do ...

Score: 2
Seamus Lee avatar
Managing AWS EC2 and RDS autoscalling configuraiton
sk flag

A client of ours generally can get away with running just the one EC2 and also has an Aurora serverless MySQL 5.7 database running, however there are times when their load spikes up significantly. e.g. going from maybe 20 sessions to 200 sessions in a minute. This is because they sell tickets for events and tell people that tickets go on sale at x date so everyone tries to jump on at once.

At the ...

Score: 0
apt-offline directory and upgrading from 16 to 18
cz flag

I followed this: https://www.debugpoint.com/2021/03/how-to-update-or-upgrade-ubuntu-offline-without-internet/

I'm trying to test an offline upgrade from Ubuntu 16 to 18.

The "offline-data-dir" created just now is only 40MB. That can't be right?

I copied that data to a Ubuntu 16 and pretty much nothing happened when I ran apt-offline install offline-data-dir/.

If I understand... I can run apt-offline f ...

Score: 1
Igor Q. avatar
How to create a Super User Account on AWS's RDS Mysql?
br flag

The Master user has limited permissions on RDS.

I need SUPER, SYSTEM_VARIABLES_ADMIN or SESSION_VARIABLES_ADMIN privileges, and I don't know how to add them to my user.

Tried this solution from another question:

mysql> GRANT ALL PRIVILEGES ON `%`.* TO 'root'@'14.156.117.179';
ERROR 1410 (42000): You are not allowed to create a user with GRANT

Even trying to give SUPER privilege gives me an erro ...

Score: 1
Internal Seagate HDD extremely slow under Linux
sd flag

This computer has a 1 TB Seagate HDD as a second drive at /dev/sdb, formatted as ext4.

Recently the HDD started performing really, really slow. For example, it took almost 20h to copy ~89 GB of data from an external USB drive to the HDD:

sent 89,704,992,410 bytes  received 47,132 bytes  1,281,363.28 bytes/sec
total size is 425,224,910,218  speedup is 4.74

real    1166m47,065s
user    4m3,929s
sys     10m ...
Score: 0
cfp avatar
Windows static routing not working as expected
us flag
cfp

I have three routers:

  • Router 1 has an external internet connection. It has LAN IP 192.168.0.1 and gives IP addresses in the 192.168.0.* subnet.
  • Router 2 accesses the internet via Router 1. It has WAN IP (on Router 1's network) of 192.168.0.20, LAN IP of 192.168.68.1, and gives IP addresses in the 192.168.68.* subnet.
  • Router 3 accesses the internet via Router 2. It has WAN IP (on Router 2's network) of  ...
Score: 0
Connect to an installed mysql db
in flag

I have installed on my application server mysql mysql Ver 8.0.23-0ubuntu0.20.04.1 for Linux on x86_64 ((Ubuntu)). My operating system on my VPS is Ubuntu 20.04.1 LTS.

To manage this database I connect locally via SSH to the server and THEN accessing the database.

However, services such as google data studio need a jdbc url or a database hostname.

enter image description here

I tried my servers IP as hostname and then using the corr ...

Score: 0
On Chrome OS in dev mode: mount with exec permission
ru flag

I'm trying to use a Chromebox as a tiny server. I'm using Linux through Crostini to host the server application. It really seemed like a good idea. Currently, I'm trying not to replace the whole Chrome OS, although it might come to that.

I think I'm almost done, but my server software requires its storage allocation, a fairly large chunk of data that I store on external drives, to run code. Basic ...

The Stunning Power of Questions

Much of an executive’s workday is spent asking others for information—requesting status updates from a team leader, for example, or questioning a counterpart in a tense negotiation. Yet unlike professionals such as litigators, journalists, and doctors, who are taught how to ask questions as an essential part of their training, few executives think of questioning as a skill that can be honed—or consider how their own answers to questions could make conversations more productive.

That’s a missed opportunity. Questioning is a uniquely powerful tool for unlocking value in organizations: It spurs learning and the exchange of ideas, it fuels innovation and performance improvement, it builds rapport and trust among team members. And it can mitigate business risk by uncovering unforeseen pitfalls and hazards.

For some people, questioning comes easily. Their natural inquisitiveness, emotional intelligence, and ability to read people put the ideal question on the tip of their tongue. But most of us don’t ask enough questions, nor do we pose our inquiries in an optimal way.

The good news is that by asking questions, we naturally improve our emotional intelligence, which in turn makes us better questioners—a virtuous cycle. In this article, we draw on insights from behavioral science research to explore how the way we frame questions and choose to answer our counterparts can influence the outcome of conversations. We offer guidance for choosing the best type, tone, sequence, and framing of questions and for deciding what and how much information to share to reap the most benefit from our interactions, not just for ourselves but for our organizations.