URL Mapping for /var/www/app/messaging/

62 views
Skip to first unread message

dhanesh m

unread,
Jan 9, 2013, 7:20:23 AM1/9/13
to scalr-...@googlegroups.com
Hi Nick,

While accessing http://scalr.local/messaging in browser its showing the contents inside the folder messaging.php

As u told i tried to map /var/www/app/messaging with the .htaccess file

VirtualHost scalr.local:80>
        ServerAdmin webmaster@localhost
        ServerName scalr.local
        DocumentRoot /var/www/app/www
        <Directory /var/www/app/www>
                Options Indexes +FollowSymLinks MultiViews
                AllowOverride All
        </Directory>
        <Directory /var/www/app/www/messaging>
                Options Indexes +FollowSymLinks MultiViews
                AllowOverride  All
        </Directory>

</VirtualHo

root@scalr:/var/www/test# cat /var/www/app/www/messaging/.htaccess
Options +FollowSymLinks

RewriteEngine On
RewriteCond %{REQUEST_FILENAME}  !messaging.php
RewriteRule ^(.+)/?$ /messaging/messaging.php?
queue=$1 [NE,L]


Still its showing the content.

Iam not sure how to redirect.

Please guide me on this.


Iam importing server for ( Scalr latest version + cloudstack 3.2 )

Struck in

Bundle task Information:

Cannot send rebundle message to server. Please check event log for more details.
 

Regards,
Dhanesh.



Mykhaylo Dobrovolskyy

unread,
Jan 9, 2013, 5:54:31 PM1/9/13
to scalr-...@googlegroups.com
Hi,

You just need to add into .htaccess in messaging dir line(first)

Options -Indexes

about 


Cannot send rebundle message to server. Please check event log for more details.

I'm not able to import non Scalr instance after upgrade to 4.0

It always come back to me with this error - looking into the code, probably some new issue/bug

Середа, 9 січня 2013 р. 13:20:23 UTC+1 користувач dhanesh m написав:

dhanesh1212121212

unread,
Jan 10, 2013, 2:57:19 AM1/10/13
to scalr-...@googlegroups.com
Hi,

I have added the below line to .htaccess file as mentioned and executed the below command in scalarizr.

strace scalarizr --import -y -o server-id=d840507c-007b-42a4-8aae-6a9ce1491871 -o role-name=roler -o crypto-key=dOn/WnVmrKFES4TiCPdPWyV1t6BvZPosxLhkbfJA1GsyJFWDjX6CTg== -o platform=cloudstack -o queryenv-url=http://scalr.local/query-env -o messaging-p2p.producer-url=http://scalr.local/messaging -o env-id=1 -o region=

scalr - http://scalr.local/#/bundletasks/4/logs shows the log as:

Bundle task LOG :

"Communication successfully established. Role creation process has been initialized" in green colour.

Jan 9, 2013 19:32:05 Bundle task status: pending
Jan 9, 2013 19:32:05 Bundle task created. ServerID: d840507c-007b-42a4-8aae-6a9ce1491871, FarmID: -, Platform: cloudstack.
 


After two minutes its showing snapshot creation failed message.

Jan 9, 2013 19:34:05 Snapshot creation failed. Reason: Cannot send rebundle message to server. Please check event log for more details.. Bundle task status changed to: failed


Important: I have also noticed that scalr bundle task Log is showing yesterdays date.

Machine in which i have installed scalr Date is :-

 root@otc:~# date
Thu Jan 10 12:55:50 IST 2013



Scalarizr
:-

 
I have executed the scalarizr import command with strace command and found its showing time out message.

Plz guide me on this.


open("/etc/scalr/private.d/.state", O_RDONLY) = 9
fstat(9, {st_mode=S_IFREG|0777, st_size=9, ...}) = 0
fstat(9, {st_mode=S_IFREG|0777, st_size=9, ...}) = 0
lseek(9, 0, SEEK_CUR)                   = 0
fstat(9, {st_mode=S_IFREG|0777, st_size=9, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f78936b6000
lseek(9, 0, SEEK_CUR)                   = 0
read(9, "importing", 4096)              = 9
read(9, "", 4096)                       = 0
close(9)                                = 0
munmap(0x7f78936b6000, 4096)            = 0
select(0, [], [], [], {30, 0}2013-01-10 11:00:30,914 - DEBUG - scalarizr.messaging.p2p.producer - Sending message 'Log' into queue 'log'
2013-01-10 11:00:30,939 - DEBUG - scalarizr.messaging.p2p.security - Encrypting message
)          = 0 (Timeout)
select(0, [], [], [], {30, 0})          = 0 (Timeout)
select(0, [], [], [], {30, 0})          = 0 (Timeout)
select(0, [], [], [], {30, 0})          = 0 (Timeout)
select(0, [], [], [], {30, 0})          = 0 (Timeout)
select(0, [], [], [], {30, 0})          = 0 (Timeout)
select(0, [], [], [], {30, 0})          = 0 (Timeout)
select(0, [], [], [], {30, 0})          = 0 (Timeout)
select(0, [], [], [], {30, 0})          = 0 (Timeout)



select(0, [], [], [], {30, 0}2013-01-10 12:00:02,220 - DEBUG - scalarizr.util.PeriodicalExecutor - Executing task Rotate messages sqlite table
2013-01-10 12:00:02,223 - DEBUG - scalarizr.messaging.p2p - Deleting messages older then messageid: 7f488755-37b9-4cc6-928b-b7e9df342ad5
)          = 0 (Timeout)
select(0, [], [], [], {30, 0})          = 0 (Timeout)
select(0, [], [], [], {30, 0})          = 0 (Timeout)
select(0, [], [], [], {30, 0})          = 0 (Timeout)
select(0, [], [], [], {30, 0})          = 0 (Timeout)


OUTPUT OF TCPDUMP IN SCALARIZR:

UBUNTU3.cs2cloud.internal - UBUNTU3 is my sclarizr machine.
r-4-VM.cs2cloud.internal      - I can't find this VM in cloudstack.

12:51:41.220937 IP scalr.local.www > UBUNTU3.cs2cloud.internal.45903: Flags [.], ack 2296, win 99, options [nop,nop,TS val 1112058 ecr 4294965493], length 0
12:51:46.103518 ARP, Request who-has UBUNTU3.cs2cloud.internal tell r-4-VM.cs2cloud.internal, length 46
12:51:46.103538 ARP, Reply UBUNTU3.cs2cloud.internal is-at 02:00:48:a7:00:08 (oui Unknown), length 28
12:51:54.388456 IP UBUNTU3.cs2cloud.internal.ntp > europium.canonical.com.ntp: NTPv4, Client, length 48
12:51:59.383606 ARP, Request who-has r-4-VM.cs2cloud.internal tell UBUNTU3.cs2cloud.internal, length 28
12:51:59.384713 ARP, Reply r-4-VM.cs2cloud.internal is-at 02:00:3c:5c:00:02 (oui Unknown), length 46



--
 
 

dhanesh1212121212

unread,
Jan 10, 2013, 7:05:26 AM1/10/13
to scalr-...@googlegroups.com
Hi,

i have checked and found r-4-VM.cs2cloud.internal   is my Virtual Router VM in cloudstack.


Regards,
Dhanesh

arun kumar Gowda

unread,
Aug 25, 2013, 8:36:57 AM8/25/13
to scalr-...@googlegroups.com
Hi Danesh,

Have you found any resolution for this issue, i am also facing similar issues.
intialization is stuck after these state.
2013-08-25 08:23:18,373 - DEBUG - scalarizr.util.log - Handled on_out_message_send message: HostInit
2013-08-25 08:23:18,373 - DEBUG - scalarizr.messaging.p2p.consumer - Waiting message acknowledge event: HostInit
2013-08-25 08:23:18,573 - DEBUG - scalarizr.snmp.agent - Starting transport dispatcher
2013-08-25 08:23:18,573 - DEBUG - scalarizr.snmp.agent - Run transport dispatcher

Thanks,
Arun

dhanesh1212121212

unread,
Aug 26, 2013, 12:25:07 AM8/26/13
to scalr-...@googlegroups.com
Please share ur configuration details.


--
You received this message because you are subscribed to a topic in the Google Groups "scalr-discuss" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/scalr-discuss/AdxY7yXbM3s/unsubscribe.
To unsubscribe from this group and all its topics, send an email to scalr-discus...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

arun kumar Gowda

unread,
Aug 26, 2013, 8:26:04 AM8/26/13
to scalr-...@googlegroups.com
Hi,

Can i call you? i need to understand these erros?

Thanks and Regards,
Arun Gowdar
Reply all
Reply to author
Forward
0 new messages