byneho / cod4x-webadmin Goto Github PK
View Code? Open in Web Editor NEWCoD4x-WebAdmin in node
License: GNU General Public License v3.0
CoD4x-WebAdmin in node
License: GNU General Public License v3.0
The title
I am unable to set a different ssh port in the config file, so I unable to create local servers with the app.
I'm using a different ssh port than 22, and can't find any indication in the source to change that
https://github.com/byNeHo/CoD4x-WebAdmin/blob/master/app/controllers/admin/servers.js#L192
.then(function(saved) {
var ssh = new SSH({
host: config.ssh_access.host,
user: config.ssh_access.user,
pass: config.ssh_access.password,
baseDir: config.cod4_server_plugin.servers_root
NodeJS 17.5 broke something as far I see, now I got this.
/home/sanyi/Hosting/webadmin/CoD4x-WebAdmin/node_modules/mongoose/lib/cursor/QueryCursor.js:150
QueryCursor.prototype.map = function(fn) {
^
TypeError: Cannot assign to read only property 'map' of object '#<QueryCursor>'
at Object.<anonymous> (/home/sanyi/Hosting/webadmin/CoD4x-WebAdmin/node_modules/mongoose/lib/cursor/QueryCursor.js:150:27)
at Module._compile (node:internal/modules/cjs/loader:1097:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1151:10)
at Module.load (node:internal/modules/cjs/loader:975:32)
at Function.Module._load (node:internal/modules/cjs/loader:822:12)
at Module.require (node:internal/modules/cjs/loader:999:19)
at require (node:internal/modules/cjs/helpers:102:18)
at Object.<anonymous> (/home/sanyi/Hosting/webadmin/CoD4x-WebAdmin/node_modules/mongoose/lib/query.js:12:21)
at Module._compile (node:internal/modules/cjs/loader:1097:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1151:10)
at Module.load (node:internal/modules/cjs/loader:975:32)
at Function.Module._load (node:internal/modules/cjs/loader:822:12)
at Module.require (node:internal/modules/cjs/loader:999:19)
at require (node:internal/modules/cjs/helpers:102:18)
at Object.<anonymous> (/home/sanyi/Hosting/webadmin/CoD4x-WebAdmin/node_modules/mongoose/lib/index.js:27:15)
at Module._compile (node:internal/modules/cjs/loader:1097:14)
Node.js v17.5.0
Workaround: Use 16.x LTS version of nodejs.
I've trying to install the webadmin, but I cannot access the Admin page, it fails to check the running version.
Tried to pull from github with git clone, and tried with a released 4.0.1 as well, same error.
OS: Ubuntu 20.04.1
Node: 12.20.1
npm: 6.14.10
TypeError: /home/ogp_agent/CoD4x-WebAdmin/app/views/admin/home/index.pug:244
242| i.zmdi.zmdi-refresh-alt
243| .card-body
> 244| if (results.appversion.local_version!=results.appversion.github_version)
245| .alert.alert-danger
246| .m-b-20
247| | You are running
Cannot read property 'local_version' of null
at eval (eval at wrap (/home/ogp_agent/CoD4x-WebAdmin/node_modules/pug-runtime/wrap.js:6:10), <anonymous>:1441:25)
at template (eval at wrap (/home/ogp_agent/CoD4x-WebAdmin/node_modules/pug-runtime/wrap.js:6:10), <anonymous>:1931:72)
at Object.exports.renderFile (/home/ogp_agent/CoD4x-WebAdmin/node_modules/pug/lib/index.js:427:38)
at Object.exports.renderFile (/home/ogp_agent/CoD4x-WebAdmin/node_modules/pug/lib/index.js:417:21)
at View.exports.__express [as engine] (/home/ogp_agent/CoD4x-WebAdmin/node_modules/pug/lib/index.js:464:11)
at View.render (/home/ogp_agent/CoD4x-WebAdmin/node_modules/express/lib/view.js:135:8)
at tryRender (/home/ogp_agent/CoD4x-WebAdmin/node_modules/express/lib/application.js:640:10)
at Function.render (/home/ogp_agent/CoD4x-WebAdmin/node_modules/express/lib/application.js:592:3)
at ServerResponse.render (/home/ogp_agent/CoD4x-WebAdmin/node_modules/express/lib/response.js:1012:7)
at /home/ogp_agent/CoD4x-WebAdmin/app/controllers/admin/index.js:49:8
at tryCatcher (/home/ogp_agent/CoD4x-WebAdmin/node_modules/bluebird/js/release/util.js:16:23)
at Promise._settlePromiseFromHandler (/home/ogp_agent/CoD4x-WebAdmin/node_modules/bluebird/js/release/promise.js:547:31)
at Promise._settlePromise (/home/ogp_agent/CoD4x-WebAdmin/node_modules/bluebird/js/release/promise.js:604:18)
at Promise._settlePromise0 (/home/ogp_agent/CoD4x-WebAdmin/node_modules/bluebird/js/release/promise.js:649:10)
at Promise._settlePromises (/home/ogp_agent/CoD4x-WebAdmin/node_modules/bluebird/js/release/promise.js:729:18)
at Promise._fulfill (/home/ogp_agent/CoD4x-WebAdmin/node_modules/bluebird/js/release/promise.js:673:18)
at PropertiesPromiseArray.PromiseArray._resolve (/home/ogp_agent/CoD4x-WebAdmin/node_modules/bluebird/js/release/promise_array.js:127:19)
at PropertiesPromiseArray._promiseFulfilled (/home/ogp_agent/CoD4x-WebAdmin/node_modules/bluebird/js/release/props.js:78:14)
at Promise._settlePromise (/home/ogp_agent/CoD4x-WebAdmin/node_modules/bluebird/js/release/promise.js:609:26)
at Promise._settlePromise0 (/home/ogp_agent/CoD4x-WebAdmin/node_modules/bluebird/js/release/promise.js:649:10)
at Promise._settlePromises (/home/ogp_agent/CoD4x-WebAdmin/node_modules/bluebird/js/release/promise.js:729:18)
at Promise._fulfill (/home/ogp_agent/CoD4x-WebAdmin/node_modules/bluebird/js/release/promise.js:673:18)
at /home/ogp_agent/CoD4x-WebAdmin/node_modules/bluebird/js/release/nodeback.js:42:21
at /home/ogp_agent/CoD4x-WebAdmin/node_modules/mongoose/lib/model.js:4863:16
at /home/ogp_agent/CoD4x-WebAdmin/node_modules/mongoose/lib/helpers/promiseOrCallback.js:24:16
at /home/ogp_agent/CoD4x-WebAdmin/node_modules/mongoose/lib/model.js:4886:21
at /home/ogp_agent/CoD4x-WebAdmin/node_modules/mongoose/lib/query.js:4397:11
at /home/ogp_agent/CoD4x-WebAdmin/node_modules/kareem/index.js:136:16
at processTicksAndRejections (internal/process/task_queues.js:79:11)
LinuxGSM files repository is dead, wget throws 503 error.
I created a new repo for myself if you interested to get the base files.
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.