Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

POST http://localhost:3000/upload 503 (Service Unavailable) #223

Open
iFloyd12 opened this issue Mar 21, 2016 · 5 comments
Open

POST http://localhost:3000/upload 503 (Service Unavailable) #223

iFloyd12 opened this issue Mar 21, 2016 · 5 comments

Comments

@iFloyd12
Copy link

What to do?
I don't know how to fix this.
I already saw the other issues about this but it doesn't work for me and maybe it's because the meteor is again upgrade to its version

@nezirz
Copy link

nezirz commented Apr 16, 2016

I have also the same problem in meteor 1.3.1 Win 10.
The same problem when I tried to run Original plugin project from tomitrescak

@sanjay1122
Copy link

sanjay1122 commented Jun 8, 2016

Any help on following is appreciated, totally stuck ... not able to resize.

imageVersions not working. I am running meteor on windows 7.
Failing "http://localhost:3000/upload 503 ..."
Why is it looking in http://localhost:3000/upload ? This directory does not exist.
Is it related with "uploadUrl", I am not setting it !

On server console error is

if (err) throw err;
W20160608-22:19:06.986(5.5)? (STDERR)
W20160608-22:19:07.015(5.5)? (STDERR) C:\xxxxxx\METEOR\meteor-uploads-master.meteor\local\build\programs\server\packages\tomi_upload-server.js:376
W20160608-22:19:07.017(5.5)? (STDERR) Error: Command failed: Invalid Parameter - /Lighthouse.jpg
W20160608-22:19:07.018(5.5)? (STDERR)
W20160608-22:19:07.017(5.5)? (STDERR) ^
W20160608-22:19:07.019(5.5)? (STDERR) at ChildProcess. (C:\xxxx\AppData\Local.meteor\packages\tomi_upload-server\1.3.4\npm\node_modules\imagemagick\imagemagick.js:88:15)
W20160608-22:19:07.021(5.5)? (STDERR) at Process.ChildProcess._handle.onexit (child_process.js:833:5)
W20160608-22:19:07.020(5.5)? (STDERR) at maybeClose (child_process.js:766:16)
W20160608-22:19:07.019(5.5)? (STDERR)

W20160608-22:19:07.020(5.5)? (STDERR) at ChildProcess.emit (events.js:98:17)

server init file:
UploadServer.init({
tmpDir: process.env.PWD + '/.uploads/tmp/',
uploadDir: process.env.PWD + '/.uploads/',
checkCreateDirectories: true,
imageTypes: /.(gif|jpe?g|png)$/i,
imageVersions: {thumbnailBig: {width: 400, height: 300}, thumbnailSmall: {width: 200, height: 100}},
finished: function(fileInfo, formData) {
if (formData && formData._id != null) {
Items.update({_id: formData._id}, { $push: { uploads: fileInfo }});
}
}
});

@hrdymchl
Copy link

hrdymchl commented Jun 9, 2016

I also have this problem and I've tried the troubleshooting section to no avail. I'm also using Win 10.

@tomitrescak
Copy link
Owner

Guys, I have no windows machine.but these questions keep appearing over and over on this issue page and it is always related to access privileges, or imagemagick not installed properly. Please also read the documentation on how to setup directories properly and what are the configuration options.

It's also possible that this project simply fell behind the current version of imagemagick. If that is so, check the code for server and see if it called properly. If not, PR is welcome.

@sanjay1122
Copy link

Thanks Thomas for replying back. I will really appreciate if you could help debug it.

  1. It is not directory permission issue because image gets uploaded to the directory; resize directories thumbnailSmall and thumbnailBig get created. I have also checked from windows explorer that directory permissions are there.

  2. I tried two different directories and two different installations of imagemagick but same result. hydychl also mentioned the same so I guess chances of imagemagicks not installed properly is bleak. If there is way to change version then I can try that too, let me know.

I have been tried to debug using node inspector but unsuccessful so far. I see that at most of places in imagemagicks, it is able to capture all correct info like file name, directories and image resize values etc but then at some function it gives error out
xxx\meteor-uploads-master.meteor\local\build\programs\server\packagesW20160609-22:37:08.190(5.5)? (STDERR) if (err) throw err; ^
W20160609-22:37:08.190(5.5)? (STDERR) Error: Command failed: Invalid Parameter - /SANJAY

I understand that you don't use windows machine but if you can let me know what to experiment and what log/info would help you to debug then I can generate that. I am about to reach give up stage unless you support, appreciate if can extent help. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants