Questions tagged [server]
A server is a running instance of a software application capable of accepting requests from a client and giving responses accordingly.
server
25,323
questions
23
votes
2
answers
23k
views
nginx keep port number when 301 redirecting
I'm trying to collapse a second brand of a web app into the first brand and use 301 redirects to redirect any lingering traffic. The server is running in a Vagrant box forwarding on port 8001. I would ...
23
votes
4
answers
28k
views
How to serve ReactJS static files with expressJS?
The Problem
I have successfully served the index.html file of my React app, but the index.js that replaces <root> in the html file
with my first React component is not triggering on ReactDOM....
23
votes
1
answer
67k
views
Can any c# application be run on linux [duplicate]
I am developing a game server in c#. Server talks to clients via sockets and sends byte[] using custom packet protocol.
The question is, will this software be windows os specific or will be able to ...
22
votes
1
answer
34k
views
Failed global initialization: BadValue Invalid or no user locale set. Please ensure LANG and/or LC_* environment variables are set correctly
I have a problem to generate the locales on the serveur herbert and homer .
I run mongo I get the warning
Failed global initialization: BadValue Invalid or no user locale set. Please ensure LANG and/...
22
votes
9
answers
21k
views
Heroku build failing due to Yarn and npm lockfile conflict
I'm trying to deploy a React Web app on Heroku using the Heroku CLI. However when I run,
git push heroku master
from my project folder it throws an error as:
Counting objects: 213, done.
Delta ...
22
votes
3
answers
39k
views
nginx: "/root/index.html" forbidden (13: Permission denied)
I am installing nginx. Here is the steps I followed:
Make index.html file in /root directory
edit /etc/nginx/nginx.conf. After edit it looks like this:
user nginx;
worker_processes 1;
error_log /...
22
votes
3
answers
63k
views
ModuleNotFoundError: No module named 'fcntl' [duplicate]
for flask application run using gunicorn
$ pip install gunicorn
$ gunicorn --bind 0.0.0.0:8000 app:app
getting error
Traceback (most recent call last):
File "C:\Users\shubham\AppData\Local\...
22
votes
7
answers
130k
views
How to add JBoss Server in Eclipse?
I am new to JBoss and have just installed Eclipse. I have added a project to the workspace and now I want to deploy it to a Jboss server. However, in the New Server Runtime Environment list, JBoss is ...
22
votes
4
answers
28k
views
I need to add a linked server to a MS Azure SQL Server
I have tried and tried, and can not get linked. I can connect to the server using SSMS, but can not link to it from a local server. Here is my script (replacing things in brackets with pertainent ...
22
votes
13
answers
133k
views
The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again
it shows the function related to root url i.e. ('/') but if i write @app.route('/home') it gives me that error
22
votes
1
answer
30k
views
How to setup NGINX to deploy different Single Page Apps (SPA's... i.e static files) depending on location (under same server_name) with subroutes
My goal is to setup two different single page apps (SPA) under the same domain, where we show the SPA corresponding to the location / path requested. I also want to default to one of the two SPA's on /...
21
votes
2
answers
27k
views
Ubuntu - nodejs - npm install -g > Error: EACCES: permission denied, mkdir
Was having a issue installing a NodeJS npm package. On a Digital-Ocean Droplet Ubuntu (14.04) server.
npm install -g PACKAGE-NAME
I even tried with sudo had the same error.
Error message:
...
21
votes
16
answers
189k
views
Server http:/localhost:8080 requires a user name and a password. The server says: XDB
I am trying to access localhost:8080 but it is showing me I need to enter user name and pass word. I remember messing up with the server some 4 months ago while I was trying to develop a web ...
21
votes
4
answers
26k
views
Vercel Serverless Function has timed out error
I have a Nuxt.js server side website deployed on Vercel. I've noticed that, on some occasions, I get a 504: GATEWAY_TIMEOUT error, with the code FUNCTION_INVOCATION_TIMEOUT and the message "This ...
21
votes
2
answers
28k
views
R shiny - background of sidebar panel
Let's say, I've got a simple shiny application and I would like to change sidebar panel background. I've tried with css, but I've managed only to change the whole background. Can you help me?
My ui.R:...
21
votes
1
answer
26k
views
gRPC: What is the recommended way to shut down an asynchronous server in C++?
I have a gRPC server that hosts two asynchronous services ("Master" and "Worker"), and I would like to implement graceful shutdown for the server. Each service has its own grpc::CompletionQueue.
...
21
votes
1
answer
52k
views
Unpacking index for Central Repository on Netbeans
I'm having a problem using Netbeans 8.2 on my High Sierra Macbook Air. When it opens it does a few startup things that seem to proceed normally, then it pauses for a minute or so, then it says "...
21
votes
1
answer
5k
views
Why is mysqlserver.lib file very large? Is this file neccessary in wamp stack?
Recently I created my development server using php7.0.1, mysql5.7 and apache 2.4.20.
After I successfully got it running, I checked the file size of my server and found that it is almost 2 GB.
So I ...
21
votes
1
answer
2k
views
Bokeh server callback initiated from Flask application
I am building an app using the Flask-AppBuilder framework, and have successfully embedded a bokeh plot using autoload_server to insert the script src into my html template. At the moment, I have a ...
20
votes
3
answers
13k
views
HTTP status code for "could not fulfill request for *known* reason"
HTTP 500 means the server could not fulfill the request for an unexpected reason. What is the best HTTP response code to use when the server could not fulfill the request for a reason that is known or ...
20
votes
3
answers
8k
views
How can I start the browser AFTER the server started listening?
In Go, how can I start the browser AFTER the server started listening?
Preferably the simplest way possible.
My code so far, super dumbed down to the point:
package main
import (
// Standard ...
20
votes
2
answers
45k
views
Run Spyder /Python on remote server
So there are variants of this question - but none quite hit the nail on the head.
I want to run spyder and do interactive analysis on a server. I have two servers , neither have spyder. They both have ...
19
votes
3
answers
142k
views
Python, How to Send data over TCP
I need to create a simple server that listens for TCP connections.
If it receives text on<EOF> or off<EOF> then it sends (echo) back success. The receiving part is working, but now i need ...
19
votes
1
answer
64k
views
BEA-141297 - Could not get the server file lock
Following error is encountered when trying to start Oracle Weblogic Server:
<Info> <Management> <BEA-141297> <Could not get the server file lock. Ensure that another server is ...
19
votes
3
answers
15k
views
How to enable CORS on a Netlify deployment?
I'm using Netlify to serve some static .json files. They load fine in the browser but when I try to fetch them via javascript I get the following error in the console:
Access to fetch at (redirected ...
19
votes
11
answers
64k
views
Heroku giving 500 error with little information + Internal Server Error
Heroku showing this message on the page:
"internal server error"
This error is showing in console:
GET https://frozen-gorge-82417.herokuapp.com/auth/github/callback?error=redirect_uri_mismatch&...
19
votes
2
answers
12k
views
Check errors when calling http.ResponseWriter.Write()
Say I have this http handler:
func SomeHandler(w http.ResponseWriter, r *http.Request) {
data := GetSomeData()
_, err := w.Write(data)
}
Should I check the error returned by w.Write? ...
19
votes
2
answers
17k
views
Does gRPC server spin up a new thread for each request?
I tried profiling a gRPC java server. And i see the below set of thread pools majorly.
grpc-default-executor Threads : Created 1 for each incoming request.
grpc-default-worker-ELG Threads: May be to ...
18
votes
2
answers
25k
views
Simplest way to return literal JSON using gin gonic
I am learning Go by building a simple API interface for a web server. I want to return a simple message in JSON, when a default route is hit.
So far, reading online, this is the easiest way to return ...
18
votes
3
answers
14k
views
How Server Sent Event send response to a specific client
In Server Sent Event, it always send the same response to all the client. but what i want to know is, How to send response to an only one client using java.
this is my event which define inside sw.js ...
18
votes
7
answers
48k
views
Android Studio: Client not ready yet
While launching an app, I am getting a message " Client not ready yet". Also, my device is showing" Waiting for debugger to attach ", followed by "Unfortunately, android app has stopped working". I ...
17
votes
9
answers
50k
views
Laravel Error 503 Service Unavailable Service
Error 503 Service Unavailable
Service Unavailable
Guru Meditation:
XID: 5312211
Varnish cache server
I working on cpanel and subdomain but i got this error from laravel project. do you can help me ...
17
votes
2
answers
8k
views
Recursively find files that are not publicly readable
I'd like to recursively find all files in my public_html folder that are not publicly readable (i.e. those files that will cause 403 error). Is there a quick bash command for that? I am using Linux ...
17
votes
6
answers
38k
views
Application property "server.servlet.session.timeout" is not working in Spring Boot project
According to the documentation of Spring Boot, session timeout can be configured by setting
server.servlet.session.timeout= 300s
in application.properties file. In this post and in Spring Boot ...
17
votes
2
answers
43k
views
WARNING: Module mcrypt ini file doesn't exist under /etc/php/7.2/mods-available
I've been trying to install phpmyadmin in Ubuntu 16.04.3 LTS having a lamp installed, php 7.2, mysql Ver 15.1 Distrib 10.2.12-MariaDB, for debian-linux-gnu (x86_64) using readline 5.2 and apache2.
...
17
votes
4
answers
10k
views
Standalone WebSocket server without JEE/application server
I need to implement a fairly simple WebSocket server in Java SE. All it needs to do is accept connections and store the respective sessions, then send a message to all connected client whenever a ...
17
votes
3
answers
21k
views
Shutdown netty programmatically
I'm using netty 4.0.24.Final.
I need to start/stop netty server programmatically.
On starting the server, the thread gets blocked at
f.channel().closeFuture().sync()
Please help with some hints ...
17
votes
9
answers
2k
views
What is the best approach to upload 1000+ records to a server that also contains images for each record from an iOS/Android app?
I have a app working offline. It is assumed that 1000+ records are created with images in each record during this period and whenever connectivity is established. What should be the approach to send ...
17
votes
9
answers
8k
views
Why is server ignoring changes in the code files even though cache is disabled?
I test an html/js code on my localhost (Windows 7, Chrome v79.0.3945.130 (64-bit)) and about 50% of the time code changes are not reflected in the browser (I see it with Dev Tools/Sources).
There are ...
16
votes
5
answers
62k
views
Nginx connect() failed error
I don't know why I got this error every time I tried to open the page:
2013/04/06 17:52:19 [error] 5040#0: *1 connect() failed (111: Connection refused) while connecting to upstream, client: 127.0.0....
16
votes
8
answers
35k
views
Unable to find htdocs on xampp
I have installed XAMPP for macOS Sierra.
I have one icon in application for XAMPP.
I am able to run the server & it's services but I am not able to find the htdocs folder.
I have not found it ...
16
votes
2
answers
20k
views
How to make "php -S" to work on local network?
In OS X Mavericks (and newer), start a PHP server from the command line:
cd to/your/directory
php -S localhost:8888
It works, but the server only available on that computer only. Is there a way to ...
16
votes
5
answers
38k
views
how to deploy vue app in the shared hosting environment?
I would like to deploy my vue application on shared hosting server. How should I do it?
Its a bit confusing as of now. Will I need express js for it or I can directly upload it like the normal html ...
16
votes
2
answers
38k
views
How to run a server in python
How to run a server in python?
I already have tried:
python -m SimpleHTTPServer
python -m HTTPServer
but its says to me:
invalid syntax
Can someone help me?
Thanks!
16
votes
2
answers
37k
views
I want to make href tag dynamic and value will be populated and i have ejs template
Sample code snippet:
index.ejs
<p><a href="<%=link%>" class="btn btn-primary" role="button">Download</a></p>
app.js
var express = require('express'); var ...
16
votes
4
answers
81k
views
Access to a site on localhost from remote
I use to develop my project on my localhost, on apache in ubuntu machine.
Sometimes i need to show progress to my costumer.
Is it possible to access to localhost from remote machine?
16
votes
2
answers
8k
views
GCM XMPP Server using Smack 4.1.0
I'm trying to adapt the example provided here for Smack 4.1.0. and getting a little confused.
Specifically I'm struggling to understand what the GcmPacketExtension should now extend, how the ...
16
votes
6
answers
21k
views
Firebase Hosting with own server node.js
I have webapp with firebase database. I would like hosting the app on firebase. My app has own server nodejs and using websockets. How can I host my app on Firebase? And how can I run my own server on ...
16
votes
3
answers
9k
views
Difference between Localhost and opening html file
What is the fundamental difference running a file using a server in localhost, and opening a file such as file:///Users/$user_name/$your_directory/index.html, assuming no backend is used, and it is ...
16
votes
5
answers
32k
views
Docker overlay2 eating Disk Space
Below is the file system in overlay2 eating disk space, on Ubuntu Linux 18.04 LTS
Disk space of server 125GB
overlay 124G 6.0G 113G 6% /var/lib/docker/overlay2/...