alseambusher / crontab-ui Goto Github PK
View Code? Open in Web Editor NEWEasy and safe way to manage your crontab file
Home Page: https://lifepluslinux.blogspot.com/2015/06/crontab-ui-easy-and-safe-way-to-manage.html
License: MIT License
Easy and safe way to manage your crontab file
Home Page: https://lifepluslinux.blogspot.com/2015/06/crontab-ui-easy-and-safe-way-to-manage.html
License: MIT License
:~# 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.
looking at the code. crontab -l is not being parsed at the moment. its not working
Finally managed to install crontab-ui correcty.
I'm running it from pm2, and configured a nginx server so I can access it from a browser but I'm getting an empty page => http://admintest.mashup-web.com/crontab
Any idea why ?
Thanks,
julien
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
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.
Is it possible to add something like "Run now" to force command execution?
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?
Make sure these boxes are checked( - [x] ) before submitting an issue.
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.
Make sure these boxes are checked( - [x] ) before submitting an issue.
npm --version
and node --version
). Get the latest nodejs here.node_modules
folder has right permissions (Run ls -ld $(npm root -g)/crontab-ui
)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?
npm --version
: 5.3.0node --version
: v8.6.0Scenario:
Expected: Crontab is downloaded
Actual: JSON that says {"message":"mime.lookup is not a function"}
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.
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! ๐ฏ
hi,
the crontab job i created in the ui can't execute normally , what's may the reason be ?
3q !
Make sure these boxes are checked( - [x] ) before submitting an issue.
npm --version
and node --version
). Get the latest nodejs here.node_modules
folder has right permissions (Run ls -ld $(npm root -g)/crontab-ui
)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)
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.
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.
Adding login and password option for security.
Thank you very much in advance.
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
Make sure these boxes are checked( - [x] ) before submitting an issue.
npm --version
and node --version
). Get the latest nodejs here.node_modules
folder has right permissions (Run ls -ld $(npm root -g)/crontab-ui
)Is there a way to make crontab running on server all the time without using crontab-ui command ? thanks
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:
Does it seen reasonable?
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.
Same after deleted cron still working
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.
Make sure these boxes are checked( - [x] ) before submitting an issue.
npm --version
and node --version
). Get the latest nodejs here.node_modules
folder has right permissions (Run ls -ld $(npm root -g)/crontab-ui
)Any help with this please.
Thanks
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!
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.
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.
please implement the following:
process.on( 'SIGINT', function() {
console.log( "\nGracefully shutting down from" );
process.exit( );
})
so my docker container can shut down
Make sure these boxes are checked( - [x] ) before submitting an issue.
npm --version
and node --version
). Get the latest nodejs here.node_modules
folder has right permissions (Run ls -ld $(npm root -g)/crontab-ui
)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
Make sure these boxes are checked( - [x] ) before submitting an issue.
Please suggest me how to make it password protected
?
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
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.
Could you please add possibility capture all logs from running process?
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!
As mentioned on the blog post, I think this feature would be useful, at least start with the total run time for last run.
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 !
Please change resources loading, because apache2 reverse proxy in /crontab tryin to load jquery and bootstrap from root domain.
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
Is there any option to show next and previous cronjob time ?
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
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!
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
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.
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...
Back to the topic:
https://github.com/alseambusher/crontab-ui/blob/master/README/nginx.md#authentication
How to replace recommended nginx, lighttpd on Raspberry PI ?
P.S. Would have been nice if crontab-ui had a built-in login
Best Regards
Robert
It's nice a page of login to can access page management crons (sorry my wrong's english).
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.