summaryrefslogtreecommitdiffstats
path: root/archives/extend/2015-March/000523.html
blob: 98bbaa9819bfc950685289a4205afbf61e5c7427 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML>
 <HEAD>
   <TITLE> [99s-extend] cowboy websocket example runtime error
   </TITLE>
   <LINK REL="Index" HREF="index.html" >
   <LINK REL="made" HREF="mailto:extend%40lists.ninenines.eu?Subject=Re%3A%20%5B99s-extend%5D%20cowboy%20websocket%20example%20runtime%20error&In-Reply-To=%3C21D40E7B-2E5E-4EF8-AC2A-2D5229A091AF%40wanadoo.fr%3E">
   <META NAME="robots" CONTENT="index,nofollow">
   <style type="text/css">
       pre {
           white-space: pre-wrap;       /* css-2.1, curent FF, Opera, Safari */
           }
   </style>
   <META http-equiv="Content-Type" content="text/html; charset=us-ascii">
   <LINK REL="Previous"  HREF="000522.html">
   <LINK REL="Next"  HREF="000516.html">
 </HEAD>
 <BODY BGCOLOR="#ffffff">
   <H1>[99s-extend] cowboy websocket example runtime error</H1>
    <B>Samir Sow</B> 
    <A HREF="mailto:extend%40lists.ninenines.eu?Subject=Re%3A%20%5B99s-extend%5D%20cowboy%20websocket%20example%20runtime%20error&In-Reply-To=%3C21D40E7B-2E5E-4EF8-AC2A-2D5229A091AF%40wanadoo.fr%3E"
       TITLE="[99s-extend] cowboy websocket example runtime error">samset at wanadoo.fr
       </A><BR>
    <I>Thu Mar 19 19:32:11 CET 2015</I>
    <P><UL>
        <LI>Previous message: <A HREF="000522.html">[99s-extend] cowboy websocket example runtime error
</A></li>
        <LI>Next message: <A HREF="000516.html">[99s-extend] cowboy websocket example runtime error
</A></li>
         <LI> <B>Messages sorted by:</B> 
              <a href="date.html#523">[ date ]</a>
              <a href="thread.html#523">[ thread ]</a>
              <a href="subject.html#523">[ subject ]</a>
              <a href="author.html#523">[ author ]</a>
         </LI>
       </UL>
    <HR>  
<!--beginarticle-->
<PRE>OK. The error is cleared.
Now i get a 404 on the client when trying to connect. 

Thank you.

Samir

&gt;<i> On 19 mars 2015, at 19:03, Lo&#239;c Hoguin &lt;<A HREF="https://lists.ninenines.eu/listinfo/extend">essen at ninenines.eu</A>&gt; wrote:
</I>&gt;<i> 
</I>&gt;<i> No. ERL_LIBS=_rel/hello_world_example/lib
</I>&gt;<i> 
</I>&gt;<i> Or, ERL_LIBS=..:deps if you want the non-release version. Beware of what's in .. though (should be fine if you are in the examples folder).
</I>&gt;<i> 
</I>&gt;<i> On 03/19/2015 07:01 PM, Samir Sow wrote:
</I>&gt;&gt;<i> You mean where src, priv, ebin, deps &#8230; are, right ?
</I>&gt;&gt;<i> 
</I>&gt;&gt;<i> Samir
</I>&gt;&gt;<i> 
</I>&gt;&gt;&gt;<i> On 19 mars 2015, at 18:56, Lo&#239;c Hoguin &lt;<A HREF="https://lists.ninenines.eu/listinfo/extend">essen at ninenines.eu</A>&gt; wrote:
</I>&gt;&gt;&gt;<i> 
</I>&gt;&gt;&gt;<i> ERL_LIBS should point to the lib directory (where the application directories are), not to the root directory of the release.
</I>&gt;&gt;&gt;<i> 
</I>&gt;&gt;&gt;<i> On 03/19/2015 06:46 PM, Samir Sow wrote:
</I>&gt;&gt;&gt;&gt;<i> I&#8217;ve exported ERL_LIBS=&lt;root_dir&gt; before erl execution. but got same error ...
</I>&gt;&gt;&gt;&gt;<i> 
</I>&gt;&gt;&gt;&gt;<i> 
</I>&gt;&gt;&gt;&gt;&gt;<i> On 19 mars 2015, at 18:40, Lo&#239;c Hoguin &lt;<A HREF="https://lists.ninenines.eu/listinfo/extend">essen at ninenines.eu</A>&gt; wrote:
</I>&gt;&gt;&gt;&gt;&gt;<i> 
</I>&gt;&gt;&gt;&gt;&gt;<i> If you don't use the release start script it can still work but you must define ERL_LIBS to let Erlang know where applications are located (-pa **ebin only says where *beams* are located).
</I>&gt;&gt;&gt;&gt;&gt;<i> 
</I>&gt;&gt;&gt;&gt;&gt;<i> Maybe more things.
</I>&gt;&gt;&gt;&gt;&gt;<i> 
</I>&gt;&gt;&gt;&gt;&gt;<i> On 03/19/2015 06:31 PM, Samir Sow wrote:
</I>&gt;&gt;&gt;&gt;&gt;&gt;<i> Manually from the application root dir.
</I>&gt;&gt;&gt;&gt;&gt;&gt;<i> with exec erl &lt;paths&gt;
</I>&gt;&gt;&gt;&gt;&gt;&gt;<i> Then starting all required applications
</I>&gt;&gt;&gt;&gt;&gt;&gt;<i> 
</I>&gt;&gt;&gt;&gt;&gt;&gt;<i> Not very clever i admit but could not print debug info with _rel/bin/websocket
</I>&gt;&gt;&gt;&gt;&gt;&gt;<i> 
</I>&gt;&gt;&gt;&gt;&gt;&gt;<i> Samir
</I>&gt;&gt;&gt;&gt;&gt;&gt;<i> 
</I>&gt;&gt;&gt;&gt;&gt;&gt;<i> 
</I>&gt;&gt;&gt;&gt;&gt;&gt;&gt;<i> On 19 mars 2015, at 18:10, Lo&#239;c Hoguin &lt;<A HREF="https://lists.ninenines.eu/listinfo/extend">essen at ninenines.eu</A>&gt; wrote:
</I>&gt;&gt;&gt;&gt;&gt;&gt;&gt;<i> 
</I>&gt;&gt;&gt;&gt;&gt;&gt;&gt;<i> How do you run it?
</I>&gt;&gt;&gt;&gt;&gt;&gt;&gt;<i> 
</I>&gt;&gt;&gt;&gt;&gt;&gt;&gt;<i> On 03/19/2015 06:08 PM, Samir Sow wrote:
</I>&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;<i> Hi there,
</I>&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;<i> 
</I>&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;<i> I would appreciate your help to understand the following error when running the websocket example.
</I>&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;<i> 
</I>&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;<i> Context is :
</I>&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;<i> 
</I>&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;<i> ERL 17
</I>&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;<i> Cowboy 2.0.0-pre (master)
</I>&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;<i> no source modification
</I>&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;<i> 
</I>&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;<i> 
</I>&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;<i> =ERROR REPORT==== 19-Mar-2015::18:04:36 ===
</I>&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;<i> Error in process &lt;0.160.0&gt; with exit value: {[{reason,{badarg,&quot;Can't resolve the priv_dir of application websocket&quot;}},{mfa,{cowboy_static,init,2}},{stacktrace,[{cowboy_static,priv_path,2,[{file,&quot;src/cowboy_static.erl&quot;},{line,66}]},{cowboy_static,init_opts,2,[{file&#8230;
</I>&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;<i> 
</I>&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;<i> Thank you.
</I>&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;<i> 
</I>&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;<i> Samir
</I>&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;<i> _______________________________________________
</I>&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;<i> Extend mailing list
</I>&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;<i> <A HREF="https://lists.ninenines.eu/listinfo/extend">Extend at lists.ninenines.eu</A>
</I>&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;<i> <A HREF="https://lists.ninenines.eu/listinfo/extend">https://lists.ninenines.eu/listinfo/extend</A>
</I>&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;<i> 
</I>&gt;&gt;&gt;&gt;&gt;&gt;&gt;<i> 
</I>&gt;&gt;&gt;&gt;&gt;&gt;&gt;<i> --
</I>&gt;&gt;&gt;&gt;&gt;&gt;&gt;<i> Lo&#239;c Hoguin
</I>&gt;&gt;&gt;&gt;&gt;&gt;&gt;<i> <A HREF="http://ninenines.eu">http://ninenines.eu</A>
</I>&gt;&gt;&gt;&gt;&gt;&gt;<i> 
</I>&gt;&gt;&gt;&gt;&gt;<i> 
</I>&gt;&gt;&gt;&gt;&gt;<i> --
</I>&gt;&gt;&gt;&gt;&gt;<i> Lo&#239;c Hoguin
</I>&gt;&gt;&gt;&gt;&gt;<i> <A HREF="http://ninenines.eu">http://ninenines.eu</A>
</I>&gt;&gt;&gt;&gt;<i> 
</I>&gt;&gt;&gt;<i> 
</I>&gt;&gt;&gt;<i> --
</I>&gt;&gt;&gt;<i> Lo&#239;c Hoguin
</I>&gt;&gt;&gt;<i> <A HREF="http://ninenines.eu">http://ninenines.eu</A>
</I>&gt;&gt;<i> 
</I>&gt;<i> 
</I>&gt;<i> -- 
</I>&gt;<i> Lo&#239;c Hoguin
</I>&gt;<i> <A HREF="http://ninenines.eu">http://ninenines.eu</A>
</I>
</PRE>

<!--endarticle-->
    <HR>
    <P><UL>
        <!--threads-->
	<LI>Previous message: <A HREF="000522.html">[99s-extend] cowboy websocket example runtime error
</A></li>
	<LI>Next message: <A HREF="000516.html">[99s-extend] cowboy websocket example runtime error
</A></li>
         <LI> <B>Messages sorted by:</B> 
              <a href="date.html#523">[ date ]</a>
              <a href="thread.html#523">[ thread ]</a>
              <a href="subject.html#523">[ subject ]</a>
              <a href="author.html#523">[ author ]</a>
         </LI>
       </UL>

<hr>
<a href="https://lists.ninenines.eu/listinfo/extend">More information about the Extend
mailing list</a><br>
</body></html>