Code Monkey home page Code Monkey logo

crontab-ui's People

Contributors

alseambusher avatar andreiardelean-zenitech avatar andreiardelean1 avatar antoninbouchal avatar bitdeli-chef avatar cgaspard avatar dependabot[bot] avatar derekf35 avatar devliftmike avatar fantoccini avatar fernandocollova avatar hasanbasri1993 avatar joerx avatar pootispenserhere avatar progmal avatar rcdailey avatar robsonsobral avatar rodriciru avatar russianryebread avatar sdp5 avatar tanase-sebastian avatar yi-xu-0100 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

crontab-ui's Issues

Can't get it working

:~# PORT=9000 crontab-ui
/usr/local/lib/node_modules/crontab-ui/app.js:191
crontab.autosave_crontab(()=>{});
^
SyntaxError: Unexpected token )
at Module._compile (module.js:439:25)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at Object. (/usr/local/lib/node_modules/crontab-ui/bin/crontab-ui.js:3:15)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)

:~# crontab-ui
/usr/local/lib/node_modules/crontab-ui/app.js:191
crontab.autosave_crontab(()=>{});
^
SyntaxError: Unexpected token )
at Module._compile (module.js:439:25)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at Object. (/usr/local/lib/node_modules/crontab-ui/bin/crontab-ui.js:3:15)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)

Checked rights, is this ok?
~# ls -ld $(npm root -g)/crontab-ui
drwxr-xr-x 10 nobody root 4096 Dec 22 01:15 /root/.npm-global/lib/node_modules/crontab-ui

nodejs --version v0.10.29
npm --version 1.4.21

Using debian jessie. Also same problem in centos7. There is something wrong in my setup, could someone tell how to fix this? I would be very happy to get over of this error.

doesnt work

looking at the code. crontab -l is not being parsed at the moment. its not working

Error: Invalid characters, got value: #

Facing this issue when i import existing cron from crontab

Error: Invalid characters, got value: # at Function._parseField (/usr/lib/node_modules/crontab-ui/node_modules/cron-parser/lib/expression.js:155:11) at parse (/usr/lib/node_modules/crontab-ui/node_modules/cron-parser/lib/expression.js:644:36) at Function.parse (/usr/lib/node_modules/crontab-ui/node_modules/cron-parser/lib/expression.js:655:10) at Function.parseExpression (/usr/lib/node_modules/crontab-ui/node_modules/cron-parser/lib/parser.js:39:25) at /usr/lib/node_modules/crontab-ui/crontab.js:54:32 at newArguments.(anonymous function) (/usr/lib/node_modules/crontab-ui/node_modules/nedb/lib/executor.js:29:17) at Cursor.execFn (/usr/lib/node_modules/crontab-ui/node_modules/nedb/lib/datastore.js:484:12) at callback (/usr/lib/node_modules/crontab-ui/node_modules/nedb/lib/cursor.js:126:19) at /usr/lib/node_modules/crontab-ui/node_modules/nedb/lib/cursor.js:193:12 at /usr/lib/node_modules/crontab-ui/node_modules/nedb/lib/datastore.js:329:14

crontab-ui service does not start

Uninstalled and reinstalled using npm install -g crontab-ui multiple times and am not able to get the service to start when executing crontab-ui. I do not receive an error and do not know where to search for logs. Using Ubuntu 14.04 LTS.

No able to run crontab-ui.js

dear,
after download the package with command npm install crontab-ui, i've go though bin folder and launched

node crontab-ui

but error is raised:

[root@HOSTNAME bin]# node crontab-ui

/root/node_modules/crontab-ui/app.js:191
    crontab.autosave_crontab(()=>{});
                              ^
SyntaxError: Unexpected token )
    at Module._compile (module.js:439:25)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Module.require (module.js:364:17)
    at require (module.js:380:17)
    at Object.<anonymous> (/root/node_modules/crontab-ui/bin/crontab-ui.js:3:15)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)

am i'm making somethign wrong?

failed to serve the static file on NGINX

Make sure these boxes are checked( - [x] ) before submitting an issue.

  • Running latest npm and node? (Run npm --version and node --version). Get the latest nodejs here.
  • The node_modules folder has right permissions (Run ls -ld $(npm root -g)/crontab-ui)
  • Read issues.md
  • Gone through existing open and closed issues.

Serious: Half disabled

My setup was running perfectly. All of a sudden,, while I can still see the UI, I cannot do the following:

Add new items.
Edit existing items - the Edit button doesn't even pop up a dialog
Backup
Basically anything other than view existing jobs.

I have tried: restarting whole whole server, running as the normal user as well as root. Starting in my normal install directory (/srv/crontabui) vs the /usr/local/bin.crontab-ui directory
I've checked the permissions, I've checked ownership. And honestly, those last two shold n't matter as the thing was literally running a few days ago and nothing was changed.

Any ideas or direction would be most appreciated. Thanks!

I should note that until it started acting up, this solution has been a dream to use and a lifesaver.

The requested URL could not be retrieved

Make sure these boxes are checked( - [x] ) before submitting an issue.

  • Running latest npm and node? (Run npm --version and node --version). Get the latest nodejs here.
  • The node_modules folder has right permissions (Run ls -ld $(npm root -g)/crontab-ui)
  • Read issues.md
  • Gone through existing open and closed issues.

I am not able to access crontab ui in browser. I have run it on a remote server and am trying to acces it using RemoteIP:port. I have also tried changing the port to 1234 but still the same issue.

curl 127.0.0.1:1234 returns proper response but nothing in browser. all ports are open on the server for global access. Any clue?

Unable to export crontab

  • npm --version: 5.3.0
  • node --version: v8.6.0

Scenario:

  • Go to the web UI.
  • Press the "Export" button.

Expected: Crontab is downloaded

Actual: JSON that says {"message":"mime.lookup is not a function"}

Problems with IE11

Hi,
in IE11 the global variable "routes" is not accessible in the module "app.js" (exception).
So crontab-ui did not work for me with IE11.

Get from crontab not working

Make sure these boxes are checked( - [x] ) before submitting an issue.

  • Running latest npm and node? (Run npm --version and node --version). Get the latest nodejs here.
    NPM version 3.10.10
    Node version v6.10.0

  • The node_modules folder has right permissions (Run ls -ld $(npm root -g)/crontab-ui)

  • Read issues.md

  • Gone through existing open and closed issues.

Running on Ubuntu 16.04.2 LTS, I have existing jobs as shown with crontab -l

0 8 * * 1,2,3,4,5 /home/ubuntu/scripts/start.sh
0 18 * * 1,2,3,4,5 /home/ubuntu/scripts/stop.sh

When I click "Get from crontab" and then Ok, nothing happens :/

Love the idea btw! ๐Ÿ’ฏ

Block Scoped Declarations outside strict mode

Make sure these boxes are checked( - [x] ) before submitting an issue.

  • Running latest npm and node? (Run npm --version and node --version). Get the latest nodejs here.
  • The node_modules folder has right permissions (Run ls -ld $(npm root -g)/crontab-ui)
  • Read issues.md
  • Gone through existing open and closed issues.

You don't specify what version of node is compatible above. I'm running v7.6.

When i run crontab-ui I get the following error. What could cause this?


/usr/local/lib/node_modules/crontab-ui/app.js:200
let crontabdb = __dirname + "/crontabs/crontab.db";
^^^

SyntaxError: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode
at exports.runInThisContext (vm.js:53:16)
at Module._compile (module.js:414:25)
at Object.Module._extensions..js (module.js:442:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:311:12)
at Module.require (module.js:366:17)
at require (module.js:385:17)
at Object. (/usr/local/lib/node_modules/crontab-ui/bin/crontab-ui.js:3:15)
at Module._compile (module.js:435:26)
at Object.Module._extensions..js (module.js:442:10)

Cron as different users

Hello, first of all thank you very much for sharing this project. I'd like to ask for a feature request, it would be great if you could set crontabs for different users instead of root.

Regards.

app.set('host', (process.env.HOST || '127.0.0.1')); <- doesn't work right?

I did upgrade from 0.2.1 to 0.2.7.
In version 0.2.1 it runs correctly in localhost.
In version 0.2.7 I tryed to change 127.0.0.1 -> localhost but didn't work? Can't connect from browser.
Changing it to 192.168.1.10 works fine, so what I'm missing?
Maybe this isn't crontab-ui bug, but got this when only upgrading crontab-ui, nothing else changed.

Import from existing crontab instance in same system

Hi

I installed cron tool first in ubuntu 14.04 headless server and scheduled a job. Post which I installed crontab-ui.

I am not able to see the already scheduled job. Does crontab-ui refers to existing crontab file by default or do i need to do something specific to view existing scheduled jobs.

Thanks for your help and a great tool

Running without command

Make sure these boxes are checked( - [x] ) before submitting an issue.

  • Running latest npm and node? (Run npm --version and node --version). Get the latest nodejs here.
  • The node_modules folder has right permissions (Run ls -ld $(npm root -g)/crontab-ui)
  • Read issues.md
  • Gone through existing open and closed issues.

Is there a way to make crontab running on server all the time without using crontab-ui command ? thanks

Validation alerts

Hi!

I download your app because my cronjobs never, ever worked. Never. Using it, I realize the reason: simple quotes. After try to set a job, crontab-ui permanently crashed. I had to uninstall and reinstall it.

Maybe this should be 2 issues:

  • to prevent the app from crashing when reading bad cron jobs;
  • form validation rules to prevent bad jobs;

Does it seen reasonable?

Adding a slack or email option

Hi.

It would be nice if you could add a slack hook or some emailing option after the cron job has finished or failed.

Best regards.

no response from localhost:8000

I really need this cool project. But after I installed it, there is nothing return from localhost:8000(or 127.0.0.1:8000). Is there a log where i can check the status ?
image
image

nonexistent directory error

Hi.

I have an crontab-ui on alpine docker image and whenever I am runing cronjob I am getting nonexistent directory error. It would be nice to create directory within code and not outside.

/bin/sh: can't create /usr/lib/node_modules/crontab-ui/crontabs/logs/N2Hvw2pu86w1NcMf.log: nonexistent directory

Best regards.

Unexpected token

Make sure these boxes are checked( - [x] ) before submitting an issue.

  • Running latest npm and node? (Run npm --version and node --version). Get the latest nodejs here.
  • The node_modules folder has right permissions (Run ls -ld $(npm root -g)/crontab-ui)
  • Read issues.md
  • Gone through existing open and closed issues.

screen shot 2017-05-14 at 00 24 01

Any help with this please.

Thanks

Full URL on terminal

Hi!

I just discovered your app. Thank you for coding it.

May I suggest you something? Hugo shows a link in terminal, which can be clicked. I'm not sure how this works, but I guess it's just a matter of using a full url.

Can you, please, try to add the protocol to the URL on terminal? Instead of localhost:8000, http://localhost:8000.

Thank you!

[HELP] - load infinit

My page crontab-ui stay in loading infiniti. You know how resolve? I think db is very big, but try my debug not working too.

Please explain how to setup this program on Ubuntu-based distributions

This program is not in the package manager for my distribution, that distribution being Mint. So I used git clone to get the code. At that point I discovered that there are no instructions for how to setup and run the code (other than by using a package manager - npm - that I do not have) and no install file and nothing, so far as I can see, that can be compiled. Please explain.

Application not stopped on ctrl+c

please implement the following:

process.on( 'SIGINT', function() {
  console.log( "\nGracefully shutting down from" );
  process.exit( );
})

so my docker container can shut down

Problem with hosting

Make sure these boxes are checked( - [x] ) before submitting an issue.

  • [*] Running latest npm and node? (Run npm --version and node --version). Get the latest nodejs here.
  • [*] The node_modules folder has right permissions (Run ls -ld $(npm root -g)/crontab-ui)
  • [*] Read issues.md
  • [*] Gone through existing open and closed issues.

I have a problem with hosting of crontab ..i installed nginx, modified the default file but when i type the ip of remote server i only get "welcome" nginx page

import changing cron format

Make sure these boxes are checked( - [x] ) before submitting an issue.

  • Running latest npm and node? (Run npm --version and node --version). Get the latest nodejs here.
  • The node_modules folder has right permissions (Run ls -ld $(npm root -g)/crontab-ui)
  • Read issues.md
  • Gone through existing open and closed issues.

Crontui dead after adding cron job

PORT=9000 crontab-ui
Crontab UI is running at http://localhost:8901
/usr/lib/node_modules/crontab-ui/node_modules/cron-parser/lib/expression.js:155
throw new Error('Invalid characters, got value: ' + value)
^

Error: Invalid characters, got value: #
at Function._parseField (/usr/lib/node_modules/crontab-ui/node_modules/cron-parser/lib/expression.js:155:11)
at parse (/usr/lib/node_modules/crontab-ui/node_modules/cron-parser/lib/expression.js:639:36)
at Function.parse (/usr/lib/node_modules/crontab-ui/node_modules/cron-parser/lib/expression.js:650:10)
at Function.parseExpression (/usr/lib/node_modules/crontab-ui/node_modules/cron-parser/lib/parser.js:39:25)
at /usr/lib/node_modules/crontab-ui/crontab.js:50:32
at newArguments.(anonymous function) (/usr/lib/node_modules/crontab-ui/node_modules/nedb/lib/executor.js:29:17)
at Cursor.execFn (/usr/lib/node_modules/crontab-ui/node_modules/nedb/lib/datastore.js:484:12)
at callback (/usr/lib/node_modules/crontab-ui/node_modules/nedb/lib/cursor.js:126:19)
at /usr/lib/node_modules/crontab-ui/node_modules/nedb/lib/cursor.js:193:12
at /usr/lib/node_modules/crontab-ui/node_modules/nedb/lib/datastore.js:329:14

localhost:8000 not accessible

Hi,

I just finished installing crontab-ui on one of the server machine. Command "crontab-ui" says - Crontab UI is running at localhost:8000

But, using IP address on other machine which is on same network, I can't access Crontab UI. Is there something which I am missing ? Do I need to update crontab-ui config to specify IP address instead of localhost.

Also, I couldn't locate conf file.

thanks.

Detailed logs

Could you please add possibility capture all logs from running process?

Cant make it work

In a Ubuntu 16.04
I did:

1. cd /var/www/html/
2. sudo git clone https://github.com/alseambusher/crontab-ui.git --> OK
3. sudo npm install crontab-ui --> WARN
4. crontab-ui --> command not found

(No index.hml, or so)

Installation warnings:

WARN engine [email protected]: wanted: {"node":"latest"} (current: {"node":"4.2.6","npm":"3.5.2"})
WARN engine [email protected]: wanted: {"node":"latest"} (current: {"node":"4.2.6/var/www/html
โ””โ”€โ”€ [email protected] 

npm WARN enoent ENOENT: no such file or directory, open '/var/www/html/package.json'
npm WARN html No description
npm WARN html No repository field.
npm WARN html No README data
npm WARN html No license field.

Any thougths ? thanks!

Add Profiling jobs

As mentioned on the blog post, I think this feature would be useful, at least start with the total run time for last run.

Open on lan

Hi,
I use raspbian lite with ssh only.
How to access to crontab-ui in lan with other PC?

My Rasebian IP is 192.168.1.88
I test 192.168.1.88:8000, but dont works !

Installation fail

Hi,

I'm trying to use your tool but I'm getting the following error :

/usr/local/lib/node_modules/crontab-ui/crontab.js:79
let stderr = "/tmp/" + tab._id + ".stderr";
^^^

SyntaxError: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode
at exports.runInThisContext (vm.js:53:16)
at Module._compile (module.js:374:25)
at Object.Module._extensions..js (module.js:417:10)
at Module.load (module.js:344:32)
at Function.Module._load (module.js:301:12)
at Module.require (module.js:354:17)
at require (internal/module.js:12:17)
at Object. (/usr/local/lib/node_modules/crontab-ui/app.js:4:15)
at Module._compile (module.js:410:26)
at Object.Module._extensions..js (module.js:417:10)

Any idea why ?

Thanks,
Julien

crontab-ui doesn't start with SyntaxError

I got this when trying to run crontab-ui for the first time after installing with npm:

$ PORT=8080 crontab-ui

/usr/local/lib/node_modules/crontab-ui/node_modules/cron-parser/lib/date.js:18
  const prev = this.getTime();
  ^^^^^
SyntaxError: Use of const in strict mode.
    at Module._compile (module.js:439:25)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Module.require (module.js:364:17)
    at require (module.js:380:17)
    at Object.<anonymous> (/usr/local/lib/node_modules/crontab-ui/node_modules/cron-parser/lib/expression.js:4:16)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)

npm is 3.5.2
crontab-ui 0.2.0

Safari ReferenceError: Can't find variable: newJob

macOS El Capitan 10.11.6, npm 4.0.5, node 6.9.4, Safari 9.1.2 (11601.7.7)

When clicking on a new job on Safari, the following errors occur:

SyntaxError: Unexpected identifier 'name'
(anonymous function) script.js:114

ReferenceError: Can't find variable: newJob
onclick localhost:62

In Chrome it works without problems.
Great app, by the way!

In log file url not found

when i have add cron job in link http://localhost/sum.php its throwing error in log file

/bin/sh: 1: http://localhost/sum.php: not found

even when i tried in browser its worked fine.
please suggest solution for this

is it related to Environment Variables?

Thanks:
Imran Hassan

Initializing crontab on service start

Hi.

It would be nice when you (re)start service, cronjobs that are already saved in db, be initialized in crontab. We are using docker and whenever I start new container i need to press save to crontab in ui.

Best regards.

Data File Corrupt error

Hello, I'm still getting used to Ubuntu so forgive my likely visible ignorance, I'm trying to learn, heh.
I recently installed crontab-ui on my Ubuntu v16.04.3 LTS, and while it initially worked it has suddenly faltered only a few days later since installation (not sure what caused it).

Running NPM v5.5.1, Node v8.7.0. My Crontab-UI folder is not at /usr/lib/node_modules/crontab-ui but instead /usr/local/lib/node_modules/crontab-ui.

The error I receive is detailed below when attempting to run crontab-ui at Terminal:

Node version: 8.7.0
Crontab UI is running at http://127.0.0.1:8000
/usr/local/lib/node_modules/crontab-ui/crontab.js:14
if (err) throw err; // no hope, just terminate
^

Error: More than 10% of the data file is corrupt, the wrong beforeDeserialization hook may be used. Cautiously refusing to start NeDB to prevent dataloss
at Persistence.treatRawData (/usr/local/lib/node_modules/crontab-ui/node_modules/nedb/lib/persistence.js:242:11)
at /usr/local/lib/node_modules/crontab-ui/node_modules/nedb/lib/persistence.js:281:38
at tryToString (fs.js:514:3)
at FSReqWrap.readFileAfterClose [as oncomplete] (fs.js:502:12)

Crontab-ui never automatically launched at system boot by default (not sure if this is typical), so I decided to add it to my /etc/crontab to launch just after a daily scheduled reboot; with a regular user login (not root). This is the only thing I can think of that may have broken it.

I've tampered with one of the files to add the http basic_authorisation stuff, and used Apache Tools to create the encrypted password file. I also installed NGINX to proxy and access externally. Both of these were working fine though before the problem.

The only other thing I can report is, when I initially tried to import crontab using the UI's web interface, it didn't import /etc/crontab but another file from somewhere else on the system (don't know where) which only contained one command (I recognised it as part of another application we had installed in the past). I think that cron entry is now lost/deleted because I couldn't import anything after that - even if I browsed for /etc/crontab, it didn't seem to accept it.

It's all quite strange to me! I appreciate your time & support, I tried to use sudo npm uninstall crontab to maybe start fresh but it didn't seem to do anything...

Edit: I should probably clarify one thing, although crontab-ui was installed and operating, I never actually got around to solving the issue of importing my crontab job list, I experienced this application error before I had a chance to actually "use" crontab-ui. Maybe the failed import attempts is what nuked it...

Adding page of Login

It's nice a page of login to can access page management crons (sorry my wrong's english).

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.