Latest Server related questions

Score: 0
Capacytron avatar
Google cloudd VM instance kills docker
vn flag

I have cloud vm instance e2-medium that runs my docker container. Certain activity at docker container causes CPU spike, like up to 140% out of 200%. I guess that OS kills docker, I see this entry at VM logs:

MESSAGE: "2023-03-06T20:32:57.227924026Z container kill 5572d73a11cb38164529d1c1b284bce64e7b1f559ef4946c28e24a68d4b9e706 (image=gcr.io/stackdriver-agents/stackdriver-logging-agent:1.9.8, name=stackdr ...
Score: 0
Kravitz avatar
SSH from cloudbuild to a Compute instance
ru flag

I created an SSH user and I can SSH in from my local machine using the id_rsa keyfile, I stored the same keyfile as a google cloud secret and logging in using the same creds but i cant get any access at all, I keep getting the error Permission denied (publickey). but the username is correct.

Is there some limitation about SSH'ing from cloudbuild to a Compute instance ?

Score: 0
Mansidak avatar
How to forward https traffic from Port 80 to Port 8501 on Ubuntu Apache2?
sy flag

So I used iptables to redirect traffic from 80 to 8501 as follows:

sudo iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 8501

However this doesn't work with https. I was able to do the certbot stuff successfully however my script only listens to :8501. How can I make sure that the user doesn't have to type the extra example.com:8501 and that example.com always shows cont ...

Score: 0
Mansidak avatar
Syntax Error I can't figure out on Apache2
sy flag

I was attempting to change the conf of my files in order to achieve port forwarding, however all of a sudden I get the following error when attempting to restart:

AH00526: Syntax error on line 30 of /etc/apache2/sites-enabled/000-default.conf:
RewriteCond: bad flag delimiters

I'm new to Apach2 so I'd appreciate if someone could provide input on what could be going wrong. I can't figure out what exactl ...

Score: 0
Ahmed Mekky avatar
How to see request headers sent by a squid proxy server?
ly flag

The log file /var/log/squid/access.log doesn't show the headers. I looked around a lot and I didn't find anything helpful.

Thanks in advance

Score: 2
Crypto Coupons avatar
How can I make SSL Lets Encrypt certificate auto renew on Ubuntu
cy flag

How can I make this certificate to auto new every time so I don't have to renew it manual or it will auto renew itself?

ssl_certificate /etc/letsencrypt/live/www.vgopromo.com/fullchain.pem; # managed by Certbot
ssl_certificate_key /etc/letsencrypt/live/www.vgopromo.com/privkey.pem; # managed by Certbot
include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
ssl_dhparam /etc/letsencryp ...
Score: 0
AaplMike avatar
Server 2019 - Print server failed to share printer after increasing CPU/RAM for VM
ke flag

I have a new Win2019 server VM with the print server running. This replaced an older 2012 version. Over the weekend I shut it down, increased CPU/RAM and started it. As of this morning, no printers work. Error log has Error #315: failed to share printer for all 279 printers. No other changes were made. The print server is part of a domain.

Anyone have this kind of behavior happen?

Score: 0
Steve avatar
AmazonLinux 2022 Fails to Run PHP Scripts - Error AH02454
cn flag

I am attempting to run basic PHP scripts on an Amazon Linux 2022 or Amazon Linux 2023 server instance. I followed the directions here and when I request index.html it serves a static page fine. However, when I created the simple index.php page containing only

<?php phpinfo(); ?>

I get an error code 503:

Service Unavailable
The server is temporarily unable to service your request due to main ...
Score: 0
Pa0x43 avatar
How to make a mail server spam "proof"
bm flag

I work for a German company that sends several thousand emails to our customers every day. Our employees send their emails via Microsoft 356, but the system does not use a mail server and sends emails via PHP sendmail, so many of our emails end up in the spam folder of our customers. My question is how do we set up our own mail server and configure it in such a way that the risk of ending up on a block  ...

Score: 0
demiglace avatar
Apache RewriteRule is not redirecting to www
mx flag

Using apache 2.4 and my site is on www.example.com, which automatically gets redirected to https://www.example.com, wherein it is fully accessible and functional.

However, when I explicitly try using http://example.com or https://example.com, I get greeted by a placeholder page.

What I would like to happen is to redirect non-www to www. Ex (https://example.com -> https://www.example.com

I have ...

Score: 0
Helga Cassol avatar
Connect to address xx.x.x.xx port 22: Connection refused
iq flag

I'm trying to connect to a server using ssh command but I have this error

connect to address xx.x.x.xx port 22: Connection refused

I have already checked if ssh is installed, if the port 22 is listening, if ssh is running and I know that the firewall isn't working.

I have two different IPs on the workstation that I'm using as a server, one related to Windows and one related to WSL. If I try the  ...

Score: 1
Connecting from windows to debian Samba share
mx flag

I have a proxmox installation with a few ZFS shares. The shares are created using

zfs create storage/photos
sudo zfs set acltype=posixacl storage/photos

The user is created using

sudo adduser --system --no-create-home samba-peter
sudo smbpasswd -a samba-peter
sudo setfacl -R -m "u:samba-peter:rwx" /storage/photos

then I add

[photos]
   comment = photos
   path = /storage/photos
   read only = no
   ...
Score: 0
Peter Penzov avatar
No such file or directory: '/lib/modules/5.2.0/modules.builtin'
fr flag

I'm trying to install Kubernetes cluster using Kubespray. I get this error during script run time:

An exception occurred during task execution. To see the full traceback, use -vvv. The error was: FileNotFoundError: [Errno 2] No such file or directory: '/lib/modules/5.2.0/modules.builtin'

I use for control plane and work node Ubuntu 22.04.

Do you know how I can fix this issue?

I use this OS: https://src ...

Score: 1
Mohammad Qodrati avatar
404 when Serving Static Files Owned By Another User From /opt
gs flag

OS = Debian 11

I have edited default nginx (version 1.18.0, installed from Debian repository) config as below:

server {
    listen 80 default_server;
    listen [::]:80 default_server;

    root /var/www/html;

    index index.html index.htm index.nginx-debian.html;

    server_name _;

    location / {
            try_files $uri $uri/ =404;
    }

    location /torrent/ {
            autoindex on;
    ...
Score: 1
xmm_581 avatar
Nginx: proxy_pass ignores port
ar flag

I have an application with Swagger on localhost:8080/swagger/.

I need a redirect from localhost:80 to actual swagger url which is localhost:8080/swagger/ so I setup a Nginx reverse proxy:

server {
    listen 80;

    server_name=_;
    
    location / {
           proxy_pass http://localhost:8080/swagger/;
           proxy_redirect off;
           proxy_set_header Host $http_host;
           proxy_set_ ...
Score: 0
eliassal avatar
Web server does not respond in spite of the fact all K8S indicators are OK
th flag

I have K8S 1.26 cluster on 3 ubuntu VMs, one control plaine and 2 nodes , I apply a deployment as well as a service and forward port 80 to port 80. Issuing the following commands show that everything is OK

enter image description here

enter image description here

However, when I browse to localhost:80, I get nothing always either connection refused or timedout.

Here is the deployment.yml and the service.yml

apiVersion: apps/v1
kind: Deployment
metadata:
  n ...
Score: 0
robertpartfy avatar
AWS poor performance compared to DigitalOcean's
id flag

Why is my Apache2 server with PHP-FPM experiencing significantly lower performance on AWS EC2 instances compared to DigitalOcean Droplets? Despite similar hardware specifications and configurations, the server on AWS is showing higher latency and lower throughput. Is there something in the network or configuration that could be causing this discrepancy?

When migrating to AWS EC2 I configured the  ...

Score: 2
Limit CPU usage Ansible J2 loop
cn flag
raw

I have an Ansible task that formats a list of VLANs. However, when I run the task with multiple forks, it causes my CPU usage to spike to 100% for a long time. How can I optimize the task to reduce CPU usage or limit the CPU usage of this task ?

Here's the original task:

- name: Fromat VLAN list
  ansible.builtin.set_fact:
    device_interface_vlans: "{{ dict(key | zip(val)) }}"
  vars:
    dev_ifc_st ...
Score: 0
costadilevante avatar
IIS fastCGI: iis minimum instances
ch flag

I've noticed that IIS is very slow creating fastCGI process. My server normally use 3/4 fastCGI thread, but, in traffick peack, create untill 400 thread. During this process, the server is very very slow.

I wanna to set 400 fastCGI permanently alive, but I don't know how. In settings there is maximum fastCGI thread, but not minimum. Ideas?

Score: 0
Omri. B avatar
Syslog-ng enable TCP framing
to flag

I'm trying to send file entries as messages via TCP, where syslog-ng is in a container and it is sending to another container. I've had two different attempts both with problematic behavior. The first configuration:

@version: 3.31
source s_file {
    file("/var/log/my_file.json" follow_freq(1) flags(no-parse));
};

template log_template {
    template("MSGSTART${MESSAGE}MSGEND");
};

class SngResol ...
Score: 1
Manoj Mandala avatar
Cloudfront url routing to a domain
mq flag

I have a cloudfront url I want to route to demo.example.com. I used nginx for the routing and configuration and generated the ssl certificate and then added the txt records in the DNS portal.

But when I'm trying to access it, it is showing DNS_PROBE_FINISHED_NXDOMAIN and ERR_TOO_MANY_REDIRECTS errors. I might think that it should be possibly the configuration mistake is in nginx server.

My configuration ...

Score: 2
embe avatar
Emptied SQL Server Database broke the Cube
br flag

We have a SQL Server hosting our Analysis Services and accessing data from the ERP system by a ETL process. It was some duplicates in the data and therefore the SQL Server database was emptied. After running the ETL process again the end status is DTSER_SUCCESS. The data in the SQL Server database tables is refreshed and do get an updated Last_Loaded timestamp but nothing will display from the Cube now. ...

Score: 0
Google_Dogs avatar
Avoid Docker to write into /var/tmp
cn flag

How can I tell docker to write data elsewhere of /var/tmp ? Like specifying another path, like /opt for example.

Because I often running out of disk usage on /var file system.

The challenge is that I don't to resize /var every time I need to load or save images from the daemon.

Thanks

Score: 0
Tounet avatar
The printer edits are cut off at the top and bottom after upgrade cups to 2.2.6 with Postscript source
pa flag

The background, we're upgrading a technical platform for our ERP that sends postscript editions in A4.

  • Our old cups --> Redhat 6.1 / Cups 1.4.2 / Foomatic 4.0.4
  • New platform --> OL 8.7 / Cups 2.2.6 / Foomatic 4.0.12

We use the same driver for all our printers, "Generic PCL 6/PCL XL Printer Foomatic".

We kept all the settings of the old cups (a few hundred printers configured). On the new cups,  ...

Score: 0
user15397083 avatar
Why it asks me to input password here to restart db
mg flag

I just have done

pg_basebackup -h primary_host -p primary_port -D PGDATA -U replication user

and I jsut wanted to restart the db, so I did

sudo su - postgres

sudo service postgres restart

and the ec2 says to me

Respect the privacy of others, think before you type, ...

and it asks me password for postgres. But since I have created this ec2 instance, I have never set any password for postgres. So t ...

Score: 0
Marcos Senna avatar
Create a user and give him access to a specific website in Ubuntu (Digitalocean+Serverpilot)
US flag

I'm a little newbie in programming and I would like to ask for help in this forum, because I've already searched in several places and I couldn't find it.

I have an Ubuntu server on Digitalocean with serverpilot installed. My only user created there is "serverpilot" But a programmer asked for access to a site that I have installed on this server. There he will program a template and make some mod ...

Score: 1
selbie avatar
Mitigating billing costs for non-existent host names on Route 53
eg flag

5 days into this billing cycle, and my Route 53 zone has received over 33 million requests for a particular host that I recently deleted. And the associated DNS records were deleted too.

I didn't think I would get billed for queries to a non-existent host record, but indeed I am according to the billing dashboard. And the number of queries has doubled since it was removed. Some initial query lo ...

Score: 0
sujith sankar avatar
one public IP Address same service (https) for two website is working (different Domain name)
la flag

One Public IP Address giving same service for two web site (Different DNS). beirutmotorsparts.com - 66.96.147.120 - 443 alwaslautoparts.com - 66.96.147.120 - 443 One public IP can give 443 to one Web site (URL), How it is possible to two url same service (443)?

Score: 0
yoon avatar
Do I have to reconfigure after restarting an LDAP service?
yt flag

I'm using two LDAP servers in a mirror mode.(active-active hot standby, openldap 2.4)

As explained in an LDAP document, instead of using a config file, I configured dynamically with ldapadd and ldapmodify commands after starting LDAP services.

When I restart the LDAP daemon, do I have to configure again by running the same ldapadd and ldapmodify commands?

Or, does it find the previous config database  ...

Score: 0
Evi1M4chine avatar
Linux file system(s) with ACID guarantees?
cn flag

What could I do, to obtain a Linux file system, with the same guarantees as ACID guarantees for databases?

It seems file systems haven’t advanced to this point that I had assumed would be industry standard for everything by now.
At least I could not find any search results for it.

The best I could find is that they manage to keep their structural data intact. But not the actual file contents. ( ...

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.