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: [email protected] 
> [mailto:[email protected]] 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
> daemon    1445  1444  0 16:49 ?        00:00:02 /opt/MarkLogic/bin/MarkLogic
> ardal     1869  1544  0 16:56 pts/0    00:00:00 grep --color=auto MarkLogic
>  
> -Danny
>  
> From: [email protected] 
> [mailto:[email protected]]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 <[email protected]> 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-19700101000000-0-18446744073709551615-0
>  
> A file named Label with contents:
> <?xml version="1.0" encoding="UTF-8"?>
> <forest-label 
> xmlns="http://marklogic.com/xdmp/forest/label";><version>83886849</version><public-lock>0</public-lock><private-lock>0</private-lock><checkpoint-FSN>10</checkpoint-FSN><checkpoint-offset>8416</checkpoint-offset><checkpoint-sequence-key>9457306095252104859</checkpoint-sequence-key><backup-time>0</backup-time><restore-time>0</restore-time><master-forest>12488019828191884476</master-forest><master-precise-time>14222648032855250</master-precise-time><master-FSN>10</master-FSN><master-sequence-key>9457306095252104859</master-sequence-key><was-synchronized-flag>false</was-synchronized-flag><foreign-master-cluster>16048579413085239693</foreign-master-cluster><foreign-master-database>5988134361757721166</foreign-master-database><foreign-master-forest>12488019828191884476</foreign-master-forest><foreign-master-precise-time>14222648032855250</foreign-master-precise-time><foreign-master-FSN>10</foreign-master-FSN><foreign-master-sequence-key>9457306095252104859</foreign-master-sequence-key><foreign-fast-query-timestamp>18446744073709551615</foreign-fast-query-timestamp><min-query-timestamp>0</min-query-timestamp><configured-master-forest>12488019828191884476</configured-master-forest><rollback-timestamp>18446744073709551615</rollback-timestamp><lag-limit>0</lag-limit><database-key>5988134361757721166</database-key><journal-archive-path/><word-size>8</word-size><disk-megabytes>0</disk-megabytes><fragment-count>2</fragment-count><partition-key>0</partition-key><platform>linux</platform><architecture>x86_64</architecture></forest-label>
>  
> 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: [email protected] 
> [mailto:[email protected]] On Behalf OfArdal Powell
> Sent: Sunday, January 25, 2015 5:02 PM
> To: [email protected]
> 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:FOER0000) 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
> [email protected]
>  
>  
>  
>  
> 
>  
>  
>  
>  
>  
> 
>  
> _______________________________________________
> General mailing list
> [email protected]
> http://developer.marklogic.com/mailman/listinfo/general
>  
> 
> _______________________________________________
> General mailing list
> [email protected]
> http://developer.marklogic.com/mailman/listinfo/general
> 
>  
> _______________________________________________
> General mailing list
> [email protected]
> http://developer.marklogic.com/mailman/listinfo/general
>  
> _______________________________________________
> General mailing list
> [email protected]
> http://developer.marklogic.com/mailman/listinfo/general
>  
> _______________________________________________
> General mailing list
> [email protected]
> http://developer.marklogic.com/mailman/listinfo/general

_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to