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

Can't read file even though it really exists #20

Closed
vionemc opened this issue Aug 8, 2016 · 3 comments
Closed

Can't read file even though it really exists #20

vionemc opened this issue Aug 8, 2016 · 3 comments
Labels

Comments

@vionemc
Copy link
Collaborator

vionemc commented Aug 8, 2016

When I run vagrant-spk dev with image file set in sandstorm-pkgdef.capnp I got this error:

D:\xampp\htdocs\PHP projects\Asheesh Laroia\ampache-sandstorm-prototype>vagrant-spk dev
Calling 'vagrant' 'ssh' '-c' '/opt/app/.sandstorm/build.sh && cd /opt/app/.sandstorm && spk dev --pkg-def=/opt/app/.sandstorm/sandstorm-pkgdef.capnp:pkgdef' in D:\xampp\htdocs\PHP projects\Asheesh Laroia\ampache-sandstorm-prototype\.sandstorm
Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Nothing to install or update
Package guzzle/common is abandoned, you should avoid using it. Use guzzle/guzzle instead.
Package guzzle/stream is abandoned, you should avoid using it. Use guzzle/guzzle instead.
Package guzzle/parser is abandoned, you should avoid using it. Use guzzle/guzzle instead.
Package guzzle/http is abandoned, you should avoid using it. Use guzzle/guzzle instead.
Generating autoload files
> ComponentInstaller\Installer::postAutoloadDump
Compiling component files
*** Uncaught exception ***
/opt/app/.sandstorm/sandstorm-pkgdef.capnp:130: failed: Couldn't read file for embed: /opt/app/images/preview/catalog.jpg
Connection to 127.0.0.1 closed.
Traceback (most recent call last):
  File "<string>", line 1022, in <module>
  File "<string>", line 1019, in main
  File "<string>", line 674, in dev
  File "<string>", line 288, in call_vagrant_command
  File "subprocess.py", line 540, in check_call
subprocess.CalledProcessError: Command '['vagrant', 'ssh', '-c', '/opt/app/.sandstorm/build.sh && cd /opt/app/.sandstorm && spk dev --pkg-def=/opt/app/.sandstorm/sandstorm-pkgdef.capnp:pkgdef']' returned non-zero exit status 1
vagrant-spk returned -1

The problem is, the file really exist. I even checked from ssh.

@vionemc vionemc added the bug label Aug 8, 2016
@paulproteus
Copy link
Owner

In /opt/app/.sandstorm/sandstorm-pkgdef.capnp,

instead of: /opt/app/images/preview/catalog.jpg

can you try writing

../images/preview/catalog.jpg

And tell me if the problem goes away?

On Mon, Aug 8, 2016 at 2:26 PM, Aminah Nuraini notifications@github.com
wrote:

When I run vagrant-spk dev with image file set in sandstorm-pkgdef.capnp
I got this error:

D:\xampp\htdocs\PHP projects\Asheesh Laroia\ampache-sandstorm-prototype>vagrant-spk dev
Calling 'vagrant' 'ssh' '-c' '/opt/app/.sandstorm/build.sh && cd /opt/app/.sandstorm && spk dev --pkg-def=/opt/app/.sandstorm/sandstorm-pkgdef.capnp:pkgdef' in D:\xampp\htdocs\PHP projects\Asheesh Laroia\ampache-sandstorm-prototype.sandstorm
Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Nothing to install or update
Package guzzle/common is abandoned, you should avoid using it. Use guzzle/guzzle instead.
Package guzzle/stream is abandoned, you should avoid using it. Use guzzle/guzzle instead.
Package guzzle/parser is abandoned, you should avoid using it. Use guzzle/guzzle instead.
Package guzzle/http is abandoned, you should avoid using it. Use guzzle/guzzle instead.
Generating autoload files

ComponentInstaller\Installer::postAutoloadDump
Compiling component files
*** Uncaught exception ***
/opt/app/.sandstorm/sandstorm-pkgdef.capnp:130: failed: Couldn't read file for embed: /opt/app/images/preview/catalog.jpg
Connection to 127.0.0.1 closed.
Traceback (most recent call last):
File "", line 1022, in
File "", line 1019, in main
File "", line 674, in dev
File "", line 288, in call_vagrant_command
File "subprocess.py", line 540, in check_call
subprocess.CalledProcessError: Command '['vagrant', 'ssh', '-c', '/opt/app/.sandstorm/build.sh && cd /opt/app/.sandstorm && spk dev --pkg-def=/opt/app/.sandstorm/sandstorm-pkgdef.capnp:pkgdef']' returned non-zero exit status 1
vagrant-spk returned -1

The problem is, the file really exist. I even checked from ssh.


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#20,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AABjcdsL23iwSf_btUz0q0QKrnBtiZxqks5qd3TZgaJpZM4JfVF4
.

@vionemc
Copy link
Collaborator Author

vionemc commented Aug 8, 2016

Yup, it goes away :) Although I can't check whether it's really loaded or not since it's not submitted to the market.

We can close this issue I think. At least for now.

@vionemc vionemc closed this as completed Aug 8, 2016
@paulproteus
Copy link
Owner

+1​

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

No branches or pull requests

2 participants