[GH-ISSUE #25] Question #18

Closed
opened 2026-03-03 16:03:42 +03:00 by kerem · 22 comments
Owner

Originally created by @opensauce17 on GitHub (Nov 11, 2013).
Original GitHub issue: https://github.com/mthenw/frontail/issues/25

Hi,

This is a great solution and I would really like it to work. I am more than likely making a 101 error so please excuse my ignorance. When I start up as a daemon this is my PID info :

/usr/bin/node /usr/lib/node_modules/frontail/index.js -p 9001 -n 10 -l 2000 -t default /var/log/messages

But when I go to the server on port 9001 I pretty much get a blank page and do not see the log file specified.

Could you please let me know what I am missing.

Thanks

Originally created by @opensauce17 on GitHub (Nov 11, 2013). Original GitHub issue: https://github.com/mthenw/frontail/issues/25 Hi, This is a great solution and I would really like it to work. I am more than likely making a 101 error so please excuse my ignorance. When I start up as a daemon this is my PID info : /usr/bin/node /usr/lib/node_modules/frontail/index.js -p 9001 -n 10 -l 2000 -t default /var/log/messages But when I go to the server on port 9001 I pretty much get a blank page and do not see the log file specified. Could you please let me know what I am missing. Thanks
kerem 2026-03-03 16:03:42 +03:00
  • closed this issue
  • added the
    question
    label
Author
Owner

@mthenw commented on GitHub (Nov 12, 2013):

I don't get it.

Is this how you start frontail
/usr/bin/node /usr/lib/node_modules/frontail/index.js -p 9001 -n 10 -l 2000 -t default /var/log/messages ?

You don't need to pass -p 9001 -n 10 -l 2000 -t default because those arguments are by default.

<!-- gh-comment-id:28270736 --> @mthenw commented on GitHub (Nov 12, 2013): I don't get it. Is this how you start frontail `/usr/bin/node /usr/lib/node_modules/frontail/index.js -p 9001 -n 10 -l 2000 -t default /var/log/messages` ? You don't need to pass `-p 9001 -n 10 -l 2000 -t default` because those arguments are by default.
Author
Owner

@opensauce17 commented on GitHub (Nov 12, 2013):

Yes that is a ps -aux of the default service. My issue is that my log file does not get displayed.

<!-- gh-comment-id:28270778 --> @opensauce17 commented on GitHub (Nov 12, 2013): Yes that is a ps -aux of the default service. My issue is that my log file does not get displayed.
Author
Owner

@mthenw commented on GitHub (Nov 12, 2013):

Maybe you have problem with permissions. Is your log file is accessible for user starting frontail?

<!-- gh-comment-id:28270966 --> @mthenw commented on GitHub (Nov 12, 2013): Maybe you have problem with permissions. Is your log file is accessible for user starting frontail?
Author
Owner

@opensauce17 commented on GitHub (Nov 12, 2013):

Hi,

I have started frontail as root. Should have access to all files. Is it not an apache permission issue maybe?

<!-- gh-comment-id:28272136 --> @opensauce17 commented on GitHub (Nov 12, 2013): Hi, I have started frontail as root. Should have access to all files. Is it not an apache permission issue maybe?
Author
Owner

@mthenw commented on GitHub (Nov 12, 2013):

Frontail doesn't use apache :)

Starting as a root fixed your problem?

<!-- gh-comment-id:28273133 --> @mthenw commented on GitHub (Nov 12, 2013): Frontail doesn't use apache :) Starting as a root fixed your problem?
Author
Owner

@opensauce17 commented on GitHub (Nov 12, 2013):

Ok - cool - so atleast I musn't waste time with any apache stuff - Starting as root, still gives me a blank page. At the moment I'm just trying to get a file displayed. Possibly there is a simple config I'm missing?

frontail

<!-- gh-comment-id:28273386 --> @opensauce17 commented on GitHub (Nov 12, 2013): Ok - cool - so atleast I musn't waste time with any apache stuff - Starting as root, still gives me a blank page. At the moment I'm just trying to get a file displayed. Possibly there is a simple config I'm missing? ![frontail](https://f.cloud.github.com/assets/5320574/1519746/0298dada-4b6b-11e3-9486-08341dcc0c69.JPG)
Author
Owner

@mthenw commented on GitHub (Nov 12, 2013):

Oh, you are trying to use it no Windows. Windows is not supported because frontail internally uses unix tail command.

<!-- gh-comment-id:28273625 --> @mthenw commented on GitHub (Nov 12, 2013): Oh, you are trying to use it no Windows. Windows is not supported because frontail internally uses unix `tail` command.
Author
Owner

@opensauce17 commented on GitHub (Nov 12, 2013):

No. I'm not using it in Windows. I'm using a unix host and viewing the webapage via a windows machine......

<!-- gh-comment-id:28273677 --> @opensauce17 commented on GitHub (Nov 12, 2013): No. I'm not using it in Windows. I'm using a unix host and viewing the webapage via a windows machine......
Author
Owner

@mthenw commented on GitHub (Nov 12, 2013):

Ok :)

You wrote that you start it as a daemon. Is this problem occur when staring in foreground?

<!-- gh-comment-id:28273780 --> @mthenw commented on GitHub (Nov 12, 2013): Ok :) You wrote that you start it as a daemon. Is this problem occur when staring in foreground?
Author
Owner

@opensauce17 commented on GitHub (Nov 12, 2013):

yes - I get the same issue. I'm thinking I have missed something during install? I'm not sure. The install seems pretty straight forward.

<!-- gh-comment-id:28274059 --> @opensauce17 commented on GitHub (Nov 12, 2013): yes - I get the same issue. I'm thinking I have missed something during install? I'm not sure. The install seems pretty straight forward.
Author
Owner

@opensauce17 commented on GitHub (Nov 12, 2013):

Possibly there is something else I need to install?

<!-- gh-comment-id:28274703 --> @opensauce17 commented on GitHub (Nov 12, 2013): Possibly there is something else I need to install?
Author
Owner

@mthenw commented on GitHub (Nov 12, 2013):

npm install frontail -g is enough.

Which version do you use? You can check it with frontail -V

<!-- gh-comment-id:28274728 --> @mthenw commented on GitHub (Nov 12, 2013): `npm install frontail -g` is enough. Which version do you use? You can check it with `frontail -V`
Author
Owner

@opensauce17 commented on GitHub (Nov 12, 2013):

My version is : 0.6.0

<!-- gh-comment-id:28274763 --> @opensauce17 commented on GitHub (Nov 12, 2013): My version is : 0.6.0
Author
Owner

@mthenw commented on GitHub (Nov 12, 2013):

Does tail -F [you file] command return anything?

<!-- gh-comment-id:28274887 --> @mthenw commented on GitHub (Nov 12, 2013): Does `tail -F [you file]` command return anything?
Author
Owner

@opensauce17 commented on GitHub (Nov 12, 2013):

yes - on a command line it works fine.

<!-- gh-comment-id:28274950 --> @opensauce17 commented on GitHub (Nov 12, 2013): yes - on a command line it works fine.
Author
Owner

@opensauce17 commented on GitHub (Nov 12, 2013):

When I view my source page - this is the JS that is displayed :

<script src="/app.js"></script>
<script type="text/javascript">
    window.load = App.init({
        container: document.getElementsByClassName('log')[0],
        filterInput: document.getElementsByClassName('query')[0],
        namespace: '5b636c7ec81a3f0133aa1c887e09298d'
    });

Is this correct?

<!-- gh-comment-id:28275251 --> @opensauce17 commented on GitHub (Nov 12, 2013): When I view my source page - this is the JS that is displayed : <script src="/socket.io/socket.io.js"></script> ``` <script src="/app.js"></script> <script type="text/javascript"> window.load = App.init({ container: document.getElementsByClassName('log')[0], filterInput: document.getElementsByClassName('query')[0], namespace: '5b636c7ec81a3f0133aa1c887e09298d' }); ``` Is this correct?
Author
Owner

@opensauce17 commented on GitHub (Nov 12, 2013):

<script src="/app.js"></script>

Does it automatically know where to find these JS files?

<!-- gh-comment-id:28275427 --> @opensauce17 commented on GitHub (Nov 12, 2013): <script src="/socket.io/socket.io.js"></script> ``` <script src="/app.js"></script> ``` Does it automatically know where to find these JS files?
Author
Owner

@opensauce17 commented on GitHub (Nov 12, 2013):

I also installed it as root....not sure of that makes any difference?

<!-- gh-comment-id:28276053 --> @opensauce17 commented on GitHub (Nov 12, 2013): I also installed it as root....not sure of that makes any difference?
Author
Owner

@opensauce17 commented on GitHub (Nov 12, 2013):

How would I install a previous version? Would like to try 0.5.0....

<!-- gh-comment-id:28282011 --> @opensauce17 commented on GitHub (Nov 12, 2013): How would I install a previous version? Would like to try 0.5.0....
Author
Owner

@opensauce17 commented on GitHub (Nov 12, 2013):

Ok - it seems like it's my browser. It works perfectly from another machine's browser. Sorry for all the trouble

<!-- gh-comment-id:28287946 --> @opensauce17 commented on GitHub (Nov 12, 2013): Ok - it seems like it's my browser. It works perfectly from another machine's browser. Sorry for all the trouble
Author
Owner

@vickyrare commented on GitHub (Jan 15, 2015):

One can make frontail to work on windows by using tail.exe provided by MKSNT. Download it from following link.

http://www.filedropper.com/tail

You need tail.exe in your path. You also need to make change to /lib/tail.js

change -F to -f
var tail = spawn('tail', ['-n', options.buffer, '-f', path]);

<!-- gh-comment-id:70024331 --> @vickyrare commented on GitHub (Jan 15, 2015): One can make frontail to work on windows by using tail.exe provided by MKSNT. Download it from following link. http://www.filedropper.com/tail You need tail.exe in your path. You also need to make change to /lib/tail.js change -F to -f var tail = spawn('tail', ['-n', options.buffer, '-f', path]);
Author
Owner

@mthenw commented on GitHub (Jan 15, 2015):

@vickyrare I'm planning to change internal implementation to not use tail command but currently I don't have time for that. I've created #38.

<!-- gh-comment-id:70062281 --> @mthenw commented on GitHub (Jan 15, 2015): @vickyrare I'm planning to change internal implementation to not use `tail` command but currently I don't have time for that. I've created #38.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/frontail#18
No description provided.