Latest Server related questions

Score: 0
Niall Gallagher avatar
AWS NLB Port Translation
br flag

I have several EC2 instances deployed with a standard configuration consisting of a reverse proxy and an assortment of API gateways. The gateways and reverse proxies both use HTTP/HTTPS and so listen on 80/443. The obvious problem here is that there are port collisions if the services share the same instance, so I assign each a unique (non-standard) port, for example 8080 and 7777.

Is there are w ...

Score: 0
user772543 avatar
Ansible conditional file placement
lu flag

How do I perform the following with Ansible playbook. I'm new to it. Thanks!

File example that contains the hostname and password

{ 
  "hosts":[
  {
      "node": "node1",
      "pass": "pass1"
  },
  {
      "node": "node2",
      "pass": "pass2"
  }
]}

I need to put file.txt on each server with their respected values.

Example, On node 1 the file.txt should contain the node name "node1" and passw ...

Score: 1
ML380 G6 P410i RAID controller not detected
cn flag

I have a DL380 G6 server With P410i Array controller (embedded) 256MB Cache, no battery

When I turn off the server, then turn on after ± 5 minutes, the RAID controller is not detected (not drives, the whole raid controller) I can't access even pressing F8. The only way that I found for RAID controller work is keeping the server on ± 10 minutes, then shutdown and turn on again. After that, RAID  ...

Score: 0
Centos ntpd can't sync
jp flag

I have a Centos 5(I know that Centos5 is very very old) virtual machine that is refusing to sync. My virtual machine host is Windows 10 with HyperV and is syncing without problems.

Things that I have tried:

  1. Restart the vm.
  2. Disable the vm firewall.
  3. Compare ntpd.conf to a remote ntpd.conf that is working and is Centos 5 too.
  4. Enable HyperV integration services
  5. Enable HyperV time sync service
  6. Install a ...
Score: 0
Ryan Ding avatar
Static ARP Entries aren't being added
de flag

So I'm trying to create a static ARP Entry with the ip and MAC Address of my router. I'm currently using admin command prompt and the command arp -s [ip] [mac address], but it isn't working. Every time I check the table with arp -a, I just see the ip and mac address under an interface (there are two) with type dynamic. How do I set up the static entry? Also, can anyone clear up to me what the interfaces ...

Score: 0
Ghost Docker Containers
fr flag

While doing a docker ps to find out if I had running docker container before I boot up my project, I saw something really strange. I had running container that I didn't asked for. Since it was an anonymous container, I wanted to find out more info about it. If I do a docker ps -a there's a bunch of it, I'm really concerned... maybe someone can give me an hint ?

CONTAINER ID   IMAGE                     ...
Score: 0
different mdadm RAID on same disk?
sd flag
gcb

I am looking for factual knowledge or actual measurements to validate or not my idea. Please, hold answers without data just saying it is a weird idea because not the most common setup.

short question: Are the concrete problems on running two raids such as

sda    sdb  
sda1 + sdb1 => raid0 md1
sda2 + sdb2 => raid1 md2

both disks are GPT partitions with same model and layout. there's also spare disk ...

Score: 0
Teja Goud Kandula avatar
Is it possible to set up the database connection if we are provided with ODBC registry file?
gn flag

One of the users already has all the OBDC connections configured on to the RDC user account. That machine is used to connect to all the databases.

A new user on boards into the organization, his log in account is created on the same machine. This time the new user is being provided with an ODBC reg file, the ODBC reg file is an export from the initial user.

The ODBC file contains connection details  ...

Score: 1
Matthew avatar
Nginx + Wordpress language redirect wrong with default language
us flag

Nginx + Wordpress language redirect wrong with default language

Sorry for duplicate this questions here: Nginx + Wordpress language redirect

All works but for the default EN language.

I just want to redirect JP visitors to /ja/ directory, maybe more other countries to other directories later.

For now, I want all other countries to the root domain.

The rule I used is:

map $http_accept_language $lang ...
Score: 0
Raky avatar
Replicating folders of web servers on Windows Server 2019
us flag

I have 04 Virtual Machines(VM) working as Web application servers on Windows Server 2019. The VM has only one drive, that is C:. More partitions are not possible. The web application is placed in <drv:\tomcat\...\webapps folder of Tomcat Server. There are separate VMs for DB Nodes.

The webapp generates and saves Documents such as .docx, .xlsx, .pdf etc in folders inside the appFolder (For exam ...

Score: 2
eugenio_chisari avatar
Large file download from self hosted website
cn flag

Sorry if the question is simple, I am new to web development and self-hosted servers.

We have a self hosted website, which is supposed to have a button to download a large zip file (1 GB). For this, we have a simple solution in the index.html file:

<form action="path/to/file.zip" style="display: inline;">
    <button type="submit" class="btn btn-light">DOWNLOAD</button>
</form& ...
Score: 1
stunnel + squid = 1 request for 5minutes (rest connection reset by peer)
us flag

tl;dr;

Configuration with stunnel on client which connect to squid proxy with x509 certificate authentication work only for one request per 5minutes. Scenario:

  • Squid and stunnel configured and started
  • wget configured to use localhost as proxy (stunnel)
  • Only 1 request (e.g. wget https://github.com) per 5 minutes (or stunnel restart) work rest got connection reset by peer
  • Using raw connection e.g
Score: 0
Nacht avatar
OpenSSH on Windows refuses to use authorized_keys command option
us flag

I have installed OpenSSH on two of my Windows servers, using Chocolatey. I use it for automating deployments from my Linux boxes. I would also like to be able to SSH into PowerShell on these machines rather than command prompt. It works fine for one of them, but refuses to work for the other. They have the exact same configuration as far as I can tell.

C:\ProgramData\ssh\sshd_config is the same f ...

Score: 0
Is it safe to deploy without ssh-agent on GitHub Actions?
cn flag

I see 2 options here, using ssh-agent:

name: deploy
on: [push]
jobs:
  deploy:
    runs-on: ubuntu-20.04
    env:
      USER_HOST: ec2-user@ec2...
      HOST_KEY: ec2... ecdsa-sha2-nistp256 AAAA...mXU=
    steps:
      - name: Check out the code
        uses: actions/checkout@v2

      - name: Run ssh-agent
        uses: webfactory/[email protected]
        with:
          ssh-private-key: ${{ sec ...
Score: 0
Antonio Klepo avatar
How to make NodeJS server located on VM visible on host PC?
jp flag

I have my PC (host) and two VBox Linux virtual machines installed on it. One VM contains Postgres database and the other one NodeJS server running on it and they both can communicate between. When I start a node server, I can get all the data (JSON format) from the database on localhost:3000/database_table or vm_ipv4_adress:3000/database_table, but can't on the host PC (even though I changed local ...

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.