Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

my applications is closing after 1 day #337

Closed
ocracy opened this Issue · 10 comments

3 participants

@ocracy

I created my appliacation and deployed my server.js so everything is fine that my website were using nodester.com. My applications closed after 1 day everytime. My applications that closed is ocracy.nodester.com and ocrtest3.nodester.com.

I'll restart my application but i cant login http://admin.nodester.com/login

Web page error 324 (net::ERR_EMPTY_RESPONSE)

@ocracy ocracy closed this
@ocracy ocracy reopened this
@nodester
Owner
@ocracy

Hello,

Yes I had a problem about ocrtest3, If i joined admin panel, I would delete ocrtest3 app.. Now I am using only ocracy.nodester.com. I few minutes ago, I restared my app via "nodester app restart ocracy".. my server is working now. Is there any problem about ocracy ?

@nodester
Owner
@chrismatthieu
Collaborator

I restarted the admin app. Please try again...

@ocracy

Thank you chris, I joined admin panel soon. I tried to destroy my application but system is waiting then there is no response. for reason, i cant destroy my application.

@chrismatthieu
Collaborator

Ocracy,

Could you open a ticket on our admin-panel repo related to deleting apps? On another note, your new app (ocracy.nodester.com) is also now causing our proxy to throw "Error: EMFILE, Too many open files" errors. I think that we will need to take this application offline too unless you can rework your code base to prevent this error from occurring.

Thanks,
Chris

@ocracy

Okey , I'll open.

My code is simple, i didn't find EMFILE error. This is my server.js

var io = require('socket.io').listen(15555);
var clients = [];
var coupling = [];
io.sockets.on('connection', function (socket) {

clients[socket.id] = socket;
socket.on('setUserID', function (userID) {

    socket.set('userID', userID, function () {
        coupling[userID] = socket.id;
    });
});

socket.on('send', function (from,to,message)
{
    var sender = 0;
    socket.get('userID', function (err, name) {
        sender = name;
    });
    var userSocket = clients[coupling[to]];
    if(userSocket != null || userSocket != undefined)
    userSocket.emit('message', {from :from,to : to,message:message});
});
socket.on('disconnect', function () {

    var sender = 0;
    socket.get('userID', function (err, name) {
        sender = name;
    });
    var userSocket = clients[coupling[sender]];
    if(userSocket != null || userSocket != undefined)
    clients[coupling[sender]] = null;
});

});

is it syntax error ?

@chrismatthieu
Collaborator

Are you still experiencing issues with your application? If so, could you provide your nodester log?

nodester app logs {appname}

@ocracy

I changed my code and deployed which running on akorbul.nodester.com. I have deleted ocracy application..

@ocracy

Hi again, My changed code is runing on akorbul.nodester.com, but again the same problem.. Every day I restart my application. Why my app is getting offline ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.