self-host-csmm-support

textPage 34 of 373
50 messages on this page
Thursday, December 7, 2023
Avatar for 0cec7b679cffd6141a393072bf27c9e50c091382dcfa3773b1564d2dec5d200e
User 0cec7b
No content
image.png

image.png

PNG35.4 KB

Avatar for 0cec7b679cffd6141a393072bf27c9e50c091382dcfa3773b1564d2dec5d200e
User 0cec7b
very simple indeed..
Screenshot_2023-12-07_230548.png

Screenshot_2023-12-07_230548.png

PNG65.8 KB

Avatar for 0cec7b679cffd6141a393072bf27c9e50c091382dcfa3773b1564d2dec5d200e
User 0cec7b
yeah mine too other wise they wouldn't have migrated. etc'
Avatar for 0b2cfa4611e2843250eedc9a37d2cca2672cfc23864b2d925164f0651fb5115c
User 0b2cfa
yeah im going to assume its something simple, but i looked at your suggestions earlier and my redis is fine
Avatar for 0cec7b679cffd6141a393072bf27c9e50c091382dcfa3773b1564d2dec5d200e
User 0cec7b
yeah im at now the same stage your at discord chat bridge
Avatar for 0b2cfa4611e2843250eedc9a37d2cca2672cfc23864b2d925164f0651fb5115c
User 0b2cfa
yeah i gave up for the time being. even tried the docker and that compiled and ran but then ran into errors inside that
Avatar for 0cec7b679cffd6141a393072bf27c9e50c091382dcfa3773b1564d2dec5d200e
User 0cec7b
ignore that.. my ftp wasn't uploading the .env file only just figured it out
Avatar for 0cec7b679cffd6141a393072bf27c9e50c091382dcfa3773b1564d2dec5d200e
User 0cec7b
ive created one now granted ownership and flushed still getting the same message
Avatar for 0cec7b679cffd6141a393072bf27c9e50c091382dcfa3773b1564d2dec5d200e
User 0cec7b
thats what i did the first time
Avatar for 0b2cfa4611e2843250eedc9a37d2cca2672cfc23864b2d925164f0651fb5115c
User 0b2cfa
CREATE USER 'csmm'@'localhost' IDENTIFIED WITH mysql_native_password BY 'your-db-password';
GRANT ALL PRIVILEGES ON csmm.* TO 'csmm'@'localhost';
FLUSH PRIVILEGES;```
Avatar for 0b2cfa4611e2843250eedc9a37d2cca2672cfc23864b2d925164f0651fb5115c
User 0b2cfa
so you didnt create the db?
Avatar for 0cec7b679cffd6141a393072bf27c9e50c091382dcfa3773b1564d2dec5d200e
User 0cec7b
did you create another db? or just run the npm ci again after doing that?
Avatar for 0cec7b679cffd6141a393072bf27c9e50c091382dcfa3773b1564d2dec5d200e
User 0cec7b
mysql> DROP DATABASE csmm;
ERROR 1008 (HY000): Can't drop database 'csmm'; database doesn't exist
mysql> ALTER USER 'csmm'@'localhost' IDENTIFIED WITH mysql_native_password BY 'myverysecretepassword-noreal';
Query OK, 0 rows affected (0.18 sec)
mysql> FLUSH PRIVILEGES;
Query OK, 0 rows affected (0.07 sec)
Avatar for 0cec7b679cffd6141a393072bf27c9e50c091382dcfa3773b1564d2dec5d200e
User 0cec7b
yeah still getting the same message
Avatar for 0b2cfa4611e2843250eedc9a37d2cca2672cfc23864b2d925164f0651fb5115c
User 0b2cfa
gonna try docker again
Avatar for 0b2cfa4611e2843250eedc9a37d2cca2672cfc23864b2d925164f0651fb5115c
User 0b2cfa
i just reset it all and did you flush privilegs after?
Avatar for 0cec7b679cffd6141a393072bf27c9e50c091382dcfa3773b1564d2dec5d200e
User 0cec7b
ive alter user and changed the pass
Avatar for 0cec7b679cffd6141a393072bf27c9e50c091382dcfa3773b1564d2dec5d200e
User 0cec7b
delete and reset? or clear table?
Avatar for 0b2cfa4611e2843250eedc9a37d2cca2672cfc23864b2d925164f0651fb5115c
User 0b2cfa
at first yes but once i dropped the csmm database and reset the password for the user csmm all was fine
Avatar for 0cec7b679cffd6141a393072bf27c9e50c091382dcfa3773b1564d2dec5d200e
User 0cec7b
@User 28138655 did you get this error at all>ERROR: Access denied for user 'csmm'@'localhost' (using password: YES)
Avatar for 0cec7b679cffd6141a393072bf27c9e50c091382dcfa3773b1564d2dec5d200e
User 0cec7b
just got the some error again.
Avatar for 0b2cfa4611e2843250eedc9a37d2cca2672cfc23864b2d925164f0651fb5115c
User 0b2cfa
yeah looking at those now
Avatar for 0cec7b679cffd6141a393072bf27c9e50c091382dcfa3773b1564d2dec5d200e
User 0cec7b
maybe of some use?
Avatar for 0b2cfa4611e2843250eedc9a37d2cca2672cfc23864b2d925164f0651fb5115c
User 0b2cfa
```[app] info: Initializing custom hook (
discordChatbridge
)
[worker] error: undefined {"code":"E_HOOK_TIMEOUT"}
Avatar for 0b2cfa4611e2843250eedc9a37d2cca2672cfc23864b2d925164f0651fb5115c
User 0b2cfa
this is the first thing after sails on startup
Avatar for 0b2cfa4611e2843250eedc9a37d2cca2672cfc23864b2d925164f0651fb5115c
User 0b2cfa
cant even get that far lol
Avatar for 0cec7b679cffd6141a393072bf27c9e50c091382dcfa3773b1564d2dec5d200e
User 0cec7b
bot on the server?
Avatar for 0b2cfa4611e2843250eedc9a37d2cca2672cfc23864b2d925164f0651fb5115c
User 0b2cfa
it looks like a discord issue but ive reset everything and double checked tokens
Avatar for 0cec7b679cffd6141a393072bf27c9e50c091382dcfa3773b1564d2dec5d200e
User 0cec7b
there maybe something before it as thats just an echo like comment to say if it doesn't get what its looking for then throws that message out
Avatar for 0b2cfa4611e2843250eedc9a37d2cca2672cfc23864b2d925164f0651fb5115c
User 0b2cfa
        return function (...args) {
            if (fn === null) throw new Error("Callback was already called.");
            var callFn = fn;
            fn = null;
            callFn.apply(this, args);
        };``` this is the function it doesnt like, diving back in lol
Avatar for 0b2cfa4611e2843250eedc9a37d2cca2672cfc23864b2d925164f0651fb5115c
User 0b2cfa
no everything matches up
Avatar for 0cec7b679cffd6141a393072bf27c9e50c091382dcfa3773b1564d2dec5d200e
User 0cec7b
token?
Avatar for 0b2cfa4611e2843250eedc9a37d2cca2672cfc23864b2d925164f0651fb5115c
User 0b2cfa
something with discordchatbridge it doesnt like
Avatar for 0b2cfa4611e2843250eedc9a37d2cca2672cfc23864b2d925164f0651fb5115c
User 0b2cfa
from redis status
             └─709 "/usr/bin/redis-server 127.0.0.1:6379"
from .env
REDISSTRING=redis://127.0.0.1:6379
so that looks ok
Avatar for 0cec7b679cffd6141a393072bf27c9e50c091382dcfa3773b1564d2dec5d200e
User 0cec7b
ahh right so how do i get around this and get csmm to run?
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
There's a good blog post about it from one of the react creators: https://overreacted.io/npm-audit-broken-by-design/
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
Okay so the audit fix thing you do not want to run. It updates packages in a way that's untested and could very easily break things
Avatar for 0cec7b679cffd6141a393072bf27c9e50c091382dcfa3773b1564d2dec5d200e
User 0cec7b
this is my read out from npm after using the -audit fix
Avatar for 0cec7b679cffd6141a393072bf27c9e50c091382dcfa3773b1564d2dec5d200e
User 0cec7b
npm WARN deprecated uuid@3.4.0: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.
npm WARN deprecated uuid@3.4.0: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.
npm WARN deprecated uuid@3.4.0: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.
npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated codecov@3.8.3: https://about.codecov.io/blog/codecov-uploader-deprecation-plan/
npm WARN deprecated bull-board@2.1.3: 2.x is no longer supported, we moved to use @bull-board scope
npm WARN deprecated core-js@2.6.12: core-js@<3.4 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Please, upgrade your dependencies to the actual version of core-js.
Avatar for 0cec7b679cffd6141a393072bf27c9e50c091382dcfa3773b1564d2dec5d200e
User 0cec7b
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE package: 'csmm@2.2.0',
npm WARN EBADENGINE required: { node: '12' },
npm WARN EBADENGINE current: { node: 'v16.20.2', npm: '8.19.4' }
npm WARN EBADENGINE }
npm WARN deprecated request-promise-native@1.0.9: request-promise-native has been deprecated because it extends the now deprecated request package, see https://github.com/request/request/issues/3142
npm WARN deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
npm WARN deprecated har-validator@5.1.5: this library is no longer supported
npm WARN deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
npm WARN deprecated debug@4.1.1: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (https://github.com/visionmedia/debug/issues/797)
npm WARN deprecated debug@4.1.1: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (https://github.com/visionmedia/debug/issues/797)
npm WARN deprecated debug@4.1.1: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (https://github.com/visionmedia/debug/issues/797)
Avatar for 0cec7b679cffd6141a393072bf27c9e50c091382dcfa3773b1564d2dec5d200e
User 0cec7b
npm WARN deprecated getting that alot :/
Avatar for 0cec7b679cffd6141a393072bf27c9e50c091382dcfa3773b1564d2dec5d200e
User 0cec7b
npm ci install --only=prod like this?
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
Ah yikes, should def be npm ci insteal of install there :(
Avatar for 0cec7b679cffd6141a393072bf27c9e50c091382dcfa3773b1564d2dec5d200e
User 0cec7b
initially i used the npm install --only=prod command via the docs but still gave me the same error
Avatar for 0b2cfa4611e2843250eedc9a37d2cca2672cfc23864b2d925164f0651fb5115c
User 0b2cfa
I'll mess with the self host when I get home see if I can get past that. Gives me something to tinker with
Avatar for 0cec7b679cffd6141a393072bf27c9e50c091382dcfa3773b1564d2dec5d200e
User 0cec7b
ahh right let me try this method then
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
Ohh that may have been the unraid image? I don't have much experience with that one tbh