question_id
int64
1
1.16M
title
stringlengths
10
191
question_body
stringlengths
6
2k
answer_body
stringlengths
0
2.5k
tags
stringclasses
73 values
question_score
int64
-15
1.65k
answer_score
int64
0
2.91k
view_count
int64
4
1.24M
creation_date
stringdate
2008-08-01 18:45:00
2025-06-19 04:44:02
category
stringclasses
12 values
source_site
stringclasses
8 values
295,619
ORA 600 and 7445 after upgrade from 18 to 19C
I'm getting errors ORA 600 and 7445 in alert log after upgrading Oracle from 18 to 19C, the error mostly occurs on merge statements, below is the error message: [CODE] I did some search so I have disabled online stats gathering: [CODE] The other workaround is to edit application codes to add hints to the merge statemen...
ora-0600 is, by definition, an 'unhandled exception'. AKA, "you hit a bug" It is an umbrella error code that can mean just about anything. The only real resolution is to open an service request with Oracle Support. Before actually opening an SR, you can search My Oracle Support for 'ora-0600', which will lead you to a ...
-1
1
193
2021-07-14T00:07:42.837
database_errors
dba.stackexchange.com
164,361
Cannot alter files created by apache/php
I am running Fedora Core. I have a user /home/john/public_html/... when a php script creates a file, the permissions get set to apache.apache so I cant exit the file through my FTP client without fist logging in a Root and manually changing the permissions to john. What is the best way to solve this?
You can set the permissions on the files to 0666 within your PHP code - but this is not a very neat solution. A more restrictive approach which works for me is to to add the webserver uid and the users requiring access to a common group (e.g. webdev) then setting the group sticky bit on the upload directory and adding ...
0
2
83
2010-07-27T07:48:02.637
infrastructure
serverfault.com
34,417
MySQL InnoDB logfiles resized - review mysql-err.log for potential problems
I restarted mysqld this morning, to increase the size of the innodb logs and increase the amount of memory allocated to the innodb buffer pool. (MySQL 5.1.53-Community on Ubuntu) To increase the size of the innodb logs, I modified the my.cnf file, stopped mysqld, renamed the existing innodb log files, and then started ...
It is sort of yes and no. Why would I say both? There are still some transactional data embedded in the old ib_logfiles in conjunction with the ibdata1 file. (See pictorial representation ) What you should have done is this: [CODE] If you did not know of disabling innodb_fast_shutdown , ther you steps should have been ...
1
1
2,528
2013-02-08T15:46:01.970
database_errors
dba.stackexchange.com
226,722
pop.gmail.com custom CNAME redirect own DNS record (Google Apps)
I've been searching everywhere to see if there's a way to get your own URL for Google Apps imap/pop, so users can enter pop.xxxx.com as POP server to get their google apps mail When I try a CNAME redirect I get a Certificate error in Mail.app [CODE] any suggestions? thanks! :)
The subject for the certificate used on pop.gmail.com:995 is [CODE] There is nothing you can do to change that. If you are accessing pop.gmail.com using any other name, a client will display a certificate error. If Google wanted to allow you to use a different name, they would have to allow you to supply your own certi...
0
1
1,903
2011-01-25T17:06:42.293
infrastructure
serverfault.com
541,707
Cannot access Cisco ASA-5505 ASDN
I just got my network up-and-running. I would like the ASDN for some of my minions to be able to make minor changes without the need to contact me. This said, I have tried to enable it, and access it, and it seems that I have mis-configured it. Can anyone see what is wrong with the following config, that I can't access...
Try to use [CODE] should work with the config you pasted.
0
2
111
2013-09-26T00:40:46.360
infrastructure
serverfault.com
112,080
Downside of Damn Small Linux as a Web Server
When running DSL as a desktop, my memory usage rarely hits 96megs (with FF and terminal open), yet my ubuntu servers all running LAMP stacks will hit 128mb whith no traffic (when traffic does pickup, they will reach into the 500+ meg area). Are there any gotchas with using damn small linux as a web server?
Well first off you're comparing the memory usage of DSL desktop running FF and a terminal to a server running MySQL and multiple Apache processes. When you say 500mb does that include the cache? Linux will use all the memory available as unused memory is wasted memory. So if you have 512mb of ram in the system I would ...
2
5
3,242
2010-02-11T22:49:36.093
api_errors
serverfault.com
156,993
How can I fix this unexpected Windows Event Log message which appears whenever a database with FILESTREAM is created or restored?
We have recently noticed that whenever we create or restore a database with FILESTREAM enabled, a message like the following is added to the System Event Log: The description for Event ID 1006 from source RsFx0320 cannot be found. Either the component that raises this event is not installed on your local computer or th...
It could be two things. If you have Windows 10, Creators update, there is a patch for the SQL Server. In all other cases this fixed the error for me: [CODE]
3
1
2,944
2016-12-02T11:18:56.820
data_quality
dba.stackexchange.com
8,877
How to detect a web server without the server header
LATER EDIT : Could it be that IIS is not case sensitive for URLs and Apache is and someone could use this information to further increase the confidence factor in OS/WebServer detection? I was reading about the useful UrlScan tool here and came across IIS 6.0 does not include the RemoveServerHeader feature because this...
Similar to OS detection , each web server has slight quirks and different behaviors under some conditions that can be detected. I don't know the precise methods of the top of my head. This is frequently done by sending invalid or unusual requests and seeing what the error message or the response is. Apache might handle...
2
7
4,762
2009-05-16T08:29:19.953
infrastructure
serverfault.com
937,626
Migrating content between domains with Nginx
I have two domains: domain1.com and domain2.com I'm trying to migrate from domain1.com to domain2.com with a redirect. but domain1.com and kf.domain1.com are serving the content (200 code) of domain2.com and the cert from domain2.com. I've tried multiple combinations of things, I've trying putting the redirect in the s...
The problem is a typo in the port number, 433 should be 443.
0
1
111
2018-10-29T03:06:29.043
infrastructure
serverfault.com
131,938
How to stop the development spec from changing in mid development?
Problem : It seems with almost every development effort I'm involved in, no matter how much time is spent planning prior to starting development, there is always a large amount of changes required either midway or towards the end of the project. These are sometimes big changes which require alot of re-development. I do...
There's a famous military saying, attributed to Helmut von Moltke: "No battle plan survives contact with the enemy". In the same vein, I do not think it's possible to make a spec that will not have to be changed - not unless you can predict the future and read minds of the stakeholders (even then they may not have yet ...
60
88
6,672
2012-01-26T09:18:19.130
api_errors
softwareengineering.stackexchange.com
78,102
Oracle - WHY do an ORDER BY for INSERTs AS SELECT?
I have an application that was migrated from MSSQL to Oracle 11G. It needs re-design but that's outside the scope of the project. In short, the application gets legacy data, builds a parent table from it, then creates extract tables from those two tables. The extracts are used by Oracle BI EE as fact tables. What I don...
It can make sense to insert data in order. There's lots of caveats to this though. If the data isn't frequently updated and if you're using certain types of tables or indexes (e.g. IOT, clustered indexes). Being in order means that if you're doing a range scan of the ordered column (e.g. [CODE] ) then the data is more ...
1
3
1,948
2014-10-01T00:51:04.627
database_errors
dba.stackexchange.com
78,587
How do I Continue After a Failure in SSIS
I want to implement something like the following: In this package, I want to loop through a list of database names, dynamically modifying connection manager settings. However, the first failure on "Test Connection" will halt and fail the package execution. But I'd like to continue my Foreach loop. I get the sense that ...
To answer the question as I asked it, it is possible to continue after failures by making sure that MaximumErrorCount is zero for the task and its parent containers... In this case that means the "Test Connection" task, the "foreach" container and the package itself. I ended up doing something different though. And Jam...
14
14
18,719
2014-10-07T14:22:33.983
warehouse_errors
dba.stackexchange.com
50,572
pt-online-schema-change tool will work for existing triggers for a table?
I have a table name "user" ,I have tried to do partition the table and it was having a trigger already. When i have tried to alter the table with pt-online-schema-change.It was showing the below error. "The table [CODE] . [CODE] has triggers. This tool needs to create its own triggers, so the table cannot already have ...
According to the documentation, the tool accomplishes its magic of keeping the old and new tables in sync while the copy process is happening via the creation of its own triggers and is therefore not compatible with tables already using triggers no matter what kind of change you intend to make. Any modifications to dat...
3
3
1,346
2013-09-26T14:06:37.497
warehouse_errors
dba.stackexchange.com
559,218
OpenVPN split tunel
I've been trying to set up vpn just for one specific ip address. What I want is to have so all traffic that is sent to single ip ( 1.2.3.4 for now ) would go through openvpn client. My current network setup is as follows: My computer ( connected to 192.168.1.1 ) My server Server has 2 network devices: 2.1. eth0 - conne...
You can start by adding the [CODE] option to your client configuration. By doing no routes will be changed on your client machine. After that you can add route statements to your OpenVPN config to setup any static routes that are required for specific hosts or networks. You might add something like [CODE] to your confi...
0
0
1,483
2013-12-04T17:29:18.227
infrastructure
serverfault.com
449,016
Should I split backend into legacy and modern app to make the rewrite feasible?
My vanilla PHP backend app needs to be rewritten due to very poor design and lot of unstructured code. The legacy app is very large and the team small, so doing full rewrite in limited time is quite risky. I need to introduce PHP framework into the codebase and as a result the design of almost everything will change (r...
What would the situation be if you did nothing - that is, neither split the codebase nor rewrote the whole, and just worked within the legacy framework? It sounds like you don't have the resources for a full rewrite as a single unit of work, so there will have to be some kind of transition process if you introduce this...
0
5
246
2023-12-08T11:26:53.073
api_errors
softwareengineering.stackexchange.com
543,768
NFS mount with file locking not possible any more after move to new subnet: statd timed out, lockd cannot monitor
I'm operating an Ubuntu 10.04 NFS Server with LDAP user authentication on a virtual machine in Subnet A. The server exports the users home directories with nfs v3 to ubuntu clients in subnets B and C. The server has other services runing, that shouldn't matter for my problem at the moment. Everything worked fine for se...
If you want to use locks with NFS (and one really should!), your server must provide a RPC server where the clients can connect to. This is for coordinating locks. Verify that the RPC server is running. If so, there must be something else blocking the communication between your clients and the RPC server. Since you see...
2
1
4,285
2013-10-04T09:29:30.453
api_errors
serverfault.com
409,617
How to avoid duplicate data validations ( checks ) in web applications?
I'm learning about Software Architecture and especially about scaffolding large-scale architecture and patterns for modern web applications. I've noticed that I don't have a pattern for data validation or rules , sometimes I add [CODE] or [CODE] in client-side layer and others in the server-side or by adding requiremen...
Validation should always take place server-side. You can't trust the client to do the right thing. There are various kinds of validations, and various places those validations can occur depending on your architecture. For example, validating domain fields such as social security numbers and customer IDs generally takes...
1
2
873
2020-05-02T23:51:56.703
database_errors
softwareengineering.stackexchange.com
166,484
How do I set MySQL's "character_set_server" and "collation_server" variables when creating a database?
I'm using MySQL 5.5.37. How do I set the default "" and "" variables of my database when initially creating my db? I'm logged in as the root user but my command is not cutting it, as you can see below [CODE] Notice that "character_set_server" is set to "latin1" and "collation_server" is set to "latin1_swedish_ci" despi...
Stick these in the [CODE] section of your MySQL config file: [CODE] The documentation for this is here .
3
4
20,630
2017-03-07T20:14:07.113
database_errors
dba.stackexchange.com
873,075
Redhat 7: Nginx Sites Available
I'm trying to use the ubuntu framework in redhat but it always has this error: could someone tell me a solution? " [CODE] " directive is [CODE] here in /etc/nginx/sites-enabled/default:3 [CODE] nginx.conf [CODE]
You have to make sure that each file you include only contains statements that are valid at the position in the main config file where the [CODE] statement is located, as this statement is literally replaced with the contents of the named file(s). If the first block you listed is indeed your [CODE] (this is not clear!)...
0
3
839
2017-09-11T16:22:57.317
infrastructure
serverfault.com
12,188
Classification technique for unsupervised data?
I have unsupervised data (i.e this data doesn't have any target variable through which I can learn it's prior behaviour) it is a mix of continuous and categorical data. Now I want to classify the test data into three categories on basis of my unsupervised data. The approach I took is to first do the clustering of unsup...
You have many options of algorithms to use for classification of unsupervised data. This is a very broad topic, but if you need a specific algo recommendation, try to see if self-organizing maps (SOM) may help with your specific problem. In R, try the [CODE] package. K-means is another popular clustering algorithm. No ...
5
1
984
2016-06-14T07:46:25.090
data_quality
datascience.stackexchange.com
22,789
Troubleshooting Failed SQL login from WMI service
Every 5 minutes I have a couple of failed login attempts from a Biztalk server to the SQL server. Login failed for user 'DOMAIN\SERVER01$'. Reason: Token-based server access validation failed with an infrastructure error. Check for previous errors I traced the failed logins to back to a service on the Biztalk server. T...
tracing WMI activity http://msdn.microsoft.com/en-us/library/windows/desktop/aa826686%28v=vs.85%29.aspx Logging WMI activity http://msdn.microsoft.com/en-us/library/windows/desktop/aa392285%28v=vs.85%29.aspx
3
1
660
2012-08-20T17:16:43.207
data_quality
dba.stackexchange.com
18,535
SQL Server Rebuild/Reorganize Fragmented Indexes causes CRC error or consistency errors
In our test lab I've been experimenting with different jobs to keep our critical indexes from becoming too fragmented. I'm currently using the approach described here: sys.dm_db_index_physical_stats (under the Examples -> D section: Using sys.dm_db_index_physical_stats in a script to rebuild or reorganize indexes). Bas...
The operating system returned error 23(Data error (cyclic redundancy check).) to SQL Server during a read This indicates the operating system detected an issue reading data from the hard disk itself. When data is written onto the filesystem, the operating system calculates a CRC code for each block written; when that d...
3
3
7,974
2012-05-29T21:04:10.840
database_errors
dba.stackexchange.com
347,036
Very often database PostgreSQL for my webapp fails
I have web application like [CODE] This web application is located on amazon free tier instance ( http://aws.amazon.com/free/ ) and very often from 2 to 3 times a month PostgreSQL falls. Below is a log from instance: [CODE] Else on Amazon CloudWatch Monitor in Network Out Trafic I saw the maximum peak load. What's the ...
I guess the log is pretty clear: the Linux kernel killed your PostgreSQL instance, because it ran out of memory. This is a standard feature of the Linux kernel - whenever it runs out of memory, instead of trashing all the applications, it chooses one of them to terminate. More info: http://linux-mm.org/OOM_Killer You m...
0
3
354
2012-01-04T19:22:46.143
database_errors
serverfault.com
645,911
How access remote network with OpenVPN?
I am currently trying to configure OpenVPN to access our company network remotely. I was able to establish a connection and ping the server at the configured address (10.8.0.1), but I was not able to access the network at the server side from clients. The server is configured to push routes to the server with: [CODE] w...
Routes on both sides of the VPN tunnel are required. Also IP Routing must be enabled on the server. For example on Windows 7: [CODE] Lets assume the following IPs and subnets: Client side subnet [CODE] Client IP [CODE] Client VPN IP [CODE] Server side subnet [CODE] Server IP [CODE] Server VPN IP [CODE] Keys Create a se...
4
2
13,702
2014-11-20T18:57:54.713
infrastructure
serverfault.com
391,553
How to avoid confusion with possible referenced before assignment when it won't be (Python)
I have some code equivalent to this: [CODE] On the last line it will appear as though [CODE] might be referenced before assignment, even though it won't be. This leads to code which isn't very readable. How can I avoid this?
Along the lines of what Phillip Kendall pointed out you should probably do something more like this: [CODE] Boolean flags are sometimes a valid option but I find that if you can find a way to avoid using them without duplicating code, you should. They make things much harder to reason about. For example I'm not sure wh...
1
3
116
2019-05-07T16:04:42.057
api_errors
softwareengineering.stackexchange.com
117,868
Measure distance between teeth using Machine Learning
I'm a newbie in ML and I have a problem I am stuck on. I want to train a ML model to recognize dental diagnosis based on photos and x-rays of the patient. Specifically right now, I want to find a way to measure the overbite . It is defined as The length on the bottom tooth that is covered by the top tooth So if my top ...
I am unsure why you need to approach this as a classification problem. Because the images seem like they will be so consistent, I think I would try to break this down into very interpretable steps. If you were doing this manually the steps would be something like this: Find the ruler and perform some calibration . In o...
3
3
316
2023-01-18T20:15:32.707
data_quality
datascience.stackexchange.com
430,138
Why VM snapshots are affecting performance?
I read in one of the VMware KB articles that snapshots will directly affect VM performance. But my team keeps asking me how snapshots can affect performance. I would like to give them solid reason behind the statement the snapshots are performance killers. Can anyone explain a little bit theory about how snapshots are ...
When you create a snapshot, the original disk image is "frozen" in a consistent state, and all write accesses from then on will go to a new differential image. Even worse, as explained here and here , the differential image has the form of a change log, that records every change made to a file since the snapshot was ta...
29
30
49,467
2012-09-20T06:32:49.307
infrastructure
serverfault.com
994,774
How to restart apache2 server
I'm unable to run [CODE] on my sever. Inorder to troubleshoot this when I execute [CODE] and I get the following log. [CODE] How can I resolve this issue ? NOTE : the actual domain name is replaced with domainname .
Some other process is already using port 80. To find out what process it is do a [CODE] In the right column of the output you will see the name and id of the process blocking the port. In order to be able to start the apache2 service you have to stop (or [CODE] ) it.
0
1
3,180
2019-12-08T10:35:40.167
infrastructure
serverfault.com
343,414
Rsync without password and different port to rssh shell
i was trying to Rsync without password to rssh shell using [CODE] and [CODE] but i couldn't got the following message [CODE] and that because the only working comand at rssh shell is rsync but how could i made rssh shell working without password ? thanks
Try [CODE] to publish your key. ssh-copy-id is just a really basic shell script that copies your key file to the remote server. There is no magic. If there is already an authorized_keys file on the remote server, then download it, modify it and re-publish using rsync.
1
2
1,502
2011-12-22T10:57:59.507
infrastructure
serverfault.com
773,308
Proftpd different chroot for specific ldap group
I am authenticating a ProFTPD (with [CODE] ) instance with a LDAP server. I want to have the following setup: A chroot for all users to [CODE] . (This works). Now I would like to chroot specific LDAP groups to a different folder under [CODE] . For example, users who are in the LDAP group "external" should only see [COD...
ProFTPD's [CODE] directive can take an optional group expression , which says whether to apply the [CODE] to that user (based on their group membership), or not. For example, you might use: [CODE] The first [CODE] says to chroot users to [CODE] if they are members of group "external". Otherwise, do nothing. The second/...
0
0
2,313
2016-04-27T14:49:26.187
infrastructure
serverfault.com
1,013,129
mysqldump using a lot of space
I have a server and the [CODE] partition is 20GB in size. Databases are stored in [CODE] partition is 500GB in size. Now here's the problem. Whenever I run [CODE] it fills up [CODE] partition to 100%. I have already moved the [CODE] to [CODE] . My databases are around 40GB all in-all now I want to back them up in [CODE...
OK, I was able to solve this problem by moving the s3bucket cache dir from [CODE] to [CODE] . Little did I know that [CODE] was writing to [CODE] and there's no way to track which file is growing using [CODE] the code I was running was [CODE] where s3share is mounted using [CODE] and has a cache directory targetting [C...
1
1
1,371
2020-04-20T03:49:11.317
api_errors
serverfault.com
158,883
Azure SQL Warehouse - Data Ingestion - Convert a huge fixed width (with commas) file to delimited
I am not even sure if I am framing this question right, but I will try - I have a bunch of huge text files generated from an Oracle export on a Linux system. Each file is about 30 GB in size, and I have about 50 of them. The goal is to export this data to Azure SQL Data Warehouse. BCP in this case is not the right appr...
I ended up using sed to cleanse the file [CODE] This took care of formatting issues with the source files. Once these files were uploaded to Azure blob storage, the rest was easy. I created external table pointing to files on blob via Polybase and then created internal tables by using [CODE] . An Azure DWH instance wit...
5
2
1,983
2016-12-22T05:56:49.770
database_errors
dba.stackexchange.com
33,733
Mysql not closing connections
I have a Java application that configured with a connection pool. I have ensured that the application terminates the connections properly. However when I run this command on mysql command line - [CODE] Why does mysql keep the connections open when they have been terminated from the client? The contents of [CODE] file a...
According to MySQL documentation the Connections status variable shows "The number of connection attempts (successful or not) to the MySQL server." This means that it does not represent current open connections, but all connection attempts since the server has been started. The variable showing number of current open c...
2
4
10,215
2013-01-29T11:51:01.507
database_errors
dba.stackexchange.com
191,679
Exporting/Importing data from SQL Server 2014 to PostgreSQL 9.5 with tab delimited files
Not sure if anyone has run into this problem before and I am going a little bit crazy. I am exporting a table from SQL Server 2014 using BCP to a tab delimited text file and then uploading the file to PostgreSQL 9.5 using COPY. [CODE] This works fine. [CODE] It looks to me like COPY doesn't recognize the tab, even thou...
(CSV is not a good option for me because of the text has commas in it and from what I am reading PG doesn't like double quotes) Sure Pg accepts double quotes. See [CODE] QUOTE Specifies the quoting character to be used when a data value is quoted. The default is double-quote. This must be a single one-byte character. T...
2
1
1,433
2017-11-24T20:10:36.610
database_errors
dba.stackexchange.com
769,404
Ansible & rbash
I want to manage a bunch of devices running [CODE] as the default shell with Ansible. The problem is that Ansible always tries to execute a list of commands that [CODE] doesn't like at all: [CODE] Any ideas how can I avoid this commands? To clarify: I want to change the shell Ansible uses, and there is only one user av...
Hmm. I think you can get around this with ansible's raw module . Remember that while rbash is a restricted shell, it's entirely possible to start an unrestricted subshell; it's meant more to prevent accidents than to provide security. So this is what I would do. I've tested this and confirmed it successfully changes a ...
1
8
1,141
2016-04-11T08:23:09.043
pipeline_ops
serverfault.com
558,631
Unable to access Jenkins server
I'm trying to install Jenkins on my web server, which is an Ubuntu 13.10 server running on an Amazon EC2 instance. I've restarted Jenkins using [CODE] When I check my processes with [CODE] I can see multiple items running with the following descriptions: [CODE] The server doesn't want to allow me to access this install...
EDIT 2 If running Jenkins on an Amazon EC2 instance, try setting [CODE] to [CODE] . You may not be able to bind the public interface IP directly. EDIT 1 Check [CODE] instead if you installed directly from the [CODE] package. It appears Jenkins is listening on localhost ( [CODE] ). In this configuration, Jenkins is not ...
10
7
54,409
2013-12-02T10:20:14.617
api_errors
serverfault.com
432,004
What makes a data pipeline scalable? Best practices for scalable design?
I have been searching about this topic for a few days and have not yet found anything on books, courses or tutorials. What is a way to make data pipelines more scalable, that doesn't involve NoSql or major investments like hadoop clusters? Most of our pipelines are currently made with Python. They're pretty simple in n...
Its hard to point at one part of the data pipeline as the possible bottle neck that will prevent it from scaling. I am not sure if this is already being done, but running the Python application as a FaaS where it can scale up and down based on load could help. Or having multiple instances of the python application runn...
1
1
450
2021-09-17T15:25:00.537
data_quality
softwareengineering.stackexchange.com
357,064
Unit testing when you have no getters and setters
I'm a student and I'm learning about domain driven design. From my reading, an important part is removing the getters and setters from a class (thus keeping the implementation of that class private). My question is how can you do unit tests for this class. Consider the following example: [CODE] How can I test the Accou...
How can I test the Account class, or event the Money class? This question has a couple of different flavors of answer. The most straight forward answer is that we are using the domain model manage change to a data model . That [CODE] came from somewhere, and the motivation for invoking [CODE] is to change that specific...
1
1
4,662
2017-09-08T20:37:48.303
api_errors
softwareengineering.stackexchange.com
302,844
How will React 0.14's Stateless Components offer performance improvements without shouldComponentUpdate?
This question has been going round and round in my head since I read the release notes (and other related hype) around React 0.14 - I'm a big fan of React and I think that stateless components ( https://facebook.github.io/react/blog/2015/09/10/react-v0.14-rc1.html#stateless-function-components ) are an excellent idea, ...
There is a github issue in the react project about exactly this. According to this github issue comment: For complex components, defining shouldComponentUpdate (eg. pure render) will generally exceed the performance benefits of stateless components. The sentences in the docs are hinting at some future optimizations tha...
8
4
1,198
2015-11-17T20:21:22.080
api_errors
softwareengineering.stackexchange.com
797,701
Windows apache 2.2 main virtual host yields 403
OK, I've figured this out for Apache 2.4 and there are several others like this on Google so I've tried the other solutions and still cannot get at least the main working Drupal site into its virtual host. So the first grouping shows the working httpd.conf with the parts that would be changed for the virtual host. Sinc...
Can you access your 'bob.myschool.edu' site? I think you might want to swap Order to Order deny,allow. Last one wins, and deny denies all by default. see http://docstore.mik.ua/orelly/linux/apache/ch05_06.htm and http://httpd.apache.org/docs/2.2/mod/mod_authz_host.html#allow so in the global config you want allow deny,...
0
1
166
2016-08-18T16:38:18.177
api_errors
serverfault.com
313,456
Fresh install of RHEL 6.1 - yum failing to update
I'm getting some errors when trying to update some RHEL 6.1 64 bit servers with yum. I tried a fresh install of the OS and then ran yum -y upgrade and received the same errors that I was getting on my production servers. I've tried [CODE] and [CODE] and neither seemed to help. I think the problem might be that we are m...
I ran into the same problem and was able to resolve it by manually updating the sed package: [CODE] After that installed, I was able to run [CODE] without any problems.
2
4
1,943
2011-09-20T14:46:37.870
infrastructure
serverfault.com
839,666
OpenVPN cannot reach other clients, arp replies go to client instead of server
I have OpenVPN configured on three VirtualBox VMs running Ubuntu 16.04. The network configuration is as follows: network config picture . Server config: [CODE] Client config: [CODE] I am using the bridge-start and bridge-stop scripts that come with OpenVPN to use the bridge. Connection opens without no problems. I can ...
This was solved by setting the GW's network adapter connected to the 192.168.0.0/24 network to promiscuous mode from the VirtualBox settings, so the interface that does the bridging is in promiscuous mode. All in all, it is nowhere clearly mentioned that VirtualBox needs promiscuous mode to be able to bridge correctly,...
3
1
1,472
2017-03-21T15:07:37.593
infrastructure
serverfault.com
175,143
MySQL trigger before insert replace the data with relational table
I have 2 table [CODE] and [CODE] I want to write trigger in [CODE] table, which will replace the value of currently inserting row (orders table INSERT query) with [CODE] data and also update a flag of [CODE] table. MySQL query for insert is [CODE] MySQL query for transactions data selection will be [CODE] Before order ...
It may help you in case of AFTER INSERT. [CODE]
0
1
1,016
2017-06-01T12:04:42.380
database_errors
dba.stackexchange.com
909,817
My virtual hosts file for my subdomain is not being picked up
So I have a website running on a lamp stack on Ubuntu. I have two vhosts files... 000-default.conf: [CODE] And moodle.example.co.uk.conf: [CODE] If I go to www.example.co.uk then I see the home page. Exactly as expected. However if I go to moodle.example.co.uk I still see the homepage not the page stored in the Documen...
From Apache 2.4 documentation (may help): When a request arrives, the server will find the best (most specific) matching argument based on the IP address and port used by the request. If there is more than one virtual host containing this best-match address and port combination, Apache will further compare the ServerNa...
0
0
311
2018-04-28T16:32:40.697
api_errors
serverfault.com
200,827
Vmware ESX 3.0.2 - vm guests are hanging constantly
I've got the problem that the vms of my vmware esx 3.0.2 server are hanging constantly (let's say every 3-5 minutes) for about 5-8 seconds. How can I track this issue down and get rid of it? Thank you!
Check your /var/log/vmkernel.log for anything suspicious or that repeats constantly. If all the VMs are running on the same VMFS volume you may be having intermittent (recoverable) storage failures, those would show up in the VMkernel logs.
0
0
334
2010-11-11T16:07:25.377
infrastructure
serverfault.com
974,612
Are my EFI partitions mutually bootable? How to interpret the output of efibootmgr -v
I have two GPT formatted disks both starting with EFI partitions and followed by a single physical raid partition. I installed ubuntu-server 16.04 with software raid over these two raid partitions and once it had installed, I cloned the EFI partition from the mounted EFI partition to the unmounted one using [CODE] and ...
Worked this out, it is explained and answered in my related question: How can I generate/or edit a grub.cfg on each EFI partition that refers to the ubuntu installation on the same physical disk?
2
0
279
2019-07-10T04:32:14.813
infrastructure
serverfault.com
246,414
Where should executables be run from? Network share or client?
We have an executable that is used by 50+ client machines on a network and upgraded regularly. Is it acceptable to put the executable on a network share and have the client machines run it from there via a shortcut on their desktop? That way when we upgrade the .exe we can simply replace the one file with a new one and...
Could have a login script that checks the program (something like md5 it) and if it is different then it downloads the application from a central server and places it on the user's desktop.
1
4
5,899
2011-03-11T21:40:24.100
infrastructure
serverfault.com
973,728
dnsmasq pxe boot not working
Maybe someone can point me into the right direction here I have a dnsmasq DHCP Server in a separate Subnet (10.17.131.42) and another Network that has NO local DHCP Server (10.33.0.0/16) The Switch in this Network forwards the DHCP requests properly to the dnsmasq server wich responds accordingly. (so far, so good) BUT...
We have had issues with pxe boot on computers configured to use UEFI. Have you tried switching to Legacy BIOS instead? Do you still see the same issue or does it help? So far I have not figured out the issue with booting from PXE when in UEFI mode but in my case it was just ok to go with Legacy BIOS instead.
1
0
2,587
2019-07-02T18:09:26.303
infrastructure
serverfault.com
545,566
Session automatically resolving to secondary IP
I am using Debian 6 - 64-bit and this is what my /etc/network/interfaces file looks like [CODE] I need to switch between the Primary and Secondary IPs for most of my processes/scripts so quite a lot of times I swap PrimaryIP with SecondaryIP (and vice versa) in the above file and restart the interfaces to change the pr...
After days of working around, I finally found the answer to my own question. The correct way of setting up a secondary interface would be to not include the "gateway" option. [CODE]
0
0
55
2013-10-12T10:14:03.150
infrastructure
serverfault.com
243,862
MariaDB database migration - hangs infinitely while MySQL works no problem
I've migrated a website from a server running MySQL 5. to MariaDB 10.3, I was expecting if anything for the MariaDB to outperform MySQL and on lots of other sites on the platform it has. However, this particular query it really doesn't seem to be liking and hangs infinitely. There's no other activity on the database, l...
WordPress has an inherent performance problem due to using the EAV schema pattern. Then it fails to adequately index its meta tables. I discuss that here , but since you have an extra column, I will elaborate: Change the indexes to [CODE] This should make your queries run faster on both servers. I would expect the 10.3...
2
2
379
2019-07-26T08:50:45.630
database_errors
dba.stackexchange.com
263,543
Did Java avoid multiple inheritance here?
I learnt that Java did not allow multiple inheritance using [CODE] for simplicity. In java, after a good design of class hierarchy, [CODE] would not get into trouble of same method prototypes or same name variable, coming from both [CODE] and [CODE] as parent types, Because [CODE] and [CODE] are discovered(but not desi...
The [CODE] field in [CODE] class is static so there is no inheritance; there is just an ambiguous reference . All fields from interfaces are static and public by default. Java would have been better designed if static fields and methods can only be accessed through class name and not through a reference; but this is no...
0
5
569
2014-11-23T02:57:03.900
api_errors
softwareengineering.stackexchange.com
172,617
SQLite3 not using covering index with json_extract expression
I am attempting to create an index in [CODE] (3.18) using [CODE] expressions. My aim is to execute queries that only require the index to yield results. The reason for this is that [CODE] is an expensive operation which would hinder performance when operating on larger data sets and/or values. I concluded I need a cove...
The documentation says: The SQLite query planner will consider using an index on an expression when the expression that is indexed appears in the WHERE clause or in the ORDER BY clause of a query. So expressions in the SELECT clause will not use the expression index. Using a covering index is not as much an improvement...
8
2
1,468
2017-05-03T12:43:21.157
database_errors
dba.stackexchange.com
310,154
Problem importing a Dump on MariaDB (Ubuntu 20.04.4 LTS)
I am writing this post because I cannot import a dump on MariaDB (Version 15.1) using Ubuntu 20.04.4 LTS. I did this dump a few weeks ago and now trying to import it using the command [CODE] gives me the following error: Error at line 46: ASCII ' 0' appeared in the statement but this is not allowed unless option --bina...
That is probably [CODE] . [CODE] That does not impact what charset is used in the tables, only for reading the file. History MySQL 5.0.67 (Aug, 2008): "ucs2 does not work as a client character set, but attempts to use it as such were not rejected. Now character_set_client cannot be set to ucs2. This also affects statem...
1
0
1,099
2022-03-25T08:57:46.737
data_quality
dba.stackexchange.com
204,443
Coding convention regarding the usage of underscores
There seems to be divided opinion on this subject, and I wanted to get people's insights on whether they've found using underscore prefixes and suffixes to be helpful with coding or not. You know, code like this: [CODE]
I hate noise in code that merely restates what is or should be obvious. Silent noise like leading or trailing underscores is annoying. Noise that destroys readability, like 'm_x' or 'xParam' or 'getX' is worse. If you have so many variables in scope that you can't remember which are local and which are class members, y...
5
10
7,332
2013-07-11T03:07:54.883
api_errors
softwareengineering.stackexchange.com
382,337
Config JBoss AS7 with SSL behind an Apache2 Http Server
I have got a JEE JBoss AS7.1.1 Server. In this Server two web app's are running. One of it is a public weblog. Access for everyone. The other one is a private app to write the content. This one requires a formbased login, handled by the jboss. Now I want to use SSL to encrypt the connection only to the private webapp. ...
You dont need to configure SSL on the JBoss side of things although, in my opinion it is easier to do so since Java keystore files dont require you have OpenSSL installed but creating a cert for Apache does. (maybe Keystore Explorer could get around this but I havent tried) What I usually do is configure SSL on the Apa...
1
1
487
2012-04-23T18:58:05.523
infrastructure
serverfault.com
278,163
Where view models inside Web project of n-tier application should be placed?
Let's assume we have an ASP.NET MVC web application with following tiers: Business logic Entities (business domain and database POCOs) Common (resources, consts) Data access (database EF queries, EDMX EF models and so on) Web application (MVC web application) We're using view models approach. Currently view models are ...
I keep view models in the web project, for reason you stated, it's usually only useful to the relevant view. I'm not sure why your data access layer would reference the web project though?
1
1
1,266
2015-04-03T11:41:04.080
data_quality
softwareengineering.stackexchange.com
27,802
Mix of Cyclic and Chained MySQL replication - What do you do with "log-slave-updates"..?
I have the following MySQL replication topology set up: Master1 (M1) replicates to Master2 (M2) Master2 (M2) replicates to Master1 (M1) Master1 (M1) replicates to Slave1 (S1) Pictorial View [CODE] All users connect to their masters for selects and updates. The theory in the cyclic replication is that if I need to do an...
Well, you are absolutely right to be concerned about [CODE] causing an issue with your Master-Master setup, though it won't necessarily be an infinite loop changes. I suspect if you are writing to both masters , that you will constantly be having to set [CODE] and restart the slave thread.... In a word, not ideal. I wo...
1
1
393
2012-10-29T12:02:21.957
database_errors
dba.stackexchange.com
93,299
Border firewalls and routing -- static vs dynamic routing
Border topology for largish enterprise http://www.freeimagehosting.net/uploads/d24ede3b2f.png Let's say you've got an enterprise with a small internet presence in the form of a DNS server, a web server, and a VPN server, all on the DMZ (in this case, an invisible pair of switches connected directly to the firewalls). T...
Put external routers into HSRP/VRRP pair. Get an AS. Start doing BGP with your ISPs. Then, everywhere inside your environment, the paths will be static. You just need to have failover, and that's what's achieved with VRRP/HSRP and firewalls in A/A or A/S configuration. Alternatives are messier and/or less robust: Dynam...
6
1
6,736
2009-12-11T06:09:47.377
database_errors
serverfault.com
887,543
Grow ZFS mirror
I have a ZFS pool with 6 disks in a RAID 10 configuration. I would like to upgrade the drives in one of the mirrors, from 1TB to 3TB drives. I have all the drives installed in the system. I would prefer not to do it by replacing one drive, resilver, repeat. Is there a way to perform all of my reads from existing mirror...
If you want to manually expand the volume all you have to do is bring it online with the [CODE] option. [CODE] You can also toggle the autoexpand option to have it happen automatically. [CODE] So lets say you are adding new drives to mirror-2 so you can expand that. You need to attach the new drives, using the one of t...
4
4
4,507
2017-12-11T16:09:49.557
infrastructure
serverfault.com
257,868
Can't run utilities that use the network from a Windows Server 2008 DFS share
Under Windows Server 2008 I'm unable to run many utilities that use network resources. This works just fine under Windows Server 2003. For example: \\domain\dfs\tools$\bin\sendmail.exe ... \\domain\dfs\tools$\bin\psexec.exe ... echo %_metric% %_value% %_unixtime% | \\domain\dfs\bin\foo$\nc graphite.domain 2003 -w1 Repr...
I was facing the same problem but it was resolved when I disabled access-based enumeration for this namespace. You may want to try the same.
3
1
1,874
2011-04-10T06:34:34.440
infrastructure
serverfault.com
805,053
kubelet service with etcd2-tls can't connect to 127.0.0.1:8080 - getsockopt: connection refused
I have CoreOS stable v1122.2.0 installed. I have etcd2 configured with tls and is working properly. i created the certificates based on https://github.com/coreos/etcd/tree/master/hack/tls-setup using sub-domains that I created for my servers instead of specific IP address for calico tls to work. etcd2 and calcio-node a...
In many cases, the API server is started by Kubelet, resulting in initial connectivity errors before the API endpoint is available. If this error is persistent after some time, you may wish to see if your API server is starting and whether or not. Kubelet will automatically start the services located in [CODE] which is...
0
2
2,088
2016-09-23T23:37:39.127
api_errors
serverfault.com
415,965
How can I cleanly set up debug logging in my javascript frontend?
I basically want to be able to "turn on debug logging" like you can do with many applications that run in a shell. The naive way of implementing it would be to insert a statement like this in every one of my functions: [CODE] But having this in every function seems a bit annoying. Is there a more established or cleaner...
You can specify the level in the logging statement, like this [CODE] In your console viewer (for example Developer Tools in Chrome) you can select which log messages you want to view. See also https://developer.mozilla.org/en-US/docs/Web/API/console
1
2
121
2020-09-17T04:41:08.113
api_errors
softwareengineering.stackexchange.com
1,018,968
I'm on GCS's free trial; how do I increase my storage from 5gb to 25 gb?
So I'm playing around in a notebook that lets me experiment with the T5 model. When I try to fine-tune the model (it has 3B parameters), I get: [CODE] I've been looking around trying to find a way to increase the storage in my bucket, but no luck. Haven't been able to find help on this particular issue. Anyone know how...
The Google Cloud Free Tier has two parts: A 12-month free trial with $300 credit to use with any Google Cloud services. Always Free, which provides limited access to many common Google Cloud resources, free of charge. As part of the Google Cloud Free Tier , Cloud Storage provides resources that are free to use up to sp...
0
0
195
2020-05-27T21:52:25.787
infrastructure
serverfault.com
35,901
Access 2003 (SQL Server 2000) migration to SQL Azure
As my old Windows 2003 RAID controller started throwing errors, I am seriously thinking about switching current Access 2003 (adp/ADO) clients to use a Windows SQL Azure solution, in place of current SQL Server 2000. Does anybody knows if this is a feasable/painless operation?
If your back end is currently SQL 2000, then you need to do a dance to get this to work, but it should be fairly straightforward to do something as follows: Spin up a VM in Windows Azure, using a template for SQL2008R2 (that's the oldest available template, I believe). Take backup of your SQL2000 instance, restore it t...
0
1
1,448
2013-03-04T13:48:04.170
database_errors
dba.stackexchange.com
256,200
Oracle to T-SQL OPENQUERY special character conversion issues
I'm struggling to figure out where the character encoding issue on my Linked server may be coming from here. The ZPDT_PAT_ALPHA column should have a degrees symbol at the end, as shown by the DUMP. [CODE] Here are the NLS parameters. NLS_LANG is set in the registry "AMERICAN_AMERICA.WE8MSWIN1252" And the linked server ...
The solution was to change the [CODE] value in the registry to "AMERICAN_AMERICA.US7ASCII" because of reasons described in these answers: If we have US7ASCII characterset why does it let us store non-ascii characters? difference between NLS_NCHAR_CHARACTERSET and NLS_CHARACTERSET for Oracle Now the characters are comin...
1
2
1,333
2019-12-24T00:18:09.727
database_errors
dba.stackexchange.com
1,010,200
Google Compute Selenium intermittent connection issue
I'm trying out Google Compute. I have an issue I never saw on AWS. I'm using Ubuntu 16.04 / Codeception / Selenium / Chromedriver / Chrome to run a simple acceptance test. The thing is, it fails randomly. Without changing anything, I can either fail or pass the test. I never had this happen on AWS. No clue. Any ideas? ...
Try to upgrade the Driver version to 80.0.3987.149.
0
0
74
2020-03-31T08:24:40.113
infrastructure
serverfault.com
461,879
Linux ( Fedora 15 ) multiple ISP and NAT routing
So I have my system running Fedora 15 and currently with a DSL line. The line provides a static IP along with static route, DNS. I run a web/E-Mail/DNS server from this IP. It also supports a NAT'd network to provide network and DHCP on the internal network. I now would like to add another ISP which uses DHCP (Comcast)...
What you need to do is policy based routing. I don't know if Fedora config files support this -- I'd say "no" if I had to guess... Basically what you want to do is set up two different routing tables, one for external (routed) connections and leave the default routing table for local connections.
1
0
283
2012-12-31T03:28:41.457
infrastructure
serverfault.com
270,712
Delete duplicate records and update the mapping table
I have store_table_map and item_price_map. I want to delete duplicate records in store_table_map and retain the latest row based on updated_date because i want to put constraints in store_id and item_id. But I also want first to update the item_price_map as seen below before deleting old duplicate records. Current Tabl...
You first need to create the mapping from the old map_id to the new one, this can be done using [CODE] and a self join: [CODE] The above returns: [CODE] This can be used in an UPDATE statement: [CODE] After that you can remove the rows with the now unused map_ids [CODE] (I could only test this on Postgres 12, but I thi...
1
0
448
2020-07-10T05:30:17.790
data_quality
dba.stackexchange.com
82,930
Database Implementations of ORDER BY in a Subquery
I am using an application (MapServer - http://mapserver.org/ ) that wraps SQL statements, so that the ORDER BY statement is in the inner query. E.g. [CODE] The application has many different database drivers. I mainly use the MS SQL Server driver, and SQL Server 2008. This throws an error if an ORDER BY is found in a s...
You're going to have to make your application not put the [CODE] inside the subquery (maybe it has an option to not use a needless subquery in the first place). As you've already discovered, this syntax is not supported in SQL Server without [CODE] . And with [CODE] , unless you want to leave some rows out, using [CODE...
11
15
33,443
2014-11-18T11:47:29.477
database_errors
dba.stackexchange.com
840,993
Experiencing high latency with server without any server load nor local router latency
I am experiencing a very weird issue and it is hard to synthesize in a simple sentence, so I am sorry if the title of the question is rather shady. So I have a dedicated server running with the following specs: CPU: Intel i5-4590 Quad-Core @ 3.3Ghz RAM: 4x 8Gb(32Gb total) SSD: 2x500 Gb SSD OS: Ubuntu server LTS 16.04 S...
You have bad "hope"-way to your server. Between you and your server theris some bad route that give such issue. So it's not the server problem, it's yor ISP problem.
1
0
585
2017-03-28T10:18:00.890
api_errors
serverfault.com
1,108,603
Apache Server security issues
our security auditor scanned our system and here is what come up on the apache server : [CODE] Here are some lines in my config header : [CODE] I have no clue how to fix this. What does that mean ? How can I solve this ? Apache/2.4.54 (Win64)
You can change server header by adding something like: [CODE] for config for port 80 and port 443. But will be wise not to add random string, but imitate other web server. TLS misconfig can be corrected when we can see your TLS config About security headers add following headers: HTTP Strict Transport Security (HSTS) C...
0
1
197
2022-08-19T13:54:10.307
infrastructure
serverfault.com
221,965
How do I create certificates for both ends of an stunnel connection?
I am using stunnel to authenticate RDP (Remote Desktop) and I need to verify that a client possesses the proper credentials. So people cannot brute force into the machine. I am also using a bad (outdated) version of RDP that has security vulnerabilities, so stunnel is a must. I will preshare the necessary [CODE] 's bet...
In addition to the documentation on the stunnel site that @Christian pointed at, there's lot of information out there about using [CODE] to generate certificates. A google search for openssl certificate authority will get you links to a variety of useful tutorials and examples.
0
1
1,196
2011-01-13T11:12:34.023
infrastructure
serverfault.com
1,031,057
CentOS 7 sshd_config error
Because my ip address will not change often, I want only my ip address can access SSH of my gen4 CentOS7 VPS server. This is the config file content(with commented out lines removed) of file: /etc/ssh/sshd_config [CODE] After running [CODE] , I got following error: Job for sshd.service failed because the control proces...
I ran command: [CODE] I got error message as follows: [CODE] So I moved my Match block to last part of the file, it solved my problem. Thank you all for the instructions.
0
0
2,880
2020-08-22T04:52:29.800
infrastructure
serverfault.com
362,175
creating nodejs apps in php/mysql framework with later on full step by step migration to nodejs in mind
I'm looking for the most efficient path to convert over time my own made php framework for nodejs and I believe that nodejs experts and specific developers who had their years working with apache/php/mysql will be able to give objective answers based on knowledge and experience that won't be just opinions but solution ...
You may want to consider adding a proxy layer while you are migrating. This provides one URL for your application while specific parts are on separate servers. This is the general approach used by people who use microservices. There are several instances of the services behind one URL space. Something like Zuul or ngin...
2
2
511
2017-12-11T16:10:31.647
database_errors
softwareengineering.stackexchange.com
201,682
Sql Server 2008 truncate log file
I have a database I restored on a new hosting space. I worked a lot in this db before publish it. The mdf file is 37MB, the log file is 427 MB. I could have disk space problems with the hosting service, could I truncate the log file and then restoring the database again? And how could I do that? Or maybe someone has su...
SQL Server 2008 removed [CODE] because it breaks the backup chain when using the Full Recovery Mode. Unless you are really making backups of the log (which make sense only for databases of many GB), you should change to the Simple Recovery Mode (you can do that from SQL Server Management Studio), which saves only the l...
1
2
195
2010-11-11T21:19:03.577
database_errors
serverfault.com
60,677
How to deny database acess to windows autentication users
We have a Database that is attached on the client server, but we don´t want to let anyone besides our user to acess that database, is there a way to do this? I´m using the current script to create our user, 'automacao'. And I tried to modify it to not allow anyone besides 'automacao' to acess it, but they're using wind...
If the users are administrators, there is no way to keep them out. This could be sysadmin on the server, dbo on the database, etc. The easiest way to keep other (non-Administrator) logins out of your database is to never grant them rights or (as one part of your code suggests) drop any users that are not 'automacao' or...
0
0
194
2014-03-11T17:17:55.197
warehouse_errors
dba.stackexchange.com
728,267
Postfix Email tracing, where is it now
I have searched for an explicit answer to this question and haven't yet found one. I am new to administering Postfix so please forgive my ignorance. Company A sends out an enormous amount of email on a monthly basis (accounts/statements). These are generated by the software automatically. Company B is 1 of the many rec...
I don't think you've done anything wrong. The email was queued as E5EF54BEDE0 on spamfilter.CompanyC.com. They've done something with it, the only way to know is to ask them unless you get a bounce.
0
4
675
2015-10-12T01:58:26.067
infrastructure
serverfault.com
312,150
how to execute mysql queries concurrently/parallelly
I have to find out the "EXACT" row count of 5000 tables running MySQL 5.5 on RHEL5. As far as I know the only method is [CODE] . But this is taking too much time. So I tried to run the queries in parallel. I split the queries in 10 different files each containing 500 queries and run them from 10 different terminals.I a...
If you are not using that [CODE] , say so; this answer is totally wrong. Regardless of how you run it, the same amount of data must be read from disk. That is why parallelism is useless, at least when there is more data than has been cached in RAM. You should have set [CODE] appropriately (70% of available RAM). There ...
0
0
1,299
2022-05-15T13:51:33.030
database_errors
dba.stackexchange.com
248,655
Routing traffic through a specific port depending on Subnet requested
I have my network setup with a sonicwall device as the default gateway so all my traffic goes in and out through it. Now I have just setup a VPN on a cisco router from our local network of 192.168.5.X to another network of 172.16.1.X. The Cisco router with the VPN has 2 interfaces, one facing our lan switch and one fac...
You just need to add in some extra routing. In this case adding a static route on your sonic wall to route traffic to 172.16.1.0(/24?) via 192.168.5.15 as the next hop should take care of it.
0
2
2,155
2011-03-17T16:47:13.713
infrastructure
serverfault.com
79,435
consolidate CMS files in one place
We have a system where we use a bespoke CMS on one of our servers. This CMS is used by 30-40 clients. The majority of the files for each client CMS are the same (apart from a few folders)as each time we add a new feature / patch / bug fix we roll it out to all clients. We want to consolidate these files into a single p...
Short term solution: Move [CODE] to, say, [CODE] Create sym-links for the files to the new location. ie: [CODE] Writing a script to do the above for all the files and all the user's should be trivial (with experience). If not, post a separate question. Then use SVN in the /opt/cms directory, which is linked to by every...
1
2
75
2009-10-29T10:13:18.237
infrastructure
serverfault.com
627,060
GD Library not working even though it is enabled in phpinfo()
I am hoping someone here can give me some advice about why my GD Library does not seem to be working even though it is installed and enabled in phpinfo() Here is a quick rundown of what I am using: PHP 5.5.16 Ubuntu 12.04 GD 2.1.1-dev (have tried other versions as well to no avail) As I said gd shows up in phpinfo but ...
You may need to set error_reporting to E_ALL and display_errors to On in your php.ini file in (/etc/php5/apache2/php.ini), restart Apache and refresh the page. You should get some sort of meaningful error. Create a separate php file with just [CODE] and see what that returns. If it returns info on gd library then it is...
1
0
2,525
2014-09-08T17:14:38.063
infrastructure
serverfault.com
218,938
How much packet loss is normal?
I started monitoring our network using SmokePing . Users occasionally complain about bad network connections, but the problems went away after some minutes usually. I now wanted to get some more quantitative information about those problems. SmokePing regularly pings servers inside our network, in a connected network a...
Inside your network you can deal with packet loss, but outside it's another world. Packet loss should be avoided, but TCP/IP (well IP is :-) ) is build a way packet loss can be managed. 2 packets out of 20, four times a day is not a issue, but you can call the IT department and see if you can check with them, but proba...
0
2
16,451
2011-01-05T11:56:57.693
pipeline_ops
serverfault.com
388,674
Optimize OpenVPN connection?
This is a big headache for me for a few days now. I having 2 servers on different location. We use OpenVPN to connect between the 2 servers. [CODE] However, after i config the openVPN within the 2, i can hardly surpass 2mbps speed. I use HTTP to test the uplink of each other. [CODE] Here is my Configuration on serversi...
One reason might be that UDP traffic is shaped somewhere. Try running iperf with -u -p 1194 directly between the servers without using OpenVPN. If that is still slow try different ports and vary between UDP and TCP with iperf to see if it makes a difference. If the CPU is really old in any of the servers also try remov...
0
2
5,244
2012-05-13T15:37:01.983
infrastructure
serverfault.com
678,742
nginx proxy_pass rewrite of response header location
The aim of this nginx instance is to get GitLab and OpenWRT Luci to redirect through a reverse proxy. It's already working for several other websites, all which have a base url which seems to counter this issue. GitLab in this example is on the local server at port 9000. The nginx website is on port 8080. OpenWRT has t...
Add a trailing slash to your [CODE] target. Update : The OP didn't precise the vhost was accepting [CODE] . As the scheme is forwarded to the backend server with additionnal headers, then an issue occurs since [CODE] orders nginx to expect http scheme by default when rewriting [CODE] headers in upstream replies, instea...
11
6
56,778
2015-03-27T14:41:13.717
infrastructure
serverfault.com
245,406
Ola Hallengren Transaction Log Backups of System Databases
I am attempting to backup the transaction logs of master, model in addition to the msdb. [CODE] transaction log backs up without any issues, but the master and model do not. Here is the script that I have included in a new Agent job (copied from DatabaseBackup - System_Database - Full) which I have named DatabaseBackup...
Per this Microsoft documentation : For backwards compatibility with earlier versions of Microsoft SQL Server, the recovery model of master can be set to FULL or BULK_LOGGED. However, BACKUP LOG is not supported for master. Therefore, even if the recovery model of master is changed to full or bulk-logged, the database c...
0
3
721
2019-08-15T10:26:28.160
database_errors
dba.stackexchange.com
487,481
Infrastructure design recommendations for a simple proxmox setup
I am aware of the dangers of this question being non-constructive so bear in mind I did my best to narrow the possible answers I get. I am swapping an old dedicated Gentoo server for a new one, and considering the amount of memory and processor it will have compared to the previous one, I have decided to go for virtual...
Option 1 would be less easy to administrate and probably also less performant: Consider how to deploy a change to a single service (binary upgrade, bug fix, global configuration etc.): Easier to do when there's only a single instance of each service . You could, however, create shared disk space between all instances. ...
0
2
249
2013-03-13T15:17:17.043
database_errors
serverfault.com
200,510
Evaluation order of the expressions
The C Programming Language by K & R states that C, like most languages, does not specify the order in which operands of an operator are evaluated. (The exceptions are &&,||,?: and ','). According to the book, the result of the statement : [CODE] depends on the compiler. But it itself says in the previous line,that I ha...
The first statement (the exceptions) refers to the comma operator , this is (usually) different to commas in function calls. The comma operator is used rarely, but can be used to do things like this: [CODE] evaluation of operands of the comma operator is always left to right (it forms a sequence in standardese). Normal...
3
5
233
2013-06-05T08:25:54.547
api_errors
softwareengineering.stackexchange.com
106,755
Outlook 2007 Autodiscover Out Of Office Assistant
We are having an issue trying to set the Out Of Office Assistant through Outlook 2007. It works fine through OWA but all of the users cannot set it through Outlook. They get: your out of office settings cannot be displayed because the server is unavailable We have run through: https://www.testexchangeconnectivity.com/ ...
I feel a little conflicted about my answer. Basically the short of it is this: I don't know the SBS-approved way to fix your problem. I was sort of hoping someone else would come along with the SBS-approved way. I've resolved this issue in plain-vanilla E2007 setups, but not SBS 2008. ::shrugs:: The problem in your Exc...
0
0
2,346
2010-01-27T11:10:38.623
infrastructure
serverfault.com
73,969
serious problem with memory and crash on httpd and mysql
here is the problem: i have a couple of sites hosted on a 3 GIG ram server on mediatemple and i never had a problem. suddenly every 2 to 3 days i get a kmemsize error and apache crashes. neither mysql nor apache seem to be working then. i never had this problem and there has been no increase in traffic. the httpd log f...
You're almost certainly running out of memory. Often apache will hit maxclients when you start to swap because the existing children are tied up waiting for disk i/o so it will spawn new children to handle new requests, which will then hang waiting for disk i/o, rinse, cycle, repeat until maxclients is reached. Mostly ...
1
1
1,106
2009-10-13T08:52:13.113
database_errors
serverfault.com
957,430
Azure - automating events based on new blob storage file triggers
I'm looking into automating some stuff in Azure and wanted to ask for tips. The invironment: a VM that creates some local db backups, then sends them via azcopy to Blob Storage. The goal: each time the the backup is copied to Blob Storage I want to test its correctness, so: - power on an already prepared another db VM ...
I would suggest you look at a combination of Azure Logic apps and Azure Automation to do this work. Logic apps are Microsoft's cloud workflow engine, which can be triggered by a number of things, including files arriving at blob storage . Logic apps allow you to build a workflow of different tasks, which can follow a s...
0
0
712
2019-03-08T20:37:25.147
database_errors
serverfault.com
13,724
Regular expression problem
[CODE] I know this is not practical or make a ton of sense, but its a constraint I'm working with: email address with upto 10 characters prior to @ followed by upto 5 characters, then a '.' and finally the .net or .com extension. This works for the most part except the 1-10 constraint on the first half does not appear ...
Try adding the [CODE] character to your regex, which means to match the position at the beginning of the string, like this [CODE]
0
3
186
2012-02-23T05:06:28.020
database_errors
dba.stackexchange.com
1,011,736
How to format ansible logs in a human readable way
I need ansible logs per host (server) so I am using logs_play module in ansible.cfg. [CODE] But the output is not human friendly. See an example log below: [CODE] You see that the second big line is shown as one line and it is not human readable. How to make it prettier line by line output ? I know there is a setting t...
We use this in our [CODE] : [CODE] This gives a more readable YAML output instead of JSON. If that doesn't suit you, there are a bunch of other callback plugins. See https://docs.ansible.com/ansible/latest/plugins/callback.html
3
7
5,219
2020-04-10T12:32:23.267
pipeline_ops
serverfault.com
898,593
Ubuntu - Allow access to subdirectory and files under a directory, but not give access to the directory itself?
Good day. I have a Server that's running on Ubuntu 14.04 with a LAMP Stack. So far, I've been able to host webpages on it and it's been working great. However, I want to limit what the users see. I have a certain directory [CODE] where I upload files that my clients would need and then just send them the link. The link...
Change directory permissions to default 755, create .htaccess file in the /downloads directory and put a line "Option -Indexes" there, as per https://stackoverflow.com/questions/1767785/htaccess-file-options-indexes-on-subdirectories
0
0
634
2018-02-23T13:55:58.293
api_errors
serverfault.com
990,429
Configure Multiple Domains and an IP Address with NGINX
I've asked on the forums before but didn't get answer so I'm going to try again. I'm trying to setup NGINX with PHPMyAdmin and I want to access the site via two subdomains and an IP address. The following URLs all lead to the same root folder:- phpmyadmin.localhost (only accessible via the host machine) phpmyadmin.ubun...
You need to have separate [CODE] blocks for your config. [CODE]
1
0
1,433
2019-11-03T20:48:48.223
infrastructure
serverfault.com
655,989
Why can't diskpart clean my disk?
I have a Hyper-V Core Server 2012 R2 with the following disks: [CODE] I want to clean disk 2 and create a new partition. I did the following: [CODE] I don't understand the error I'm getting. How can I tell for sure which disk I have booted from? Here's disk management if that helps:
You can see in the screenshot that the second partition of Disk 2 is marked 'System', and that's what the error message tells you about. It seems to me your Windows Boot Manager and the BCD store is on that partition, you need to move it. This blog post may help: Switching my Windows 7 Boot Disk...
1
1
23,324
2015-01-02T22:48:02.450
infrastructure
serverfault.com
94,816
What steps can I take to ensure that I successfully integrate new functionality to an existing app?
I may potentially have some work to implement new features to a client's existing web application. (I didn't write the original app). I've never made an app that wasn't written from scratch, and I'm worried about integrating the new features without disrupting the service for too long (or at all). I don't think the cli...
Your basic work flow sounds entirely sensible. Particularly getting code under revision control and making sure you can recreate the app and database from that source. I would suggest not updating the live site while it's running. Depending on how the site works you probably have two other options; Set a new version of...
1
4
189
2011-07-21T12:54:00.187
api_errors
softwareengineering.stackexchange.com
790,611
Haproxy http response timeout check
We use haproxy as http load balancer. Sometimes one of our servers stop responding while accepting http connection requests. So stats page displays servers as green "accessible" but our nagios server says "CRITICAL - Socket timeout after 20 seconds" and that server is not responding actually. How to tell haproxy to che...
You need to have health checks in place https://www.haproxy.com/doc/aloha/7.0/haproxy/healthchecks.html . You specifically need check_timeouts "timeout check : time let to the server to answer the check. If both inter and timeout check are set, then the smallest value of both of them is used, after the TCP connection i...
2
2
5,305
2016-07-19T07:13:38.760
infrastructure
serverfault.com
269,643
Copying a MySQL 5.6 server settings for a new environment?
I have a MySQL 5.6 Server running on a Windows 8 VM on a steel case server. It's been having issues (The Windows 8, which is then causing the MySQL to have issues). Therefore I was tasked with putting the MySQL 5.6 Server on a Windows 10 VM for stability reasons. The amount of ram the server is allowed and other settin...
The first recommendation is to not use Windows 10 on your installation if this is for a production server. I highly recommend you Linux but if that's not possible at least Windows Server. Asking your question, YES. Just install MySQL (same version as on old machine) and follow these steps Stop MySQL on both machines (N...
0
0
21
2020-06-22T14:36:18.837
database_errors
dba.stackexchange.com
1,103,926
Can I trigger events off of outbound HTTP requests from an EC2 instance?
Imagine an old app. Let's say, hypothetically, that it is 9 or 10 years old, it has enormous amounts of tech debt. It makes thousands of API calls to 3rd party APIs, and stores some of the data in the database. The code is brittle, and full of bugs. We are afraid to touch it, because it is so old and badly written. If ...
You could look at AWS Traffic Mirroring . All traffic is sent to an instance to be logged or inspected. More detail here . Alternately you could put the app on an instance in a private subnet, set up a custom NAT instance in a public subnet that logs all traffic such as a squid proxy. This blog post will help you set s...
0
1
199
2022-06-23T07:48:31.177
database_errors
serverfault.com
810,647
Permissions setup for nodejs
I have several application running on my server; they are built in meteor.js so they are nodejs process and I run them using forever npm module; I currently launch forever for all of them using the same user whose group owns all the websites directories; now that this is gonna become a production server, I'd like to un...
Assuming that your application doesn't need write access to the application data (which it really shouldn't), we do the following: We break the users into two classes - [CODE] and [CODE] . [CODE] being the application name. They are both part of a group [CODE] . Those aren't the actual names we use for the nosy ones ou...
2
5
2,995
2016-10-22T12:53:06.303
infrastructure
serverfault.com