Error 403 on make

35 views
Skip to first unread message

Simon Smithies

unread,
Feb 22, 2012, 4:08:33 AM2/22/12
to Zotonic users
Hi again all,

One day I'll contribute something other than problems and questions
here, promise ...

I am getting this error when I try to 'make' zotonic:

error: The requested URL returned error: 403
error: pathspec 'dc750f54173fc0f96a15dabdd4b6ec6f9d93de1b' did not
match any file(s) known to git.
Unable to checkout 'dc750f54173fc0f96a15dabdd4b6ec6f9d93de1b' in
submodule path 'deps/lager'

The problem first occurred when I restarted my server following an
authbind install (using these instructions:
http://zotonic.com/documentation/871/running-on-port-80-and-port-443)
but I can repro the error on a clean install.

Perhaps the problem is my authbind changes have prevented access to
git at some level -- but I had no problems with the clone command. To
be safe, I've removed authbind and ~zotonic/.profile.

I've previously had revision-related problems which were cured by
deleting deps/lager. That doesn't help this time.

Any ideas?

- Simon

Andreas Stenius

unread,
Feb 22, 2012, 7:06:55 AM2/22/12
to zotoni...@googlegroups.com
Hi Simon,

What does "git submodule status" say?
What's in your .gitmodules file?

I just ran i little sequence for your reference to see if it will give
you any hints [on a windows machine, but that shouldn't matter, too
much]... (even had some errors to solve along the way):

Andreas Stenius@NEO /c/Work/Mobitron/proj/zotonic (master)
$ git submodule status
-816af03ec05ff257214f7e95de77d433565d8504 deps/gen_smtp
-dc750f54173fc0f96a15dabdd4b6ec6f9d93de1b deps/lager
-c0ec721428944787a9fc2b2b103e99b463da3d17 deps/webzmachine

Andreas Stenius@NEO /c/Work/Mobitron/proj/zotonic (master)
$ git submodule update --init
Submodule 'deps/gen_smtp' (git://github.com/zotonic/gen_smtp.git)
registered for path 'deps/gen_smtp'
Submodule 'deps/lager' (https://github.com/basho/lager.git) registered
for path 'deps/lager'
Submodule 'deps/webzmachine'
(git://github.com/zotonic/webzmachine.git) registered for path
'deps/webzmachine'
fatal: destination path 'deps/gen_smtp' already exists and is not an
empty directory.
Clone of 'git://github.com/zotonic/gen_smtp.git' into submodule path
'deps/gen_smtp' failed

Andreas Stenius@NEO /c/Work/Mobitron/proj/zotonic (master)
$ rm -rf deps/gen_smtp

Andreas Stenius@NEO /c/Work/Mobitron/proj/zotonic (master)
$ git submodule update --init
Submodule 'deps/gen_smtp' () registered for path 'deps/gen_smtp'
Submodule 'deps/lager' () registered for path 'deps/lager'
Submodule 'deps/webzmachine' () registered for path 'deps/webzmachine'
Cloning into 'deps/gen_smtp'...
remote: Counting objects: 1612, done.
remote: Compressing objects: 100% (488/488), done.
Receiving objects: 68% (1097/1612), 852.00 KiB | 105 KiB/s
Receiving objects: 100% (1612/1612), 888.66 KiB | 91 KiB/s, done.
Resolving deltas: 100% (1161/1161), done.
Submodule path 'deps/gen_smtp': checked out
'816af03ec05ff257214f7e95de77d433565d8504'
Cloning into 'deps/lager'...
remote: Counting objects: 958, done.
remote: Compressing objects: 100% (377/377), done.
remote: Total 958 (delta 674), reused 853 (delta 570)
Receiving objects: 100% (958/958), 450.99 KiB | 69 KiB/s, done.
Resolving deltas: 100% (674/674), done.
Submodule path 'deps/lager': checked out
'dc750f54173fc0f96a15dabdd4b6ec6f9d93de1b'
Cloning into 'deps/webzmachine'...
remote: Counting objects: 497, done.
remote: Compressing objects: 100% (236/236), done.

Receiving objects: 100% (497/497), 1.03 MiB | 55 KiB/s, done.
Resolving deltas: 100% (324/324), done.
Submodule path 'deps/webzmachine': checked out
'c0ec721428944787a9fc2b2b103e99b463da3d17'

Andreas Stenius@NEO /c/Work/Mobitron/proj/zotonic (master)
$ git submodule status
816af03ec05ff257214f7e95de77d433565d8504 deps/gen_smtp (heads/master)
dc750f54173fc0f96a15dabdd4b6ec6f9d93de1b deps/lager (0.9.4-37-gdc750f5)
c0ec721428944787a9fc2b2b103e99b463da3d17 deps/webzmachine
(remotes/origin/zotonic-0.8)

Andreas Stenius@NEO /c/Work/Mobitron/proj/zotonic (master)
$ cat .gitmodules
[submodule "deps/webzmachine"]
path = deps/webzmachine
url = git://github.com/zotonic/webzmachine.git
[submodule "deps/gen_smtp"]
path = deps/gen_smtp
url = git://github.com/zotonic/gen_smtp.git
[submodule "deps/lager"]
path = deps/lager
url = https://github.com/basho/lager.git

Note: I had some issues with the https of the lager module on my Mac,
and checked in a fix for it (using git:// instead). But that was on
the zynamo branch, apparently.
[https://github.com/zotonic/zotonic/commit/4c74c2a490ed78c8bcf4a256ac466d84378c6f8c]

You could try to clone the lager repo manually into a tmp dir or
something to see if it works for you.


//Andreas

2012/2/22 Simon Smithies <simon.s...@gmail.com>:

Simon Smithies

unread,
Feb 22, 2012, 1:05:21 PM2/22/12
to zotoni...@googlegroups.com
Hi Andreas,

$ git submodule status
 816af03ec05ff257214f7e95de77d433565d8504 deps/gen_smtp (heads/master)
 dc750f54173fc0f96a15dabdd4b6ec6f9d93de1b deps/lager
-c0ec721428944787a9fc2b2b103e99b463da3d17 deps/webzmachine

$ cat .gitmodules
[submodule "deps/webzmachine"]
path = deps/webzmachine
[submodule "deps/gen_smtp"]
path = deps/gen_smtp
[submodule "deps/lager"]
path = deps/lager

Starting out on a similar sequence to you, but diverging straight away:

zotonic@vps200:~/zotonic-0.8/zotonic$ git submodule update --init
fatal: Needed a single revision
Unable to find current revision in submodule path 'deps/lager'

zotonic@vps200:~/zotonic-0.8/zotonic$ rm -rf deps/lager

zotonic@vps200:~/zotonic-0.8/zotonic$ git submodule update --init
Initialized empty Git repository in /home/zotonic/zotonic-0.8/zotonic/deps/lager/.git/
error: The requested URL returned error: 403
error: The requested URL returned error: 403
error: The requested URL returned error: 403
error: The requested URL returned error: 403
error: pathspec 'dc750f54173fc0f96a15dabdd4b6ec6f9d93de1b' did not match any file(s) known to git.
Unable to checkout 'dc750f54173fc0f96a15dabdd4b6ec6f9d93de1b' in submodule path 'deps/lager'

It looks like the https in my deps/lager path may be a problem for me too, so following your advice:

Initialized empty Git repository in /home/zotonic/zotonic-0.8/tmp/lager/.git/
error: The requested URL returned error: 403
warning: remote HEAD refers to nonexistent ref, unable to checkout.

tmp$ cd ..
zotonic@vps200:~/zotonic-0.8$ rm -rf tmp/
zotonic@vps200:~/zotonic-0.8$ mkdir tmp
zotonic@vps200:~/zotonic-0.8$ cd tmp
zotonic@vps200:~/zotonic-0.8/tmp$ git clone git://github.com/basho/lager.git
Initialized empty Git repository in /home/zotonic/zotonic-0.8/tmp/lager/.git/
remote: Counting objects: 1003, done.
remote: Compressing objects: 100% (405/405), done.
remote: Total 1003 (delta 690), reused 897 (delta 586)
Receiving objects: 100% (1003/1003), 464.72 KiB | 311 KiB/s, done.
Resolving deltas: 100% (690/690), done.

Which I guess confirms it. Do we need the same fix in zotonic as you've applied to zynamo?

- Simon

Simon Smithies

unread,
Feb 22, 2012, 1:36:25 PM2/22/12
to zotoni...@googlegroups.com
Got it running again. Deleted and manually cloned deps/lager from git://github.com/basho/lager.git, did a make clean, and rebuilt. 

Seems there is a problem with https://github.com/basho/lager.git.

Thanks Andreas for getting me on track with this. Will log a case to copy your zynamo fix to zotonic.

- Simon

Arjan Scherpenisse

unread,
Feb 22, 2012, 3:12:24 PM2/22/12
to zotoni...@googlegroups.com, Simon Smithies
On 02/22/2012 07:36 PM, Simon Smithies wrote:
> Got it running again. Deleted and manually cloned deps/lager from
> git://github.com/basho/lager.git <http://github.com/basho/lager.git>,

> did a make clean, and rebuilt.
>
> Seems there is a problem with https://github.com/basho/lager.git.
>
> Thanks Andreas for getting me on track with this. Will log a case to
> copy your zynamo fix to zotonic.

Noted, and fixed :)

Arjan

>
> - Simon
>
> On Thu, Feb 23, 2012 at 7:05 AM, Simon Smithies
> <simon.s...@gmail.com <mailto:simon.s...@gmail.com>> wrote:
>
> Hi Andreas,
>
> $ git submodule status
> 816af03ec05ff257214f7e95de77d433565d8504 deps/gen_smtp (heads/master)
> dc750f54173fc0f96a15dabdd4b6ec6f9d93de1b deps/lager
> -c0ec721428944787a9fc2b2b103e99b463da3d17 deps/webzmachine
>
> $ cat .gitmodules
> [submodule "deps/webzmachine"]
> path = deps/webzmachine
> url = git://github.com/zotonic/webzmachine.git

> <http://github.com/zotonic/webzmachine.git>


> [submodule "deps/gen_smtp"]
> path = deps/gen_smtp
> url = git://github.com/zotonic/gen_smtp.git

> <http://github.com/zotonic/gen_smtp.git>

> git://github.com/basho/lager.git <http://github.com/basho/lager.git>

> <http://github.com/zotonic/gen_smtp.git>)


> registered for path 'deps/gen_smtp'
> Submodule 'deps/lager' (https://github.com/basho/lager.git)
> registered
> for path 'deps/lager'
> Submodule 'deps/webzmachine'
> (git://github.com/zotonic/webzmachine.git

> <http://github.com/zotonic/webzmachine.git>) registered for path


> 'deps/webzmachine'
> fatal: destination path 'deps/gen_smtp' already exists and is not an
> empty directory.
> Clone of 'git://github.com/zotonic/gen_smtp.git

> <http://github.com/zotonic/gen_smtp.git>' into submodule path

> <http://github.com/zotonic/webzmachine.git>


> [submodule "deps/gen_smtp"]
> path = deps/gen_smtp
> url = git://github.com/zotonic/gen_smtp.git

> <http://github.com/zotonic/gen_smtp.git>


> [submodule "deps/lager"]
> path = deps/lager
> url = https://github.com/basho/lager.git
>
> Note: I had some issues with the https of the lager module on my
> Mac,
> and checked in a fix for it (using git:// instead). But that was on
> the zynamo branch, apparently.
> [https://github.com/zotonic/zotonic/commit/4c74c2a490ed78c8bcf4a256ac466d84378c6f8c]
>
> You could try to clone the lager repo manually into a tmp dir or
> something to see if it works for you.
>
>
> //Andreas
>
> 2012/2/22 Simon Smithies <simon.s...@gmail.com

> <mailto:simon.s...@gmail.com>>:

Reply all
Reply to author
Forward
0 new messages