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,299
questions
13
votes
4
answers
52k
views
Cannot connect to Wildfly
I have just installed Wildfly and I tried to connect it :
\wildfly-11.0.0.Final\bin>jboss-cli.bat -c
But gives me follow error :
Failed to connect to the controller: The controller is not ...
13
votes
7
answers
3k
views
serve content from file vs database in node
I am making a new version of a old static website that grew up to a 50+ static pages.
So I made a JSON file with the old content so the new website can be more CMS (with templates for common pages) ...
13
votes
1
answer
8k
views
Swift Core Data Sync With Web Server
I am making an app (in Swift) which needs to run in offline and online mode. When its in offline mode, data will be stored locally on CoreData. Once it detects network (online) it should sync with ...
13
votes
1
answer
6k
views
Is HTTPS behind reverse proxy needed?
I have an API server running behind an nginx reverse proxy. It is important to have all requests to my API server be secured via TLS since it handles sensitive data.
I've setup nginx to work with TLS ...
13
votes
1
answer
11k
views
Tomcat Server creating Directories in tmp
Everytime my embedded virtual tomcat server is ran (spring boot) it creates a directory structure in /tmp/ that is named tomcat.##########################.8080 (I am guessing 8080 is for port or ...
13
votes
1
answer
7k
views
nodemon is slow to restart the server
I've recently reinstalled node package manager npm install nodemon -g which grabbed the latest build. But when I run nodemon server.js and I save changes to files, it's extremely slow to restart the ...
13
votes
1
answer
280
views
How does the Gerrit server intercept commits. Looking for technical details
I understand that Gerrit receives git commits (using the update hook perhaps), and write them on a fake ref somewhere until the peer review is done, but how exactly does that process work in terms of ...
13
votes
1
answer
8k
views
How to expose two ports using ngrok?
I have a local server on which my two services are running on port 8000 and 5500. I would like to expose both ports to the outer world. For the same I am using ngrok to expose both the ports. But it ...
12
votes
2
answers
31k
views
How to get MySql 8 to run with laravel? [duplicate]
I'm having difficulty getting MySQL 8 to work. This is the error that appears everytime I attempt a php artisan migrate. I've reinstalled MySQL only once so far because I didn't want to hurt my head ...
12
votes
4
answers
20k
views
Serve directory in Python 3
I've got this basic python3 server but can't figure out how to serve a directory.
class SimpleHTTPRequestHandler(BaseHTTPRequestHandler):
def do_GET(self):
print(self.path)
...
12
votes
2
answers
10k
views
No suitable URL request handler found?
I'm trying to connect to server on another computer in my network, I'm trying to send and check login data (username and password) with fetch to get json OK response. However, simulator is giving me ...
12
votes
2
answers
9k
views
Using http-server to activate server got TypeError: Readable.from is not a function
Im currently adding pwa to my new angular project.
C:\Users\alan_yu\angular-pwa>http-server -p 8080 -c-1 dist/angular-pwa
Starting up http-server, serving dist/angular-pwa
http-server version: 14....
12
votes
1
answer
12k
views
Mitmproxy url filter [closed]
I am using mitmproxy on Mac. I want to filter traffic by specifyc URL. The "intercept" function allows me to pause communication whenever filtered url is noticed. My question is - how can I filter ...
12
votes
5
answers
520
views
Proximity alert for locations saved at server
I did some search but could not find a suitable answer.
My App should compare with multiple locations for proximity. This means I will not be able to save all the locations into my app to confirm the ...
12
votes
2
answers
7k
views
How to return an early response from an actix-web middleware?
My clients authorize through a token in the Authorization header which needs to be checked for each request. If this header is missing or I cannot find a corresponding user, I want to return the HTTP ...
12
votes
3
answers
59k
views
Simple Python server to process GET and POST requests with JSON
I'm trying to create a simple Python server in order to test my frontend. It should be able to handle GET and POST requests. The data should be always in JSON format until they are translated to HTTP ...
12
votes
2
answers
23k
views
Does Express disable CORS by default?
I have been asked to make sure that a new express server that I've set up enforces against Cross Origin Resource Sharing (CORS) unless the request is coming from a particular URL.
I have found the ...
12
votes
2
answers
10k
views
Create separate Unity project for headless server
I want to create a headless server that handles my multiplayer game. This will be more a proof-of-concept project, but basically I just want to have multiple players (lets say 3) to move a box around. ...
12
votes
1
answer
6k
views
Create user for running a daemon, on MacOS X?
What is the right way to create a user on MacOS X, from the command line, which will be used only for running a sever application? For example, there is already the '_www' user for Apache httpd, but ...
12
votes
2
answers
20k
views
How to use websockets in asp.net core
im trying to develop a game where i store a scoreboard in a text file which is stored on server (currently on localhost). I am using http get and post calls in order to communicate with the server and ...
12
votes
1
answer
41k
views
WebSocket connection to 'ws://localhost:3000/' failed: Connection closed before receiving a handshake response
I took a game that my friend made and wanted to make it playable across browsers by sending keypress data between peers with WebRTC and websockets. However, I get this error in the console:
...
12
votes
3
answers
33k
views
Apache2 error: Hostname provided via SNI and HTTP do not match
In my Apache error.log, I am getting an error like the following:
Hostname www.example.com provided via SNI and hostname hk.dv.nextmedia.com provided via HTTP are different
I have no idea what hk....
12
votes
3
answers
19k
views
Python -m http.server 443 -- with SSL?
Is it possible to create a temporary Python3 HTTP server with an SSL certificate? For example:
$ python3 -m http.server 443 --certificate /path/to/cert
12
votes
5
answers
234k
views
currently unable to handle this request HTTP ERROR 500 [closed]
I have transferred my shopping cart files from local to live. The shopping cart which i am using is Interspire.
When I load the page, it shows me this error
currently unable to handle this ...
12
votes
3
answers
13k
views
How to properly close a Node.js TCP server?
I couldn't find a clear answer on Google or SO.
I know a net.Server instance has a close method that doesn't allow any more clients in. But it doesn't disconnect clients already connected. How can I ...
12
votes
2
answers
13k
views
The React App works during `npm start` but returns 404 after build
I'm developing a React App and everything works fine during npm start. After I do npm run build and run serve -s build under the build folder, the terminal told me it's serving but when I checked out ...
12
votes
3
answers
31k
views
nginx.conf and nginx.pid users and permissions
I'm embarking on watching my NGINX error.log files at level: warn... probably a silly idea and will cause me to crash my server as I work out any bugs happening, but hey, we're nerds and this is why ...
12
votes
1
answer
25k
views
HTTP/1.1 426 Upgrade Required
When trying to connect to localhost (with Terminal), I got this answer:
HTTP/1.1 426 Upgrade Required
Server: WebSocket++/0.3.0-alpha4
How can I respond to that to Upgrade?
12
votes
1
answer
4k
views
HazelcastInstance vs HazelcastClient
I am novice in hazelcast and I have a few questions.
As I understand hazelcast comes with two entities HazelcastInstance(as I understand it is server) and HazelcastClient.
These entities even packed ...
12
votes
3
answers
15k
views
Static files not found with webpack and django
The problem is that I can get access to the app on the browser but not static assets (js, jsx and images).
Technologies I am using:
django-webpack-loader 0.2.4
React 0.14
Django 1.8.5
Python 2.7
...
12
votes
3
answers
34k
views
Error:1722 Getting session names
I am trying to check if anybody is connected to the server in my team with the following command: query session /server:<SERVERNAME>. But Every time I end up getting the following error:
Error:...
12
votes
4
answers
10k
views
push notifications with django and GCM
I have a android client app, and my server is in django.
I want to implement push-notifications in the server, to notify the specific users when changes in data related to them are happening, for ...
12
votes
6
answers
3k
views
Connect to Android App's Socket from Internet: Possible?
I am trying to develop an Android (server) app that will accept TCP connections directly from the Internet. I tried this a couple of years ago with no joy. Is this even possible?
I asked this ...
12
votes
1
answer
2k
views
Automatically restart Heroku dynos on Error R14 (Memory quota exceeded) errors
I am running an app which requires a library that leaks memory. (Unfortunately there is no alternative for this propriotory software).
As a result the dynos exceed their memory limit and emmit Error ...
11
votes
5
answers
24k
views
Running svelte dev on server
I am running svelte like this on my server:
$ npm run dev
Your application is ready~! 🚀
- Local: http://localhost:5000
────────────────── LOGS ──────────────────
Which is great. However, ...
11
votes
8
answers
23k
views
AWS elastic beanstalk 100.0 % of the requests are erroring with HTTP 4xx
My AWS Elastic Beanstalk account keeps getting down with the error:
"Environment health has transitioned from Ok to Severe. 100.0 % of the requests are erroring with HTTP 4xx" On a daily basis.
When ...
11
votes
3
answers
78k
views
flask - Display database from python to html
I have code like this to retrieve data from database and I want to display it in html.
This is app.py
@app.route('/news')
def news():
import pymysql
import re
host='localhost'
user =...
11
votes
1
answer
16k
views
Django is synchronous or asynchronous?
Django is synchronous or asynchronous?
I want to know that the Django Framework is Synchronous or Asynchronous.
I have heard about the interview problems they ask about the framework you are using is ...
11
votes
3
answers
37k
views
Using default Providers/MessageBodyWriters in Jersey 2
Just starting with Jersey, I've been trying to reproduce the simple example in the latest Jersey documentation 'building responses'. This part, as far as I understand, should show how Response and ...
11
votes
4
answers
7k
views
Shiny App Error: /v1/applications/ 400 - Validation Error Execution halted
Hi I'm having a million problems trying to publish my app to shiny.io.
Firstly, I have Rtools 3.2 installed in my computer and set to the Path, but it is not recognized in the registry. Nevermind, ...
11
votes
1
answer
43k
views
Running Django server on localhost
I would like to run a Django server locally using a local IP.
I have localhost mapped here:
$ head -n 1 /etc/hosts
127.0.0.1 localhost
I have this chunk of code in my settings.py:
import os
...
11
votes
1
answer
29k
views
How to use the optional hostname parameter in Node.js server.listen()
From what I've read in tutorials so far, the optional hostname parameter to server.listen(port[, hostname][, backlog][, callback]) has always been either 127.0.0.1 (loopback), 0.0.0.0 (listen on every ...
11
votes
2
answers
17k
views
http.ListenAndServe only works for localhost?
I've been successfully making use of
http.ListenAndServe(":80", mux)
to host my web service in Go. It only appears to work with localhost however.
http.ListenAndServe("192.168.1.83:80", mux)
This ...
11
votes
3
answers
15k
views
how to allow custom built "Scan this dir for additional .ini files" php.ini file to read
I am trying to install magento, here I came up with renaming a file name php.ini.sample to php5.ini. When I checked whether the file is reading or not I created a info.php file and uploaded to the ...
11
votes
3
answers
2k
views
Auto save server architecture
I want to save a lengthy form's inputs at the server. But I don't think making db calls on each auto-save action is the best approach to go for.
What would constitute as a good approach to solve ...
11
votes
2
answers
29k
views
How to encode image to send over Python HTTP server?
I would like some help on my following handler:
class MyHandler(http.server.BaseHTTPRequestHandler):
def do_HEAD(client):
client.send_response(200)
client.send_header("Content-...
11
votes
1
answer
5k
views
Enabling internal routing in uWSGI
I have a Django app working with uWSGI. My uWSGI config is:
[uwsgi]
http = 127.0.0.1:8000
env = DJANGO_SETTINGS_MODULE=my_django_app.settings
module = my_django_app.wsgi:application
home = /var/www/...
11
votes
5
answers
15k
views
Efficient way of storing many thumbnails
So currently I am storing all thumbnails in a single directory with file name as the md5 hash of the full path to the full size image. But I've read here that this causes issues when directory reaches ...
11
votes
1
answer
20k
views
Swift - Error : Socket SO_ERROR [61: Connection refused]
I want to connect a web server to my ios application with swift. So I created a function to create a task with "POST" but when I call it, I get an error message :
...
11
votes
2
answers
23k
views
How to detect if request came from mobile device
On server side is there any way to detect that particular request to API came from mobile device (from mobile app)?
I know about user agent sniffing but I dont like this aproach from few enough ...