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
822,489
Error: Impossible to define SCIHOME environment variable
I am trying to use Scilab through PHP on my server like described in this document . I am running Ubuntu 16.04. I have an Apache server running. I installed Scilab with [CODE] . I can successfully write scilab code like: [CODE] So now I am trying to execute it from PHP. I tried the examples in the document. For instanc...
Ok, I finally solved the issue. I'm just stupid. You just need to set the variable manually. I already tried it this way but made a mistake in the variable name... [CODE]
1
0
223
2016-12-23T15:52:47.033
infrastructure
serverfault.com
773,656
Exchange 2010/Outlook certificate errors
We are running Exchange 2010 on SBS 2011. About a year ago, I renewed the certificate for the mail server, however, ever since that time, we receive certificate errors on OWA, and internally, we cannot create out of office messages (says the server is unavailable). I also now have a client running Outlook 2016 who cann...
SBS wants to use remote.example.com for everything - and I would suggest that is what you use. If you have configured the server to use mail.example.com then you have two options. Run the configuration wizards in the SBS console to change the name to mail.example.com and get the SSL certificate reissued. Run the config...
0
0
89
2016-04-28T16:41:54.590
infrastructure
serverfault.com
1,068,487
HCL Domino Monitoring Configuration (events4): is it possible to generate and use application events?
I checked the (Help) databases but couldn't find out if I can create Custom Application Events, and if I can, how they can be used. For instance, I'd like an Agent to write a specific text in the log.nsf database and DDM should pick it up and process it according to what's specified in the Handler. Or if there is an XP...
I got the answer in Slack (sorry): [CODE] This seems to be the way to generate system events in Domino programmatically.
0
0
78
2021-07-02T13:26:54.840
pipeline_ops
serverfault.com
227,996
PostgreSQL count 0 using WHEN and GROUP BY with more than one column
I am trying to make a new table that shows the number of Active Credit Cards each customer has in my dataset using: [CODE] The problem is that it removes ID's where there are no Active Credit Cards. I want it to return ID's with no credit cards with count 0. How would I do this? Ex: Original Data [CODE] Current result ...
[CODE] id | type | count ----: | :---------- | ----: 10001 | Credit Card | 0 10002 | Credit Card | 2 10003 | Credit Card | 0 db<>fiddle here Or using the conditional aggregation pointed out by a_horse_with_no_name : [CODE] db<>fiddle here
0
1
115
2019-01-24T16:35:56.543
database_errors
dba.stackexchange.com
25,628
PostgreSQL psql command line tool and SET CONSTRAINTS DEFERRED
I am using PostgreSQL 9.1.5 and the psql to run a scipt containing a series of INSERT statements in various tables: [CODE] The table constraints have been created with the DEFERRABLE option and the script itself (file dml_script.sql above) issues the following before an offending INSERT : [CODE] I've checked that the s...
The [CODE] option to [CODE] causes it to wrap a file specified by [CODE] in a [CODE] .. [CODE] block, making it a transaction. Otherwise, add the [CODE] and [CODE] commands to your script so that it becomes a single transaction.
4
5
1,630
2012-10-05T12:39:10.563
data_quality
dba.stackexchange.com
888,069
Jenkins, git-plugin and Bitbucket under Windows: Authentication failed
I have setup a private Bitbucket repo which can be accessed fine by the Jenkins Git-Plugin. When I switch the repo to require authentication Jenkins complains with [CODE] I have provided credentials in the plugin which have enough permissions to access the repo. I also can test this successfully on the command line on ...
It turned out that the user in jenkins was wrongly configured so assuming the username AND password are correctly set providing the url and selection of the correct credentials are fine Repository Url in Jenkins: https://bitbucket/scm/test/test.git
2
0
1,203
2017-12-14T07:51:51.667
pipeline_ops
serverfault.com
908,653
ISP gave me 3 ppoe accounts for 3 dedicated IPs, what kind of router do I need?
I made an optic fiber ISP contract that included 1 dedicated IP addresses and 2 additional dedicated IP addresses, now when they gave me the 3 IPs I see I have actually 3 different ppoe accounts. Is there a reliably gigabit wired router that can have multiple ppoe accounts ? Or is there a certain protocol name that I s...
From what I can find, the router you have seems to be based on GPON Fiber. Apparently Mikrotik do a GPON SFP module that will work in any of their routers that has an SPF port. https://mikrotik.com/product/SFPONU It's very strange to be given 3 PPPoE accounts for additional IP addresses though, and I'm not 100% certain...
-1
3
323
2018-04-20T07:44:46.427
infrastructure
serverfault.com
537,773
Supervisor process exits with 'exit status 1; not expected'
I'm trying to run a gunicorn_django process in supervisor but it always exits immediately, giving this error: [CODE] My server script looks like this: [CODE] And my supervisor config looks like this: [CODE] When I [CODE] into the [CODE] account the server starts normally. When I do [CODE] it simply hangs until I do CTR...
I seem to have found the solution. I can't have supervisor run my server script as the unprivileged [CODE] since it has to write to log files etc that requires more access. So the solution is to run the server as root and let gunicorn_django spawn the worker process as [CODE] [CODE]
7
3
26,306
2013-09-10T12:11:55.867
infrastructure
serverfault.com
136,332
Setting up dnsmasq for a local network
I and a small group of developers have just moved to a new office, and I'd like to set up dnsmasq on our development server, so when we deploy web apps there, we don't have to edit our own hosts files. We have a router at 192.168.3.1 which we don't have access to. I figured I'd install a DNS server on the development b...
Refer to the DNSmasq documentation , especially the dnsmasq manpage and sample configuration file . The local keyword tells DNSmasq to perform those domain lookups with local data. This affects requests send to DNSmasq for foo.localnet and bar.localnet , for example. I don't think this is what you want. [CODE] To force...
26
25
73,418
2010-04-27T15:48:11.443
infrastructure
serverfault.com
320,514
MySQL InnoDB foreign key requirements (index/unique/primary)
MySQL 5.6 Doc has set certain conditions and restrictions on foreign keys: InnoDB permits a foreign key to reference any index column or group of columns. However, in the referenced table, there must be an index where the referenced columns are the first columns in the same order. Hidden columns that InnoDB adds to an ...
8.0.30: No Error, product_order created I tested on MySQL version 8.0.30 and it fails creating the table [CODE] . Below the test: [CODE] In this fiddle the table isn't created.
2
2
400
2022-12-03T03:10:15.187
database_errors
dba.stackexchange.com
1,078,202
LXD on ZFS on LVM on H/W RAID 10
I have a Dell R540 with PERC H730P running RAID 10 over 12 DISK to the tune of ~22TB. I want to run various applications/services in LXD containers. I understand that ZFS is preferred for LXC storage pools, and that ZFS prefers direct access to raw disks. My naive approach was to configure Ubuntu with LVM over the H/W ...
If you want to benefit from all ZFS advantages, you need to reinstall the server. Change the HBA configuration from RAID to JBOD (disable RAID). Make sure you can see all disks from the OS. Make sure you can see them as normal disk, not virtual disks exposed by the RAID controller. You should be able to see the hardwar...
1
2
240
2021-09-21T15:14:09.623
pipeline_ops
serverfault.com
181,127
Custom error handling
I'm trying to figure out the best way to handle custom errors in my application. Option 1: [CODE] Option 2: [CODE] In option 1, the same error might be recycled in multiple situations. If I ever decide to change the message then I'll have to dig through my code and find every occurrence. In option 2, I give a numerical...
I have spent a lot of time considering this issue. I believe that the MOST IMPORTANT issue in writing error messages is to communicate accurately to the user. The purpose of an error message to help the user to eliminate the problem that existed. Such a problem may be a misunderstanding between the user and the program...
0
3
240
2012-12-31T22:36:04.980
api_errors
softwareengineering.stackexchange.com
938,133
Creating an S3 Bucket with Only Public Read and Download Permissions
I am trying to setup an S3 Bucket that has public read and download permissions, but not public upload. I have the following permissions in the "Access Control List" And Bucket Policy which allows the public read/download (I think?) [CODE] I'm pretty new to setting AWS S3 Buckets up, and my goal here is that I have a p...
The policy I have in my question works. It's just that the UI for S3 Buckets isn't very user friendly, so it shows the Upload button even if the user doesn't have the permission to upload. Once they user clicks Upload, it will fail in a later step.
2
0
3,657
2018-10-31T22:34:49.437
infrastructure
serverfault.com
18,887
What's a reasonably secure web-based storage system, that ideally can be mounted as a virtual filesystem on Windows?
Our small community college assigns each of our approximately 1000 students a personal [CODE] folder that is an alias for a Windows server share (also mapped as their [CODE] drive). Students access this from their computer lab accounts. For security reasons, this share is not accessible from our wireless network segmen...
It seems to me that a better solution would be to set up a VPN to handle the security side of things, then students would have all the access they are used to (if you want them to) in the way they are used to getting it. and it's simple to use from the end-user's point of view.
1
2
305
2009-06-03T16:04:39.673
infrastructure
serverfault.com
323,227
Email Notifications for System Performance Windows Server 2008 R2
I am trying to figure out how to apply email notifications to system performance triggers for example high CPU, High RAM usage, low disk space etc. I have tried googling it but I am unable to find a guide which walks to through doing this, as I haven't done this before. Is Windows 2008 R2 capable of doing this or is th...
Typically this is split into 2 components: 1) an agent (or agents) which gather the information 2) a processing hub for collating the data and optionally scheduling invocation There's no end of vendors and products available for this - I use Nagios as it's designed to integrate with all sorts of probes using a very tra...
3
0
1,340
2011-10-20T11:17:40.913
infrastructure
serverfault.com
527,270
why is my sendmail selective in delivering messages?
I've seen my maillog and it has entries like these: [CODE] So If I send 100 emails (all auto-generated and not spamming people), ONLY few have been "Sent" and a majority of them are "deferred". The mailboxes exist and the host is reachable with valid MX record. What is the problem here? Thank you for time and patience,...
It looks like you're having DNS resolution problems. Even the email that was delivered correctly was delayed for over three hours. Check [CODE] on your host to make sure that you don't have non-existent, unresponsive or errant nameservers listed. Make sure that your resolvers respond correctly every time, and set up so...
1
1
93
2013-07-30T11:26:24.180
infrastructure
serverfault.com
257,346
Informix v12 substitute for query using multiple with statements
I am trying to convert some PostgreSQL into Informix and factor out the WITH statements in the query below. I have been unable to locate a solution to factoring out multiple with statements. The user account to do this does not have 'create table' permissions. [CODE]
I might be wrong but give a shot [CODE]
0
0
93
2020-01-14T04:34:07.380
database_errors
dba.stackexchange.com
179,466
How can I model direct ownership alongside group ownership?
I want to model the following: Companies sell their own Products. Sometimes, Companies will package multiple Products into a Bundle, and sell those as well. A Company may only sell their own Products and Bundles. I feel like it should be possible to model this just using foreign keys but I can't work it out. The possib...
A simple way is to make Companies sell only Bundles. A Bundle can contain one or more Products A Bundle has a flag that enforces "single product" and/or handling of it Schema: [CODE] Variation which allows FKs only [CODE] to [CODE] [CODE] Then the logic is "no rows in product_bundle if restricted_product_id is NOT NULL...
1
1
46
2017-07-10T12:25:04.523
database_errors
dba.stackexchange.com
1,079,625
Rancher x509 Certificate Expired yet not
When running kubectl, I get the error [CODE] So clearly it says the cert is expired. Only problem is I'm not sure which cert it is. I've checked HAProxy (Rancher sits behind L7 HAProxy with LE cert) Certs in the secrets shown from [CODE] Certs in [CODE] on the K8s node All are fine (not expired), as this particular ran...
This is a community wiki answer posted for better visibility. Feel free to expand it. Based on information from comments Root cause: One of the root certificates is invalid. This caused the Let's Encrypt certificate to be invalid. Solution: Update root cert packages on host systems Regenerate certificate
2
1
2,486
2021-10-05T16:11:47.907
pipeline_ops
serverfault.com
103,477
How to multiply a pandas dataframe with a numpy array
I have a simple program for performing PCA analysis on a dataset. The goal is to multiply the dataset by the feature vector at the end of the program. [CODE] Expected: The 3x3 matrix consisting of A1, A2, A3 columns should be multiplied by the 3x1 vector such that the returned dataset has been transformed via the princ...
If I understand it correctly, you simply want to multiple the feature vector with each of the columns in your dataset, i.e. [CODE] , [CODE] , and, [CODE] . This can simply be done by using the [CODE] sign: [CODE] Which returns the following dataframe: A1 A2 A3 Class 1.73072 -0.227613 0.147112 3 6.92287 -0.366662 0.2942...
0
0
2,909
2021-10-25T10:19:18.113
data_quality
datascience.stackexchange.com
273,419
Does it make sense to install SSDs on server?
I want to build a server hosting about 2TB+ data. Of course SSD is out of the picture in terms of the data drive. My question is: Is there any benefit to use SSDs as the boot drive? I plan to put 16G memory on it. I think most of the time the services should be loaded in memory and the server should rarely require rebo...
I don't think so, not at this time. They're expensive, it's a relatively new technology that's not without its own problems; Jeff Atwood has an interesting blog post about the advantages and disadvantages of using them. Given your intended use case the need for an SSD seems even smaller. You normally see huge benefits ...
12
10
6,508
2011-05-24T20:59:46.227
infrastructure
serverfault.com
245,241
Configuring SQL Server for SSL Encryption
I'm new to the DBA role and I've been tasked with configuring a SQL Server install for a client, with the requirement that databases will be distributed across two instances. Connections to one of the instances require encryption under an SSL certificate so I'm hoping that I could gather some advice on how best to impl...
When the client connects to the server, the server provides its certificate. If the client is not explicitly configured to trust whatever certificate the server returns, it will check the client keystore to see if it can trust the certificate. The client keystore does not have to contain a copy of the server's certific...
2
4
857
2019-08-13T16:21:32.490
api_errors
dba.stackexchange.com
157,379
SQL Network Name owned by Available Storage OwnerGroup in Server 2012 FCI
I did a simple [CODE] and noticed the ' [CODE] ' is ' [CODE] '. Not [CODE] for the [CODE] . I want to fix this ASAP but I'm having a hard time finding out how to move a owner group only. Or actually from what I can tell the SQL Network Name (instance) isnt even supposed to be a 'network name'. It's a instance. I think ...
It looks like a rogue client access point was added or someone manually moved/changed something. Your two instances are as such: [CODE] They have corresponding network names in the proper groups: [CODE] Each client access point also has at least one online IP: [CODE] The outlier (failed) client access point: [CODE] Whi...
1
2
169
2016-12-06T17:48:55.220
database_errors
dba.stackexchange.com
334,669
How can we analyze everything an application does in SQL Server?
I'm not a DBA (yet) but this seems a DBA-type question rather than a programming question. I've been asked: Which queries are called most frequently? How many times are they called during a normal project? How long do they take to execute Are we able to extract an execution plan from SQL to show how it currently runs? ...
While this initially looks like multiple questions, you do boil it down to "Are there any recommended tools for this kind of analysis?". And the answer there is "yes". Cue outro music, roll credits. On the off chance you wanted more detail, the answer is "it depends". What's your budget, both for purchasing tools (if n...
1
5
96
2024-01-08T17:46:18.107
pipeline_ops
dba.stackexchange.com
253,168
Rewrite URL - redirect everything BUT images
HI, I have a working redirection that looks like this [CODE] everything like www.shop.com/weihnachtsshop/product.html get's redirceted to www.shop.com/hochzeitsshop. My problem now is, that i need this redirection to exclude all images, like www.shop.com/weihnachtsshop/product.jpg - these links should not get rewritten...
One way: [CODE]
1
4
970
2011-03-29T13:35:21.117
infrastructure
serverfault.com
68,086
SATA Drive and RAID Controller Recommendation for FreeNAS
I'm looking to build a RAID Array for storage of media (Audio, Video), file server for both CIFS/NFS and as a repository for backups. Performance isn't a huge concern but reliability is as this is designed to be a archive. I'm currently looking at either a 3Ware or a Areca RAID controller to do Raid5/6 using FreeNAS wi...
I've used 3Ware and Areca. Both are solid but I've only used more recent models. I personally own a 3Ware 9650SE-4LPML and it's been great. No problems, no hiccups. The array just hums along. As far as SATA drives, I'm a bit biased as I only use Seagate ES.2 for my permanent storage (documents, databases, projects, etc...
4
1
13,780
2009-09-23T16:25:23.677
database_errors
serverfault.com
420,707
The "real and effective" GIT CI/CD strategy
I've started in this new company a few weeks ago, this is the CTO CI strategy: Current: Developer team has the repo prod/master and they merge everything into master (no branching strategy). Once the code is ready in prod/master they'll ask Infrastructure team to start the deployment process which uses Jenkins. The Inf...
By having three repo you kind of have a branching strategy already but a complex one. I think you're not facing a technical issue but a cultural issue. Even if your solution is good (I think it is but I did not go into details) you won't be able to have it accepted as is. In those kind of situations you need first to u...
7
7
440
2021-01-05T19:58:44.060
pipeline_ops
softwareengineering.stackexchange.com
192,731
How to know which security updates to install?
I am using KB2977316 and KB3045324 for this example. These are security updates for SQL Server 2014 RTM. KB2977316 is version 12.0.2381.0 published 6/2/2015 KB3045324 is version 12.0.2269.0 published 7/13/2015 If I have a SQL Server 2014 RTM system, do I need to install both of these, just the last one released, or the...
Part of my mistake was in comparing QFE and GDR builds and release dates. The QFE downloads are much larger (~600 MB) than the GDR downloads (~200 MB). The dates and build numbers vary widely as well I found the information at Latest Builds of SQL Server 2014 quite helpful. So just comparing the related security bullet...
0
1
383
2017-12-08T20:10:57.920
database_errors
dba.stackexchange.com
20,298
Table cache hit rate is 0% - is that a huge concern?
Hi all of a sudden my server has slowed to a crawl, queries that were 0.10 of a second consistently now taking 20 seconds. somewhat randomly, sometimes it snaps right back. so I have a really sudden and harsh performance problem. I ran mysqltuner.pl and it reported one thing that might be a problem : [CODE] I am just s...
I have seen this problem when a table being frequently table scanned no longer fits in memory. Instead of reading data from cache, the data is read from disk. This will flush data out on a LRU (Least Recently Used) basis. As a result you will be constantly reading the data back in for the next table scan cycle. If you ...
6
1
11,897
2012-07-02T18:05:50.073
database_errors
dba.stackexchange.com
1,118,964
Cron Jobs don't run all the time (just a part of the hour)
I work on a website who is using cron jobs for import and update products. The platform is Woocommerce. The supplier offered the csv file, and a server requirements. I have them over the requested: 32GB RAM, 16vCore, 400GB space. The issue is that the job is working just few minutes/hour...between 3 and 10 minutes, eve...
Using [CODE] make you "hold" [CODE] tasks execution until release of lock file. And this is because the execution of one task take more than one minute. The best you can do is to create tasks to run every 10 minutes so you will never get them added to a queue. Also check and measure the execution times and carefully se...
0
0
467
2022-12-28T07:50:31.867
infrastructure
serverfault.com
1,155,558
NGINX 403 ACCESS DENIED
I have this problem in nginx, it is a Laravel application. but it is in a user's folder /home/user/projects, I already tried with 777 nginx owner of the folders but it still shows the error [CODE] with error Access denied. I have my permissions this way. [CODE] mi www.conf [CODE] mi /etc/nginx/conf.d/laravel.conf [CODE...
As you have [CODE] enabled you need to put your files into [CODE] as this directory has [CODE] context which allows read access to files for the [CODE] . Otherwise, you need to set the appropriate context yourself.
0
2
143
2024-03-02T07:19:16.610
api_errors
serverfault.com
888,472
dashboard to show eventlog errors, warnings (traces) etc.
i'm after a dashboard (tfs?) to show what's currently going on with my MVC website. We write errors to the event log, and I duplicate that to a trace which I'm displaying 'live' with dbgview but I'm after something a bit more polished. What should I be using? thanks.
There are a lot of products out there (both commercial and free) that collect event logs (and log files) and allow you to create dashboards and custom searches. Since you're running Windows you can take a look at EventSentry - has a flexible dashboard and supports alerts as well. It offers system health monitoring as w...
0
1
41
2017-12-16T20:26:27.940
data_quality
serverfault.com
5,656
MySQL Auto_increment going 2 by 2
I installed MySQL Workbench the other day, accessed my company's database and made myself a table to work with. So far so good. The problem is, I noticed my auto_increment is incrementing 2 by 2. For example: [CODE] When I do [CODE] I get this: [CODE] So I tried setting [CODE] to 1 with: [CODE] And after verifying agai...
The prefix that was used: [CODE] Is the same as: [CODE] When modifying this setting, it becomes relevant only in your current session. To make a more permanent fix try: [CODE] Is the same as: [CODE]
8
7
21,418
2011-09-12T13:17:16.790
database_errors
dba.stackexchange.com
271,756
Is there a better way to summarize a table containing events of different types by identifier?
I have this table definition for sensor events: [CODE] I'm looking to get a summary for each sensor for each event type. Currently I'm doing it via this materialized view which gives the created timestamp of most recent event for each type (mapped to an enum in code) and a total event count. [CODE] I like the resulting...
There is no way where you don't have to touch your query when new types are introduced, because the number and type of the columns of a query must be known to the database before the query is actually run (they are evaluated at parse time). But you can simplify your query by using filtered aggregation to get the differ...
0
2
51
2020-07-28T05:02:29.620
warehouse_errors
dba.stackexchange.com
829,844
FreeBSD shows high load, cannot find bottleneck
So we have set up a server( 11.0-RELEASE-p2 ) that hosts around 150-200 jails. The server has 24 cores and 192gb of ram. When using top it shows no sign of stress - except the high load. All jails reside on NFS mounts and each jail mounts its own directory upon creation. The server does not feel slow in any way, its ra...
Can you post dmesg output and any log messages from /var/log/messages? What I see is that you have a 196GB ram machine that is trying to do everything in 3GB of ram... it is probably swapping furiously. Mem: 3116M Active, 23G Inact, 23G Wired, 900M Buf, 138G Free ARC: 10G Total, 2612M MFU, 4553M MRU, 37M Anon, 89M Head...
2
0
2,509
2017-02-01T10:01:49.757
infrastructure
serverfault.com
84,833
Incorrect query results for execution plan, unsure of exact cause of problem
We had a query yesterday that was intended to page through results but on the first page of results the query only returned 4 records instead of the expect 25. Changing the query in any way resulted in 25 records which meant to me that it was an execution plan issue. I'm not familiar with a way to view execution plan i...
You should consider refactoring to use the new paging clause in SQL Server 2012, ( [CODE] ), rather than that old-fashioned 'roll your own paging' eg [CODE] It's potentially more efficient. Here's a sample SQL Fiddle .
1
4
1,033
2014-12-10T19:01:51.813
data_quality
dba.stackexchange.com
269,501
How to check if specific number of rows exists without count(*)
I know we can check if at least one row of a table exists using EXISTS keyword, for example: [CODE] What if I want to check if at least N rows exist, without using COUNT ? Performance matters to me. I don't want the whole table to be scanned to count matching rows. I just need my query to stop when N rows are found. I ...
You can add this in the [CODE] subquery: [CODE] In other words, the subqery first tries to finds (N-1) rows, skip them and return the next (Nth) row. So, it will return something (one row) if and only if there are N+ rows. You need appropriate indexes, i.e. an index on [CODE] in this case, to make it as fast as possibl...
2
4
2,166
2020-06-19T22:51:01.853
database_errors
dba.stackexchange.com
790,303
Apache mod_proxy with Tomcat 8.5 using http2
Is it possible to use [CODE] in front of an Apache Tomcat 8.5 with the http2 protocol? If yes it would be nice to see an example configuration. Edit Specifically: Is it possible and recommended to use http2 between the client and the server ( [CODE] ), and continue the data stream with [CODE] between [CODE] and [CODE] ...
Apache httpd added HTTP/2 proxy support from 2.4.21 but suggest you run latest (2.4.27 at time of writing) as this module is still changing quite a bit at the moment. Tomcat has just added HTTP/2 support in Tomcat 9: https://readlearncode.com/configure-tomcat-9-for-http2/ So in theory this should all fit together nicel...
3
5
3,512
2016-07-17T13:14:06.153
infrastructure
serverfault.com
211,435
Help me understand Exchange and mail routing
The organization responsible for our mail infrastructure has recently embarked upon a migration to Microsoft Exchange. The group I work with has encountered some problems with the Exchange implementation. Because there are political issues involved here as well as the technical ones, I'm looking for a little help under...
It looks like in our case the problem boils down to the fact that Active Directory is configured to be authoritative for DNS requests in the [CODE] domain, even though technically it shouldn't be...so the error message being returned is fundamentally accurate; AD doesn't know about [CODE] even though the resource recor...
4
3
3,342
2010-12-10T20:39:27.417
infrastructure
serverfault.com
359,631
Identifying code from bug reports
Imagine this scenario: You are relatively new to a very large codebase for a GUI application. A bug report comes in. Since it is a GUI, the report is not expressed in terms relating to functions or exceptions raised from the code, instead it has screenshots of the GUI, descriptions, maybe a video. What strategies do yo...
First you reproduce the bug. Then you run your system in the debugger and halt at a place that you know the control flow will pass through. The stack frames at that point tell you what route through the system this use case takes. Obviously the important point is to pick a place in the code base that is actually as clo...
-1
5
141
2017-10-24T06:57:08.900
api_errors
softwareengineering.stackexchange.com
57,104
How safe is it to widen a column in MySQL?
Apologies for the simple question but SQL isn't really my forte, and I want to be sure I don't shoot myself in the foot. A MySQL database I volunteered to help maintain has a table that looks like this: [CODE] This works fine, except that recently our user IDs started to be larger than 65535, which caused the values st...
Here are the answers to your questions 1.Are the ALTER TABLE commands above correct? (In particular I'm not sure if I should append a number-in-parenthesis to MEDIUMINT, and if so, what number it should be) [CODE] Yes, they are correct. You could also do this in a singe command: [CODE] The parentheses are not needed. I...
2
2
335
2014-01-20T03:24:43.210
database_errors
dba.stackexchange.com
335,983
Postfix connection lost after AUTH
Looking at the logs on my mailservers, I have noticed messages like the following: [CODE] There are no SASL failures in these cases. There are SASL failures are logged at other times, but never with [CODE] . What is happening here, and should I do any about it? These are not MXs, and already have [CODE] set. Possibly r...
This is a botnet from China connecting to your box trying to deliver Spam. But the bot is too stupid to know what to do when being told to authenticate itself. The bot just stops delivering mail and then disconnects for attacking the next victim. Absolutely nothing to worry about.
14
8
31,244
2011-11-29T21:08:16.143
infrastructure
serverfault.com
275,533
Is it possible to change collation for an existing database with PostgreSQL?
Such as change from [CODE] to [CODE] ? I tried this but seems not allowed. [CODE]
No, that is not possible. The reason is that there may be data structures in the database that depend on the database's collation: indexes over string data types. If you'd be able to change the collation on the fly, all these indexes would implicitly become corrupted. You might say that is OK, let's just rebuild all th...
3
5
10,768
2020-09-15T08:26:09.173
database_errors
dba.stackexchange.com
397,046
What is a good strategy to queue incoming queries (posting to a c# controller)
I have a situation where clients are posting query requests to an endpoint (a c# controller method), and the controller takes the data they post and figures out what query they want, then calls a stored procedure to retrieve the data, then sends the results back to them. The problem is that these queries come in pretty...
You don't want to keep the connection open while clients wait. So to do the async processing you really need to be able to post back to the client, or at least enable the client to poll the status of their job. Once you separate out the request and reply messages you can solve the queuing with any MQ solution (ie rabbi...
0
2
373
2019-09-06T12:59:37.070
database_errors
softwareengineering.stackexchange.com
1,013,642
GCP HTTPS LB health check is working but no real traffic getting in, what could explain this?
If the health check is working and the backend service is marked as green (i.e. I do have a firewall rule for the LB hc/traffic), would could explain that no real traffic can get in (I'm getting a 502 "failed to connect to backend" in the LB log)? I'm running nginx behind, I do have access log entries for the healtchec...
As per the GCP documentation , 502 errors failed_to_connect_to_backend basically mean that the connection to the backend instances has failed to establish I would recommend making an hTTP(S) request direct to the instance and verify it is responding. If instance is not responding check the instance firewall or the GCP ...
1
1
1,111
2020-04-22T20:59:44.113
infrastructure
serverfault.com
117,813
I keep failing hands on part of the interview, suggestions?
So I have a couple of software/site in my portfolio. They make money but not a whole lot. So I decided to get some job experience, mainly applying to Java/PHP junior development positions. The problem is that I answer all the technical questions correctly and we schedule to do a coding "test", the final phase of the in...
Keep attending interviews. You'll eventually find a place that will ask questions more amenable to your strengths. You'll also get better and more comfortable with interviewing, which can only help. Look at it as a game, because that's really what it is. Keep playing, and eventually you'll win.
13
18
5,938
2011-11-04T03:25:35.843
api_errors
softwareengineering.stackexchange.com
1,034,199
Is BootP still used?
I work in a relatively small company that develops and produces switches/routers. Our devices support BootP and DHCP servers/clients. We have a few bugs in the BootP and I'm thinking about suggesting the complete removal of this feature. I've been dealing with other companies for 10 years now and I've never met a custo...
The answer to this question is “absolutely”. I work in a large (global, >$5Billion revenue) enterprise that has numerous BOOTP-only devices which give me monthly headaches. I'm actively pushing our users to move to DHCP where at all possible. But there are many instruments and other networked devices that manufacturers...
2
5
497
2020-09-17T06:59:04.307
infrastructure
serverfault.com
156,405
RV042 - how to broadcast UDP through VPN
I setup a gateway to gateway vpn connection with linksys RV042 router. i was able to ping each other, access file sharing ( with netbios enabled ). They are having same subnet mask 255.255.255.0, 192.168.1.0 192.168.2.0 Firewall disabled. But when i created/host LAN games (eg. warcraft3), it cannot be detect by clients...
I'm going to go out on a limb here and guess that you're an internet cafe, and that's why this is professional. LAN games are usually designed to run on a LAN. You've set up your VPN using internetworking techniques, and to put it simply, the game treats this much the same way as the internet in general. The broadcasts...
2
3
12,466
2010-06-30T18:50:10.800
infrastructure
serverfault.com
194,672
Setting up ssh to a url
I have enabled ssh on one of my computer at home, so I can get to it from my main IP. No I have a domain where I forward it to my ip. Lets say this website is called melikecandycoveredfrogs.com mapped to http://myip/ I am able to run ssh myip and sucessfully connect but when i try ssh melikecandycoveredfrogs.com it doe...
SSH is not HTTP, so discussion of your website is not relevant (and yes, passing http:// to ssh will confuse it). When you say "mapped to", I don't know if you mean that: melikecandycoveredfrogs.com is an A record pointing to 1.2.3.4 (assuming 1.2.3.4 is your IP address) melikecandcoveredfrogs.com uses a META REDIRECT ...
0
8
119
2010-10-25T21:35:56.950
infrastructure
serverfault.com
11,084
How do I remove a driver completely on a Windows XP client machine?
I have a client (XP SP3) machine where newer drivers have been installed. Unfortunately while these (audio) drivers fixed mic boost, they have introduced problems such as no input working and random unnamed devices in applications that select the audio device. I need to revert the drivers. However, rollback does not wo...
Windows uses a number of factors to decide what is the "best" driver, such as hardware ID matching (INFs that match more specific hardware IDs are "better"), driver date, driver version, and whether the driver is signed. How Setup Selects Drivers has the details if you're interested. As for how to remove the newer driv...
6
6
126,011
2009-05-22T02:04:34.863
infrastructure
serverfault.com
810,844
openLDAP Replication Error "invalid format entry: olcDatabase={1}mdb,cn=config"
I'm trying to set up an LDAP Replication server by following this ( https://www.server-world.info/en/note?os=Ubuntu_16.04&p=openldap&f=5 ) tutorial. At Step "[3] Configure LDAP Consumer" I've got the ldapadd error message "ldapass: invalid foramt (line 6) entry: "olcDatabase={1}mdb,cn=config" My config file with ldapad...
Solved. This tutorial ( http://www.linuxlasse.net/linux/howtos/OpenLDAP_N-Way_MultiMaster_Replication ) has a Headline Errors and Fixes. There is said, that I schould add following lines among the changetype: modify line: [CODE] Now it works.
0
2
6,662
2016-10-24T07:12:25.560
database_errors
serverfault.com
485,832
SSD Asserted Errors, Dell server
I have installed Crucial SSDs on a new Dell r620 server. Ipmitool keeps alerting that the drives state is changing. [CODE] The RAID and drives however appear to be functioning fine.
The monitoring will continue to complain, because it's not a Dell drive. Dell puts special firmware on their drives to support some of the monitoring. Since it's not a Dell approved drive, you likely won't get any warranty support if anything goes wrong. Whether that matters is up to you. The monitoring of the drive wi...
0
1
1,032
2013-03-08T00:37:53.163
pipeline_ops
serverfault.com
911,473
Why is TLS1.0 still seemingly supported on a "minimum TLS1.2" web app service on azure?
We have an app service on Azure, and as Microsoft made available recently (april 30 2018), we now have an option to require TLS 1.1 or 1.2 : We run hackerguardian scans for PCI compliance, yet, they still return failure on TLS support : I also ran the ssl test from ssl labs . And result were... unclear : There are no T...
It's caused by a feature is done, but not done-done issue. More information is available from Microsoft . As of today (June 19th), there are still some edge cases that are not handled correctly. Full support is now delayed to the beginning of July (after the PCI Compliance date). (May 14th) This is actually working at ...
4
1
873
2018-05-09T14:54:34.030
infrastructure
serverfault.com
1,061,113
Give permissions of LDAP group files to specific user
Here is the situation: I want user usr to have the same permissions of a group grp , anywhere in the system. grp is not a local group, it comes from a LDAP server, of which I have no control over. I don't have much experience with Linux, so I did some research and found two possible ways to accomplish this: Create a lo...
It cannot be done without modifying the LDAP database. You can add local users to LDAP groups, but it must be done on the LDAP server. The problem is that local groups and LDAP groups are different "worlds". A system can be configured to use both, but one of them will be a primary, and the other a secondary. If somethi...
-1
0
1,378
2021-04-21T17:02:44.203
infrastructure
serverfault.com
905,278
Rsyslog creating duplicate entries when forwarding application logs
I'm trying to add a new application log forward to a host which is already setup to send it's logs to a remote syslog server. I'm following the directions here: http://www.rsyslog.com/doc/v7-stable/configuration/modules/imfile.html The log file is written by an application and doesn't use any of the syslog facilities. ...
Needed to add this line to applogger.conf. Any unique keyword found in the applog message entry will work. [CODE]
1
0
3,234
2018-03-29T21:32:02.680
data_quality
serverfault.com
125,259
Is there another way to run Apache2 securely for end users without using CGI mode?
Is there another way to run Apache2 securely for multiple end users (like hosting hundreds of blogs) without using CGI mode as required by suPHP? It just seems so inefficient to use CGI mode for PHP when if we could set up permissions properly, we could host PHP through mod_php perhaps? I mean, I do want to restrict th...
PHP support FastCGI out of the box, so you could use mod_fastcgi or mod_fcgid and SuExec to run PHP scripts. It has almost the same performance as mod_php but still will run the scripts in individual user contexts. You should also read this article series about securing shared hosting platforms.
2
2
153
2010-03-23T05:46:09.750
infrastructure
serverfault.com
994,293
Upgrade outdated linux production servers without shutting down
I came into some work with a client who wants to setup a monitoring infrastructure. The issue I have come across is a lot of servers are using really old kernel versions(from around 2012-2013) the monitoring system I am setting up requires a newer kernel version. I am aware there is a solution where the kernel can be i...
100% uptime is not attainable. Their business continuity plan is not complete or realistic if they think it is. Define what availability they are actually willing to pay for. As little as possible downtime means that multiple nodes are a necessity, such as a load balancer or cluster. Rolling upgrades mean the service s...
0
3
185
2019-12-04T15:43:28.377
pipeline_ops
serverfault.com
546,251
How can I find the bottle neck?
I have a [CODE] Instance runs [CODE] , [CODE] and [CODE] . Cache is handled by [CODE] using [CODE] and the database connects to a separate [CODE] [CODE] server. The content can be fairly dynamic as newsfeed can be dynamic and my server is used by an iOS app. I am doing siege tests [CODE] if I do only 1 siege I see resp...
test each component alone, and then all together. for each standalone test, make sure you simply test the pure performance, e.g. in nginx do [CODE] when your are sure, each component is tuned well, start combining them and test again btw, are you using proper indizes on mongo?
0
0
1,132
2013-10-15T19:35:22.813
infrastructure
serverfault.com
128,326
get number of events per day from profiler trace
I am trying to do something that I thought would be simple but turns out it is not (for me). I have 5 days of profiler trace files that I have imported to a single table. I want to query the table and get the number of events per day. I just want a simple result that looks something like this [CODE] so I found some exa...
Try: [CODE] Grouping by the raw, unconverted value means you are guaranteed to have a row for every unique StartTime. (And it probably makes sense to sort that way, otherwise your rows could come back in an arbitrary and unintuitive order.)
1
3
337
2016-02-04T19:17:41.753
warehouse_errors
dba.stackexchange.com
829,157
Setup a webserver as subpart of another server
I have a website in a server, pointing to a domain, say example.com I want to create a new webserver (running in another port) for a second website. This is no problem. The thing is that I need the second website to be reached in a url like example.com/second_website, So that I create the illusion that it is part of th...
You can define whatever additional hosts you want under your domain, say www2.example.com. For user experience, note that people rarely type third level domain names these days. So to catch the traffic going to example.com you could have a http redirect at appropriate places or links to the new site. It may be simpler ...
0
1
23
2017-01-28T15:39:47.533
infrastructure
serverfault.com
221,846
Migrate SSRS Reports to Power BI Report Server
I have to servers: one with the SSRS Report Server and a second server with the Power BI Report Server. The issue is I'm trying to migrate the SSRS Reports to the Power BI Report Server instance on a third server that I plan to unify both report databases. As far as I understood based on a Microsoft article ( Migrate a...
...is there any way that I can put these services in the same server/database and running under the Power BI Report Server? You can have SSRS and PBIRS on the same Server , but they will require their own ReportServer databases in order to run them both. If you want to migrate your SSRS reports into PBIRS, then you nee...
1
0
1,831
2018-11-05T21:18:14.633
database_errors
dba.stackexchange.com
490,442
separate logs from limit_req_zone in nginx
Here we have piece of current nginx configuration: [CODE] Is there any way to separate "triggering" limit_req zone (which causes error code 503, that can be caused by apache backend too , for example) to another log file (rather default /var/log/nginx/error.log). Yes, there is new feature in 1.3.15 [CODE] But it was im...
I've made some like that: [CODE] Looks like 503 generated by limit_req. So when feature [CODE] will be implemented in stable it gonna be more easyer to separate this kind of errors to separate file.
0
0
5,456
2013-03-22T13:26:21.673
infrastructure
serverfault.com
1,026,375
Forwarding eMails from Exchange to Icewarp bounces back, but not via distribution list
we are testing heavily Icvewarp as replacement for our outdated Exchange. Unfortunatly there is nearly no docu around in the internet, which makes it not easy :-( We have now set up the Icewarp together with the Exchange. All mails coming to the Exchange postboxes are forwarded via a user-setting to the Icewarp server....
I'm here to confirm your current trouble: Did the emails which were sent to the distribution group that includes one mail-contact member(myuser@icewarp.domain.com) not show the SMTP sender email address on icewarp server? If so, could you get the SMTP email address if you send emails from another domain email address t...
0
0
568
2020-07-23T08:05:49.050
infrastructure
serverfault.com
196,066
Design feedback on my first database
Couldn't find a newbie forum; hope this is in the right place. In my quest to learn more about databases, analytics, and creating service APIs to work with them, I decided to scrape an online archive of Jeopardy data and plan to reconstruct the data into a functional db. Pretty sure this has been done before, but learn...
Having numbered columns is an anti pattern. Your Game table shows it. The relationship between Game and Player is many-to-many, even though the cardinality is fixed from a game's perspective. Resolve the problem by adding a new table ("Participant"?), with foreign keys to both Game and Player. To see how it helps, try ...
1
2
753
2018-01-23T23:18:30.737
data_quality
dba.stackexchange.com
402,949
Web API layer vs Application layer
I am just wondering should the presentation layer connects to the Web API layer first then WEB API layer connects to the Application layer? Let's say for ATM system which has Check Balance function, in my application service layer, I have these codes: [CODE] At the moment, my presentation layer connect to this applicat...
As Robert Harvey mentioned in his comment, a web API is part of the application layer. An application layer is usually something that sits between the presentation layer and the business logic, translating GUI actions into/from messages understood by the objects in the business logic (for example, HTTP requests into me...
0
1
4,070
2019-12-26T02:27:21.743
api_errors
softwareengineering.stackexchange.com
243,012
How does dependecy injection increase coupling?
On the Wikipedia page on dependency injection, the disadvantages section tells us this: Dependency injection increases coupling by requiring the user of a subsystem to provide for the needs of that subsystem. with a link to an article against dependency injection . Dependency injection makes a class use the interface i...
So, what am I missing? Dependency Injection decreases coupling between a class and its dependency. But it increases the coupling between a class and its consumer (since the consumer needs more info to create it) and the dependency and its consumer (since the consumer needs to know the dependency to use). Very often, th...
34
45
3,596
2014-06-04T13:57:47.663
api_errors
softwareengineering.stackexchange.com
132,912
Does setting a database to single_user prevent delivery of Service Broker messages?
Is it safe to assume that while a database is in single_user mode, the queues are not available for message delivery? My understanding is that the special tables that the queues represent reside in the database context, but it's not clear if message delivery counts as a 'connection' in the usual sense.
[CODE] means only a single session can connect to the database, whether that session is SQL Server itself, SQL Server Agent, or some user makes no difference. If you need to ensure no one can access the database, the only option is to take it offline. If you are comfortable with members of the sysadmin or dbcreator rol...
1
0
24
2016-03-21T20:18:34.420
warehouse_errors
dba.stackexchange.com
1,025,147
bind9 geoip does not function correctly
bind9 [CODE] has been compiled from source on debian-9 . [CODE] The main goal is use its GeoIP feature and answering queries based on resolver(s) IP address location and the configuration for [CODE] is as simple as this : [CODE] The zone for [CODE] is: [CODE] and for the [CODE] is: [CODE] Now if I query the domain ppod...
Thanks to @MichaelHampton that pointed out this fact that my local resolver has been configured to use a DNS server our side of the network that I had set up bind9 DNS server. So after not configuration my local resolver using [CODE] and enabling [CODE] of my modem, now a query from [CODE] gives the right answer. [CODE...
1
0
412
2020-07-14T08:50:25.117
infrastructure
serverfault.com
1,113,933
Can we change the name of rpool?
Can we change the name of rpool? Do we have to create a new BE(Boot Environment)? Can anyone tell me the complete process? [CODE]
To change the name of the pool, you should merely import it (which implies of course previous export) with the new name; however for root pool this requires the single mode and/or booting up from the alternate zfs-capable source. It's also worth mentioning that, as you were told, there's no obvious reason to rename the...
0
1
793
2022-10-25T06:30:42.390
infrastructure
serverfault.com
99,555
How do I fix "ORA-01033: ORACLE initialization or shutdown in progress" error?
I have an Oracle 9.2 database. The server has crashed. After rebooting any attempt to connect to the Oracle server returns error ORA-01033 (as in title). I've tried stopping and starting the Oracle services (from Control Panel -> Administrative Tools -> Services). Also, I have waited half an hour, so I don't think the ...
Not necessarily corrupted (that's actually pretty hard to do). Try these steps: Log onto the database server Set ORACLE_SID= yourSID at a command prompt, type sqlplus /nolog in sql*plus, enter: SHUTDOWN ABORT, then STARTUP If the database starts up normally, issue a SHUTDOWN IMMEDIATE and another STARTUP. If that start...
1
2
36,220
2010-01-05T11:57:26.203
data_quality
serverfault.com
634,701
Using self signed certificates with Tigase XMPP server
I am trying to use a self signed certificate, generated using http://docs.tigase.org/tigase-server/5.3.0/adminguide/#_server_certificates , to start the XMPP server. However, the server does not start logging the below mentioned exception error in [CODE] SSLContextContainer.init() WARNING: Cannot load certficate from f...
This is fixed now. It was a silly mistake from me. I had put all the files (tigase.mydomain.crt, tigase.mydomain.csr, tigase.mydomain.key, tigase.mydomain.pem) generated. And the "tigase.mydomain.crt" is the certificate without any private key also gets picked up for adding to the keystore and this is where the server ...
0
1
904
2014-10-09T11:23:01.373
pipeline_ops
serverfault.com
27,497
Error while Invocating IOS Driver with Desired Capabilities: "IOSEelement cannot be resolved to a type"
Hi there I have the following code: [CODE] But I am getting the following error: [CODE] I have tried some marvens but is not working, someones know how to help me? I am new in the automation thing and I do not know how to fix this.
Make sure you cast the driver correctly and import all necessary libraries. Here is the example on Appium's GitHub [CODE]
0
1
2,209
2017-05-28T15:26:50.540
data_quality
sqa.stackexchange.com
167,258
SQL recovery model for ADFS deployment
We have "AdfsConfiguration" and "AdfsArtifactStore" databases for our ADFS deployment. I keep running into disk space issues due to the full and transaction log backups being taken on the server. Right now, these two databases are in Full recovery model - but I wonder if I can just switch to Simple. Are transaction log...
When ADFS is installed using the built-in Windows Information Database (which runs an embedded SQL Server on the AD DC), these databases are installed in SIMPLE recovery model. You could possibly take that as an indication that it would be OK to run them in SIMPLE model in your own environment, but that is up to you. I...
1
1
439
2017-03-15T14:49:37.637
pipeline_ops
dba.stackexchange.com
681,054
No response from a remote linux server on specified ports
I have a remote CentOS 6.5 server that is running a tomcat 8 web server (AKA servlet) on port 54321 and I can't access it from my computer, although I'm establishing a successful SSH connection (that's how all the following log/command samples occurs) and a public HTTP request on exiting Apache Web Sever on port 80. To...
Maybe SELINUX is blocking the Tomcat process to start listening on port 54321. To check if this is the case, issue the command [CODE] , restart tomcat, and re-try to connect. For more information: http://wiki.centos.org/HowTos/SELinux If it not SELINUX related, try to connect to localhost issuing the command [CODE] . I...
0
0
1,417
2015-04-07T19:13:37.680
infrastructure
serverfault.com
302,981
CPU utilization is low but swapped out processes and blocked processes is high
We're facing intermittent periods of 100% CPU utilization. Server Configuration: HP DL580 G7 (4 Processor with 8 cores each; 128GB memory.) Operating System: Solaris 10_x86 update 9 Application: Oracle 10 R2; ASM for Disk Management. DB size 5TB; SGA 78GB Storage Subsystem: HP MSA2312sa Dual Controller SAS direct attac...
Do you VM's have the same number of processor's as the host system? if so this is a bad thing, and it can prevent the scheduler from working properly. IE if you have an 8 core system then no system on that box should have 8 cores assigned to it. You can have 20 VM's with 4 Cores assigned and that is not a problem, but ...
1
1
1,955
2011-08-19T11:49:32.200
database_errors
serverfault.com
35,361
not refreshing database in Selenium test
I'm writing some tests with selenium web driver. Each test has to go through different data sets. Hence decided to re-install pre-defined databases for relevant tests. Wrote a method as below [CODE] But this did not worked. But further investigation found it actually installed database but still keeping old database so...
Selenium doesn't work on databases. The below link describes selenium in extensive details. https://w3c.github.io/webdriver/ Coming to the problem you are facing, the solution lies in your problem statement itself. Please write a service/API to start the IIS server(that you are doing manually) and embed that in the bef...
-1
3
49
2018-08-26T22:40:39.210
database_errors
sqa.stackexchange.com
612,659
ssl certificate error while making cURL request to IP address
I am trying to send a cURL request to a server with an IP address x.x.x.x . It is a part of an health monitoring system. On the server I have configured virtual hosts for subdomain.example.com on both port 80 and 443. For the ssl certificate, I am using a *.example.com wildcard certificate which I use on this server as...
I'll make this a new answer, since it's going in quite a different direction. In fact it doesn't answer the question as posed, but is perhaps the direction the OP should be looking. The usual configuration when using a load balancer is that the SSL certificate doesn't live on the web server at all, but rather the SSL i...
5
5
41,635
2014-07-15T13:02:25.377
api_errors
serverfault.com
865,511
How to install IONIC framework in Debian GNU/Linux 9 (stretch) 64-bit running in Oracle VM VritualBox?
I want to install IONIC but I don't like Windows because sooner than later will be problems with some development tool or service that's not compatible. Ironically I'm having problems installing IONIC on Debian too, but I think it's related that I'm running Debian inside VirtualBox... and that I'm trying to install IOI...
This error happened because IONIC uses NPM which uses symlinks which VirtualBox filesystem doesn't like (for security reasons I don't understand). Luckily there's a fix... You can read the original answer here: https://github.com/npm/npm/issues/992#issuecomment-289935776 The solution is copied below anyway. On the host...
0
0
453
2017-07-27T15:40:34.520
database_errors
serverfault.com
372,971
Path is present, Permissions are okay, but still getting error
I recently installed pdftk using instruction provided at stack overflow I installed it, and run the commanded [CODE] the result was [CODE] I have the powerpannel access and I saw it through it that pdftk actually exists at the location i run the command [CODE] , it was okay but when in php i use [CODE] the output is 12...
A couple things. 1) Don't compile your own pdftk and stick it in /usr/local/bin/. You should use packages instead. The pdftk package is available in the RPMForge repo: [CODE] In fact, if your "whereis" is returning what you're showing, pdftk is already installed. Run [CODE] . If you don't get anything, install it via y...
0
1
2,522
2012-03-24T10:46:06.783
infrastructure
serverfault.com
947,136
SELinux: pam_systemd(sudo:session): Failed to connect to system bus: Permission denied
On one of CentOS 7 servers I cannot perform [CODE] from [CODE] user (Nagios daemon remote monitoring). Error message: [CODE] Of course, [CODE] is in sudoers file: [CODE] Contents of /usr/local/bin/pm2_check_pm2 : [CODE] ( pm2 is unprivileged user here, [CODE] has same problem). [CODE] solves problem. Same configuration...
It was finally fixed with the following module code: [CODE] In my setup "mongod_t proc_net_t:file" was required to proceed without nrpe check timeouts, not sure why.
2
1
4,060
2018-12-31T13:40:09.867
pipeline_ops
serverfault.com
53,601
INSERT INTO selected columns creates new column from JOIN
I have an [CODE] query that uses a [CODE] on two tables. The results of the query should take a subset of the information and insert it into an existing table. That part works, but the query also creates additional columns in the existing tables to (what appears to be) accommodation for the [CODE] statements. Simplifie...
Argh.. Stupidity reigns supreme. In response to Aaron's comment (which deserved an up-vote for stating the obviously overlooked), I traced back through the nested stored procedures. Turns out there was an [CODE] that was adding the columns with [CODE] values from some old legacy script that was an attempt at trying to ...
1
1
1,078
2013-11-20T02:16:15.450
database_errors
dba.stackexchange.com
716,362
How does google compute engine create users and how to disable them?
I've got a CoreOS cluster running on GCE and one issue that I've noticed with all GCE instances is that as long as you're auth'd with the project on Google Cloud platform, you can login in as pretty much anything on the servers. This is an issue for me because anyone on the team, or anyone who gets into the project, ca...
You can prevent a GCE instance from adding accounts by ensuring the google-account-manager service does not run. On CoreOS you can stop this service with [CODE] and then disable it permanantly with [CODE] . You may want to make an image with the service pre-disabled (or even delete the unit file) so that when you creat...
12
7
10,030
2015-08-24T16:31:01.917
infrastructure
serverfault.com
815,900
How to change boot drive on server with RAID 5 software raid
I have my hardware-owned dedicated server hosted in remote datacenter, running CentOS release 6.4 (Final) with grub (GNU GRUB 0.97). Server has 6 2TB drives with 2 software raids on them - md0 raid 1 for system and swap and md1 raid 5 for data. Here is fdisk and mdstat output: [CODE] As you can see, the array md1 is in...
When using software RAID, the selected boot drive depends entirely on the BIOS (and on how it enumerate drives). To have a bootable machine, simply replace the failed drive and use [CODE] to install the bootloader on the BIOS boot drive or, even better, to all the drive partecipating in the RAID1 array. Please see here...
0
0
1,478
2016-11-19T16:57:11.210
infrastructure
serverfault.com
115,351
Why compare multiple machine learning algorithms and then decide which algorithm to use for fine tuning?
I have a problem. There is a dataset A, which deals with a classification problem. And for this dataset, several different baseline algorithms have been defined and computed. In addition, three models were used: Logistic Regression, XGBoost and RandomForest. Now my question is this, why use different algorithms (Logist...
In machine learning there is something called the no free lunch Theorem , which basically states that there isn't one solution/algorithm that will perform best on every problem. Different algorithms will perform differently on different data. Therefore, you try different algorithms to pick the best, although there are ...
0
2
120
2022-10-18T18:16:49.560
data_quality
datascience.stackexchange.com
431,836
How do I avoid tightly coupling one microservice to another microservice's feature that depends on specific views of the first's data?
I've seen this problem in a few different contexts now but I'm not sure what it's called or how to think about it. Suppose I have a service, AccountService , that serves [CODE] s from a database, e.g. [CODE] [CODE] [CODE] [CODE] [CODE] [CODE] [CODE] ...and so on. It is a "platform" service used by many other services, ...
As is often the case, efficiency comes at the cost of having to make things efficient. To maximize efficiency, you'd develop these separate endpoints. This ensures that you get the best query performance by letting the account service's database do the heavy lifting for you, while also keeping bandwidth down to strictl...
2
2
1,080
2021-09-13T03:21:43.373
api_errors
softwareengineering.stackexchange.com
80,598
Loading a model with attention layer and custom metric
I have a neural network with SeqSelfAttention ( https://pypi.org/project/keras-self-attention/ ). Also I implemented a custom metric for F1. Then I saved the model without problems, but when the model is loaded using keras.models.load_model(model_path, custom_objects=SeqSelfAttention.get_custom_objects()) the next erro...
You need to use the custom_objects with dependencies term, check this code, I will explain line by line below: [CODE] I used a variable named iou_metric and assigned my defined function from train file and then used that variable in the dependencies and at last while loading the model the custom_objects are used with d...
0
1
817
2020-08-21T04:37:12.800
data_quality
datascience.stackexchange.com
400,463
Possible microservice based design
Here are the design considerations for a software. The querying of data should be as fast as possible (reader It should use microservices so there can be a swarm of them when load increases The system writes should be efficient and Sql Server should not become a bottleneck. Each mini-team should be responsible for thei...
I will share a few of my thoughts but please take my word lightly. Microservise's size A microservice can be as big as it needs to be. I remember reading about the pizza rule once, which said that a microservice should be that big so it can be maintained by a team which can be feed with two pizzas. That said, I would n...
0
2
191
2019-11-02T06:32:40.233
api_errors
softwareengineering.stackexchange.com
450,770
I accidentaly spammed myself - how long do gmail's block SMTP for after such inceidents
So, total brainfart! I mis-configured a cron job shortly before I went to bed last night and when I woke up this morning my script, which was supposed to run every 6 hours, had been trying to run every minute of every sixth hour instead - sending two mails via googles SMTP servers per go. Needless to say google nipped ...
While, I cannot answer you in a straight fashion when you will regain access to it -- as it's largely unknown and not very likely to be anytime soon, my suggestion to it is to simply get another service for your SMTP needs. That includes options like Google Groups for Business and paid Google Apps Mail services.
1
0
236
2012-11-21T09:15:41.997
infrastructure
serverfault.com
620,288
Windows Server 2012 - Trace CPU Spike / Takeover
I have had a problem in the last few days where every 10-15 minutes, my entire server goes non-responsive, shutting out all TCP connections, for about 3 minutes. I finally found that the connections shut out because all 16 cores spike to a solid, stable 100% CPU for the duration of those 3 minutes. I am actively trying...
The only answer I can currently think of is a little bit hacky, but it might get you an answer. First is capturing the process causing the issue. Schedule something like this to run every minute in a command window: [CODE] Or you could schedule it and change the command line to pipe it >> into a file. That will give yo...
0
1
1,087
2014-08-14T00:22:59.970
infrastructure
serverfault.com
57,884
Software vs. Hardware RAID1 (Mirror)
How does the Software Mirror in Windows Server systems compare to an affordable hardware/BIOS RAID? I've had some rather bad experiences with onboard hardware RAID controllers, so I would want to avoid them in the future. OTOH I've used XP's and W2K3's software mirror without problems so far - however, I've also never ...
BIOS-based RAID is little more than a poorer version of software RAID, from everything I've read and encountered. Plus if your mobo is fried, you usually have to replace it with a similar mobo, due to the way that BIOS will format the disks to track the volumes. This is a DEFINITE consideration for recovery of data, as...
8
9
7,337
2009-08-24T11:35:28.377
infrastructure
serverfault.com
487,426
Why ulimit shows different outputs?
I am very confused, and I tried a lot but I didn't get any way to overcome from a bug. I am posting the same. I am hoping that someone helps me. My problem is, When I run [CODE] it shows [CODE] . When I run [CODE] , it shows [CODE] . Till now, all is going well. But the actual problem arise here, I made some changes in...
You should connect to the rsh daemon with strace and look for setrlimit calls: [CODE] They should differ in both versions. This should lead you to the problem.
-3
4
1,229
2013-03-13T13:29:37.980
infrastructure
serverfault.com
561,759
Is this SOA record required?
I'm migrating a domain name from an ASP host to Enom.com. Using my hosting provider's nameservers, the DNS configuration is below. I'd like to switch to using Enom's servers, but I'm unsure what to do with the SOA record. I've never seen this on a domain name before... Is it necessary? I've never seen this on any domai...
SOA states for Start Of Authority and is kept at the top of the zone record files. This record is responsible for telling the DNS environment which is the NS server and who is the person responsible for some domain. It is formatted as: [CODE] Usually, at hosters, this record is automatically filled, so you don't need t...
2
3
1,573
2013-12-16T20:32:57.630
infrastructure
serverfault.com
126,201
How to set roles and users with correct permissions on Postgres?
My current database [CODE] has as owner [CODE] . But now I would like to set roles and users with the correct permissions. Something simple like: roles : [CODE] , [CODE] , [CODE] users : [CODE] , [CODE] , [CODE] , [CODE] Where [CODE] can do anything on the database for administration purposes; [CODE] can makes [CODE] ,...
The concept of groups & users has largely been done away with in PostgreSQL, with the terms USER and GROUP may be interchangeably used with ROLE. See documentation . Suffice to say that what you want to do is create your "group" role first like this: [CODE] Then grant all desired permissions to devs. Now create the use...
4
5
13,767
2016-01-14T09:03:43.637
warehouse_errors
dba.stackexchange.com
207,990
Relational tables should contain data and not logic - correct?
Ok, I couldn't find a better title, to be honest. I'm recently landed in a new working place, and I've been asked to help with the DB. I wanted to try to explain a concept, but I'm not sure how to word it at best, and maybe this concept has already a better explanation and a name, too. I don't label myself as a DB expe...
It Depends The purpose of a database is to store [CODE] in a secure fashion for multiple users across multiple applications. Some of the logic will focus on the [CODE] portion of that statement. These will be your [CODE] and [CODE] . Other parts of code within the database will focus on the [CODE] portion. For example,...
2
2
79
2018-05-27T20:10:10.243
warehouse_errors
dba.stackexchange.com
9,517
What criteria do you use to determine if someone is hammering your server?
When you go through your logs, what criteria do you use to determine if it's you (ie: you need to beef up your server/s) or them (ie: they're verging on a DoS)? How many connections/second would you consider reasonable, and why? Do you have some other rule (eg: weighted toward IPs who also referral spam?)
Ideally you shouldn't have to manually look at logs for these signs, they should be set as alert thresholds that generate automated SNMP/Mail traps, and in some circumstances initiate preemptive measures. As for specific rules, connections/sec or similar will vary based on hardware but consistent high CPU utilisation (...
3
4
198
2009-05-18T16:09:36.723
infrastructure
serverfault.com
198,058
Ethernet / DHCP-trouble on Linux
Have a strange problem with my wired network interface. Here goes: I plug in the cable. Both diodes light up (one green / one orange) and [CODE] gives [CODE] [CODE] (network-management gnome applet) icon starts spinning, but gives up after a while. I terminate the [CODE] and try [CODE] instead. This gives: [CODE] I tho...
I ran wireshark on an existing connection to get an idea for the traffic that transpires. You can compare with your own. DHCP Discover goes out broadcast Within 5 seconds, a DHCP Offer is received from the DHCP server An DHCP request is transmitted by the initiator advertising at least the host's name DHCP server ACKno...
2
1
498
2010-11-04T08:44:53.143
infrastructure
serverfault.com
40,679
model.predict in Keras, Python error
I trained a model in Keras with input dimension 15 and output dimension 1. Then I tried to predict the output for a single input np.array, which I chose to be a toy example np.arange(15). However, the input is not accepted. Can someone tell me where the problem is? Here is the code for a simplified problem: [CODE] The ...
But then again, the input clearly has the correct shape. [CODE] In Keras, [CODE] represents the number of input parameters, in your case that would be the number of columns of [CODE] or its second dimension (sometimes also referred to as number of features). It is clearly not 15. It is the first dimension that is 15. T...
0
1
4,106
2018-10-19T10:14:28.013
data_quality
datascience.stackexchange.com
918,497
Zabbix and logrt.count doesn't get data
I'm running [CODE] and [CODE] . I've created a custom item with the following syntax: [CODE] I'm trying to detect any log file in the format [CODE] with the word [CODE] and return the number of occurenses. But no data is gathered with this item, even though there are some files in the directoty which does contain the w...
From Zabbix version 3.4+, Perl compatible regular expressions (PCRE) are implemented in the Zabbix frontend/backend. Your regexp doesn't look right: [CODE] Try: [CODE]
0
2
3,129
2018-06-27T13:28:33.730
infrastructure
serverfault.com
39,958
Backup data while keeping POSIX ACLs and permissions
I'm looking for a practical way to backup data from a server and keep all ACLs and permissions. I've looked at tar, but according to Google tar doesn't keep ACLs . I know rsync can keep ACLs and permissions, but only if the target system supports POSIX ACLs and have the same users. In my case I'm doing the backup to a ...
[CODE] Star is tar with support for extended POSIX headers, that is, the ability to store some extra data about a file in the tar file. The [CODE] option gets the ACLs; you need it for both archive creation and extraction.
4
9
3,365
2009-07-13T16:31:09.143
database_errors
serverfault.com
338,936
How can I debug a hanging ssh connection?
I have two virtual servers with the same host provider. After regenerating my SSH keys on my client machine (local) I con only connect to one of the virtual servers. When I connect to the other (both are being done via the terminal) it just hangs. It's not timing out and I see nothing in the SSH logs that indicates a c...
try to launch ssh -v or even ssh -vv instead of just ssh.
4
9
3,546
2011-12-08T12:30:10.037
infrastructure
serverfault.com