linuxserver / docker-emulatorjs

Web based retro emulation frontend with rom scanning and automated art ingestion.
GNU General Public License v3.0
509 stars 51 forks source link

chdman error / invalid line 1 error #26

Closed FatzBomb75 closed 1 year ago

FatzBomb75 commented 2 years ago

linuxserver.io


Expected Behavior

Scanning folder of chd files for psx/3do/segacd/32x/ (posible saturn) would read files and add to list oddly, pce chds add fine Scanning as renamed iso (or other extension) pulls a hash and finishes the list. Then I manually edit the generated config, hash files and files to reflect chd once again and import each file (all are unknown this way). The files do run succesfully in chd format.

attempting to rescan the same library (with chd extension) errors again and destroys the library

Current Behavior

exited code chdman doesn't exist

Steps to Reproduce

  1. add chd files to psx rom directory
  2. hit psx scan
  3. error and scanner stops (also destroys existing list if there was one) Scan exited with code: 127 /usr/local/bin/chdman: line 1: Public: command not found

Environment

Unraid x64 linuxserver.io CA

Command used to create docker container (run/create/compose/screenshot)

CA install

Docker logs

no error listed in log

github-actions[bot] commented 2 years ago

Thanks for opening your first issue here! Be sure to follow the bug or feature issue templates!

FatzBomb75 commented 2 years ago

I want to add, obviously chdman doesn't exists on the system. I tried running the script to pull the image and it fails to place it in the /usr/local/bin/ folder. Assuming permissions. I can run the command and have it download to a share folder without issue, however, emulatorjs still errors out, even if mapping the folder /usr/local/bin/ to my share.

amazing-rando commented 2 years ago

I'm having the exact same issue. When I look at the chdman file that exists in the latest docker image, its clear that its just a text file containing the following line:

"Public Gateway Is Not Supported Anymore - Setup a Dedicated Gateway"

I tried moving the file over from a recent install of the Ubuntu package mame-tools, however, this did not work.

owenb321 commented 2 years ago

I was able to work around this by opening a bash shell in the running container and running the curl and chmod commands from the dockerfile that download the chdman binary.

Seems like that download step failed when the latest image was built.

github-actions[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

serverless83 commented 1 year ago

The Domain ipfs.infura.io isn't active anymore. Use infura-ipfs.io, this is the message inside the chdman file.

Solved installing a previous release of the docker image.

lauschin commented 1 year ago

@serverless83 Which version fixed it for you?

serverless83 commented 1 year ago

@serverless83 Which version fixed it for you?

linuxserver/emulatorjs:1.7.2-ls42

Bidonh commented 1 year ago

@serverless83 Which version fixed it for you?

linuxserver/emulatorjs:1.7.2-ls42

Thanks. I had an error with .chd files as well.

Scan exited with code: 2
syntax error: unexpected end of file
/usr/local/bin/chdman: line 2:
unexpected EOF while looking for matching `''
/usr/local/bin/chdman: line 1:
processing game.chd

And using that version solved that problem.

xlorepdarkhelm commented 1 year ago

I will also note, I had the same problem, and using the same version corrected the problem.

In the latest build, if I run chdman in the container, it is broken. But linuxserver/emulatorjs:1.7.2-ls42 is working.

Bidonh commented 1 year ago

After using the PSX rom management, I noticed that when you scan for new roms, CHDMAN process ALL the roms not just the new ones.

My mistake, there is such a fonction in rom management>psx>scan for new items at the bottom of the column.

github-actions[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Hypertoken commented 1 year ago

Not sure if my issue is exactly this as it appears this issue have been resolved with this commit

When I cat chdman I get;

root@8d3e8300a47b:/usr/local/bin# ls
NES20Tool  binmerge  chdman
root@8d3e8300a47b:/usr/local/bin# cat chdman
<html>
<head><title>429 Too Many Requests</title></head>
<body>
<center><h1>429 Too Many Requests</h1></center>
<hr><center>openresty</center>
</body>
</html>

So maybe the new url is just getting slammed?

I was able to work around the issue my manually running in my docker container;

curl -L "https://infura-ipfs.io/ipfs/QmUfYfuoxPgDRc9Mniv1TBXv6LXPRNArAabZo5VnzfZNtP" -o /usr/local/bin/chdman
chmod +x /urs/local/bin/chdman
Bidonh commented 1 year ago

So maybe the new url is just getting slammed?

No, I just tried the linuxserver/emulatorjs:1.7.2-ls53 container and I still got a chdman error while the linuxserver/emulatorjs:1.7.2-ls42 works great. Except for IPFS daemon cpu+bandwidth usage...

github-actions[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. This might be due to missing feedback from OP. It will be closed if no further activity occurs. Thank you for your contributions.

github-actions[bot] commented 1 year ago

This issue is locked due to inactivity