Closed hsahovic closed 3 years ago
Do you maybe not have a logs/
directory? That seems like the issue here..?
The very same CI script was working three weeks ago, and it seems to be affecting @godpow on a regular desktop version of ubuntu and windows, as well as on WSL.
Edit: it was three weeks ago, not last week
It seems like the issue is you don't have a logs directory. We haven't changed anything in Repl lately so I'm not sure it's on our end.
Oh, the issue is literally that we've stopped shipping logs/ in the repo. Making the directory should fix it for now.
@Zarel, why remove the READMEs that anchored it? Or even just logs/logging.md
? (https://github.com/smogon/pokemon-showdown/commit/7811795344da5d5dbc8b84b480ec819e652bdcb9#diff-3352d5f3892c9cc9cceda0cd4ad648baf3385bcd7b75659f4a37706bd2a8b4a4)
When you make the logs folder on windows it'll make the errors.txt appear but still an issue with CRASH: Error: ENOENT: no such file or directory, scandir 'C:\Users\CyberKira\Documents\pokemon showdown\pokemon-showdown\logs\repl'
at Object.readdirSync (node:fs:1390:3)
at _class.start (C:\Users\CyberKira\Documents\pokemon showdown\pokemon-showdown\lib\repl.ts:12:16)
at Object.
When you make the logs folder on windows it'll make the errors.txt appear but still an issue with CRASH: Error: ENOENT: no such file or directory, scandir 'C:\Users\CyberKira\Documents\pokemon showdown\pokemon-showdown\logs\repl' at Object.readdirSync (node:fs:1390:3) at _class.start (C:\Users\CyberKira\Documents\pokemon showdown\pokemon-showdown\lib\repl.ts:12:16) at Object. (C:\Users\CyberKira\Documents\pokemon showdown\pokemon-showdown\server\index.ts:173:11) at Module._compile (node:internal/modules/cjs/loader:1101:14) at Module.m._compile (C:\Users\CyberKira\Documents\pokemon showdown\pokemon-showdown\node_modules\ts-node\src\index.ts:1310:23) at Module._extensions..js (node:internal/modules/cjs/loader:1153:10) at Object.require.extensions. [as .ts] (C:\Users\CyberKira\Documents\pokemon showdown\pokemon-showdown\node_modules\ts-node\src\index.ts:1313:12) at Module.load (node:internal/modules/cjs/loader:981:32) at Function.Module._load (node:internal/modules/cjs/loader:822:12) at Object. (C:\Users\CyberKira\Documents\pokemon showdown\pokemon-showdown\pokemon-showdown:134:22)
You need to make a logs/repl dir as well. This i'll push a fix for right now, since it's easier.
https://github.com/smogon/pokemon-showdown/commit/e08e1a9cf08545f4f85afb959e51b9c071e0c0df should fix the logs/repl errors.
Thanks a lot @mia-pi-git! Much appreciated :)
Hm. It looks like when rooms are created, it creates the roomlog dir, and any parent directories needed. That should fix that part?
Should be fixed by 66a0497a8bbd5f3c if whatever stuff in here wasn't enough.
Hello,
I have a CI script that has been relying on showdown for more than a year that has started breaking unexpectedly in the last few days. It runs on an ubuntu server distro.
The relevant steps are:
The complete circle ci config file can be found here.
Running the above leads to:
Additionally, it seems like a similar issue arose for @godpow both on linux and windows as they mentioned in this issue.
Any idea what may be causing this, and how to fix it?