Re: [MarkLogic Dev General] ERR_EMPTY_RESPONSE from security-install.xqy

2015-01-27 Thread Ardal Powell
Hi Mike,

Thanks for the tip. The installation works on a droplet with 2B memory, if a 
little slowly. Also, the browser is asking for a login for "public", which 
accepts the same credentials as my Ubuntu user account on the server.

Ardal

On Jan 26, 2015, at 5:45 PM, Ardal Powell wrote:

> Thank you, Mike. I'll try resizing the droplet and report back.
> 
> Ardal
> 
> On Jan 26, 2015, at 5:36 PM, Michael Blakeley wrote:
> 
>> That segfault could be part of the problem. It may be that every time the 
>> server tries to bootstrap, it runs out of memory.
>> 
>> According to 
>> https://developer.marklogic.com/products/marklogic-server/requirements-7.0 
>> the minimum is still 512-MB RAM, but at least 2-GB is recommended.
>> 
>> -- Mike
>> 
>>> On 26 Jan 2015, at 14:02 , Ardal Powell  wrote:
>>> 
>>> Segmentation fault in thread 139680590857984 addr 0xc
>>> fork: Cannot allocate memory
>>> 
>> 
>> ___
>> General mailing list
>> General@developer.marklogic.com
>> http://developer.marklogic.com/mailman/listinfo/general
> 
> ___
> General mailing list
> General@developer.marklogic.com
> http://developer.marklogic.com/mailman/listinfo/general

___
General mailing list
General@developer.marklogic.com
http://developer.marklogic.com/mailman/listinfo/general


Re: [MarkLogic Dev General] ERR_EMPTY_RESPONSE from security-install.xqy

2015-01-26 Thread Ardal Powell
Thanks, Danny. The owner/goup now looks right but the error persists:

ardal@plink:~$ ls -l -r /var/opt/MarkLogic
total 116
drwxr-xr-x  2 daemon daemon  4096 Jan 26 06:28 Temp
-rw---  1 daemon daemon  2045 Jan 26 06:28 server.xml
drwxr-xr-x  2 daemon daemon  4096 Jan 26 06:28 Logs
drwxr-xr-x  2 daemon daemon  4096 Jan 26 06:28 Lib
-rw-r--r--  1 daemon daemon  1652 Jan 26 06:28 hosts.xml
-rw-r--r--  1 daemon daemon 15813 Jan 26 06:28 groups.xml
drwxr-xr-x 12 daemon daemon  4096 Jan 26 06:28 Forests
-rw-r--r--  1 daemon daemon 64156 Jan 26 06:28 databases.xml
-rw---  1 daemon daemon  3414 Jan 26 06:28 clusters.xml
-rw-r--r--  1 daemon daemon  5726 Jan 26 06:28 assignments.xml

Ardal

On Jan 26, 2015, at 5:22 PM, Danny Sokolsky wrote:

> Well, it seems like the issue is that your data directory is not owned by 
> daemon.  It should have daemon as the owner and the group.
>  
> I am not sure why, something about your setup.
>  
> All I can think of is to shut down the server and recursively change the 
> owner and group of /var/opt/MarkLogic to daemon.
>  
> What is going on is that the installation creates a bunch of directories and 
> files, and they should be owned and grouped as daemon.  Since they are not, 
> your process, which is run as daemon, is not able to write to them.
>  
> -Danny
>  
>  
> From: general-boun...@developer.marklogic.com 
> [mailto:general-boun...@developer.marklogic.com] On Behalf OfArdal Powell
> Sent: Monday, January 26, 2015 2:03 PM
> To: MarkLogic Developer Discussion
> Subject: Re: [MarkLogic Dev General] ERR_EMPTY_RESPONSE from 
> security-install.xqy
>  
> Thanks again, Danny.
>  
> My responses in your text below.
>  
> Ardal
>  
> On Jan 26, 2015, at 12:14 PM, Danny Sokolsky wrote:
> 
> 
> As David indicated, MarkLogic does not have a debian package, but many people 
> have installed it the way you are.
>  
> A few other things to look at:
>  
> Is there anything in the log file (/var/opt/MarkLogic/Logs/ErrorLog.txt)?
>  
> Yes. A lot of lines like these:
> ...
> 2015-01-26 06:28:11.422 Info: Mounted forest Modules locally on 
> /var/opt/MarkLogic/Forests/Modules read write (vda1 ext4 rw,errors=remount-ro)
> 2015-01-26 06:28:36.282 Info: Unmounted forest Extensions
> ...
> 2015-01-26 06:30:00.806 Error: UsageMeterTask::run: SEC-ROLEDNE: 
> Role does not exist: sec:role-name = manage-user
> Segmentation fault in thread 139680590857984 addr 0xc
> fork: Cannot allocate memory
> ...
> 2015-01-26 06:32:00.231 Error: UsageMeterTask::run: SEC-ROLEDNE: 
> Role does not exist: sec:role-name = manage-user
> 2015-01-26 06:33:00.254 Info: PerfMeterTask::cleanOldData: 
> deleting : 0
> 2015-01-26 06:34:00.329 Error: PerfMeterTask::run: SEC-ROLEDNE: 
> Role does not exist: sec:role-name = manage-user
> ...
> 2015-01-26 08:59:00.510 Error: PerfMeterTask::run: SEC-ROLEDNE: 
> Role does not exist: sec:role-name = manage-user
> 2015-01-26 09:00:00.494 Error: UsageMeterTask::run: SEC-ROLEDNE: 
> Role does not exist: sec:role-name = manage-user
> ...
>  
>  
> What is the user in the /etc/sysconfig/MarkLogic script, and does that user 
> exist on your system (it is daemon by default)?
>  
> # the user MarkLogic runs as
> export MARKLOGIC_USER=daemon
>  
> Are the files in the data directory (/var/opt/MarkLogic) owned by the above 
> user?
>  
> No, owner and group are both given as "1"
> 
>  
> What user are the processes running as.  For example, the output of:
>  
> ps –ef | grep MarkLogic
>  
> ardal@plink:~$ ps -ef | grep MarkLogic
> root  1444 1  0 16:49 ?00:00:00 /opt/MarkLogic/bin/MarkLogic
> daemon1445  1444  0 16:49 ?00:00:02 /opt/MarkLogic/bin/MarkLogic
> ardal 1869  1544  0 16:56 pts/000:00:00 grep --color=auto MarkLogic
>  
> -Danny
>  
> From: general-boun...@developer.marklogic.com 
> [mailto:general-boun...@developer.marklogic.com]On Behalf Of Ardal Powell
> Sent: Monday, January 26, 2015 2:53 AM
> To: MarkLogic Developer Discussion
> Subject: Re: [MarkLogic Dev General] ERR_EMPTY_RESPONSE from 
> security-install.xqy
>  
> Hi David, nice to see you here!
>  
> I used alien as well: everything went smoothly with:
>  
> sudo alien --to-deb --verbose {MarkLogic ... .rpm}
> sudo dpkg -i {the resulting .deb file}
> sudo /etc/init.d/MarkLogic start
>  
> The script at /etc/sysconfig/MarkLogic  seems to point to the correct 
> installation and data directories, viz.:
>  
> # where MarkLogic is installed
> expo

Re: [MarkLogic Dev General] ERR_EMPTY_RESPONSE from security-install.xqy

2015-01-26 Thread Ardal Powell
Thank you, Mike. I'll try resizing the droplet and report back.

Ardal

On Jan 26, 2015, at 5:36 PM, Michael Blakeley wrote:

> That segfault could be part of the problem. It may be that every time the 
> server tries to bootstrap, it runs out of memory.
> 
> According to 
> https://developer.marklogic.com/products/marklogic-server/requirements-7.0 
> the minimum is still 512-MB RAM, but at least 2-GB is recommended.
> 
> -- Mike
> 
>> On 26 Jan 2015, at 14:02 , Ardal Powell  wrote:
>> 
>>  Segmentation fault in thread 139680590857984 addr 0xc
>>  fork: Cannot allocate memory
>> 
> 
> ___
> General mailing list
> General@developer.marklogic.com
> http://developer.marklogic.com/mailman/listinfo/general

___
General mailing list
General@developer.marklogic.com
http://developer.marklogic.com/mailman/listinfo/general


Re: [MarkLogic Dev General] ERR_EMPTY_RESPONSE from security-install.xqy

2015-01-26 Thread Michael Blakeley
That segfault could be part of the problem. It may be that every time the 
server tries to bootstrap, it runs out of memory.

According to 
https://developer.marklogic.com/products/marklogic-server/requirements-7.0 the 
minimum is still 512-MB RAM, but at least 2-GB is recommended.

-- Mike

> On 26 Jan 2015, at 14:02 , Ardal Powell  wrote:
> 
>   Segmentation fault in thread 139680590857984 addr 0xc
>   fork: Cannot allocate memory
> 

___
General mailing list
General@developer.marklogic.com
http://developer.marklogic.com/mailman/listinfo/general


Re: [MarkLogic Dev General] ERR_EMPTY_RESPONSE from security-install.xqy

2015-01-26 Thread Danny Sokolsky
Well, it seems like the issue is that your data directory is not owned by 
daemon.  It should have daemon as the owner and the group.

I am not sure why, something about your setup.

All I can think of is to shut down the server and recursively change the owner 
and group of /var/opt/MarkLogic to daemon.

What is going on is that the installation creates a bunch of directories and 
files, and they should be owned and grouped as daemon.  Since they are not, 
your process, which is run as daemon, is not able to write to them.

-Danny


From: general-boun...@developer.marklogic.com 
[mailto:general-boun...@developer.marklogic.com] On Behalf Of Ardal Powell
Sent: Monday, January 26, 2015 2:03 PM
To: MarkLogic Developer Discussion
Subject: Re: [MarkLogic Dev General] ERR_EMPTY_RESPONSE from 
security-install.xqy

Thanks again, Danny.

My responses in your text below.

Ardal

On Jan 26, 2015, at 12:14 PM, Danny Sokolsky wrote:


As David indicated, MarkLogic does not have a debian package, but many people 
have installed it the way you are.

A few other things to look at:

Is there anything in the log file (/var/opt/MarkLogic/Logs/ErrorLog.txt)?

Yes. A lot of lines like these:
...
2015-01-26 06:28:11.422 Info: Mounted forest Modules locally on 
/var/opt/MarkLogic/Forests/Modules read write (vda1 ext4 rw,errors=remount-ro)
2015-01-26 06:28:36.282 Info: Unmounted forest Extensions
...
2015-01-26 06:30:00.806 Error: UsageMeterTask::run: SEC-ROLEDNE: 
Role does not exist: sec:role-name = manage-user
Segmentation fault in thread 139680590857984 addr 0xc
fork: Cannot allocate memory
...
2015-01-26 06:32:00.231 Error: UsageMeterTask::run: SEC-ROLEDNE: 
Role does not exist: sec:role-name = manage-user
2015-01-26 06:33:00.254 Info: PerfMeterTask::cleanOldData: deleting 
: 0
2015-01-26 06:34:00.329 Error: PerfMeterTask::run: SEC-ROLEDNE: 
Role does not exist: sec:role-name = manage-user
...
2015-01-26 08:59:00.510 Error: PerfMeterTask::run: SEC-ROLEDNE: 
Role does not exist: sec:role-name = manage-user
2015-01-26 09:00:00.494 Error: UsageMeterTask::run: SEC-ROLEDNE: 
Role does not exist: sec:role-name = manage-user
...


What is the user in the /etc/sysconfig/MarkLogic script, and does that user 
exist on your system (it is daemon by default)?

# the user MarkLogic runs as
export MARKLOGIC_USER=daemon

Are the files in the data directory (/var/opt/MarkLogic) owned by the above 
user?

No, owner and group are both given as "1"


What user are the processes running as.  For example, the output of:

ps -ef | grep MarkLogic

ardal@plink:~$ ps -ef | grep MarkLogic
root  1444 1  0 16:49 ?00:00:00 /opt/MarkLogic/bin/MarkLogic
daemon1445  1444  0 16:49 ?00:00:02 /opt/MarkLogic/bin/MarkLogic
ardal 1869  1544  0 16:56 pts/000:00:00 grep --color=auto MarkLogic

-Danny

From: 
general-boun...@developer.marklogic.com<mailto:general-boun...@developer.marklogic.com>
 [mailto:general-boun...@developer.marklogic.com]On Behalf Of Ardal Powell
Sent: Monday, January 26, 2015 2:53 AM
To: MarkLogic Developer Discussion
Subject: Re: [MarkLogic Dev General] ERR_EMPTY_RESPONSE from 
security-install.xqy

Hi David, nice to see you here!

I used alien as well: everything went smoothly with:

sudo alien --to-deb --verbose {MarkLogic ... .rpm}
sudo dpkg -i {the resulting .deb file}
sudo /etc/init.d/MarkLogic start

The script at /etc/sysconfig/MarkLogic  seems to point to the correct 
installation and data directories, viz.:

# where MarkLogic is installed
export MARKLOGIC_INSTALL_DIR=/opt/MarkLogic

# where MarkLogic keeps its data
export MARKLOGIC_DATA_DIR=/var/opt/MarkLogic

So a bit of a puzzle.

Ardal

On Jan 26, 2015, at 5:06 AM, David Ennis wrote:



HI Ardal.

I note that you are installing this in a VM using Ubuntu.

I don't think that MarkLogic has a debian package available.  I uaually use 
alien to convert them when testing on debian based systems.

Could you explain how you went about installing MarkLogic on a debian based 
system?  Perhaps there is something about that. (for instance, there is a 
sysconfig file that gets created that might be overlooked if installed 'by 
hand'- not sure if that could be the issue, for instance)




Kind Regards,
David Ennis


David Ennis
Content Engineer

[HintTech] <http://www.hinttech.com/>
Mastering the value of content
creative | technology | content

Delftechpark 37i
2628 XJ Delft
The Netherlands
T: +31 88 268 25 00
M: +31 63 091 72 80

[http://www.hinttech.com]<http://www.hinttech.com/> 
[http://www.hinttech.com/signature/Twitter_HintTech.png] 
<https://twitter.com/HintTech>  
[http://www.hinttech.com/signature/Facebook_HintTech.png] 
<http://www.facebook.com/HintTech>  
[http://w

Re: [MarkLogic Dev General] ERR_EMPTY_RESPONSE from security-install.xqy

2015-01-26 Thread Ardal Powell
Thanks again, Danny.

My responses in your text below.

Ardal

On Jan 26, 2015, at 12:14 PM, Danny Sokolsky wrote:

> As David indicated, MarkLogic does not have a debian package, but many people 
> have installed it the way you are.
>  
> A few other things to look at:
>  
> Is there anything in the log file (/var/opt/MarkLogic/Logs/ErrorLog.txt)?

Yes. A lot of lines like these:
...
2015-01-26 06:28:11.422 Info: Mounted forest Modules locally on 
/var/opt/MarkLogic/Forests/Modules read write (vda1 ext4 rw,errors=remount-ro)
2015-01-26 06:28:36.282 Info: Unmounted forest Extensions
...
2015-01-26 06:30:00.806 Error: UsageMeterTask::run: SEC-ROLEDNE: Role 
does not exist: sec:role-name = manage-user
Segmentation fault in thread 139680590857984 addr 0xc
fork: Cannot allocate memory
...
2015-01-26 06:32:00.231 Error: UsageMeterTask::run: SEC-ROLEDNE: Role 
does not exist: sec:role-name = manage-user
2015-01-26 06:33:00.254 Info: PerfMeterTask::cleanOldData: deleting : 0
2015-01-26 06:34:00.329 Error: PerfMeterTask::run: SEC-ROLEDNE: Role 
does not exist: sec:role-name = manage-user
...
2015-01-26 08:59:00.510 Error: PerfMeterTask::run: SEC-ROLEDNE: Role 
does not exist: sec:role-name = manage-user
2015-01-26 09:00:00.494 Error: UsageMeterTask::run: SEC-ROLEDNE: Role 
does not exist: sec:role-name = manage-user
...

>  
> What is the user in the /etc/sysconfig/MarkLogic script, and does that user 
> exist on your system (it is daemon by default)?

# the user MarkLogic runs as
export MARKLOGIC_USER=daemon
>  
> Are the files in the data directory (/var/opt/MarkLogic) owned by the above 
> user?

No, owner and group are both given as "1"
>  
> What user are the processes running as.  For example, the output of:
>  
> ps –ef | grep MarkLogic

ardal@plink:~$ ps -ef | grep MarkLogic
root  1444 1  0 16:49 ?00:00:00 /opt/MarkLogic/bin/MarkLogic
daemon1445  1444  0 16:49 ?00:00:02 /opt/MarkLogic/bin/MarkLogic
ardal 1869  1544  0 16:56 pts/000:00:00 grep --color=auto MarkLogic
>  
> -Danny
>  
> From: general-boun...@developer.marklogic.com 
> [mailto:general-boun...@developer.marklogic.com]On Behalf Of Ardal Powell
> Sent: Monday, January 26, 2015 2:53 AM
> To: MarkLogic Developer Discussion
> Subject: Re: [MarkLogic Dev General] ERR_EMPTY_RESPONSE from 
> security-install.xqy
>  
> Hi David, nice to see you here!
>  
> I used alien as well: everything went smoothly with:
>  
> sudo alien --to-deb --verbose {MarkLogic ... .rpm}
> sudo dpkg -i {the resulting .deb file}
> sudo /etc/init.d/MarkLogic start
>  
> The script at /etc/sysconfig/MarkLogic  seems to point to the correct 
> installation and data directories, viz.:
>  
> # where MarkLogic is installed
> export MARKLOGIC_INSTALL_DIR=/opt/MarkLogic
>  
> # where MarkLogic keeps its data
> export MARKLOGIC_DATA_DIR=/var/opt/MarkLogic
>  
> So a bit of a puzzle. 
>  
> Ardal
>  
> On Jan 26, 2015, at 5:06 AM, David Ennis wrote:
> 
> 
> HI Ardal.
>  
> I note that you are installing this in a VM using Ubuntu.
>  
> I don't think that MarkLogic has a debian package available.  I uaually use 
> alien to convert them when testing on debian based systems.
>  
> Could you explain how you went about installing MarkLogic on a debian based 
> system?  Perhaps there is something about that. (for instance, there is a 
> sysconfig file that gets created that might be overlooked if installed 'by 
> hand'- not sure if that could be the issue, for instance)
>  
> 
>  
>  
> Kind Regards,
> David Ennis
>  
>  
> David Ennis
> Content Engineer
> 
>  
> Mastering the value of content
> creative | technology | content
> 
> Delftechpark 37i
> 2628 XJ Delft
> The Netherlands
> T: +31 88 268 25 00
> M: +31 63 091 72 80 
> 
>
>  
> On 26 January 2015 at 10:50, Ardal Powell  wrote:
> Thanks, Danny. I'm quite sure MarkLogic has not been installed before: it's a 
> brand new droplet. 
>  
> I went ahead and reinstalled the data directory, but the same thing happened 
> on trying to create a new admin user. The server took about a minute to 
> return the error.
>  
> I noticed that some of the .xqy in the data directory has permissions as low 
> as 600, so I set the whole directory to 777 to see what would happen. The 
> only difference was the server returned the error more quickly.
&

Re: [MarkLogic Dev General] ERR_EMPTY_RESPONSE from security-install.xqy

2015-01-26 Thread Danny Sokolsky
As David indicated, MarkLogic does not have a debian package, but many people 
have installed it the way you are.

A few other things to look at:

Is there anything in the log file (/var/opt/MarkLogic/Logs/ErrorLog.txt)?

What is the user in the /etc/sysconfig/MarkLogic script, and does that user 
exist on your system (it is daemon by default)?

Are the files in the data directory (/var/opt/MarkLogic) owned by the above 
user?

What user are the processes running as.  For example, the output of:

ps -ef | grep MarkLogic

-Danny

From: general-boun...@developer.marklogic.com 
[mailto:general-boun...@developer.marklogic.com] On Behalf Of Ardal Powell
Sent: Monday, January 26, 2015 2:53 AM
To: MarkLogic Developer Discussion
Subject: Re: [MarkLogic Dev General] ERR_EMPTY_RESPONSE from 
security-install.xqy

Hi David, nice to see you here!

I used alien as well: everything went smoothly with:

sudo alien --to-deb --verbose {MarkLogic ... .rpm}
sudo dpkg -i {the resulting .deb file}
sudo /etc/init.d/MarkLogic start

The script at /etc/sysconfig/MarkLogic  seems to point to the correct 
installation and data directories, viz.:

# where MarkLogic is installed
export MARKLOGIC_INSTALL_DIR=/opt/MarkLogic

# where MarkLogic keeps its data
export MARKLOGIC_DATA_DIR=/var/opt/MarkLogic

So a bit of a puzzle.

Ardal

On Jan 26, 2015, at 5:06 AM, David Ennis wrote:


HI Ardal.

I note that you are installing this in a VM using Ubuntu.

I don't think that MarkLogic has a debian package available.  I uaually use 
alien to convert them when testing on debian based systems.

Could you explain how you went about installing MarkLogic on a debian based 
system?  Perhaps there is something about that. (for instance, there is a 
sysconfig file that gets created that might be overlooked if installed 'by 
hand'- not sure if that could be the issue, for instance)




Kind Regards,
David Ennis


David Ennis
Content Engineer

[HintTech] <http://www.hinttech.com/>
Mastering the value of content
creative | technology | content

Delftechpark 37i
2628 XJ Delft
The Netherlands
T: +31 88 268 25 00
M: +31 63 091 72 80

[http://www.hinttech.com]<http://www.hinttech.com/> 
[http://www.hinttech.com/signature/Twitter_HintTech.png] 
<https://twitter.com/HintTech>  
[http://www.hinttech.com/signature/Facebook_HintTech.png] 
<http://www.facebook.com/HintTech>  
[http://www.hinttech.com/signature/Linkedin_HintTech.png] 
<http://www.linkedin.com/company/HintTech>

On 26 January 2015 at 10:50, Ardal Powell mailto:ard...@me.com>> 
wrote:
Thanks, Danny. I'm quite sure MarkLogic has not been installed before: it's a 
brand new droplet.

I went ahead and reinstalled the data directory, but the same thing happened on 
trying to create a new admin user. The server took about a minute to return the 
error.

I noticed that some of the .xqy in the data directory has permissions as low as 
600, so I set the whole directory to 777 to see what would happen. The only 
difference was the server returned the error more quickly.

Also, the system was writing stuff to disk before the CHMOD because 
/var/opt/MarkLogic/Forests/Last-Login/Security/Journals contains the following:

A 0 byte file, Journal1-1970010100-0-18446744073709551615-0

A file named Label with contents:

http://marklogic.com/xdmp/forest/label";>83886849001084169457306095252104859001248801982819188447614222648032855250109457306095252104859false16048579413085239693598813436175772116612488019828191884476142226480328552501094573060952521048591844674407370955161501248801982819188447618446744073709551615059881343617577211668020linuxx86_64

Thanks again,
Ardal


On Jan 25, 2015, at 10:25 PM, Danny Sokolsky wrote:


Hi Ardal,

Did the admin interface  prompt you for the name of an admin username and 
password?  Upon initial installation, when you first go to the Admin Interface 
on port 8001, it will prompt you to create an admin user.

That message says that you are trying to log in with a user that does not have 
the admin role.  Are you sure MarkLogic has never been installed on that 
machine before?  If it was, there might be an existing security database there.

Assuming this is a new installation, it might be easiest to start over.  To do 
that, you can 1) shutdown MarkLogic 2) remove the data directory 
(/var/opt/MarkLogic), and then 3) start the server again.  Then you can go to 
port 8001 in a browser and see what happens.

WARNING: I this is not a new installation, do not do what I said above because 
it will delete your data directory.

-Danny

From: 
general-boun...@developer.marklogic.com<mailto:general-boun...@developer.marklogic.com>
 
[mailto:general-boun...@developer.marklogic.com<mailto:general-boun...@developer.marklogic.com>]
 On Behalf OfArdal Powell
Sent: Sunday, January 25, 2015 5:02 PM
To: general@developer.mark

Re: [MarkLogic Dev General] ERR_EMPTY_RESPONSE from security-install.xqy

2015-01-26 Thread Ardal Powell
Hi David, nice to see you here!

I used alien as well: everything went smoothly with:

sudo alien --to-deb --verbose {MarkLogic ... .rpm}
sudo dpkg -i {the resulting .deb file}
sudo /etc/init.d/MarkLogic start

The script at /etc/sysconfig/MarkLogic  seems to point to the correct 
installation and data directories, viz.:

# where MarkLogic is installed
export MARKLOGIC_INSTALL_DIR=/opt/MarkLogic

# where MarkLogic keeps its data
export MARKLOGIC_DATA_DIR=/var/opt/MarkLogic

So a bit of a puzzle. 

Ardal

On Jan 26, 2015, at 5:06 AM, David Ennis wrote:

> HI Ardal.
> 
> I note that you are installing this in a VM using Ubuntu.
> 
> I don't think that MarkLogic has a debian package available.  I uaually use 
> alien to convert them when testing on debian based systems.
> 
> Could you explain how you went about installing MarkLogic on a debian based 
> system?  Perhaps there is something about that. (for instance, there is a 
> sysconfig file that gets created that might be overlooked if installed 'by 
> hand'- not sure if that could be the issue, for instance)
> 
> 
> 
> 
> Kind Regards,
> David Ennis
> 
> 
> David Ennis
> Content Engineer
> 
>  
> Mastering the value of content
> creative | technology | content
> 
> Delftechpark 37i
> 2628 XJ Delft
> The Netherlands
> T: +31 88 268 25 00
> M: +31 63 091 72 80 
> 
>
> 
> On 26 January 2015 at 10:50, Ardal Powell  wrote:
> Thanks, Danny. I'm quite sure MarkLogic has not been installed before: it's a 
> brand new droplet. 
> 
> I went ahead and reinstalled the data directory, but the same thing happened 
> on trying to create a new admin user. The server took about a minute to 
> return the error.
> 
> I noticed that some of the .xqy in the data directory has permissions as low 
> as 600, so I set the whole directory to 777 to see what would happen. The 
> only difference was the server returned the error more quickly.
> 
> Also, the system was writing stuff to disk before the CHMOD because 
> /var/opt/MarkLogic/Forests/Last-Login/Security/Journals contains the 
> following:
> 
> A 0 byte file, Journal1-1970010100-0-18446744073709551615-0
> 
> A file named Label with contents:
> 
>  xmlns="http://marklogic.com/xdmp/forest/label";>83886849001084169457306095252104859001248801982819188447614222648032855250109457306095252104859false16048579413085239693598813436175772116612488019828191884476142226480328552501094573060952521048591844674407370955161501248801982819188447618446744073709551615059881343617577211668020linuxx86_64
> 
> Thanks again,
> Ardal
> 
> 
> On Jan 25, 2015, at 10:25 PM, Danny Sokolsky wrote:
> 
>> Hi Ardal,
>>  
>> Did the admin interface  prompt you for the name of an admin username and 
>> password?  Upon initial installation, when you first go to the Admin 
>> Interface on port 8001, it will prompt you to create an admin user.
>>  
>> That message says that you are trying to log in with a user that does not 
>> have the admin role.  Are you sure MarkLogic has never been installed on 
>> that machine before?  If it was, there might be an existing security 
>> database there.
>>  
>> Assuming this is a new installation, it might be easiest to start over.  To 
>> do that, you can 1) shutdown MarkLogic 2) remove the data directory 
>> (/var/opt/MarkLogic), and then 3) start the server again.  Then you can go 
>> to port 8001 in a browser and see what happens.
>>  
>> WARNING: I this is not a new installation, do not do what I said above 
>> because it will delete your data directory.
>>  
>> -Danny
>>  
>> From: general-boun...@developer.marklogic.com 
>> [mailto:general-boun...@developer.marklogic.com] On Behalf OfArdal Powell
>> Sent: Sunday, January 25, 2015 5:02 PM
>> To: general@developer.marklogic.com
>> Subject: [MarkLogic Dev General] ERR_EMPTY_RESPONSE from security-install.xqy
>>  
>> Hi all,
>>  
>> I have installed MLS 7.0 on a Digitalocean droplet running Ubuntu 14.04.1. 
>> Having some security problems I hope you can help with.
>>  
>> The Admin Interface responded on port 8001 and installed the database but 
>> I'm unable to proceed to user setup because security-install-go.xqy returned 
>> an ERR_EMPTY_RESPONSE on posting the form data.
>>  
>> Now, attempting to use Admin returns a 500 Error with the following details:
>>  
>> 500: Internal Server Error
>> SEC-NOADMIN: (err:FOER) User does not have admin role.
>> In /MarkLogic/security.xqy on line 5340
>> In sec:check-admin()
>> In /lib/status-check.xqy on line 16
>> In status-check()
>> In / on line 6
>>  
>> The install directory is /opt/MarkLogic. 
>>  
>> I haven't found any hints about this on MarkMail or Google. TIA for your 
>> advice.
>>  
>> Ardal
>> __
>> Ardal Powell
>> ard...@me.com
>>  
>>  
>>  
>> 
>> 
>>  
>>  
>>  
>>  
>> 
>> 
>>  
>> ___
>> General mailing list
>> General@developer.marklogic.com
>> http://developer.marklogic.com/mail

Re: [MarkLogic Dev General] ERR_EMPTY_RESPONSE from security-install.xqy

2015-01-26 Thread David Ennis
HI Ardal.

I note that you are installing this in a VM using Ubuntu.

I don't think that MarkLogic has a debian package available.  I uaually use
alien to convert them when testing on debian based systems.

Could you explain how you went about installing MarkLogic on a debian based
system?  Perhaps there is something about that. (for instance, there is a
sysconfig file that gets created that might be overlooked if installed 'by
hand'- not sure if that could be the issue, for instance)




Kind Regards,
David Ennis


David Ennis
*Content Engineer*

[image: HintTech]  
Mastering the value of content
creative | technology | content

Delftechpark 37i
2628 XJ Delft
The Netherlands
T: +31 88 268 25 00
M: +31 63 091 72 80

[image: http://www.hinttech.com] 
  


On 26 January 2015 at 10:50, Ardal Powell  wrote:

> Thanks, Danny. I'm quite sure MarkLogic has not been installed before:
> it's a brand new droplet.
>
> I went ahead and reinstalled the data directory, but the same thing
> happened on trying to create a new admin user. The server took about a
> minute to return the error.
>
> I noticed that some of the .xqy in the data directory has permissions as
> low as 600, so I set the whole directory to 777 to see what would happen.
> The only difference was the server returned the error more quickly.
>
> Also, the system was writing stuff to disk before the CHMOD because
> /var/opt/MarkLogic/Forests/Last-Login/Security/Journals contains the
> following:
>
> A 0 byte file, Journal1-1970010100-0-18446744073709551615-0
>
> A file named Label with contents:
> 
> http://marklogic.com/xdmp/forest/label
> ">83886849001084169457306095252104859001248801982819188447614222648032855250109457306095252104859false16048579413085239693598813436175772116612488019828191884476142226480328552501094573060952521048591844674407370955161501248801982819188447618446744073709551615059881343617577211668020linuxx86_64
>
> Thanks again,
> Ardal
>
>
> On Jan 25, 2015, at 10:25 PM, Danny Sokolsky wrote:
>
> Hi Ardal,
>
> Did the admin interface  prompt you for the name of an admin username and
> password?  Upon initial installation, when you first go to the Admin
> Interface on port 8001, it will prompt you to create an admin user.
>
> That message says that you are trying to log in with a user that does not
> have the admin role.  Are you sure MarkLogic has never been installed on
> that machine before?  If it was, there might be an existing security
> database there.
>
> Assuming this is a new installation, it might be easiest to start over.
> To do that, you can 1) shutdown MarkLogic 2) remove the data directory
> (/var/opt/MarkLogic), and then 3) start the server again.  Then you can go
> to port 8001 in a browser and see what happens.
>
> WARNING: I this is not a new installation, do not do what I said above
> because it will delete your data directory.
>
> -Danny
>
> *From:* general-boun...@developer.marklogic.com [mailto:
> general-boun...@developer.marklogic.com] *On Behalf Of*Ardal Powell
> *Sent:* Sunday, January 25, 2015 5:02 PM
> *To:* general@developer.marklogic.com
> *Subject:* [MarkLogic Dev General] ERR_EMPTY_RESPONSE from
> security-install.xqy
>
> Hi all,
>
> I have installed MLS 7.0 on a Digitalocean droplet running Ubuntu 14.04.1.
> Having some security problems I hope you can help with.
>
> The Admin Interface responded on port 8001 and installed the database but
> I'm unable to proceed to user setup because security-install-go.xqy
> returned an ERR_EMPTY_RESPONSE on posting the form data.
>
> Now, attempting to use Admin returns a 500 Error with the following
> details:
>
> *500: Internal Server Error*
>
>
>
>
>
> *SEC-NOADMIN: (err:FOER) User does not have admin role.In
> /MarkLogic/security.xqy on line 5340In sec:check-admin()In
> /lib/status-check.xqy on line 16In status-check()In / on line 6*
>
> The install directory is /opt/MarkLogic.
>
> I haven't found any hints about this on MarkMail or Google. TIA for your
> advice.
>
> Ardal
> __
> Ardal Powell
> ard...@me.com
>
>
>
>
>
>
>
>
>
>
>
>
> ___
> General mailing list
> General@developer.marklogic.com
> http://developer.marklogic.com/mailman/listinfo/general
>
>
>
> ___
> General mailing list
> General@developer.marklogic.com
> http://developer.marklogic.com/mailman/listinfo/general
>
>
___
General mailing list
General@developer.marklogic.com
http://developer.marklogic.com/mailman/listinfo/general


Re: [MarkLogic Dev General] ERR_EMPTY_RESPONSE from security-install.xqy

2015-01-26 Thread Ardal Powell
Thanks, Danny. I'm quite sure MarkLogic has not been installed before: it's a 
brand new droplet. 

I went ahead and reinstalled the data directory, but the same thing happened on 
trying to create a new admin user. The server took about a minute to return the 
error.

I noticed that some of the .xqy in the data directory has permissions as low as 
600, so I set the whole directory to 777 to see what would happen. The only 
difference was the server returned the error more quickly.

Also, the system was writing stuff to disk before the CHMOD because 
/var/opt/MarkLogic/Forests/Last-Login/Security/Journals contains the following:

A 0 byte file, Journal1-1970010100-0-18446744073709551615-0

A file named Label with contents:

http://marklogic.com/xdmp/forest/label";>83886849001084169457306095252104859001248801982819188447614222648032855250109457306095252104859false16048579413085239693598813436175772116612488019828191884476142226480328552501094573060952521048591844674407370955161501248801982819188447618446744073709551615059881343617577211668020linuxx86_64

Thanks again,
Ardal


On Jan 25, 2015, at 10:25 PM, Danny Sokolsky wrote:

> Hi Ardal,
>  
> Did the admin interface  prompt you for the name of an admin username and 
> password?  Upon initial installation, when you first go to the Admin 
> Interface on port 8001, it will prompt you to create an admin user.
>  
> That message says that you are trying to log in with a user that does not 
> have the admin role.  Are you sure MarkLogic has never been installed on that 
> machine before?  If it was, there might be an existing security database 
> there.
>  
> Assuming this is a new installation, it might be easiest to start over.  To 
> do that, you can 1) shutdown MarkLogic 2) remove the data directory 
> (/var/opt/MarkLogic), and then 3) start the server again.  Then you can go to 
> port 8001 in a browser and see what happens.
>  
> WARNING: I this is not a new installation, do not do what I said above 
> because it will delete your data directory.
>  
> -Danny
>  
> From: general-boun...@developer.marklogic.com 
> [mailto:general-boun...@developer.marklogic.com] On Behalf OfArdal Powell
> Sent: Sunday, January 25, 2015 5:02 PM
> To: general@developer.marklogic.com
> Subject: [MarkLogic Dev General] ERR_EMPTY_RESPONSE from security-install.xqy
>  
> Hi all,
>  
> I have installed MLS 7.0 on a Digitalocean droplet running Ubuntu 14.04.1. 
> Having some security problems I hope you can help with.
>  
> The Admin Interface responded on port 8001 and installed the database but I'm 
> unable to proceed to user setup because security-install-go.xqy returned an 
> ERR_EMPTY_RESPONSE on posting the form data.
>  
> Now, attempting to use Admin returns a 500 Error with the following details:
>  
> 500: Internal Server Error
> SEC-NOADMIN: (err:FOER) User does not have admin role.
> In /MarkLogic/security.xqy on line 5340
> In sec:check-admin()
> In /lib/status-check.xqy on line 16
> In status-check()
> In / on line 6
>  
> The install directory is /opt/MarkLogic. 
>  
> I haven't found any hints about this on MarkMail or Google. TIA for your 
> advice.
>  
> Ardal
> __
> Ardal Powell
> ard...@me.com
>  
>  
>  
> 
> 
>  
>  
>  
>  
> 
> 
>  
> ___
> General mailing list
> General@developer.marklogic.com
> http://developer.marklogic.com/mailman/listinfo/general

___
General mailing list
General@developer.marklogic.com
http://developer.marklogic.com/mailman/listinfo/general


Re: [MarkLogic Dev General] ERR_EMPTY_RESPONSE from security-install.xqy

2015-01-25 Thread Danny Sokolsky
Hi Ardal,

Did the admin interface  prompt you for the name of an admin username and 
password?  Upon initial installation, when you first go to the Admin Interface 
on port 8001, it will prompt you to create an admin user.

That message says that you are trying to log in with a user that does not have 
the admin role.  Are you sure MarkLogic has never been installed on that 
machine before?  If it was, there might be an existing security database there.

Assuming this is a new installation, it might be easiest to start over.  To do 
that, you can 1) shutdown MarkLogic 2) remove the data directory 
(/var/opt/MarkLogic), and then 3) start the server again.  Then you can go to 
port 8001 in a browser and see what happens.

WARNING: I this is not a new installation, do not do what I said above because 
it will delete your data directory.

-Danny

From: general-boun...@developer.marklogic.com 
[mailto:general-boun...@developer.marklogic.com] On Behalf Of Ardal Powell
Sent: Sunday, January 25, 2015 5:02 PM
To: general@developer.marklogic.com
Subject: [MarkLogic Dev General] ERR_EMPTY_RESPONSE from security-install.xqy

Hi all,

I have installed MLS 7.0 on a Digitalocean droplet running Ubuntu 14.04.1. 
Having some security problems I hope you can help with.

The Admin Interface responded on port 8001 and installed the database but I'm 
unable to proceed to user setup because security-install-go.xqy returned an 
ERR_EMPTY_RESPONSE on posting the form data.

Now, attempting to use Admin returns a 500 Error with the following details:

500: Internal Server Error
SEC-NOADMIN: (err:FOER) User does not have admin role.
In /MarkLogic/security.xqy on line 5340
In sec:check-admin()
In /lib/status-check.xqy on line 16
In status-check()
In / on line 6

The install directory is /opt/MarkLogic.

I haven't found any hints about this on MarkMail or Google. TIA for your advice.

Ardal
__
Ardal Powell
ard...@me.com












___
General mailing list
General@developer.marklogic.com
http://developer.marklogic.com/mailman/listinfo/general