Recent Questions - Server Fault |
- What would be the best approach to upgrade docker from v1.13.1 to v19.03.11?
- Centos 7, HA postgresql12, patroni with etcd v3.4
- Error message BAD_GATEWAY on app engine
- How to add Jenkins agent to Jenkins master via docker- compose for CI/CD
- Exception Value: relation "django_session" does not exist
- Apache HTTP Server is running without no executable! How is this possible?
- How to secure rsyslog logging into MySQL
- How to connect to a ESXi server, for list of VM by command line with vmware.exe?
- Need help to block access ODBC Data Source Administrator for normal users in Windows AD via Group Policy
- Got django.db.utils.OperationalError: could not connect to server: Connection refused
- Requests to WAN IP are served by LAN interface on OpenWrt
- IP Configuration for a 10G Direct Link via NIC?
- Why can't I arping the direct broadcast of the LAN to populate the arp table?
- deploying on hosts with ansible based on yaml file
- Jenkins Server throws 403 while accessing rest api or using jenkins java client to create job
- missing '=' etcd when defining service file
- Linux: recover data from xfs
- Non-domain joined clients unable to query DNS
- Nginx reverse proxy with dynamic port forwarding
- How to connect to a vm on esxi by command line?
- zimbra export messages in tar.gz by ID
- pure-ftpd setup of pure-authd on Ubuntu (debian)
- Synology NAS - rsync messing up versioning / deduplication
- Large lag on mysql replication (Relay_Log_Pos and Exec_Master_Log_Pos does not increase)
- Tuning Garbage Collection in Apache Tomcat
- Packets not entering FORWARD chain
- large number of InnoDB tables plus SHOW TABLE STATUS
- SIOCSIFFLAGS: Resource or Device Busy
- AppCmd backup for IIS7 gives access denied error (hresult:80070005)
- What methods are available for updating a non-Internet-connected VMWare ESXi host?
What would be the best approach to upgrade docker from v1.13.1 to v19.03.11? Posted: 23 May 2021 10:44 PM PDT We use docker as a container runtime in kubernetes. Currently we are on K8s v1.19.7 but still using older version of docker v1.13.1, somehow we didn't upgrade docker with kubernetes. Now I am in a kind of situation where I have to upgrade to docker-ce v19.03.11, which is listed as a dependency with K8s v1.19.7. Can anyone help me and suggest a good approach for it? Can I directly upgrade to v19.03.11 or follow a certain path? Yes, I will be doing a POC first then implementing it in our actual env. |
Centos 7, HA postgresql12, patroni with etcd v3.4 Posted: 23 May 2021 10:37 PM PDT I followed this document but dont know how to enable v2 so that patroni can work with, can anyone help? https://computingforgeeks.com/setup-etcd-cluster-on-centos-debian-ubuntu/ |
Error message BAD_GATEWAY on app engine Posted: 23 May 2021 09:21 PM PDT I'm receiving this 502 and bad_gateway error on my app engine ,Can anyone resolve my issue and indicate what am I doing wrong? |
How to add Jenkins agent to Jenkins master via docker- compose for CI/CD Posted: 23 May 2021 08:50 PM PDT I'm newby in DevOps and trying to build CI/CD deployment using jenkins. But I totally stuck when started trying to write my own docker-compose file. My goal is: build and test an app (from github) on Jenkins agent using pipeline. I use docker-compose to build and run master and agent docker images. As I know: to add a new node to Jenkins, ssh key is required, but is there a way to add ssh key via a compose file (in addition: during the generating ssh key passphrase is also required)? Or it possibles if Jenkins GUI use? Also, is it possible to add Jenkins plugins (such as SSH Agent) via docker-compose to connect agent to master? |
Exception Value: relation "django_session" does not exist Posted: 23 May 2021 08:41 PM PDT I found a Django project and failed to get it running in Docker container in the following way:
I have the following Dockerfile: For I had to change: Next, I ran What did I miss? Thank you in advance |
Apache HTTP Server is running without no executable! How is this possible? Posted: 23 May 2021 08:08 PM PDT When I logged in to an EC2 instance created by someone else to host Apache HTTP Server I cannot run any of common Apache commands but the Apache is running: How is this possible? Where is the Apache executable? |
How to secure rsyslog logging into MySQL Posted: 23 May 2021 10:14 PM PDT I'm looking for a way to encrypt the traffic between our hosts and the logging host in our Debian universe. rsyslog uses the ommysql module and the server is already configured to accept the users' requests only by SSL ( I already tried to create a my.cnf for rsyslog. I provide it to the ommysql module via parameter The content of the my.cnf: (I first tried with Is there anything else I don't see? |
How to connect to a ESXi server, for list of VM by command line with vmware.exe? Posted: 23 May 2021 08:53 PM PDT I know I can connect directly to a ESXi VM from command line from vmware.exe and vmplayer.exe,with -H HOST -U "root" -P "P@55W0RD" "[datastore1] VM_001\vm001.vmx" but not to a Server; as, in "VMWare Workstation" with "connect to server" (File/Connect_to_server; CTRL+L), it will ask for address and credentials. Q. How can I pass the point-n-clicks or ctrl+L and connect just from a command line? screenshot |
Posted: 23 May 2021 05:41 PM PDT Users should not add/modify DSN in ODBC Data Source Administrator in Windows client so we need to block access ODBC Data Source Administrator for normal users in Windows AD via Group Policy. Please share your opinion for the same. |
Got django.db.utils.OperationalError: could not connect to server: Connection refused Posted: 23 May 2021 04:52 PM PDT I found a Django project and failed to get it running in Docker container in the following way:
I have the following Dockerfile: For I had to change: Next, I ran What did I miss? Thank you in advance |
Requests to WAN IP are served by LAN interface on OpenWrt Posted: 23 May 2021 03:44 PM PDT Here's the situation. I have OpenWrt installation with multiple zones:
After forwarding some port from Yeah, I could make duplicate for every forwarding rule but I really want to try to avoid it as there are already 10 of them. Thank you in advance |
IP Configuration for a 10G Direct Link via NIC? Posted: 23 May 2021 03:57 PM PDT I'm interested in setting up my 10G NIC, but am not sure 100% how to (OS: Manjaro KDE). The driver is detected: , but no IP address is assigned: How can I assign an IP address and complete the direct 10G connection between one computer and the other? Should I use the Strangely enough, the myri10ge driver package can't be found on the other Manjaro computer though. System Specs: |
Why can't I arping the direct broadcast of the LAN to populate the arp table? Posted: 23 May 2021 06:22 PM PDT I'm trying to write a simple network discovery for my linux 2.6 router. I'm testing arping which is bult inot busybox. I can't work out why sending a single request to the direct broadcast is not enough. So at this point I try: What am I missing here? I would expect all the devices within the LAN to answer the arp request but it doens't seems to happen. The only alternative I'm left is to send one arping per possible IP but this is extremely memory consuming considering the small device. So in a nutshell: how can I make a single arping command to request a full subnet to respond so that my arp table can be considered a reliable source of info when it comes to network mapping? Thanks! |
deploying on hosts with ansible based on yaml file Posted: 23 May 2021 06:22 PM PDT Developers are going to provide a yaml file with hosts in particular order (every deployment can differ, depend on needs) and each field in yaml file will have instructions for example install yum packages. I'm going to take this information and run ansible against every host with specific flags given in yaml file. What is the best practice in iterating through yaml file? Should I execute ansible-playbook against every field or should I use lookup function in ansible? |
Jenkins Server throws 403 while accessing rest api or using jenkins java client to create job Posted: 23 May 2021 05:02 PM PDT I am trying to create a job on Jenkins using java client (https://github.com/jenkinsci/java-client-api) by calling .createJob(String jobName, String configXml) . However, Jenkins server throws 403 forbidden error. Sample Code : Now, error I am getting : Jenkins Server security : When I select "Any user can do any thing", job creation is successful. However, when I select "Logged In user can do any thing", I am getting the above error. Moreover, even though I am sending correct user and password, with all permission to create job ( able to create a job using Jenkins web UI). What permission or setting change is required to achieve this. Thanks |
missing '=' etcd when defining service file Posted: 23 May 2021 10:30 PM PDT I'm struggling while following Kelsey Hightower's "Kubernetes the Hard Way" tutorial. I've gone off script, because I'm trying to bootstrap k8s on a local server. I've got the point where I'm bootstrapping etcd, however, when I'm creating the service I'm getting an error: Checking the logs and I get: Here's the etcd.service file: |
Posted: 23 May 2021 09:07 PM PDT I have a broken XFS filesystem on one of my HDD. I ran I tried to make a backup to a NTFS HDD via I am doing this from a Live-Ubuntu-Stick, because I was not able to see/mount the HDD via Windows and some tools for this use case (mounting XFS in Windows). Is there any way to access/recover my data from the incomplete image or directly from my HDD? Edit: My out from |
Non-domain joined clients unable to query DNS Posted: 23 May 2021 05:02 PM PDT I recently added a domain controller with DNS to our domain on a Windows Server 2016 Standard box. I changed the DNS Server from the scope options in DHCP to point to the new domain controller. On our Windows workstations joined to the domain everything works fine, and I confirmed that their DNS server was pointing to the new domain controller. They're able to resolve local and external DNS names. Non-domain joined clients on the network don't seem to be able to resolve any DNS names. For example, on my iPhone the DNS server is pointing to the new domain controller with DNS, but I'm unable to resolve any internal or external DNS name. I can ping the DNS server from the client. If I change the DNS server back to the old DNS server everything works fine. Again, windows workstations joined to the domain are behaving exactly as they should, but non-domain joined clients can't resolve any DNS names. How could I go about debugging the issue? |
Nginx reverse proxy with dynamic port forwarding Posted: 23 May 2021 10:02 PM PDT I'm setting up a reverse proxy on Nginx. I need it to listen to multiple ports. I then would like to hit the exact same port on the backend server. Like this: http://frontendserver:9000 -> http://backendserver:9000. Here's what I thought would work but, it gives me a 502 Bad Gateway error. Any clues why this is, or if there is another way of doing this that would work as explained above? If i change: to it works just fine, that of course defeats the purpose... |
How to connect to a vm on esxi by command line? Posted: 23 May 2021 05:29 PM PDT I want to connect to a vm running on an ESXi host by command line. With VmWare Workstation, i can use this command to start an view a local vm: With ESXi, i managed to connect to the host: But, how can i connect directly to a vm running on that host? |
zimbra export messages in tar.gz by ID Posted: 23 May 2021 08:09 PM PDT I need delete old messages from zimbra account. by command: I can recieve ID messages and I can delete message by ID But between these two command, I would like to save the message in. tar.gz |
pure-ftpd setup of pure-authd on Ubuntu (debian) Posted: 23 May 2021 10:02 PM PDT I am tryig to set up pure-ftpd on an Ubuntu 12.04 and have it work with the pure-authd. I have created a user and group, gotten the authd daemon running. I also have a script ready to go that will work fine doing the custom auth for the daemon. However, I can't see how to get pure-ftpd to use the authd authentication method. I see that the config options are set in /etc/pure-ftpd/conf as individual files with the values as the values of the settings. I have searched extensively and have not found out how to get pure-ftpd to use authd instead of one of the other auth options. Could anyone point me to what flag or setting to use to get this to work? UPDATE Here is what I have done so far to get things much further than before
|
Synology NAS - rsync messing up versioning / deduplication Posted: 23 May 2021 04:04 PM PDT Is it true that Synology DSM 4.3's default rsync implementation is not able to handle "vast" amounts of data and could mess up versioning / deduplication? Could it be that any of the variables (see detailed info below) could make this so much more difficult? Edit: I'm looking for nothing more then an answer if the above claims are non-sense or could be true. Detailed info: At work, we've got an Synology NAS running at the office. This NAS is used by a few designers where they directly work from. They have projects running which consist of high resolution stock photos, large PSD's, PDF's and what not. We have a folder which is approx. 430GB in size which only consists of the currently running projects. This folder is supposed to be backupped in a datacenter, weekly through our internet connection. All of our IT is being handled by a third party, which claims that our backup is beginning to form a certain size ("100GB+") where the default implementation of the DSM (4.3) rsync is unable to handle the vast amount of data to the online backup (on one of their machines in their datacenter). They say the backup consists about 10TB of data because rsync has problems with "versioning / de-duplication" (retention: 30 days) and goes haywire. Because of this, they suggest using a "professional online backup service", which cranks up our costs per GB to the online backup significantly. |
Large lag on mysql replication (Relay_Log_Pos and Exec_Master_Log_Pos does not increase) Posted: 23 May 2021 09:07 PM PDT Today my two slave's (one mysql 5.1 and second MariaDB 5.5, master is mysql 5.1) started lagging. Similar situation are quite often with lags rises to even 10000 seconds, because slaves have worse hardware configuration then master but now I'm quite stressed. Lags on both server are still rising and at this point it reches 25K seconds behind master. So I started investigating what is going wrong. Getting through mysql logs on master and slave gived me nothing. Servers are on Centos 5 and Mariadb is on Centos 6. This is output from MariaDB slave status: MariaDB [(none)]> show slave status\G *************************** 1. row *************************** Slave_IO_State: Waiting for master to send event Master_Host: masterserevr Master_User: slaveuser Master_Port: 3306 Connect_Retry: 60 Master_Log_File: mysqld-bin.006778 Read_Master_Log_Pos: 401041447 Relay_Log_File: relay-bin.020343 Relay_Log_Pos: 14867924 Relay_Master_Log_File: mysqld-bin.006777 Slave_IO_Running: Yes Slave_SQL_Running: Yes Replicate_Do_DB: Replicate_Ignore_DB: ses,phar Replicate_Do_Table: Replicate_Ignore_Table: portal.aaa_jm_tmp,portal.newsletter Replicate_Wild_Do_Table: Replicate_Wild_Ignore_Table: Last_Errno: 0 Last_Error: Skip_Counter: 0 Exec_Master_Log_Pos: 14867639 Relay_Log_Space: 1474785535 Until_Condition: None Until_Log_File: Until_Log_Pos: 0 Master_SSL_Allowed: No Master_SSL_CA_File: Master_SSL_CA_Path: Master_SSL_Cert: Master_SSL_Cipher: Master_SSL_Key: Seconds_Behind_Master: 26484 Master_SSL_Verify_Server_Cert: No Last_IO_Errno: 0 Last_IO_Error: Last_SQL_Errno: 0 Last_SQL_Error: Replicate_Ignore_Server_Ids: Master_Server_Id: 1 1 row in set (0.00 sec) From few outputs I noticed that Relay_Log_Pos and Exec_Master_Log_Pos does not increase. I tried to restart slave processes but that changed nothing and lags still increase. Next step was to see on what query replication has stopped. Using mysqlbinlog relay-bin.020343 > /root/RelayLogQueries1.txt In RelayLogQueries1.txt I founded position 14867924: # at 14867924 #130927 10:03:21 server id 1 end_log_pos 14867709 Query thread_id=160780134 exec_time=3 error_code=0 SET TIMESTAMP=1380269001/*!*/; /*!\C utf8 *//*!*/; SET @@session.character_set_client=33,@@session.collation_connection=33,@@session.collation_server=9/*!*/; BEGIN /*!*/; # at 14867994 # at 14868101 # at 14868669 # at 14869417 # at 14869873 # at 14870663 # at 14871697 # at 14872055 # at 14872845 # at 14873747 # at 14874591 # at 14875387 # at 14876265 # at 14877039 # at 14877985 # at 14878299 # at 14879091 # at 14879853 # at 14880255 # at 14881029 . . . # at 117398235 # at 117399219 # at 117400203 # at 117401191 # at 117402179 # at 117403167 # at 117403969 # at 117404957 # at 117405945 # at 117406933 # at 117407921 # at 117408909 # at 117409897 # at 117410885 # at 117411873 # at 117412861 # at 117413849 # at 117414837 # at 117415785 # at 117416797 # at 117417839 # at 117418595 # at 117419585 #130927 10:03:21 server id 1 end_log_pos 14867816 Table_map: `test`.`pac_list` mapped to number 216570427 #130927 10:03:21 server id 1 end_log_pos 14868384 Update_rows: table id 216570427 #130927 10:03:21 server id 1 end_log_pos 14869132 Update_rows: table id 216570427 #130927 10:03:21 server id 1 end_log_pos 14869588 Update_rows: table id 216570427 #130927 10:03:21 server id 1 end_log_pos 14870378 Update_rows: table id 216570427 #130927 10:03:21 server id 1 end_log_pos 14871412 Update_rows: table id 216570427 #130927 10:03:21 server id 1 end_log_pos 14871770 Update_rows: table id 216570427 #130927 10:03:21 server id 1 end_log_pos 14872560 Update_rows: table id 216570427 #130927 10:03:21 server id 1 end_log_pos 14873462 Update_rows: table id 216570427 . . . Now I'm confused because first I have no idea how to interpret this log (is it ok or wrong), and second don't know how to fix this. Sometimes when I get some replication errors this trick was helpfull : SET GLOBAL SQL_SLAVE_SKIP_COUNTER=1; START SLAVE; But now I have no errors and both IO and SQL slave proceses are running. Could setting SQL_SLAVE_SKIP_COUNTER=1 bring back replication on?? What can I do to diagnose more this problem and fix it without setting replica from scratch (that last one scenario I want avoid ) EDIT: The lag startet when one of developers accidentaly copied one of tables pac_list (200MB with 600000 records) and he copy named it test.pac_list (it has dot in table name) he want to create copy in database test but he did something wrong and createt table test.pac_list in the same database the orginal table is. After he find out his mistake he droped table test.pac_list and created tables pac_list in new database. Could this be reason of such big lag? |
Tuning Garbage Collection in Apache Tomcat Posted: 23 May 2021 06:07 PM PDT I have the following parameters in tomcat6.conf but at peak time I see the following regularly, is there any parameter I can use to to tune tomcat performance or GC ? |
Packets not entering FORWARD chain Posted: 23 May 2021 06:07 PM PDT first of all, this is not an every-day routing issue. The setup is fairly complex, so let me state it before. I got a router with, lets keep it simple, 3 interfaces. eth0, eth1, eth2. eth2 is used for pppoe. eth0 & eth1 have the clients. Okay so far so good, all basic.. Now here comes the tricky thing: I create a bunch of macvlan-interfaces on top of eth0 and eth1, the name schema is: This I got for every uplink I provide, lets say 3, 1 pppoe and 2 VPNs. These are then merged into bridges named after the gate. So far we got these interfaces: As I said, a bunch of interfaces... Notice that an uplink can be advertised over several physical interfaces, thats why we got the bridges. Alright now lets take a look at the routing rules: Okay this is not so spectacular, obviously, it only checks what FWMARK a pkg has and pushes it to the according table. The routing tables: 200: 201: 202: Okay the IPs are just for to fill the gaps, you should be familiar with the syntax ;) Right now we got the routing tables, routing rules and the interfaces - but we're missing out the pkg marking, so this is being done in iptables: Okay for explanation, we mark all pkgs comming in our bridges with the right value for the routing rules. Now I also had to do some tweaks in The Now NAT'ing: All default policies for iptables are
I got Any ideas why? Addition I: I placed a Addition II: After some playing around with the rules,tracing,promisc,... I noticed that I see the data getting in on Why does my bridge-interface do this? |
large number of InnoDB tables plus SHOW TABLE STATUS Posted: 23 May 2021 08:09 PM PDT We've got several hundred InnoDB tables in a database, and we use phpMyAdmin to manage them. Unfortunately, phpMyAdmin does a This seems to lock up the entire database, which subsequently means all other queries to this (busy) database all queue up until the database hits the max users.
|
SIOCSIFFLAGS: Resource or Device Busy Posted: 23 May 2021 04:04 PM PDT Have a Dell PowerEdge 2350 with dual nics built into the motherboard. eth0 works fine. Setting up an IP under eth1 results in the error: "SIOCSIFFLAGS: Resource or Device Busy". I have two identical 2350s and get the same error on eth1 for both servers. The server OS is CentOS. Help greatly appreciated. |
AppCmd backup for IIS7 gives access denied error (hresult:80070005) Posted: 23 May 2021 08:50 PM PDT I have a script I have been using on another Windows 2008 to delete the IIS7 backup of configs and create a fresh one: But on a new Windows 2008 server, I get an access denied on the delete: I have UAC turned off and pretty much copied all the settings from the old server (including user role being an admin). What am I missing? |
What methods are available for updating a non-Internet-connected VMWare ESXi host? Posted: 23 May 2021 09:34 PM PDT I have a stand-alone installation of VMWare vSphere Essentials, with a vCenter Server and 3 ESXi 4.0 host servers. The environment is intended to remain as a stand-alone network, with the exception that I can "float" a workstation or server between the 'Net and the VMWare network for patches and maintenance. With other installations, where the Internet is available, I've used the vSphere Host Update utility to connect to VMWare and then apply the patches to the ESXi hosts. My problem is that this utility does not seem to function if it cannot connect to both VMWare and the ESXi host at the same time, as the scan for patches function will not scan the server without connecting to VMWare's site to sync its repository first. Even if I sync it, disconnect from the 'Net and connect to the VMWare network, it still won't scan hosts for required patches -- it will prompt for syncing with VMWare and if you click No to syncing, the scan does not occur. Does anyone know of other options for updating the ESXi hosts in some automated fashion? I believe I can manually pull down required patches and apply them, but this will not scale well, and in the future I'm sure I'll want something a bit more scalable. |
You are subscribed to email updates from Recent Questions - Server Fault. To stop receiving these emails, you may unsubscribe now. | Email delivery powered by Google |
Google, 1600 Amphitheatre Parkway, Mountain View, CA 94043, United States |
No comments:
Post a Comment