Latest Server related questions

Score: 0
Julien avatar
Systemd service for Sinatra + Thin keeps restarting
cn flag

I have systemd service for a Sinatra app running with Thin server behind an Nginx reverse proxy. It works fine but because it receives a lot of traffic i'm seeing a lot of nginx errors about being unable to connect to upstream. Upon inspecting the service i noticed that it never runs for very long, just a few minutes at best which would explain why Nginx can't connect a lot of times (while the service i ...

Score: 0
Tsai Lee avatar
Gluster USER SERVICEABLE SNAPSHOTS: Cannot see `.snaps` directory
cn flag

Sorry for disturbing you... Uh, I met a very strange GlusterFS problem: I can access snapshots by using FUSE mount and it works fine. However, when I test Gluster USER-SERVICEABLE snapshots feature, I find I cannot see .snap directory in the NFS shared directory. So pls help me solve this problem, many thanks~ My Gluster version is glusterfs 8.6. My OS version is CentOS 7.9.2009

[root@pgsql-1 media ...
Score: 1
Douglas Su avatar
Difference between network bridges created by `ip` and `nmcli`
us flag

I notice that the bridges created by ip command and nmcli command are distinct:

# Create a bridge via ip command and name it br-ip
ip link add dev br-ip type bridge 

# Create another bridge via nmcli command and name it br-nmcli
nmcli con add ifname br-nmcli type bridge con-name br-nmcli 

The two bridges look like:

21: br-ip: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default q ...
Score: 0
Openstack : Is it possible to have instances using provider (option 1) and selfservice network (option 2) at the same time?
it flag

Here is my beginner's question : If I configure SelfService Network (option 2), it means that I configured before a provider network. Thus, in operation, can I have at the same time, instances using SelfService Network and instances using provider network ?

Thank you and merry Xmas !

Score: 0
Douglas Su avatar
Why I can't change qcow2 password via chroot
us flag

I have a Linux qcow2 image, and I want to change the root password.

I combined qemu-nbd and chroot commands to access the filesystem in this qcow2 file.

qemu-nbd --connect=/dev/nbd0 ./linux.qcow2
sudo mount /dev/nbd0p1 /mnt/sysimage
sudo mount -t proc none /mnt/sysimage/proc
sudo mount -o bind /dev /mnt/sysimage/dev
sudo mount -o bind /run /mnt/sysimage/run

sudo chroot /mnt/sysimage /bin/bash

Afte ...

Score: 0
Santosh Baruah avatar
Page Loads Error
co flag

In my production Environment I'm observing a sporadic issue where pages are taking a long time to load. In the error logs we are seeing:

PHP Fatal error:  Maximum execution time of 30 seconds exceeded

The affected line is where a session is being created for the user.

The directories are physical. There are +3.5 million files in the directory. The trash collection is set for 31 days for sessions in PHP. ...

Score: 0
Meir avatar
Nginx return 200 instead of 206
cn flag

I have a setup of the Nginx server (openresty) that has large files. When a client wants a range file Nginx sends 200 back instead of 206.

This is the example of my curl test:

curl -v -I -r 0- -X GET http://172.29.22.11/myBigFile.bin
*   Trying 172.29.22.11:80...
* TCP_NODELAY set
* Connected to 172.29.22.11 (172.29.22.11) port 80 (#0)
> GET /myBigFile.bin HTTP/1.1
> Host: 172.29.22.11
> Rang ...
Score: 1
Update software on 3Com Baseline Switch 2928-SFP Plus
it flag

I would like to update my 3Com Baseline Switch 2928-SFP Plus (Device Name: 3CRBSG2893) but can't figure out how to find it on HP's site.

The model has been incorporated into HP's line of switches and HP's My Networking Page doesn't seem to list this model.

I read that HP have incorporated the 3Com firmware into their own line but the ability to search by 3Com's models does not seem to have been car ...

Score: 0
PierreJ avatar
Assume platform performance based on Nginx - ngx_http_stub_status_module
cn flag

Nginx is placed in front of a microservice architecture on which we don't have any insight. We retrieve the metrics exposed by the http stub status and would like to compute an indicator of the platform performance: We cannot use latency on a load test as we want to compare geographically different sites.

What we tried so far:

  • Compute a delta of total requests per unit of time. Problem: it doesn't reflec ...
Score: 1
Greg avatar
Directory traversal fix for nginx config
in flag

I discovered that my website has this issue and I wasn't able to fix this. I tried several things like to checking if parent prefixed locations for Nginx alias directives end with a directory separator , but no luck so far. Merge_slashes on - is the default setting. I've read about AppArmour or SELinux. Is that the way to go? I have Ubuntu 18. In other words, I'm able to download this file http://ex ...

Score: 0
gzala avatar
Running tasks inside LXD container through ansible
lu flag

Trying to figure out the best way to get ansible to do its magic within the containers. Was thinking of using ssh in each container, but then that is server-dependent. or I have to come via the proxy which seems like more work than should be necessary. Again, I am already creating containers, deleting etc… I am talking about running commands within the container with ansible not via lxc exec container ...

Score: 0
Nikos Lazos avatar
How to change sysadmin credentials from command line for docker thingsboard/tb_postgres
nc flag

I have been locked out from sysadmin user in an docker installation of thingsboard/tb_postgres. The password restore option fails. So, since I can not access ths sysadmin environment, I am looking for a way to chance the sysadmin user from the cmd line or any other way possible. Please be kind enough to share your thoughts and guide me out of deadlock I am facing. Best, Nikos

Score: 0
gzala avatar
Ansible (SSH + LXD) plugin
lu flag

I have a setup of ansible and different server for LXD. Can anyone provide me the plugin that can be used to do stuffs inside LXD container through ansible like installing nginx or removing default ubuntu user.

Lxd version: 4 (ubuntu 20.04 LTS) Ansible version: 5(ansible-core 2.12) --> ubuntu 20.04 LTS

My tasks>main.yml looks like this.

- name: dynamic-site-host
  add_host:
    name: "{{ item.conta ...
Score: 0
vbscript avatar
OpenVPN: Only Allow Access Specific Client Network
ro flag

OpenVPN: Limiting Client Access to Specific Destination Clients I have two OpenVPN client (ovpn_dest1, ovpn_dest2) which run continuously and have a private network (10.60.10.0/24 & 10.60.20.0/24) which I want to access from two Windows OpenVPN clients.

The windows OpenVPN clients (ovpn_user1, ovpn_user2) however should only be able to access their respective networks (either 10.60.10.0/24 or ...

Score: 0
nginx setup with conditional reverse proxy for some routes
my flag

I have a laravel server fronting a wordpress hosted on another server. The laravel server is receiving all traffic. I would like to direct specific routes to the local index.php (laravel) and all others to the wordpress. Like this:

/a/* --> laravel server (localhost)
/b/* --> laravel server (localhost)
/* --> wordpress (separate server)

My nginx conf currently has this:

index index.html  ...
Score: 0
Prakash avatar
How Nginx Sends reuests?
mx flag

i am new to nginx and currently i am using nginx as a reverse proxy , we are using nginx to route the request to other urls , For example i have below code ,

location /test/rome/ {

   
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;

        #remove this line if you application does not depend
        proxy_set_header X-HttpRouter-REMOTEADDR  $remote_addr;

        proxy_pass  ...

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.