Latest Server related questions

Score: 0
CL22 avatar
Error downloading and installing composer
nz flag

I don't really know where to begin with this. I'm trying to install composer on shared hosting.

I've followed the instructions here, logged in by SSH and run:

curl -sS https://getcomposer.org/installer | /usr/bin/php7.1-cli

But I get the following error:

curl: (3) URL using bad/illegal format or missing URL

What's going on?

Thanks

Score: 0
SP595 avatar
ssh asks for a password even though the key is copied
lk flag

I copied the key to the server, but ssh still asks for the password

ssh-keygen
ssh-copy-id [email protected]
/usr/bin/ssh-copy-id: INFO: Source of key(s) to be installed: "/home/sp595/.ssh/id_rsa.pub"
/usr/bin/ssh-copy-id: INFO: attempting to log in with the new key(s), to filter out any that are already installed
/usr/bin/ssh-copy-id: INFO: 1 key(s) remain to be installed -- if you are prompted no ...
Score: 0
sbarcab avatar
Internet relay postfix with virtual alias and .forward
sv flag

In a relay postfix for a domain, I am trying to configure so that each user indicates the e-mail destination address he wants in the .forward but as virtual_alias_maps is configured, it always takes the address indicated in /etc/postfix/virtual and skips the .forward configuration of each user. I can't find a configuration to solve this problem. Thank you very much in advance.

Score: 2
NeDark avatar
Discrepancy in file usage after rsync
cn flag

I copied files from an exFAT filesystem to an ext4 filesystem:

sudo rsync -avz /media/user/1TB-SD-EX/ -e ssh example.com:/data/pc/sd1tb

After successful run I check source and destination size with du -b

$ sudo du -ah -b -d0 /media/user/1TB-SD-EX/
800100388315    /media/user/1TB-SD-EX/

$ sudo du -ah -b -d0 /data/pc/sd1tb/
793592516059    /data/pc/sd1tb/

If I check number of items in with find and

Score: 1
Why qemu fails to start host only network on loopback when there's no other network on host?
sd flag
gcb

Starting qemu-system-x86_64 with -nic user,ipv6=off,hostfwd=tcp::9022-:22

With only the lo interface (with 127.0.0.1 associated to it) present on the host, the vm will start, but any daemon trying to allocate port 22 will hang. e.g. inside vm: #systemctl start sshd will just hang until killed, and nothing interesting will show up on logs.

If I have any other interface up on the host before starting qemu, ...

Score: 0
gfmoore avatar
RDP session to headless Ubuntu 22.10 machine disconnects without warning
ss flag

I use windows 10 (fully upto date) rdp to connect to Ubuntu desktop 22.10 running on a HP Microserver gen 8 server running headless.

I can remote in fine. Start doing work (usually with VS Code), terminal, and the Files programs and after some indeterminate time and for some unknown reason I get disconnected and the user has been kicked off the Ubuntu session back to the logon screen. I cannot re ...

Score: -2
keramat avatar
After restarting server Postgres does not start
pl flag

I am running Postgres 14 on a Windows Server 2022 Standard. While DB operations were running such as inserting, my server restarted, and, now the Postgres does not start. I looked at the config file and the last lines of that are as follows:

2023-04-23 01:43:36.913 PDT [123528] LOG:  could not receive data from client: An existing connection was forcibly closed by the remote host.

    
2023-04-23  ...
Score: 6
Slartibartfast avatar
RAID with different drive types possible?
in flag

In a high density storage server, which is in a RAID array, do all drives have to be of same type. Such as a mix of drives SSD, SATA? In a RAID array most controller require only that all drives be of the same capacity but what about drive type?

Score: 0
Esam Olwan avatar
How would I handle domain whitelisting?
ye flag

I'm trying to find out how would I handle whitelisting certain domain names. If the request originates from a particular subdomain, such as <id>.domain-name.com, access to the images will be restricted to a whitelist of approved domains. Requests from domains not on the whitelist will result in a 403 error.

I'm not sure what should I be doing exactly ? Do I use map context ?

for example, my nginx. ...

Score: 2
user1055568 avatar
Using file system (AWS EFS) as cheap database for Lambda function
sx flag

I am designing a database that could easily be represented as a large collection of files containing fixed size records, with sequence numbers 0,1,... This could fit nicely in DynamoDB with the filename as primary key and the record sequence number as sort key, but I am thinking about just using loose files on EFS. I don't need any replication, as this is already a replicate in a fault tolerant system. ...

Score: 0
Subbeh avatar
HTTPS access only after attempting SSH connection first
sn flag

Whenever I try to connect to https://github.com from a Docker container running centos:7 (or any other image I've tried), the connection cannot be established:

$ curl https://github.com -v -m 5
* About to connect() to github.com port 443 (#0)
*   Trying 20.248.137.48...
* Connected to github.com (20.248.137.48) port 443 (#0)
* Initializing NSS with certpath: sql:/etc/pki/nssdb
*   CAfile: /etc/pki/tls/cer ...
Score: 0
vanillyn avatar
Pointing a service to a subdirectory using Cloudflare Zero Access provides a 404 error
se flag

I'm working with my friend to get some of my services on a subdirectory. Essentially, instead of having service.example.com you have example.com/service.

I have installed cloudflared with an authorized token onto a Debian server as a service, and that is tunneling those ports onto cloudflare, which I have had my friend set up to point a specific port to a subdirectory.

I'm not using a reverse proxy, ...

Score: 0
snowlash avatar
Nginx upstream block host not found
ne flag

I'm running a nginx container where it maps to another backend container. When I tried adding upstream block in nginx.conf which is like

upstream backend_servers {
    server backend:8000;
}

The error that is occuring is

[emerg] 1#1: host not found in upstream "backend:8000" in /etc/nginx/nginx.conf:2
nginx: [emerg] host not found in upstream "backend:8000" in /etc/nginx/nginx.conf:2

But If I place  ...

Score: 0
How do I setup a Google Cloud Storage bucket to be accessible via the Simple Storage Service (S3) standard?
in flag

I understand from Google documentation that it's possible for google cloud storage to be accessed via the Simple Storage Service, which is just what I need for a program that supports this. The program only explicitly refers to Amazon S3 storage but in theory if Google Cloud Storage can support the Simple Storage Service, I imagine that my buckets should be accessible.

I'm prompted for the follow ...

Score: 0
bicanul123 avatar
How can I boot using Ansible on an Dell iDRAC9 server from an iso that's located on a remote server?
yt flag

I have this playbook that what I'm trying to do it's to install CentOS using Ansible and Redfish, I don't want to use any modules, I'll install the CentOS on multiple Dell iDRAC9 servers and I'm having one issue:

2)After the ISO it's mounted, the server has not entered automatically into ISO boot menu, and I'm trying to achieve this by the Set ISO as primary boot device task.

Can someone please help ...

Score: -1
fancyshark avatar
How to find device names on local network?
aw flag

Currently I'm trying to write a Python script to scan through my local network, and list all of the active IP addresses, and their corresponding MAC address and device name. Also all of the devices connected to my network are wireless devices. For example, if I had my phone, laptop and chromecast connected to the network, the script would show the following:

IP address: 192.168.1.3, MAC: xx:xx:xx ...

Score: 0
shellwhale avatar
Disable Windows Defender Firewall pop up for a target folder
ru flag

I'm encountering an issue with the Windows Defender Firewall every time I compile and run my Go program. It seems that the program's use of sockets is triggering the firewall each time a new version of the program is compiled and run as a new .exe file.

Here is what's currently happening :

  1. I make some changes to my code
  2. I compile, thus a new .exe is created
  3. Run the new .exe
  4. I'm getting annoyed by  ...
Score: 0
LT_Orange avatar
How to run a python script in a specific directory automatically?
tw flag

I have a python script that I wish to run at 5pm every Friday.
How can I achieve that ?

I understand I could do this through cron. However, as I have used relative file paths in the Python script and therefore must be run in the specific directory with the other files. I have seen I may be able to achieve this using the pipe operator however I have been unable to find an example.

Score: 0
ballatom avatar
Use postifx on server proxmox1 to send email from server p1
in flag

I have server proxmox1 configured to send emails through GMail server. Here is the relevant part of my /etc/postfix/main.cf :

smtpd_relay_restrictions = permit_mynetworks permit_sasl_authenticated defer_unauth_destination
myhostname = proxmox1
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
mydestination = $myhostname, localhost.$mydomain, localhost
# p1 has an IP in the range 19 ...
Score: 0
opendkim milter not launching on proper server socket
cn flag

The following error impeded the restart of opendkim

× opendkim.service - OpenDKIM Milter
     Loaded: loaded (/lib/systemd/system/opendkim.service; enabled; vendor preset: enabled)
     Active: failed (Result: exit-code) since Sat 2023-04-22 08:00:27 UTC; 2s ago
[...]    Process: 2295 ExecStart=/usr/sbin/opendkim (code=exited, status=78)
opendkim.service: Control process exited, code=exited, statu ...
Score: 0
Mr.P avatar
rSyslog stopped sending only SOME data
ru flag

I have configured a remote logging from one of my servers to the central log server via rsyslog TCP/SSL

Everything worked fine until yesterday where most of the files just stop being transmitted while some are still sent/updated in the log server.

I have this specific config inside my /etc/rsyslog.d/

$ModLoad imfile    #Load the imfile input module

# poll every 10s
$InputFilePollInterval 10

# myfile
$I ...
Score: -1
Artur avatar
Block unusual traffic from LAN on Switch
id flag

I was wondering if on HP Switches (2920 for example) is there something like storm control but for unicasts? Let's assume, we have a host in our network who bruteforces some random IP addresses. How to shut down this interface/MAC-Address? HP Switch provides only stormcontrol for broadcast and multicast, but none of them is a solution for 300pps for random IP's. How to handle it? I know we could do 'som ...

Score: 0
obevan avatar
Best way of configuring a OpenVPN to allow access from the Internet to hosts behind a firewall
tz flag

I have a Proxmox node with a bunch of VMs connected to a virtual bridged network. I have one VM on that bridged network that I want to connect to a Cloud VPS running OpenVPN. I then want to run an Nginx reverse proxy or directly port forward from the VPN host to the VMs on the client's subnet (the virtual bridge). Therefore I should be able to directly access these VMs from the broader internet (specifi ...

Score: 0
HippoMan avatar
How to tell opendmarc to stop using opendmarc-import?
by flag

I'm running opendmarc with postfix under Debian linux. I did the standard Debian apt-based install of opendmarc, but later, I realized that it is apparenly configured by default to make use of opendmarc-import in order to save import data in a database.

I don't want to make use of the database, but I can't find any way to tell opendmarc to stop logging info into that database.

I see nothing in /etc ...

Score: 0
crixu avatar
Setting an iptables rule to drop a UDP that contain a string followed by two numbers betwen 10-89 in one rule
sd flag

anyone knows if is possible to use only one rule to drop any UDP packet that contain a fixed characters followed by any number between 13 and 90. I tried string, hex-string, had a look at u32 but the offset inside the packet can be anything between 150-300...my understanding is that I can't do it if I don't have a specific one. No luck on setting numbers. At one point I just wanted to drop anything that ...

Score: 0
Dan avatar
Want to have BOTH case insensitve AND ^~ (stop regex)
sl flag
Dan

I am configuring an nginx server on Ubuntu 19.04. I want to have a location with BOTH modifiers ^~ AND ~* I want to stop looking at locations with the ^~ and want to be case insensitive. I have a requirement to stop searching for locations. Is this possible?

location ^~ /videos { // This works, but I also want this case insensitive.

}

Score: 0
grep avatar
How to set up Parallel Redundancy Protocol on linux?
ng flag

I'm trying to setup a PRP connection between to Linux machines (Ubuntu 20-04 LTS) following the doc from TI.

The module hsr is present (modprobe hsr works), but when I tried to use iproute2, it seems that it was compiled without support of HSR/PRP.

$ ip link add name prp0 type prp slave1 eth1 slave2 eth2 supervision 45
Garbage instead of arguments "slave1 ...". Try "ip link help"

$ ip link add na ...
Score: 0
Ljubisa Livac avatar
How to prevent compromising the email server if user credentials leaked?
br flag

I've been using AWS SES as an SMTP relay (Postfix + Dovecot) for years and now am facing the pausing of sending emails for the second time. We use this combination as an email server for business email purposes.

After my email server has been hacked for the first time I enabled Multi-Factor Authentication. I didn't find out how the attacker managed to compromise the server and send emails. Everyt ...

Score: 0
Is chronyc preventing big jumps by itself?
ca flag

I just realized that Windows server time (w32t service) has two default values limiting how much the offset of the time is allowed to be in negative and positive values. This value is huge by default and this allows for big time jumps if you dont correct the necessary regedit values.

On Ubuntu Server, I use chronyc for time sync. Is chronyc allowing this same fatal error or does it only allow sma ...

Score: 0
tholeb avatar
Generate SSL certificate with let's encrypt (dns-01 challenge)
mv flag

I'm trying to generate an SSL certificate with Ansible for *.rasp.example.com and rasp.example.com.

I already have a "working" solution (No errors when deploying), but when I try to compare it with certbot, I have some csr, crt, key whereas certbot only returns 2 pem files (key and cert).

When it comes to the browser, I have some issue, for example, https works for rasp.example.com but not for *.rasp.e ...

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.