Latest Server related questions

Score: 0
Roushan Jha avatar
directory owner permission does not get updated properly via ansible loop
eg flag

I am trying to create and update directory permission on my linux machine by using below ansible task but it does not change the ownership properly:

for instance: directory /home/xyz/xyz/{{ IDM }} and /home/{{ IDM }} ownership permssion gets reverted to {{ IDM }}:{{ IDM }}

- name: create directory with loop
  file:
    path: "{{ item.dest }}"
    mode: "{{item.mode}}"
    owner: "{{ IDM }}"
    group: " ...
Score: -3
Nested directories file restore
us flag

I recently took backup of one of my server's drive on AWS using one of the software and now at the time of restoring it i found out it took too long to restore as its having billions of files to restore. I tried to restore it from AWS itself but my problem is backup software created two directories inside my parent directories. I'm looking out some shell script by which i can move file parent direcoties ...

Score: 0
Nginx php-fpm 1 of 3 pools not working: returns stat() failed (13: Permission denied)
tr flag

I have nginx with 3 pools for php7.4-fpm - one for each of 3 users on the system as they have their own apps and files. The setup of all 3 is completely identical, but the recently added one has some permission problem.

Browser returns error 404 - Not Found.

Error returned in nginx log:

2022/01/18 09:32:16 [crit] 504237#504237: *5120 stat() "/var/www/user3/websites/site.com/index.php" failed (13: Pe ...

Score: 0
Custom domain name to serve Python packages from Google Artifact Registry?
tr flag

We're serving Python packages through Google's Artifact Registry. Actually the URL is the "default" one, so:

https://[REGION].pkg.dev/[PROJECT_ID]/.....

But what if we wanted to use a custom domain name? For example, we'd like to serve packages from a custom domain link like:

https://[MY-CUSTOM-DOMAIN]/...

Is there an official way to do that? What are my options?

Score: 0
Jd_mahmud avatar
./node_exporter: cannot execute binary file
cd flag

I am using RHEL7.9 in my Virtual Box. I installed the binary file of node_exporter as explained in the official documentation. I tried to run node_exporter using the following command:

./node_exporter

but it shows me the following error, instead of the output of the documentation:

ERROR: node_exporter: cannot execute binary file

How to solve it and why is this happening in my machine?

Official Documentation that I followed: https://prometheus.io/d ...

Score: 0
herny avatar
Cannot connect by SSH to my Compute Engine Instances
ua flag

I'm not able to connect to any compute instance in GCP by web and ssh. I try to access and I'm getting this error:

We are unable to connect to the VM on port 22. Learn more about possible causes of this issue.

I'm trying to connect by serial console also, but I haven't got the default credentials of the instance. I know that I can add users by userdata, but there are production instances and I cannot r ...

Score: 0
dmuensterer avatar
Nginx - If IP then proxy_pass else return 403
ca flag

I am trying to proxy_pass users with certain IPs to http://server1 and certain other users to http://server2. I'd like to return 403 if the user doesn't match any IP. Here's what I have:

geo $userGroup1 {
        default 0;
        192.168.178.2 1;
}
geo $userGroup2 {
        default 0;
        192.168.178.3 1;
}

server {
        listen 80 default_server;
        listen [::]:80 default_server;
        ...
Score: 0
Dean Whitehouse avatar
Nginx Disable Basic Auth - Laravel Forge
sr flag

On a Laravel Forge Nginx Server I've enabled basic auth security at a root level for my site, this is working fine.

However I'm now trying to exclude a webhooks path from basic auth to allow the site to function properly with third parties.

No matter what I try this it not seem to work, it works fine if the folder/file exists in the filesystem but not for pretty URLs set-up as routes in Laravel.

This i ...

Score: 0
pepoluan avatar
Converting standalone CouchDB to clustered
tr flag

Currently I have 2 CoachDB instances, replicating with each other through the Replication/replicator feature.

Now we want to create a cluster of 3 instances. The plan is to add another instance, and cluster them all together.

Is it possible to convert the standalone instances into clustered instances? In the documentation I did not see any mention of whether cluster setup is possible (or not) for  ...

Score: 0
Bishwadeep KC avatar
Google cloud Auto scaling - how to create vm using existing vms image
in flag

Hi I am new to google cloud. I want to use autoscaling. My question is that is it possible to use the image of my current vm as template? Or do I have to create a fresh vm instance and create script that will install all the required setups like apache, php mysql git and pull the source code from bitbucket.

Thank you,

Score: 1
Deromanenko avatar
Need advises on VPS security - maybe some automated tools
zm flag

I create application that will be served on Ubuntu 20.04 VPS server. Nginx, Python, Postgresql, nodejs, nothing special.

Unfortunately, all my knowledge about server security ends after ufw enable and fail2ban. (Because most tutorials ends after it too.)

Can you please recommend me some good modern manual on securing server in Internet? If there is some automated security-test service or anything th ...

Score: 0
Boris Mikhailovski avatar
GCP/Firebase functions has zero active instances despite the explicitly defined minimum to have two online instances
hk flag

My current gcp/firebase function config below and yet GCP functions absolutely disregard these settings as shown on the attached graph. current function config: const runtimeOptsRetryMinOneInstance = { timeoutSeconds: 30, memory: "128MB", retry: true, minInstances:2 }; Active instances graph

Score: 0
Rohini avatar
Does ssl certificate need to be installed with IP of tomcat
gr flag

I have ssl certificate installed on an AWS load balancer(app1.company.com) and one instance with Tomcat resides behind the LB.

If I open https://app1.company.com:8443/ I can see the connection is secure/valid lock on the url bar. If I open with private IP of Tomcat I see the connection is not secure sign.

I'm aware usually certificates only bind to domain(or are only supposed to). And no one is goin ...

Score: 0
Igor B avatar
How to troubleshoot windows dotnet azure function via portal if eventlog.xml and application insight has no errors in them?
my flag

I upgraded my function from net core 3.1 to net 6 in code, then updated function runtime version trough portal to ~4 and net framework version trough following az command

az functionapp config set --net-framework-version v6.0 -n <APP_NAME> -g <RESOURCE_GROUP_NAME>

However when I try to access the app I getting http error 500.

  1. I tried to look at eventlog.xml and only found IIS AspNetCore ...
Score: 0
kolla ansible deployment stuck at Nova API bootstrap container
us flag

I am deploying openstack (for kypo cyber range) using kolla-ansible. I have followed all the steps on official guide. However I am stuck on Nova API bootstrap container for almost half a day. I have looked into mariadb.log file and it says

2022-01-17 11:40:36 1009 [Warning] Aborted     connection 1009 to db: 'placement' user: 'placement' host: 'kypo-virtual-machine' (Got an error reading communication p ...
Score: 0
Alexander Guyer avatar
Best way to enable DDoS protection on many individual GCP compute instances without load balancing?
ph flag

I've been scouring through the Google Cloud Armor docs for information about DDoS protection of a GCP compute VM instance. From what I've found, Google Cloud Armor Managed Protection provides traditional DDoS protection (perhaps layer 3 and layer 4), and it must be attached to a load balancer. Additionally, Google Cloud Armor Adaptive Protection provides layer 7 protection via machine-learning-based anoma ...

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.