Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
5
Question by Arcanor · Jul 18, 2013 at 07:03 PM · serverlinux

where is the output log found on a Linux headless server?

I'm running Unity Pro 4.1.3 (Unity editor is on my Windows 7 laptop), and have built a Linux x86_64 architecture binary for use on my Amazon EC2 Fedora 64-bit server.

I've uploaded both the executable (with chmod +x on it so it executes) and the data folder into my home folder. I'm using the following command line to instantiate the server (the server app is called "zone1"):

 xvfb-run --auto-servernum --server-args='-screen 0 640x480x24:32' ./zone1 -batchmode -nographics

The output is as follows:

 Set current directory to /home/ec2-user/unity
 Found path: /home/ec2-user/unity/zone1
 Mono path[0] = '/home/ec2-user/unity/zone1_Data/Managed'
 Mono path[1] = '/home/ec2-user/unity/zone1_Data/Mono'
 Mono config path = '/home/ec2-user/unity/zone1_Data/Mono/etc'
 
 /usr/bin/xvfb-run: line 166: 23189 Aborted                 DISPLAY=:$SERVERNUM XAUTHORITY=$AUTHFILE "$@" 2>&1

I've looked in /var/log and found nothing. I've also looked for an output.txt in the zone1_Data folder (as it is when I run the windows version on a windows server). No joy. Is there a log file somewhere that will tell me what is going on, or is it just this console output?

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

2 Replies

· Add your reply
  • Sort: 
avatar image
5
Best Answer

Answer by Arcanor · Jul 18, 2013 at 08:22 PM

After some further investigation, I have some more information, as well as a workaround.

First of all, apparently Unity 4.1 no longer requires the use of xvfb-run. This simplifies the command line somewhat, and probably also eliminates some overhead/dependencies that could cause issues.

Secondly, I've discovered that the linux command line also takes an optional "-logfile " argument (although it is implied that it only works on Windows on http://docs.unity3d.com/Documentation/Manual/CommandLineArguments.html). So I can now work around the original problem and view the logfile as follows:

 ./zone1 -batchmode -nographics -logfile zone1_output_log.txt

This effectively answers my original question, although I'm still curious as to where the default location of the logfile is in linux. Anyone know?

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
2

Answer by GooseSerbus · Nov 07, 2013 at 05:22 PM

You can find the log here:

~/.config/unity3d

Comment
Add comment · Show 4 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Arcanor · Nov 13, 2013 at 01:26 PM 0
Share

Thanks for your answer, but I have no such folder. Also, I am no longer using Fedora, and have switched the server over to Ubuntu. Not sure if that makes a difference.

In any case, I'm able to manually place my log using the '-logfile' argument, so this isn't really an issue.

avatar image GooseSerbus · Nov 13, 2013 at 02:26 PM 0
Share

Odd that it's not there for you as it's there for me on both Debian 7 (wheezy) and Ubuntu 12.04 LTS (Precise Pangolin)

Just to be clear '~' is your home directory and the '.config' folder will be hidden as it beings with a '.'.

avatar image Arcanor · Nov 13, 2013 at 03:50 PM 0
Share

Thanks for the clarification, but I'm already aware about '~' being an alias for my home dir, and '.' prefix "hidden" files, being an old school unix ad$$anonymous$$ for 20+ years.

I'm also running 12.04 LTS.

Perhaps it's not there because I'm using the '-logfile' argument. I spent some time modifying my config files to start the server without it, but it didn't create that folder, so I just changed it back.

I'd say just don't worry about this. It's preferable to use a specific logfile location of my choice anyway. It's not worth the effort to troubleshoot.

avatar image alimoeeny · Jan 30, 2017 at 02:18 PM 0
Share

For some reason this is both true and false. There is a log file there, but it does not contain "all the logs" I don't know why, but if you pass the command line -logfile then you get "all the logs messages"

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

17 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Running game server on linux server 0 Answers

Render to 'RenderTexture' in 'Headless Mode' 0 Answers

Linux game server 1 Answer

How to start Unity cache server as a service in linux. 0 Answers

Unity Master Server - Ubuntu build problem 4 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges