Error with new update



  • Hello,

    NeHo Im just trying to install the new CoD4xWebadmin version but I got this error when using node or nodejs index.js

    root@NHostS:/var/www/cod4x/app/update# node index.js
    /var/www/cod4x/node_modules/mongoose/lib/schema.js:403
          throw new TypeError('Invalid value for schema path `' + prefix + key + '`');
          ^
    
    TypeError: Invalid value for schema path `status`
        at Schema.add (/var/www/cod4x/node_modules/mongoose/lib/schema.js:403:13)
        at new Schema (/var/www/cod4x/node_modules/mongoose/lib/schema.js:117:10)
        at Object.<anonymous> (/var/www/cod4x/app/models/admin_applications.js:9:33)
        at Module._compile (module.js:652:30)
        at Object.Module._extensions..js (module.js:663:10)
        at Module.load (module.js:565:32)
        at tryModuleLoad (module.js:505:12)
        at Function.Module._load (module.js:497:3)
        at Module.require (module.js:596:17)
        at require (internal/module.js:11:18)
        at Object.<anonymous> (/var/www/cod4x/app/update/index.js:19:26)
        at Module._compile (module.js:652:30)
        at Object.Module._extensions..js (module.js:663:10)
        at Module.load (module.js:565:32)
        at tryModuleLoad (module.js:505:12)
        at Function.Module._load (module.js:497:3)
        at Function.Module.runMain (module.js:693:10)
        at startup (bootstrap_node.js:188:16)
        at bootstrap_node.js:609:3
    
    

    Any idea ? Thanks


  • Administrators

    Hello there. For the easiest fix download directly from github page (clone or download) the source code. https://github.com/byNeHo/CoD4x-WebAdmin I have not made a new release with the latest fixes. my mistakes

    I messed up a little bit the latest releases there are some files which should not be there. That error is a bug, if you download directly from github the files they will be fixed. There will be later on another bug with socketio. You can edit 2 files on your server or grab the fixed source from github

    1. error "status" (this is what you have just posted here)

    From the error what u sent you can see that the error is in file admin_applications.js

    Object.<anonymous> (/var/www/cod4x/app/models/admin_applications.js:9:33)
    

    To fix it you have to replace this line

    status: false
    

    with this line

    status:  { type: Boolean, default:false}
    

    here https://github.com/byNeHo/CoD4x-WebAdmin/blob/master/app/models/admin_applications.js#L13

    1. error 'socketio' (you will see this error when you fix the first)

    To prevent next error just replace https://github.com/byNeHo/CoD4x-WebAdmin/tree/master/bin/www file with yours and delete inside app directory the socketio directory that's not needed anymore. (I think you run 2 servers so if you change www file make sure you also change inside it the port)



  • Thanks it worked just updated the scripts.

    There are less plugins now? I dont see server check and other plugins.

    Also is it possible to use the new version without the julia things and ingame commands? I use B3


  • Administrators

    I think that the new version will not work with B3 since it requires the latest https://github.com/callofduty4x/CoD4x_Server/tree/dev_newarch release and somebody told me that b3 plugin wont work with newer versions. if you can use the latest version with b3 plugin I think that it should be compatible with it. You could test it out and let me know. Actually julia is a clone from sourcebans plugin, I think you will be familiar with that plugin.

    I would appreciate it if you could test it out and let me know

    I have removed some plugins since they had bugs, i will restore them when i fix the issues.

    You already know that right now i work on the translation after that i will look at the plugins part



  • Mmmmm I will test it tomorrow I had to use the 0.0.4 version bc the website wasnt updating the server info, online players was 0 and it wasnt showing the current players online. Thats why I was asking about the plugins.


  • Administrators

    That's strange we use the plugin for a long time and it works with no problems, when it works the server and player info is refreshed every 30 seconds, make sure that you assign the julia identkey on the website for each server and that you load the plugin on the game server. It has the same steps as the screnshotsender plugin (screenshots are included in Julia so you can remove that plugin if you use julia). If it doesn't work check game qconsoloe.log maybe it fails on init.

    Step by step tutorial for plugin julia, how to activate it
    https://forum.cirkus-serveri.com/topic/62/how-to-set-up-sso-steam-plugin-and-activate-plugin-julia



  • Yes, just tested it and worked...

    Just found a few things you cant change the "Card Background Color" I set it to amber but now I cant change it to purple.

    The CoD4x build crash the server if u use $record (segmentation fault) I think they already fixed that in dev_newarch, could you pls update it? Thanks.

    I have a profile that gives black ss, the web kicks the player instantly but just once is there a way to keep kicking that player if the black ss is still in the web?

    Tested and B3 still works*

    And just wanna know what plugins are included inside the julia.so.

    No more things rn I think.

    Thanks for this, I love the mute chat button xD.


  • Administrators

    I will check the card background it is probably some form issue since I removed some parts from it, will investigate and fix it (if you need a quick approach you can change it via robomongo in servers collection).

    I will update the CoD4x build and attach it on github.
    Actually once the web kick a black SS player his ID is added to black list, in that case when he rejoins the server since he is on the blacklist the web should execute on him command "getss". maybe something is not working properly, will look at that and ask you in future to test it out. The only situation what I can imagine why is it not working is next.

    You join the server with black SS profile, "getss" command is executed and you are kicked and added to the blacklist.
    You rejoin the server with non black SS profile and the getss command gets again executed on you since you are on the blacklist, the screenshoot arrives and the website removes you from the blacklist since your screenshot is normal (not black).
    From now on you are not on the blacklist and you can again join the server with black SS profile and you will be not kicked since you are not on the blacklist on the web.
    But if any admin executes on you the getss command if you have a black one you will be re added to the blacklist.

    The website executes only once the getss command when you join the server, if you already visited the server and you exist in the database the getss will not be executed (with other words if you exist on page "Players Data" on the website the getss command will not be executed on you since you are an old known player)

    I will create a separated forum post for Julia plugin futures, nehoscreenshot plugin is included in julia and since the banlist is stored on the web you don't need any ban plugins. When the player joins the game server before he can connect the plugin checks if he is banned on the website


  • Administrators

    Right now i am thinking of implementing to the website a new part, cod4x compilation, so in future if i got it to work you will be able to compile cod4x binary files in the websites admin section with 1 click and update your local server binary file or to download it for the external servers.

    This will only work if you manually install the required tools for compiling cod4x files (for now maybe I can implement this to but not sure about it yet)

    To compile CoD4x from source you require the following tools:

    • list itemNASM

    • list itempaxctl

    • list itemgcc

    • make

    Debian/Ubuntu 32-bit:

    sudo apt install nasm paxctl build-essential
    

    Debian/Ubuntu 64-bit:

    sudo dpkg --add-architecture i386
    sudo apt-get update
    sudo apt-get install nasm:i386 build-essential gcc-multilib g++-multilib
    

    openSUSE 32-bit:

    sudo zypper install nasm gcc-32bit gcc-c++-32bit
    

    Arch Linux 32-bit:

    yaourt -S nasm paxctl gcc-multilib make
    

  • Administrators

    For julia server commands please chech new forum category Plugin Julia

    https://forum.cirkus-serveri.com/category/10/plugin-julia



  • Ohh ok, I will use robomongo.

    Well, I tried it my profile got black ss but it just kicked me once, I reconnected and I wasnt being kicked and my new profile always gives black ss.

    I use nehosender, b3hide, simplebanlist and maybe in the future the antispam. are they all included in julia?

    Im gonna try to compile it, I did that long time ago. Just wanna be sure the dev_newarch is not unstable.


  • Administrators

    @Klauser said in Error with new update:

    nehosender

    is included, you dont need simplebanlist since Julia works trough web and it will be in conflict with simplebanlist make sure you remove that plugin. b3hide is for b3 so that's ok

    I will check the blackSS plugin



  • If I apply a B3 ban without simplebanlist loaded, will it work as julia is loaded?


  • Administrators

    You will have to test it, I think that it should, if you have that ban with a cheater report on the website then it will work


  • Administrators

    I'am not sure if i have mentioned it here, but if you permban, tempban or unban via game console (ingame) the plugin creates the rest on the website. So if you ban it will create a new cheater report without screenshot on the website



  • Then If I use !permban with b3 the ban will appear on the website? as B3 apply bans with rcon.


  • Administrators

    yes it should appear, julia synchronize game server with website


  • Administrators

    Let me know if it works so I know the answer if somebody else asks me the same



  • Ok, I will check that. Forum doesnt let me reply too fast xD


  • Administrators

    Let me fix that part, sry its part of protection for new users, against spam


Log in to reply
 

439
101
86
Visitors Today
Powered & Designed by NeHo